:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-terminal: #0d0d14;
    --cyan: #00e5ff;
    --cyan-dim: #00e5ff33;
    --cyan-glow: 0 0 20px #00e5ff44, 0 0 60px #00e5ff22;
    --red: #ff3b5c;
    --yellow: #ffd54f;
    --green: #4cff91;
    --blue: #4da6ff;
    --purple: #c084fc;
    --text: #e0e0e8;
    --text-muted: #6b7280;
    --border: #1e1e2e;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-dim) var(--bg);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

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

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 229, 255, 0.015) 2px,
        rgba(0, 229, 255, 0.015) 4px
    );
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-logo-icon {
    font-size: 0.8rem;
    margin-right: 4px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-github {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s !important;
}

.nav-github:hover {
    border-color: var(--cyan) !important;
    background: var(--cyan-dim);
}

.lang-toggle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--cyan);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.lang-toggle:hover {
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
    transform: scale(1.05);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
}

.hero-content { max-width: 900px; }

.hero-badge {
    display: inline-block;
    padding: 4px 16px;
    border: 1px solid var(--cyan);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-shadow: var(--cyan-glow);
}

.hero-ascii {
    font-family: var(--font-mono);
    font-size: clamp(0.35rem, 1.1vw, 0.75rem);
    line-height: 1.2;
    color: var(--cyan);
    text-shadow: var(--cyan-glow);
    margin-bottom: 16px;
    white-space: pre;
    overflow-x: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============ GLITCH ============ */
.glitch {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--cyan);
    position: relative;
    letter-spacing: -2px;
    text-shadow: var(--cyan-glow);
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--red);
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    z-index: -1;
}

.glitch::after {
    color: var(--blue);
    animation: glitch-2 2.5s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    z-index: -1;
}

@keyframes glitch-1 {
    0%, 80% { transform: translate(0); }
    82% { transform: translate(-3px, 2px); }
    84% { transform: translate(3px, -1px); }
    86% { transform: translate(-2px, 1px); }
    88% { transform: translate(0); }
    90% { transform: translate(4px, -2px); }
    92% { transform: translate(-1px, 3px); }
    94%, 100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0%, 75% { transform: translate(0); }
    77% { transform: translate(2px, -3px); }
    79% { transform: translate(-4px, 1px); }
    81% { transform: translate(1px, 2px); }
    83% { transform: translate(0); }
    85% { transform: translate(-3px, -1px); }
    87% { transform: translate(2px, 3px); }
    89%, 100% { transform: translate(0); }
}

@keyframes glitch-skew {
    0%, 95% { transform: skew(0deg); }
    96% { transform: skew(0.5deg); }
    97% { transform: skew(-0.3deg); }
    98% { transform: skew(0.4deg); }
    99% { transform: skew(-0.2deg); }
    100% { transform: skew(0deg); }
}

.glitch-sm {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--cyan);
    position: relative;
    display: inline-block;
}

.glitch-sm::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--red);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
    animation: glitch-1 4s infinite linear alternate-reverse;
    z-index: -1;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text);
    margin-top: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--cyan);
    color: var(--bg);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
    transform: translateY(-2px);
}

.btn-icon { flex-shrink: 0; }

.hero-stats {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ============ SECTIONS ============ */
section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--cyan), #ffffff, var(--cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 4s linear infinite;
}

@keyframes title-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.feature-card h3 {
    position: relative;
    display: inline-block;
}

.feature-card:hover h3 {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    transition: all 0.3s;
}

.example-info h3,
.ai-info > h3,
.ai-models h3,
.install-card h3,
.prereqs h3 {
    position: relative;
    padding-left: 16px;
}

.example-info h3::before,
.ai-info > h3::before,
.ai-models h3::before,
.install-card h3::before,
.prereqs h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.section-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--cyan);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

/* ============ FEATURES ============ */
.features { background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.02), transparent); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-4px);
    box-shadow: var(--cyan-glow);
}

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

.feature-icon {
    color: var(--cyan);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--cyan-dim);
}

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

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============ TERMINAL ============ */
.terminal {
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.terminal:hover {
    border-color: #2a2a3e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #16161e;
    border-bottom: 1px solid var(--border);
}

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

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

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

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.terminal-sm .terminal-body {
    padding: 16px;
    font-size: 0.82rem;
}

.term-line { white-space: pre; }

.term-prompt {
    color: var(--green);
    user-select: none;
    margin-right: 8px;
}

.term-cmd { color: var(--text); }
.term-output { color: var(--text-muted); }
.term-cyan { color: var(--cyan) !important; }
.term-red { color: var(--red) !important; }
.term-yellow { color: var(--yellow) !important; }
.term-green { color: var(--green) !important; }
.term-blue { color: var(--blue) !important; }
.term-white { color: var(--text) !important; }
.term-muted { color: var(--text-muted) !important; }
.term-yaml-key { color: var(--cyan); }

.copy-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.copy-btn.copied {
    color: var(--green);
    border-color: var(--green);
}

/* ============ QUICKSTART ============ */
.terminal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ============ EXAMPLES ============ */
.examples { background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.02), transparent); }

.examples-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.example-item {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: start;
}

.example-item:nth-child(even) {
    direction: rtl;
}

.example-item:nth-child(even) > * {
    direction: ltr;
}

.example-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.example-info p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.example-info code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    background: var(--cyan-dim);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ============ ECOSYSTEMS ============ */
.eco-table-wrap {
    overflow-x: auto;
}

.eco-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.eco-table thead {
    border-bottom: 2px solid var(--border);
}

.eco-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.eco-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.eco-table tr {
    transition: background 0.2s;
}

.eco-table tbody tr:hover {
    background: rgba(0, 229, 255, 0.03);
}

.eco-table code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

.eco-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.eco-badge.python { background: #3776ab22; color: #4b8bbe; border: 1px solid #3776ab44; }
.eco-badge.node { background: #68a06322; color: #68a063; border: 1px solid #68a06344; }
.eco-badge.go { background: #00add822; color: #00add8; border: 1px solid #00add844; }
.eco-badge.rust { background: #dea58422; color: #dea584; border: 1px solid #dea58444; }
.eco-badge.java { background: #f8981d22; color: #f8981d; border: 1px solid #f8981d44; }
.eco-badge.php { background: #777bb422; color: #9b9ed8; border: 1px solid #777bb444; }
.eco-badge.ruby { background: #cc342d22; color: #e05252; border: 1px solid #cc342d44; }

/* ============ AI TRIAGE ============ */
.ai-triage { background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.02), transparent); }

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.ai-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.ai-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--cyan);
    min-width: 48px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    animation: step-flicker 3s ease-in-out infinite alternate;
}

@keyframes step-flicker {
    0%, 90% { opacity: 0.5; }
    92% { opacity: 1; }
    94% { opacity: 0.4; }
    96% { opacity: 0.9; }
    98%, 100% { opacity: 0.5; }
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.ai-models h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ai-info > h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.model-cards {
    display: flex;
    gap: 12px;
}

.model-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}

.model-card.recommended {
    border-color: var(--cyan-dim);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.model-card:hover { transform: translateY(-2px); }

.model-tier {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.model-tier.light { background: #4cff9122; color: var(--green); }
.model-tier.medium { background: #00e5ff22; color: var(--cyan); }
.model-tier.full { background: #c084fc22; color: var(--purple); }

.model-name {
    display: block;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 6px 0;
}

.model-params {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.model-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============ INSTALL ============ */
.install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.install-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s;
}

.install-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-2px);
}

.install-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.install-card h3 svg { color: var(--cyan); }

.prereqs {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.prereqs h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.prereqs ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prereqs li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.prereqs li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 700;
}

.prereqs li strong { color: var(--text); }

.prereqs a {
    color: var(--cyan);
    text-decoration: none;
}

.prereqs a:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-brand {
    font-size: 1.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-brand a {
    color: var(--cyan);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

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

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.hero-stats .stat:nth-child(2) { transition-delay: 0.1s; }
.hero-stats .stat:nth-child(3) { transition-delay: 0.2s; }
.hero-stats .stat:nth-child(4) { transition-delay: 0.3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-grid { grid-template-columns: 1fr; }
    .install-grid { grid-template-columns: repeat(2, 1fr); }
}

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

    .nav-links.open { display: flex; }

    .nav-toggle { display: flex; }

    .features-grid { grid-template-columns: 1fr; }
    .terminal-grid { grid-template-columns: 1fr; }
    .install-grid { grid-template-columns: 1fr; }
    .model-cards { flex-direction: column; }

    .example-item {
        grid-template-columns: 1fr;
    }

    .example-item:nth-child(even) {
        direction: ltr;
    }

    .hero-stats { gap: 24px; }

    .stat-value { font-size: 1.4rem; }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero { padding: 100px 16px 60px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
}
