/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --text-primary: #e8e8ed;
    --text-secondary: #9898a6;
    --text-muted: #6b6b7b;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --accent-glow: rgba(217, 119, 6, 0.3);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.15);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.15);
    --yellow: #eab308;
    --yellow-dim: rgba(234, 179, 8, 0.15);
    --blue: #3b82f6;
    --blue-dim: rgba(59, 130, 246, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(217, 119, 6, 0.3);
    --github-dark: #0d1117;
    --github-border: #30363d;
    --github-text: #c9d1d9;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

img { max-width: 100%; }

/* ========================================
   Animated Background
   ======================================== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08), transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
    bottom: -200px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section { padding: 100px 0; }
.section-dark { background: var(--bg-secondary); }

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-accent);
    transition: var(--transition);
}

.nav-avatar:hover {
    border-color: var(--accent-light);
    box-shadow: 0 0 12px var(--accent-glow);
}

.nav-home-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-home-link:hover {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
    background: var(--accent);
    color: var(--bg-primary) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 100px 0 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-dim);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--blue);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.title-line { display: block; }

.title-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.scroll-indicator {
    margin-top: 40px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.scroll-indicator a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    color: var(--accent-light);
}

.scroll-arrow {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 0 30px var(--accent-glow);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(217, 119, 6, 0.15); }
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    color: var(--accent-light);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ========================================
   Terminal Demo
   ======================================== */
.demo-scenarios {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.scenario-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.scenario-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.scenario-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
}

.terminal-container {
    max-width: 900px;
    margin: 0 auto;
}

.terminal {
    background: var(--github-dark);
    border-radius: var(--radius);
    border: 1px solid var(--github-border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--github-border);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    margin-left: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    transition: var(--transition);
}

.status-dot.running {
    background: var(--accent);
    animation: pulse 1s ease-in-out infinite;
}

.terminal-body {
    padding: 20px;
    min-height: 350px;
    max-height: 450px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
}

.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb {
    background: var(--github-border);
    border-radius: 3px;
}

.terminal-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 2px;
}

.prompt {
    color: var(--green);
    margin-right: 8px;
    white-space: nowrap;
}

.terminal-cursor {
    animation: blink 1s step-end infinite;
    color: var(--text-primary);
}

@keyframes blink {
    50% { opacity: 0; }
}

.terminal-output {
    color: var(--text-secondary);
    width: 100%;
}

.terminal-output.success { color: var(--green); }
.terminal-output.error { color: var(--red); }
.terminal-output.warning { color: var(--yellow); }
.terminal-output.info { color: var(--blue); }
.terminal-output.accent { color: var(--accent-light); }
.terminal-output.bold {
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   GitHub PR Mock
   ======================================== */
.github-pr {
    max-width: 950px;
    margin: 0 auto;
    background: var(--github-dark);
    border: 1px solid var(--github-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.pr-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--github-border);
}

.pr-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pr-icon { color: var(--green); }

.pr-title-row h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--github-text);
}

.pr-number {
    color: var(--text-muted);
    font-weight: 400;
}

.pr-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pr-status {
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pr-status.open {
    background: var(--green-dim);
    color: var(--green);
}

.pr-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pr-tabs {
    display: flex;
    gap: 4px;
}

.pr-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.pr-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.tab-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* Diff */
.diff-file-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--github-border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--github-text);
}

.diff-stats { margin-left: auto; font-size: 0.75rem; }
.additions { color: var(--green); }
.deletions { color: var(--red); }

.diff-content {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
}

.diff-line {
    display: flex;
    padding: 1px 16px;
    min-height: 24px;
    align-items: center;
}

.diff-line .line-num {
    width: 40px;
    text-align: right;
    color: var(--text-muted);
    padding-right: 12px;
    user-select: none;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.diff-context { background: transparent; }
.diff-addition { background: rgba(34, 197, 94, 0.08); }
.diff-deletion { background: rgba(239, 68, 68, 0.08); }

/* Review Comments */
.review-comment {
    margin: 8px 16px;
    border: 1px solid var(--github-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--github-border);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.claude-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-glow), rgba(217, 119, 6, 0.1));
    border: 1px solid var(--border-accent);
    color: var(--accent-light);
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.claude-badge.large {
    padding: 6px 16px;
    font-size: 0.9rem;
}

.comment-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.comment-severity {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}

.comment-severity.critical {
    background: var(--red-dim);
    color: var(--red);
}

.comment-severity.warning {
    background: var(--yellow-dim);
    color: var(--yellow);
}

.comment-body { padding: 16px; }

.comment-body p {
    color: var(--github-text);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.suggestion-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--github-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--github-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-apply {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.btn-apply:hover { background: rgba(34, 197, 94, 0.25); }

.btn-apply.applied {
    background: var(--green);
    color: #000;
    border-color: var(--green);
}

.suggestion-block pre {
    padding: 12px;
    margin: 0;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.7;
}

.diff-remove {
    color: var(--red);
    display: block;
    background: rgba(239, 68, 68, 0.06);
    padding: 0 4px;
    margin: 0 -4px;
}

.diff-add {
    color: var(--green);
    display: block;
    background: rgba(34, 197, 94, 0.06);
    padding: 0 4px;
    margin: 0 -4px;
}

/* PR Review Summary */
.pr-review-summary {
    padding: 20px 24px;
    border-top: 1px solid var(--github-border);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.review-verdict {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verdict-text {
    color: var(--red);
    font-weight: 600;
    font-size: 0.9rem;
}

.review-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn-approve, .btn-changes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.btn-approve {
    background: var(--green-dim);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.btn-approve:hover {
    background: var(--green);
    color: #000;
}

.btn-changes {
    background: var(--red-dim);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.btn-changes:hover {
    background: var(--red);
    color: #000;
}

.pr-action-feedback {
    width: 100%;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.pr-action-feedback.show {
    padding: 12px 16px;
    max-height: 80px;
    margin-top: 12px;
}

.pr-action-feedback.approved {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pr-action-feedback.changes-requested {
    background: var(--yellow-dim);
    color: var(--yellow);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

/* ========================================
   Workflow Visualizer
   ======================================== */
.workflow-container {
    max-width: 900px;
    margin: 0 auto;
}

.workflow-trigger {
    text-align: center;
    margin-bottom: 40px;
}

.workflow-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 120px;
    transition: all 0.5s ease;
    position: relative;
    cursor: pointer;
}

.pipeline-step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.pipeline-step.active {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow);
}

.pipeline-step.completed {
    border-color: var(--green);
    background: var(--green-dim);
}

.pipeline-step.completed .step-icon { color: var(--green); }

.step-icon {
    color: var(--text-muted);
    transition: var(--transition);
}

.pipeline-step.active .step-icon { color: var(--accent-light); }

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.step-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.step-status {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.pipeline-step.active .step-status {
    background: var(--accent);
    animation: pulse 1s ease-in-out infinite;
}

.pipeline-step.completed .step-status { background: var(--green); }

.pipeline-connector {
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: var(--border);
    transition: background 0.5s ease;
}

.pipeline-connector.active .connector-line { background: var(--green); }

/* Workflow Log */
.workflow-log {
    background: var(--github-dark);
    border: 1px solid var(--github-border);
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease;
    margin-bottom: 32px;
}

.workflow-log.show {
    max-height: 300px;
    opacity: 1;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--github-border);
    font-size: 0.85rem;
    font-weight: 600;
}

.log-time {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.log-body {
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    max-height: 220px;
    overflow-y: auto;
}

.log-body::-webkit-scrollbar { width: 6px; }
.log-body::-webkit-scrollbar-thumb {
    background: var(--github-border);
    border-radius: 3px;
}

.log-entry {
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(5px);
    animation: logAppear 0.3s ease-out forwards;
}

.log-entry .log-timestamp {
    color: var(--text-muted);
    white-space: nowrap;
}

.log-entry .log-message { color: var(--github-text); }
.log-entry .log-message.success { color: var(--green); }
.log-entry .log-message.warning { color: var(--yellow); }
.log-entry .log-message.error { color: var(--red); }
.log-entry .log-message.info { color: var(--blue); }

@keyframes logAppear {
    to { opacity: 1; transform: translateY(0); }
}

/* YAML Display */
.workflow-yaml {
    background: var(--github-dark);
    border: 1px solid var(--github-border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.yaml-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--github-border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--github-text);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--github-border);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.yaml-content {
    padding: 20px;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.8;
    overflow-x: auto;
    color: var(--github-text);
}

.yaml-key { color: var(--blue); }
.yaml-string { color: var(--green); }

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    text-align: center;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent-light);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   CTA / Contact Section
   ======================================== */
.section-cta {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    text-align: center;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.contact-options {
    max-width: 600px;
    margin: 0 auto;
}

.quick-contact {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-btn:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-form h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b7b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer p a {
    color: var(--accent);
    transition: var(--transition);
}

.footer p a:hover {
    color: var(--accent-light);
}

.footer-sub {
    margin-top: 8px;
    font-size: 0.8rem !important;
    color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pipeline-step { min-width: 100px; padding: 16px 12px; }
    .pipeline-connector { width: 20px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .nav-mobile-toggle { display: flex; }
    .hero-title { font-size: 2.2rem; }
    .features-grid { grid-template-columns: 1fr; }

    .workflow-pipeline {
        flex-direction: column;
        gap: 0;
    }

    .pipeline-connector {
        width: 2px;
        height: 20px;
    }

    .connector-line {
        width: 2px !important;
        height: 100%;
    }

    .pipeline-step {
        width: 100%;
        max-width: 280px;
    }

    .pr-review-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-actions { margin-left: 0; }

    .diff-line { font-size: 0.7rem; }
    .diff-line .line-num { width: 30px; }
    .section { padding: 70px 0; }

    .quick-contact { flex-direction: column; align-items: center; }
    .contact-form { padding: 24px 16px; }
}

@media (max-width: 480px) {
    .hero-actions, .demo-scenarios {
        flex-direction: column;
        align-items: center;
    }

    .scenario-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}
