:root {
    --bg-dark: #050508;
    --bg-card: rgba(18, 18, 25, 0.4);
    --bg-card-hover: rgba(25, 25, 35, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #8a8f98;
    --accent-blue: #0070f3;
    --accent-glow: #3291ff;
    --accent-purple: #7928ca;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 255, 255, 0.2);
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Dynamic mouse positioning for spotlight */
    --bg-mouse-x: 50%;
    --bg-mouse-y: 50%;
    
    /* Glow card mouse position */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography refinements */
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -0.03em; }
kbd {
    background: linear-gradient(180deg, #1e1e2e 0%, #0c0c14 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    padding: 6px 12px;
    position: relative;
    top: -2px;
    margin: 0 4px;
    vertical-align: middle;
}
p { color: var(--text-secondary); }

.container {
    max-width: 1300px;
    margin-inline: auto;
    padding: 0 2rem;
}

/* Ambient Background Overhaul */
.ambient-background {
    position: fixed;
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    background-color: var(--bg-dark);
    background-image: 
        /* Level 1: Interactive Spotlight */
        radial-gradient(circle at var(--bg-mouse-x) var(--bg-mouse-y), rgba(50, 145, 255, 0.12), transparent 45%),
        /* Level 2: Technical Dot Grid */
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        /* Level 3: Mesh Glows */
        radial-gradient(circle at 10% 20%, rgba(121, 40, 202, 0.1), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 112, 243, 0.1), transparent 50%);
    background-size: 100% 100%, 40px 40px, 100% 100%, 100% 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Premium Grain Texture Overlay */
.ambient-background::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Floating Mesh Highlights */
.ambient-background::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(50, 145, 255, 0.02), transparent 60%);
    animation: slow-mesh 25s infinite linear;
    z-index: -1;
}

@keyframes slow-mesh {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.blur-nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

.nav-cta {
    background: #fff;
    color: #000 !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600 !important;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.github-link:hover { color: var(--text-primary); }

.star-count {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-chip {
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-glow);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 1000px;
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, #8a8f98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 850px;
    margin-bottom: 3rem;
    text-wrap: balance;
}

.hero-ctas { display: flex; gap: 1rem; }

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.23);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glow);
}

/* Terminal Visual */
.hero-visual { width: 100%; max-width: 800px; margin-top: 4rem; perspective: 1000px; }
.terminal-container {
    background: #000;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
    text-align: left;
    overflow: hidden;
    transform: rotateX(2deg) translateY(0);
    transition: transform 0.5s ease;
}
.hero-visual:hover .terminal-container { transform: rotateX(0) translateY(-5px); }

.terminal-header {
    background: #111;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}
.window-controls { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title { margin: 0 auto; color: #888; font-family: var(--font-mono); font-size: 0.8rem; transform: translateX(-24px); }
.terminal-body { padding: 1.5rem; font-family: var(--font-mono); font-size: 0.95rem; color: #ccc; min-height: 280px; position: relative; }
.term-line { margin-bottom: 0.5rem; }
.prompt { color: #27c93f; margin-right: 10px; }

/* Higher-Fidelity Terminal Syntax */
.t-cmd { color: #5ccfe6; font-weight: 600; }
.t-arg { color: #ffd580; }
.t-path { color: #a6accd; opacity: 0.8; }
.t-success { color: #27c93f; font-weight: 700; text-shadow: 0 0 10px rgba(39, 201, 63, 0.3); }
.t-prediction { color: #f9cb28; font-style: italic; font-weight: 600; text-shadow: 0 0 8px rgba(249, 203, 40, 0.2); }
.t-instruction { color: var(--accent-glow); font-style: italic; font-weight: 500; background: rgba(50, 145, 255, 0.1); padding: 0.2rem 0.6rem; border-radius: 4px; display: inline-block; margin: 0.5rem 0; border: 1px solid rgba(50,145,255,0.2); }
.t-instruction.success { color: #27c93f; background: rgba(39, 201, 63, 0.1); border-color: rgba(39, 201, 63, 0.2); font-weight: 600; }
.t-comment { color: #676e95; font-style: italic; }

/* Narrative Badge */
.terminal-narrative {
    position: absolute;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-glow);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.terminal-narrative.visible { opacity: 1; transform: translateX(0); }
.terminal-narrative::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--accent-glow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Keyboard Hint Toast - Premium Mechanical Keycap */
.key-hint {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
    color: #111;
    padding: 0.7rem 1.2rem;
    min-width: 50px;
    text-align: center;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 5px 0 #b0b0b0, 0 10px 20px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(15px) scale(0.9);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 50;
    text-transform: uppercase;
}
.key-hint.show { opacity: 1; transform: translateY(0) scale(1); }
.key-hint.press { transform: translateY(4px) scale(0.98); box-shadow: 0 1px 0 #b0b0b0, 0 5px 10px rgba(0,0,0,0.3); transition: all 0.05s ease; }

/* Typing State Pulse */
@keyframes typingPulse {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    50% { opacity: 0.8; transform: translateY(0) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.key-hint.is-typing { animation: typingPulse 1.5s infinite ease-in-out; }

/* Global Section Styles */
section { 
    padding: 8rem 0; 
    margin-bottom: 8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}
section:last-of-type { border-bottom: none; margin-bottom: 4rem;}
.section-badge {
    color: var(--accent-glow);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.left-align { text-align: left; }
.section-subtitle { max-width: 850px; margin-bottom: 3rem; font-size: 1.1rem; }

/* Hover Glow Card Magic */
.glow-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.glow-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y), 
        rgba(255,255,255,0.06),
        transparent 40%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.glow-card:hover::before { opacity: 1; }
.glow-card > * { position: relative; z-index: 1; }

/* Comparison Storyboard Upgrade */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.compare-card {
    position: relative;
    background: rgba(10, 10, 15, 0.5);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.compare-card.bad { border-color: rgba(255, 95, 86, 0.15); }
.compare-card.good { border-color: rgba(39, 201, 63, 0.15); }

.verdict-label {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    color: #444;
}
.compare-card.bad .verdict-label { color: #ff5f56; background: rgba(255, 95, 86, 0.05); }
.compare-card.good .verdict-label { color: #27c93f; background: rgba(39, 201, 63, 0.05); }

.story-container {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.logic-step {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 2.5rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
}
.logic-step:last-child { border-left: none; padding-bottom: 0; }

.logic-step::before {
    content: "";
    position: absolute;
    left: -5.5px; top: 0;
    width: 10px; height: 10px;
    background: #111;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    z-index: 2;
}
.compare-card.good .logic-step::before { border-color: rgba(39, 201, 63, 0.4); }

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
}
.step-icon {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}
.step-icon.thinking { color: var(--accent-glow); display: flex; align-items: center; gap: 6px; }
.step-icon.thinking::after {
    content: "";
    width: 4px; height: 4px;
    background: var(--accent-glow);
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

.step-action { font-family: var(--font-mono); font-size: 0.85rem; }
.step-path { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-glow); background: rgba(50, 145, 255, 0.05); padding: 0.2rem 0.5rem; border-radius: 4px; }

.step-badge {
    font-size: 0.55rem;
    font-weight: 900;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.step-badge.error { background: rgba(255, 95, 86, 0.1); color: #ff5f56; border: 1px solid rgba(255, 95, 86, 0.2); }
.step-badge.success { background: rgba(39, 201, 63, 0.1); color: #27c93f; border: 1px solid rgba(39, 201, 63, 0.2); }

.logic-step.result {
    background: rgba(255, 255, 255, 0.02);
    margin-left: -2.5rem;
    padding: 1.5rem 2.5rem;
    border-radius: 0 0 12px 12px;
    border-left: none;
}
.step-content { font-family: var(--font-mono); font-size: 0.85rem; }
.step-footer { margin-top: 0.5rem; font-style: italic; font-size: 0.8rem; }

/* Blueprint Layout */
.blueprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(45, 48, 60, 0.1);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.sys-status { display: flex; align-items: center; gap: 1rem; }
.status-dot { 
    width: 6px; height: 6px; 
    background: #27c93f; 
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
}
.status-dot.pulse { animation: sysPulse 2s infinite; }
@keyframes sysPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.status-label {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #555;
    text-transform: uppercase;
}

.sys-meta { display: flex; gap: 1.5rem; }
.meta-tag {
    font-size: 0.6rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 1.5rem;
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bp-card {
    background: rgba(13, 14, 20, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-card:hover {
    border-color: var(--border-glow);
    background: rgba(255,255,255,0.03);
    transform: translateY(-4px);
}

.bp-card.span-2 { grid-column: span 2; }

.bp-corner {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.1);
    letter-spacing: 1px;
}

.bp-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.bp-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.mono { font-family: var(--font-mono); font-weight: 600; }

/* Telemetry Visuals */
.telemetry-box {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tel-row {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    align-items: center;
    gap: 1.5rem;
}

.tel-label { font-size: 0.65rem; font-weight: 800; color: #555; text-transform: uppercase; letter-spacing: 1px; }
.tel-track { 
    height: 4px; 
    background: rgba(255,255,255,0.03); 
    border-radius: 2px;
    overflow: hidden;
}

.tel-fill { height: 100%; border-radius: 2px; }
.tel-fill.good { background: var(--accent-glow); box-shadow: 0 0 10px var(--accent-glow); }
.tel-fill.bad { background: rgba(255,255,255,0.1); }

.tel-val { font-family: var(--font-mono); font-size: 0.8rem; text-align: right; color: #888;}

.bp-split { display: flex; gap: 3rem; align-items: center; }
.bp-info { flex: 1; }
.bp-visual { flex: 0.8; }

.markov-viz {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.m-node {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: #fff;
}

.m-node.pulse-green {
    border-color: #27c93f;
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    box-shadow: 0 0 20px rgba(39, 201, 63, 0.1);
}

.m-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    color: #444;
    font-weight: 900;
}


/* Architecture */
.arch-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.arch-list { list-style: none; margin-top: 2rem; }
.arch-list li { margin-bottom: 1.5rem; padding-left: 2rem; position: relative; color: var(--text-secondary); }
.arch-list li strong { color: var(--text-primary); display: block; margin-bottom: 0.2rem; }
.arch-list li::before { content: "⚡"; position: absolute; left: 0; top: 0; font-size: 1.2rem; }

.arch-graph { padding: 3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #050508;}
.node { background: #111; border: 1px solid #333; padding: 1rem 2rem; border-radius: 8px; text-align: center; font-weight: 500; font-size: 0.95rem; z-index: 2; width: 220px;}
.node span { display: block; font-size: 0.8rem; color: #666; font-family: var(--font-mono); margin-top: 0.4rem;}
.node.rust { border-color: var(--accent-glow); color: var(--accent-glow); box-shadow: 0 0 20px rgba(50, 145, 255, 0.2); }
.node-row { display: flex; gap: 2rem; }
.node.data { width: 150px; font-size: 0.85rem; padding: 0.8rem; }
.line { width: 2px; height: 30px; background: #333; flex-shrink: 0; }
.line.split { 
    width: 180px; 
    height: 20px; 
    border-left: 2px solid #333; 
    border-right: 2px solid #333; 
    border-top: 2px solid #333; 
    background: transparent; 
}

/* Installation */
.install-card { max-width: 900px; margin: 0 auto; padding: 3rem; text-align: center; }
.install-header h2 { margin-bottom: 0.5rem; }
.install-header p { margin-bottom: 2rem; }
.install-switcher { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; background: rgba(0,0,0,0.3); padding: 0.5rem; border-radius: 8px; display: inline-flex; }
.os-btn { background: transparent; border: none; color: #888; padding: 0.6rem 1.5rem; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.2s;}
.os-btn.active { background: #222; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.code-box { display: none; background: #000; border: 1px solid #333; border-radius: 8px; padding: 1rem; text-align: left; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.code-box.active { display: flex; animation: fade 0.3s forwards; }
.code-content { flex-grow: 1; overflow-x: auto; }
.code-content code { font-family: var(--font-mono); font-size: 0.9rem; color: #e0e0e0; white-space: pre;}
.code-content::-webkit-scrollbar { height: 6px; }
.code-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }
.copy-btn { background: #fff; color: #000; border: none; padding: 0.5rem 1rem; border-radius: 4px; font-weight: 600; cursor: pointer; flex-shrink: 0;}
.install-footer { margin-top: 2rem; font-size: 0.85rem; }

/* Footer */
footer { 
    background: rgba(13, 14, 20, 0.8); 
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color); 
    padding: 4rem 0; 
    margin-top: 4rem; 
}
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { 
    color: var(--text-secondary); 
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.footer-brand span { 
    color: #fff; 
    font-weight: 700; 
    font-size: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }

/* Animations & Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.animate-fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-glow { opacity: 0; animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.docs-btn-secondary {
    display: inline-block;
    margin-top: 16px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.docs-btn-secondary:hover {
    color: #818cf8;
    transform: translateX(4px);
}


/* Metrics Strip */
.metrics-strip { display: flex; justify-content: center; gap: 4rem; margin-top: 4rem; flex-wrap: wrap; }
.metric { text-align: center; }
.metric-val { font-size: 2.5rem; font-weight: 800; font-family: var(--font-mono); color: var(--accent-glow); line-height: 1; }
.metric-unit { font-size: 1.2rem; color: #666; font-family: var(--font-body); }
.metric-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* Ecosystem & Philosophy */
.ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.eco-item { background: #111; padding: 1.5rem; border-radius: 8px; border: 1px solid #333; text-align: center; }
.eco-name { font-weight: 600; margin-bottom: 0.5rem; }
.eco-status { display: inline-block; padding: 0.2rem 0.8rem; background: rgba(39, 201, 63, 0.1); color: #27c93f; border-radius: 50px; font-size: 0.8rem; border: 1px solid rgba(39, 201, 63, 0.2); }
.eco-status.supported { color: #ffbd2e; background: rgba(255, 189, 46, 0.1); border-color: rgba(255, 189, 46, 0.2); }

.philosophy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.phil-card { padding: 2rem; }
.phil-card h3 { margin-bottom: 1rem; }

/* Unified Comparison Window */
.comparison-window {
    background: rgba(13, 14, 20, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 4rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
}

.window-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem;
}

.scen-tag {
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-glow);
    display: block;
    margin-bottom: 1rem;
    opacity: 0.8;
}

#scen-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(to right, #fff, #8a8f98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#scen-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
}

.window-body {
    display: flex;
    position: relative;
    min-height: 500px;
}

.pane {
    flex: 1;
    padding: 3.5rem; /* GENEROUS PADDING AS REQUESTED */
    position: relative;
}

.pane.bad { background: linear-gradient(135deg, rgba(255, 95, 86, 0.02) 0%, transparent 100%); }
.pane.good { background: linear-gradient(135deg, rgba(39, 201, 63, 0.02) 0%, transparent 100%); }

.pane-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 3rem;
    display: block;
}

.pane.bad .pane-label { color: #ff5f56; opacity: 0.3; }
.pane.good .pane-label { color: #27c93f; opacity: 0.3; }

.pane-divider {
    width: 1px;
    background: var(--border-color);
    opacity: 0.5;
}

.story-scene {
    display: none;
    opacity: 0;
}

.story-scene.active {
    display: block;
    animation: sceneSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sceneSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.logic-step {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 3.5rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
}

.logic-step:last-child { border-left: none; padding-bottom: 0; }

.logic-step::before {
    content: "";
    position: absolute;
    left: -5.5px; top: 0;
    width: 10px; height: 10px;
    background: #111;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    z-index: 2;
}

.pane.good .logic-step::before { border-color: rgba(39, 201, 63, 0.4); }

.logic-step.result {
    background: rgba(255, 255, 255, 0.025);
    margin: 0 -3.5rem -3.5rem -3.5rem; /* Stretch to pane edges */
    padding: 3rem 3.5rem; /* HEAVY PADDING FOR RESULT */
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.window-footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.scenario-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scen-dots { display: flex; gap: 0.8rem; }
.scen-dot {
    width: 6px; height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scen-dot.active {
    background: var(--accent-glow);
    transform: scale(1.6);
    box-shadow: 0 0 15px var(--accent-glow);
}

.scen-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.scen-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: var(--border-glow);
}

/* Technical FAQ Section */
.faq-accordion {
    max-width: 900px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-trigger {
    padding: 1.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Horizontal line */
.faq-icon::before {
    width: 100%; height: 2px;
    top: 50%; left: 0;
    transform: translateY(-50%);
}

/* Vertical line */
.faq-icon::after {
    width: 2px; height: 100%;
    top: 0; left: 50%;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon { transform: rotate(135deg); }
.faq-item.active .faq-icon::before, .faq-item.active .faq-icon::after { background: var(--accent-glow); }

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    visibility: hidden;
    opacity: 0;
}

.faq-item.active .faq-content {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
}

.faq-inner {
    overflow: hidden;
    padding: 0 2.5rem 2rem 2.5rem;
}

.faq-inner p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ==========================================================================
   Full Responsive Overhaul
   ========================================================================== */

/* --- Tablet / Large Mobile (1050px to 900px) --- */
@media (max-width: 1050px) {
    .hero-title { font-size: 3.2rem; }
    .arch-split { gap: 2rem; }
}

/* --- Medium Tablet / Comparison Stack (900px) --- */
@media (max-width: 900px) {
    .window-body { flex-direction: column; }
    .pane-divider { width: 100%; height: 1px; }
    .pane { padding: 2.2rem; }
    .logic-step.result { margin: 0 -2.2rem -2.2rem -2.2rem; padding: 2rem 2.2rem; }
    
    .section-title { font-size: 2.2rem; }
    #scen-title { font-size: 1.8rem; }
    
    .blueprint-grid { grid-template-columns: 1fr; }
    .bp-card.span-2 { grid-column: span 1; }
}

/* --- Small Tablet / Navigation Collapse (768px) --- */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    
    /* Navigation cleanup */
    .desktop-nav a:not(.nav-cta):not(.github-link) { display: none; }
    .header-inner { justify-content: space-between; gap: 1rem; }
    
    .hero-title { font-size: 2.6rem; line-height: 1.1; }
    .hero-subtitle { font-size: 1.1rem; }
    
    /* Scaled Hero Terminal */
    .terminal-container { transform: scale(0.9); transform-origin: top center; margin-bottom: -40px; }
    
    /* Metrics Strip Stacking */
    .metrics-strip { gap: 2rem; justify-content: center; }
    .metric-val { font-size: 2rem; }
    
    /* Architecture Stacking */
    .arch-split { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .arch-text { order: 1; }
    .arch-graph { order: 2; padding: 2rem; transform: scale(0.9); }
    .arch-list li { text-align: left; }
    
    .bp-card { padding: 1.8rem; }
    .bp-split { flex-direction: column; text-align: center; gap: 1.5rem; }
    .markov-viz { padding: 1rem; }
    
    footer { text-align: center; }
    .footer-content { flex-direction: column; gap: 2rem; }
}

/* --- Mobile / Ultra Compact (480px) --- */
@media (max-width: 480px) {
    html { scroll-padding-top: 80px; }
    
    /* Nav Refinements */
    .nav-cta { padding: 0.5rem 1rem; font-size: 0.75rem; }
    .logo-img { width: 24px; }
    .logo-text { font-size: 1.1rem; }
    
    /* Hero Spacing & Typography */
    .hero { padding-top: 10rem; } /* Ensure space below fixed nav */
    .hero-title { font-size: 2.15rem; margin-bottom: 1.5rem; max-width: 100%; text-wrap: wrap; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; max-width: 100%; }
    .hero-chip { margin-bottom: 1.5rem; font-size: 0.7rem; }
    
    .hero-ctas { flex-direction: column; width: 100%; gap: 0.8rem; }
    .btn { width: 100%; justify-content: center; padding: 0.7rem 1.2rem; font-size: 0.9rem; }
    
    .terminal-container { transform: scale(0.75); margin-bottom: -100px; width: 115%; margin-left: -7.5%; }
    .terminal-narrative { display: none; }
    
    .metric { width: 45%; }
    .metrics-strip { gap: 1rem; }
    
    .pane { padding: 1.5rem; }
    .pane-label { margin-bottom: 1.5rem; font-size: 0.6rem; }
    
    .blueprint-grid { gap: 1rem; }
    .tel-row { grid-template-columns: 1fr 1.5fr 1fr; gap: 0.8rem; }
    .tel-label { font-size: 0.55rem; }
    
    .faq-trigger { padding: 1.4rem; font-size: 0.9rem; }
    .faq-inner { padding: 0 1.4rem 1.4rem 1.4rem; }
    
    .arch-graph { 
        padding: 1.5rem; 
        width: 100%; 
        transform: none; 
        margin: 0; 
        display: flex; 
        flex-direction: column; 
        align-items: center;
    }
    
    .node { 
        width: 180px; 
        padding: 1rem; 
        font-size: 0.8rem; 
        min-height: auto;
    }
    
    .line.split { width: 150px; }
    .node-row { gap: 10px; width: 100%; justify-content: center; }
    .node.data { width: 130px; font-size: 0.75rem; }
    
    .install-card { padding: 2rem 1.2rem; }
    .install-switcher { scale: 0.85; }
    .code-box { padding: 0.75rem; }
    
    .philosophy-grid { grid-template-columns: 1fr; gap: 1rem; }
    .phil-card { padding: 1.5rem; }
}
