/* ═══════════════════════════════════════════════════════════
   AgentChain — Premium Design System v3
   Glassmorphism × Neon × Dark Luxury
   Inspired by vercel.com, linear.app, stripe.com
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg:           #050508;
    --bg-2:         #08080f;
    --bg-3:         #0f0f1a;
    --bg-card:      rgba(12, 12, 24, 0.6);
    --bg-glass:     rgba(12, 12, 24, 0.4);
    --bg-terminal:  #07070e;
    --border:       rgba(255, 255, 255, 0.06);
    --border-2:     rgba(255, 255, 255, 0.1);
    --border-glow:  rgba(0, 212, 255, 0.15);

    --text:         #f0f0f8;
    --text-2:       #9494b8;
    --text-3:       #5e5e80;
    --text-dim:     #3a3a55;

    --accent:       #00d4ff;
    --accent-2:     #00ff88;
    --purple:       #8b5cf6;
    --red:          #ff4466;
    --orange:       #ff8844;
    --yellow:       #ffd700;
    --pink:         #f472b6;

    --glow:         rgba(0, 212, 255, 0.08);
    --glow-strong:  rgba(0, 212, 255, 0.25);
    --glow-green:   rgba(0, 255, 136, 0.08);
    --glow-purple:  rgba(139, 92, 246, 0.08);

    --gradient:     linear-gradient(135deg, #00d4ff, #00ff88);
    --gradient-2:   linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #00ff88 100%);
    --gradient-3:   linear-gradient(135deg, #f472b6, #8b5cf6, #00d4ff);

    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:         'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;
    --radius-xl:    28px;

    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:     cubic-bezier(0, 0, 0.2, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

    --space-xs:     8px;
    --space-sm:     16px;
    --space-md:     24px;
    --space-lg:     48px;
    --space-xl:     80px;
    --space-2xl:    120px;
}

/* ═══ Reset ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 80px;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
a { color: var(--accent); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--accent-2); }

/* ═══ Global animated mesh background ═══ */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 212, 255, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 50% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* ═══ Typography ═══ */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: clamp(3.5rem, 10vw, 7rem); font-weight: 900; letter-spacing: -0.05em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 700; }

.gradient-text {
    background: var(--gradient-2);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

code {
    font-family: var(--mono);
    font-size: 0.82em;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--accent);
}

/* ═══ Glassmorphism base ═══ */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

/* ═══ Buttons ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateX(100%); }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gradient);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.3), 0 0 80px rgba(0, 212, 255, 0.1);
    color: #000;
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); }

.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border: 1px solid var(--border-2);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.03);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.2);
    font-family: var(--mono);
    font-size: 0.9rem;
}
.btn-ghost:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
    color: var(--accent);
}

.btn-lg { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* ═══ Section Styling ═══ */
section {
    padding: var(--space-2xl) 0;
    position: relative;
}

/* Gradient section separator */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2), transparent);
}
section:last-of-type::after,
#hero::after,
#footer::after { display: none; }

.section-header { text-align: center; margin-bottom: var(--space-xl); }

.section-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
}

.section-desc {
    color: var(--text-2);
    font-size: 1.18rem;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.85;
}

/* ═══ Navigation ═══ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
}
#navbar.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(30px) saturate(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.02em;
}
.nav-accent { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.nav-chain { margin-right: 4px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    color: var(--text-3);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    border-radius: 1px;
}

/* ═══ Hero ═══ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 140px var(--space-md) 100px;
    overflow: hidden;
}
#hero::after { display: none; }

#heroCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* Animated mesh gradient orbs behind hero */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
    pointer-events: none;
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12), transparent 70%);
    top: -10%; left: -10%;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
    top: 20%; right: -15%;
    animation-delay: -7s;
    animation-duration: 25s;
}
.hero-orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08), transparent 70%);
    bottom: -5%; left: 30%;
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 40px) scale(1.02); }
}

.hero-grid-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background:
        linear-gradient(rgba(0,212,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at center, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, black 10%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.12);
    padding: 8px 22px;
    border-radius: 100px;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s var(--ease);
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 7px; height: 7px;
    background: var(--accent-2);
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 8px var(--accent-2);
}

.hero-title {
    animation: fadeInUp 0.8s var(--ease) 0.1s both;
    margin-bottom: 12px;
}
.hero-line-1 {
    color: var(--text);
    display: block;
}
.hero-line-2 {
    background: var(--gradient-2);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s var(--ease) 0.1s both, gradientShift 6s ease infinite;
    display: block;
}

.hero-typewriter {
    font-family: var(--mono);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: var(--accent);
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
    min-height: 48px;
    backdrop-filter: blur(10px);
}
.typewriter-prefix { color: var(--accent-2); font-weight: 700; }
.typewriter-cursor {
    animation: cursorBlink 0.8s step-end infinite;
    color: var(--accent);
    font-size: 0.9em;
    text-shadow: 0 0 8px var(--accent);
}

.hero-tagline {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text);
    font-weight: 500;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
    line-height: 1.4;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    animation: fadeInUp 0.8s var(--ease) 0.35s both;
    line-height: 1.9;
}
.hero-mono {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-3);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease) 0.45s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease) 0.55s both;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    flex: 1;
    padding: 0 28px;
}
.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--text);
    line-height: 1.2;
}
.stat-unit { font-size: 0.65em; color: var(--accent); }
.stat-label {
    font-size: 0.72rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 6px;
}
.stat-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, var(--border-2), transparent);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: heroScrollBounce 2.5s infinite;
}
.hero-scroll a {
    color: var(--text-3);
    transition: color 0.3s;
}
.hero-scroll a:hover { color: var(--accent); }

@keyframes heroScrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

/* ═══ Problem ═══ */
#problem {
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}
#problem::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 102, 0.3), transparent);
}

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

.problem-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
}
.problem-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 68, 102, 0.06), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.problem-card:hover {
    border-color: rgba(255, 68, 102, 0.3);
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(255, 68, 102, 0.08), 0 0 40px rgba(255, 68, 102, 0.04);
}
.problem-card:hover::before { opacity: 1; }

.problem-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; }
.problem-icon { font-size: 2.4rem; }
.problem-status {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--red);
    background: rgba(255, 68, 102, 0.08);
    border: 1px solid rgba(255, 68, 102, 0.15);
    padding: 5px 12px;
    border-radius: 100px;
}

.problem-card h3 { font-size: 1.6rem; margin-bottom: 4px; position: relative; }
.problem-chain { font-family: var(--mono); color: var(--red); font-size: 0.85rem; margin-bottom: 20px; position: relative; }

.problem-list {
    list-style: none;
    margin-bottom: 24px;
    position: relative;
}
.problem-list li {
    color: var(--text-2);
    font-size: 0.9rem;
    padding: 5px 0 5px 22px;
    position: relative;
}
.problem-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
    font-family: var(--mono);
}

.problem-verdict {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--red);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 68, 102, 0.1);
    position: relative;
}

.problem-solution {
    text-align: center;
    margin-top: 60px;
    padding: 56px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.problem-solution::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: var(--gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s;
    filter: blur(1px);
}
.problem-solution:hover::before { opacity: 0.08; }

.problem-solution h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.problem-solution > p { color: var(--text-2); font-size: 1.1rem; max-width: 660px; margin: 0 auto 28px; }

.solution-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.solution-features span {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-2);
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.12);
    padding: 7px 16px;
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}
.solution-features span:hover {
    background: rgba(0, 255, 136, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
}

/* ═══ Features ═══ */
#features {
    overflow: hidden;
}

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

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.feature-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.feature-card:hover .feature-glow { opacity: 1; }
.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-8px) rotateX(1deg);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.06), 0 0 40px rgba(0, 212, 255, 0.03);
}

.feature-card.feature-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px;
}
.feature-card.feature-large .feature-icon-wrap,
.feature-card.feature-large .feature-tag,
.feature-card.feature-large h3,
.feature-card.feature-large > p,
.feature-card.feature-large > .feature-details { grid-column: 1; }
.feature-card.feature-large .feature-code { grid-column: 2; grid-row: 1 / -1; align-self: center; }

.feature-icon-wrap { margin-bottom: 16px; }
.feature-icon {
    font-size: 2.4rem;
    display: inline-block;
    transition: transform 0.3s var(--ease-spring);
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-3deg); }

.feature-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.06);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 12px; }
.feature-card > p { color: var(--text-2); font-size: 0.93rem; margin-bottom: 20px; line-height: 1.7; }

.feature-details { display: flex; flex-direction: column; gap: 0; }
.fd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    transition: background 0.2s;
}
.fd-item:last-child { border-bottom: none; }
.fd-item:hover { background: rgba(0, 212, 255, 0.02); }
.fd-label { color: var(--text-3); font-weight: 500; }
.fd-value { font-family: var(--mono); color: var(--text-2); font-size: 0.8rem; text-align: right; }

/* Code block in feature */
.feature-code {
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(15, 15, 26, 0.8);
    border-bottom: 1px solid var(--border);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-title {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-3);
    margin-left: 8px;
}
.feature-code pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}
.feature-code code {
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.8;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-2);
}
.feature-code .kw { color: var(--purple); }
.feature-code .fn { color: var(--accent); }
.feature-code .ty { color: var(--accent-2); }

/* Feature hover glow variants */
.feature-card:nth-child(2):hover { border-color: rgba(139, 92, 246, 0.3); box-shadow: 0 20px 60px rgba(139, 92, 246, 0.06); }
.feature-card:nth-child(2):hover .feature-glow { background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 50%); }
.feature-card:nth-child(3):hover { border-color: rgba(0, 255, 136, 0.3); box-shadow: 0 20px 60px rgba(0, 255, 136, 0.06); }
.feature-card:nth-child(3):hover .feature-glow { background: radial-gradient(circle, rgba(0, 255, 136, 0.06), transparent 50%); }
.feature-card:nth-child(4):hover { border-color: rgba(255, 136, 68, 0.3); box-shadow: 0 20px 60px rgba(255, 136, 68, 0.06); }
.feature-card:nth-child(5):hover { border-color: rgba(244, 114, 182, 0.3); box-shadow: 0 20px 60px rgba(244, 114, 182, 0.06); }
.feature-card:nth-child(6):hover { border-color: rgba(255, 215, 0, 0.3); box-shadow: 0 20px 60px rgba(255, 215, 0, 0.06); }

/* ═══ Terminal Section ═══ */
#terminal {
    background: var(--bg-2);
    overflow: hidden;
    position: relative;
}
#terminal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.terminal-wrapper {
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-terminal);
    box-shadow:
        0 0 80px rgba(139, 92, 246, 0.05),
        0 25px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    margin-bottom: 48px;
    transition: all 0.5s var(--ease);
}
.terminal-wrapper:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow:
        0 0 120px rgba(139, 92, 246, 0.08),
        0 25px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.terminal-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: rgba(15, 15, 26, 0.8);
    border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 7px; }
.td { width: 12px; height: 12px; border-radius: 50%; transition: all 0.2s; }
.td.red { background: #ff5f57; }
.td.yellow { background: #febc2e; }
.td.green { background: #28c840; }
.terminal-wrapper:hover .td.red { box-shadow: 0 0 6px #ff5f57; }
.terminal-wrapper:hover .td.yellow { box-shadow: 0 0 6px #febc2e; }
.terminal-wrapper:hover .td.green { box-shadow: 0 0 6px #28c840; }

.terminal-title {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-3);
}
.terminal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent-2);
    font-weight: 600;
    letter-spacing: 0.1em;
}
.ts-dot {
    width: 7px; height: 7px;
    background: var(--accent-2);
    border-radius: 50%;
    animation: blink 1.5s infinite;
    box-shadow: 0 0 8px var(--accent-2);
}

.terminal-body {
    padding: 22px;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.9;
    max-height: 420px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.terminal-line {
    color: var(--text-2);
    white-space: pre-wrap;
    word-break: break-all;
    opacity: 0;
    transform: translateY(4px);
    animation: terminalLineIn 0.4s var(--ease) forwards;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 1px 0;
    transition: background 0.2s;
}
.terminal-line.boot { color: var(--text-3); }
.terminal-line.spacer { color: var(--text-dim); opacity: 1; transform: none; background: none !important; }
.terminal-line:not(.boot):not(.spacer):hover { background: rgba(139, 92, 246, 0.04); }
.terminal-line .t-time { color: var(--text-dim); }
.terminal-line .t-tag { font-weight: 600; }
.terminal-line .t-tag.consensus { color: var(--purple); text-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }
.terminal-line .t-tag.x402 { color: var(--accent); text-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
.terminal-line .t-tag.bridge { color: var(--orange); text-shadow: 0 0 10px rgba(255, 136, 68, 0.3); }
.terminal-line .t-tag.privacy { color: var(--accent-2); text-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }
.terminal-line .t-tag.finality { color: var(--yellow); text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.terminal-line .t-agent { color: var(--accent); }
.terminal-line .t-value { color: var(--accent-2); }
.terminal-line .t-hash { color: var(--text-dim); }
.terminal-line .t-success { color: var(--accent-2); font-weight: 700; text-shadow: 0 0 10px rgba(0, 255, 136, 0.4); }

/* Agent Identity Cards */
.agents-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.agent-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.agent-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
}
.agent-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.06);
}
.agent-card:hover::before { opacity: 1; }

.agent-avatar {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: inline-block;
    transition: transform 0.3s var(--ease-spring);
}
.agent-card:hover .agent-avatar { transform: scale(1.15); }
.agent-info { margin-bottom: 18px; }
.agent-name { font-weight: 700; font-size: 1.2rem; }
.agent-id { font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); margin-top: 3px; }

.agent-meta { margin-bottom: 18px; }
.agent-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.agent-stat:last-child { border-bottom: none; }
.as-label { color: var(--text-3); }
.as-value { font-family: var(--mono); color: var(--text-2); font-size: 0.8rem; }
.as-value.score { color: var(--accent); text-shadow: 0 0 8px rgba(0, 212, 255, 0.2); }
.as-value.rep { color: var(--accent-2); text-shadow: 0 0 8px rgba(0, 255, 136, 0.2); }

.agent-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.cap {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 100px;
    transition: all 0.2s;
}
.cap:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Agent card shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.agent-card:hover .agent-name {
    background: linear-gradient(90deg, var(--text), var(--accent), var(--text));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s linear infinite;
}

/* ═══ Capabilities ═══ */
#capabilities { overflow: hidden; }

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

.cap-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.cap-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.cap-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.06);
}
.cap-card:hover::before { opacity: 1; }

.cap-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s var(--ease-spring);
}
.cap-card:hover .cap-icon { transform: scale(1.15) rotate(-3deg); }
.cap-card h3 { margin-bottom: 12px; position: relative; }
.cap-card > p { color: var(--text-2); font-size: 0.93rem; margin-bottom: 20px; line-height: 1.7; position: relative; }

.cap-code {
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    position: relative;
    overflow: hidden;
}
.cap-code::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gradient);
}
.cap-code code {
    font-size: 0.78rem;
    color: var(--accent);
    background: none;
    border: none;
    padding: 0;
}

/* ═══ How It Works ═══ */
#how-it-works {
    background: var(--bg-2);
    overflow: hidden;
    position: relative;
}
#how-it-works::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
}

.flow-steps {
    max-width: 880px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    gap: 36px;
    padding-bottom: 56px;
}
.flow-step:last-child { padding-bottom: 0; }

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.step-number {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
    position: relative;
}
.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0;
    filter: blur(8px);
    z-index: -1;
    transition: opacity 0.3s;
}
.flow-step:hover .step-number::after { opacity: 0.15; }
.step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, rgba(0, 212, 255, 0.2), transparent);
    margin-top: 10px;
    min-height: 40px;
}

.step-content h3 { margin-bottom: 12px; }
.step-content > p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.75; }

.step-terminal {
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.9;
    color: var(--text-2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.step-terminal::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gradient);
}
.st-prompt { color: var(--accent-2); font-weight: 700; }
.st-output { color: var(--text-3); padding-left: 2ch; display: inline-block; }
.st-success { color: var(--accent-2); font-weight: 700; text-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }

/* ═══ Comparison Table ═══ */
#comparison { padding: 100px 0; }

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.comparison-table th,
.comparison-table td {
    padding: 18px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.comparison-table th {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text-3);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(15, 15, 26, 0.5);
}
.comparison-table th:first-child,
.comparison-table td:first-child { text-align: left; font-weight: 500; }
.comparison-table th.highlight {
    background: rgba(0, 212, 255, 0.06) !important;
    color: var(--accent) !important;
}
.comparison-table tbody tr { transition: background 0.2s; }
.comparison-table tbody tr:hover { background: rgba(0, 212, 255, 0.02); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table .no { color: var(--red); opacity: 0.7; }
.comparison-table .partial { color: var(--text-3); }
.comparison-table .yes { color: var(--accent-2); font-weight: 700; text-shadow: 0 0 8px rgba(0, 255, 136, 0.2); }

/* ═══ Tokenomics ═══ */
#tokenomics {
    background: var(--bg-2);
    overflow: hidden;
    position: relative;
}
#tokenomics::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), rgba(0, 212, 255, 0.3), transparent);
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.token-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: all 0.4s var(--ease);
}
.token-card:hover {
    border-color: var(--border-2);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}
.token-card h3 {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}

.token-big {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    font-family: var(--mono);
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
    margin-bottom: 10px;
}
.token-label { color: var(--text-3); font-size: 0.9rem; margin-bottom: 28px; }

.token-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    transition: background 0.2s;
}
.token-row:hover { background: rgba(0, 212, 255, 0.02); }
.token-row:last-child { border-bottom: none; }
.token-row span:first-child { color: var(--text-2); }
.token-value { font-weight: 600; font-family: var(--mono); font-size: 0.85rem; }
.token-value.zero { color: var(--accent-2); text-shadow: 0 0 8px rgba(0, 255, 136, 0.2); }

.fee-desc { color: var(--text-2); font-size: 0.92rem; margin-bottom: 28px; line-height: 1.7; }

.fee-bar {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    height: 48px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.fee-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--mono);
    font-size: 0.85rem;
    transition: all 0.3s var(--ease);
}
.fee-segment:hover { filter: brightness(1.15); }
.fee-segment.agent { background: linear-gradient(135deg, #00d4ff, #00b8d9); color: #000; }
.fee-segment.validator { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; }
.fee-segment.burn { background: linear-gradient(135deg, #ff4466, #e63950); color: #fff; }

.fee-labels { display: flex; flex-direction: column; gap: 10px; }
.fee-label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; position: relative; top: 1px; }
.dot.agent { background: var(--accent); box-shadow: 0 0 8px rgba(0, 212, 255, 0.3); }
.dot.validator { background: var(--purple); box-shadow: 0 0 8px rgba(139, 92, 246, 0.3); }
.dot.burn { background: var(--red); box-shadow: 0 0 8px rgba(255, 68, 102, 0.3); }

.token-flywheel { grid-column: 1 / -1; }
.flywheel-desc { color: var(--text-2); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.7; }

.flywheel {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.flywheel-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 28px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    min-width: 160px;
    flex: 1;
    text-align: center;
    transition: all 0.3s var(--ease);
}
.flywheel-step:hover {
    border-color: var(--border-2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.fw-icon { font-size: 2rem; }
.flywheel-step > span:nth-child(2) { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.fw-detail { font-size: 0.75rem; color: var(--text-3); font-family: var(--mono); }
.flywheel-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* ═══ Architecture ═══ */
#architecture { overflow: hidden; }

.arch-visual {
    max-width: 920px;
    margin: 0 auto 72px;
}
.arch-layer {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 0;
}
.arch-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    width: 100px;
    flex-shrink: 0;
    text-align: right;
}
.arch-boxes { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.arch-box {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
    min-width: 110px;
    transition: all 0.3s var(--ease);
}
.arch-box:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.06);
}
.arch-box.accent {
    background: rgba(0, 212, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.15);
    color: var(--accent);
}
.arch-box.accent:hover { border-color: rgba(0, 212, 255, 0.3); }
.arch-box.wide { flex: 1 1 100%; }
.arch-box.privacy { background: rgba(139, 92, 246, 0.04); border-color: rgba(139, 92, 246, 0.15); }
.arch-box.privacy:hover { border-color: rgba(139, 92, 246, 0.3); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.06); }
.arch-sub { display: block; font-size: 0.68rem; color: var(--text-3); margin-top: 4px; font-weight: 400; }
.arch-arrow {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    padding: 6px 0 6px 118px;
    font-family: var(--mono);
}

.arch-modules h3 { text-align: center; margin-bottom: 28px; }
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 10px;
}
.module {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    transition: all 0.3s var(--ease);
}
.module:hover {
    border-color: var(--border-2);
    transform: translateX(4px);
    background: rgba(0, 212, 255, 0.02);
}
.module-name { font-family: var(--mono); color: var(--accent); font-weight: 600; white-space: nowrap; min-width: 100px; }
.module-desc { color: var(--text-3); font-size: 0.78rem; flex: 1; }
.module-lines { font-family: var(--mono); color: var(--text-dim); font-size: 0.78rem; white-space: nowrap; }

/* ═══ Roadmap ═══ */
#roadmap {
    background: var(--bg-2);
    overflow: hidden;
    position: relative;
}
#roadmap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.timeline { max-width: 820px; margin: 0 auto; position: relative; padding-left: 52px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-2) 0%, var(--accent) 40%, var(--accent) 60%, var(--border) 100%);
}

.timeline-item { position: relative; padding: 0 0 56px 36px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -44px;
    top: 4px;
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: var(--bg-2);
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--text-3);
    z-index: 1;
}
.done-marker {
    background: var(--accent-2) !important;
    color: #000 !important;
    border-color: var(--accent-2) !important;
    font-size: 0.7rem !important;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}
.active-marker {
    background: var(--bg-2) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}
.marker-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulseRing 2s infinite;
}

.timeline-phase { font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); margin-bottom: 10px; }
.timeline-content h3 { margin-bottom: 10px; }
.timeline-content p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 14px; line-height: 1.75; }

.timeline-status {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.06em;
}
.timeline-status.done { background: rgba(0,255,136,0.08); color: var(--accent-2); border: 1px solid rgba(0,255,136,0.15); }
.timeline-status.current { background: rgba(0,212,255,0.06); color: var(--accent); border: 1px solid rgba(0,212,255,0.15); }
.timeline-status.upcoming { background: rgba(255,255,255,0.03); color: var(--text-3); border: 1px solid var(--border); }

/* ═══ Agent Instructions ═══ */
#agent-instructions {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
#agent-instructions::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(rgba(0,212,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.012) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.agent-instructions-wrapper {
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-terminal);
    box-shadow: 0 0 100px rgba(0,212,255,0.06), 0 25px 80px rgba(0,0,0,0.5);
    position: relative;
}

.ai-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: rgba(15, 15, 26, 0.8);
    border-bottom: 1px solid var(--border);
}
.ai-chrome-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-dot {
    width: 8px; height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 8px var(--accent-2);
}
.ai-label {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}
.ai-size {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-3);
}

.ai-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: #000;
    background: var(--gradient);
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
}
.ai-copy-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius) + 3px);
    background: var(--gradient);
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.3s;
}
.ai-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.25);
}
.ai-copy-btn:hover::before { opacity: 0.4; }
.ai-copy-btn.copied { background: var(--accent-2); }

.ai-body {
    max-height: 500px;
    overflow-y: auto;
    padding: 28px;
    position: relative;
}
.ai-body pre {
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--text-2);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.ai-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: rgba(15, 15, 26, 0.8);
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-3);
    gap: 16px;
}
.ai-copy-btn-footer {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    padding: 10px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}
.ai-copy-btn-footer:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* ═══ Whitepaper CTA ═══ */
#whitepaper { padding: 100px 0; }
.whitepaper-cta {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.whitepaper-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.06), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 255, 136, 0.04), transparent 50%);
    pointer-events: none;
}
.wp-icon { font-size: 3.5rem; margin-bottom: 24px; position: relative; }
.wp-content { position: relative; }
.wp-content h2 { margin-bottom: 20px; }
.wp-content > p { color: var(--text-2); max-width: 660px; margin: 0 auto 28px; font-size: 1rem; line-height: 1.7; }
.wp-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-3); }

/* ═══ Thesis ═══ */
#thesis {
    background: var(--bg-2);
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}
#thesis::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.thesis-content { max-width: 820px; margin: 0 auto; text-align: center; }
.thesis-content blockquote {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 500;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 56px;
    font-style: italic;
    position: relative;
    padding: 0 20px;
}
.thesis-content blockquote::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 6rem;
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.thesis-steps { display: flex; flex-direction: column; gap: 14px; text-align: left; max-width: 540px; margin: 0 auto; }
.thesis-step {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    padding: 16px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.thesis-step:hover { transform: translateX(6px); }
.thesis-step.done { color: var(--text-2); }
.thesis-step.next {
    color: var(--accent);
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}

/* ═══ Footer ═══ */
#footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 72px 0 36px;
}
#footer::after { display: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 52px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.footer-brand p { color: var(--text-2); font-size: 0.88rem; margin-bottom: 10px; }
.footer-built { font-size: 0.82rem !important; color: var(--text-3) !important; }
.footer-links h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 18px; font-family: var(--mono); }
.footer-links a { display: block; color: var(--text-2); font-size: 0.88rem; padding: 5px 0; transition: all 0.2s; }
.footer-links a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom { text-align: center; padding-top: 36px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-3); font-size: 0.82rem; }
.footer-signature { color: var(--text-dim) !important; font-style: italic; margin-top: 10px; font-size: 0.78rem !important; }

/* ═══ Animations ═══ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}
@keyframes terminalLineIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-animate]:nth-child(1) { transition-delay: 0ms; }
[data-animate]:nth-child(2) { transition-delay: 80ms; }
[data-animate]:nth-child(3) { transition-delay: 160ms; }
[data-animate]:nth-child(4) { transition-delay: 240ms; }
[data-animate]:nth-child(5) { transition-delay: 320ms; }
[data-animate]:nth-child(6) { transition-delay: 400ms; }

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ═══ Selection ═══ */
::selection {
    background: rgba(0, 212, 255, 0.2);
    color: var(--text);
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card.feature-large { grid-template-columns: 1fr; }
    .feature-card.feature-large .feature-code { grid-column: 1; grid-row: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .agents-row { grid-template-columns: repeat(2, 1fr); }
    .agents-row .agent-card:last-child { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
    section { padding: var(--space-xl) 0; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 24px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links a::after { display: none; }
    .nav-toggle { display: flex; }

    .problem-grid,
    .features-grid,
    .cap-grid,
    .agents-row { grid-template-columns: 1fr; }

    .agents-row .agent-card:last-child { max-width: none; }
    .tokenomics-grid { grid-template-columns: 1fr; }

    .flow-step { flex-direction: column; gap: 18px; }
    .step-marker { flex-direction: row; gap: 14px; }
    .step-line { width: auto; height: 2px; min-height: unset; margin-top: 0; margin-left: 10px; flex: 1; background: linear-gradient(to right, rgba(0,212,255,0.2), transparent); }

    .hero-stats { flex-wrap: wrap; padding: 20px; gap: 10px; }
    .stat { padding: 14px 10px; flex: 1 1 40%; }
    .stat-divider { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .whitepaper-cta { padding: 40px 28px; }

    .arch-layer { flex-direction: column; align-items: stretch; }
    .arch-label { width: auto; text-align: left; }
    .arch-arrow { padding-left: 0; }

    .timeline { padding-left: 32px; }
    .timeline-marker { left: -24px; width: 26px; height: 26px; font-size: 0.65rem; }
    .timeline::before { left: 6px; }

    .flywheel { flex-direction: column; }
    .flywheel-arrow { transform: rotate(90deg); }

    .ai-footer { flex-direction: column; text-align: center; }
    .terminal-title { display: none; }

    /* Reduce 3D transforms on mobile for performance */
    .problem-card:hover,
    .feature-card:hover,
    .agent-card:hover { transform: translateY(-4px); }
}

@media (max-width: 480px) {
    h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .wp-stats { flex-direction: column; gap: 6px; }
    .hero-typewriter { font-size: 0.75rem; padding: 10px 16px; }
}

/* ═══ Performance: Reduce motion ═══ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
