/* ==========================================================================
   DATARITH — DESIGN SYSTEM & HARDWARE KINETIC STYLES
   Minimalist Tactile Industrial Aesthetic (Inspired by Teenage Engineering)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. DESIGN TOKENS & VARIABLE DECLARATIONS
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-main: #EBEBEB;
    --bg-card: #F4F4F5;
    --bg-deck: #18181A;
    --bg-deck-panel: #222226;
    --bg-screen: #0C0C0E;

    --accent-orange: #FF5500;
    --accent-orange-glow: rgba(255, 85, 0, 0.4);
    --accent-green: #10B981;
    --accent-amber: #F59E0B;
    --accent-red: #EF4444;

    --text-dark: #121214;
    --text-muted: #6B7280;
    --text-light: #F3F4F6;
    --text-dim: #9CA3AF;

    --border-light: rgba(0, 0, 0, 0.08);
    --border-deck: #2E2E34;
    --border-glow: rgba(255, 85, 0, 0.3);

    /* Typography Stack */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fragment Mono', monospace;
    --font-led: 'Doto', monospace;
    --font-body: 'Manrope', sans-serif;

    /* Shadow & Depth Tokens */
    --shadow-deck: 0 30px 70px rgba(0, 0, 0, 0.35), 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-key: 0 4px 0 #111113, 0 6px 12px rgba(0, 0, 0, 0.4);
    --shadow-key-pressed: 0 1px 0 #111113, 0 2px 4px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-main);
    width: 100%;
    overflow-x: hidden;
    line-height: 1.5;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

/* Logo rendering — CSS-native approach, works on file://, HTTP and HTTPS
   mix-blend-mode:multiply removes white PNG backgrounds on light surfaces.
   filter:invert + mix-blend-mode:screen makes the logo white on dark surfaces. */
.logo-img,
.deck-logo,
.footer-logo {
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   2. ENTRANCE KINETIC CURTAIN REVEAL
   -------------------------------------------------------------------------- */
.entrance-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    pointer-events: none;
}

.curtain-bar {
    flex: 1;
    height: 100%;
    background-color: #121214;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.entrance-curtain.reveal .curtain-bar {
    transform: translateY(100%);
}

.curtain-bar:nth-child(1) {
    transition-delay: 0.04s;
}

.curtain-bar:nth-child(2) {
    transition-delay: 0.07s;
}

.curtain-bar:nth-child(3) {
    transition-delay: 0.10s;
}

.curtain-bar:nth-child(4) {
    transition-delay: 0.13s;
}

.curtain-bar:nth-child(5) {
    transition-delay: 0.16s;
}

.curtain-bar:nth-child(6) {
    transition-delay: 0.19s;
}

.curtain-bar:nth-child(7) {
    transition-delay: 0.22s;
}

.curtain-bar:nth-child(8) {
    transition-delay: 0.25s;
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 24px;
    background: rgba(235, 235, 235, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 26px;
    width: auto;
}

/* navbar logo: white bg disappears on light navbar via multiply blend */
.logo-black {
    display: block;
    mix-blend-mode: multiply;
}

.logo-white {
    display: none;
}

.brand-name {
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--text-dark);
}

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

.nav-links a {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: all 0.2s ease;
}



.cta-btn {
    background: var(--text-dark);
    color: white;
}

.cta-btn:hover {
    background: var(--accent-orange);
    box-shadow: 0 4px 12px var(--accent-orange-glow);
}

/* --------------------------------------------------------------------------
   4. HERO SECTION & OVERSIZED BACKGROUND MARQUEE
   -------------------------------------------------------------------------- */
/* Prevent any horizontal overflow or side-scroll glitches */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.main-wrapper {
    overflow-x: hidden !important;
    width: 100%;
}

.hero-section {
    position: relative;
    padding-top: 110px;
    padding-bottom: 60px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* On Desktop: Activate 3-Phase Scrollytelling Stage Runway */
@media (min-width: 1024px) {
    .hero-section {
        height: 2000px;
        /* Expanded 2000px runway for unhurried, silky-smooth 3-phase rightward drift transition */
        padding-top: 100px;
        padding-bottom: 0;
    }

    .hero-sticky-stage {
        width: 100%;
        height: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-header-text {
        position: relative;
        z-index: 10;
        text-align: center;
        max-width: 880px;
        margin-bottom: 60px;
        will-change: transform, opacity;
        transition: opacity 0.1s linear;
    }

    .hero-brand-left {
        position: fixed;
        top: 50%;
        left: 4%;
        transform: translateY(-50%) translateX(-30px);
        z-index: 2;
        max-width: 440px;
        opacity: 0;
        pointer-events: none;
        will-change: left, transform, opacity;
    }

    .brand-left-logo {
        height: 76px;
        width: auto;
        margin-bottom: 14px;
        mix-blend-mode: multiply;
    }

    .brand-left-title {
        font-size: 4rem;
        font-weight: 900;
        letter-spacing: -0.04em;
        line-height: 0.95;
        color: var(--text-dark);
        margin-bottom: 12px;
    }

    .brand-left-subtitle {
        font-family: var(--font-mono);
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--accent-orange);
        margin-bottom: 10px;
        letter-spacing: 0.04em;
    }

    .brand-left-desc {
        font-size: 0.92rem;
        color: var(--text-muted);
        line-height: 1.4;
    }

    .console-viewport {
        position: relative;
        width: 100%;
        max-width: 1200px;
        z-index: 100;
        will-change: transform, opacity;
        transform-origin: center center;
        margin: 0 auto;
    }
}
}

.hero-brand-left {
    display: none;
}

@media (min-width: 1024px) {
    .hero-brand-left {
        display: block;
    }
}

.hero-bg-marquee {
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.marquee-track {
    display: inline-block;
    animation: marquee-scroll 45s linear infinite;
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hero-header-text {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 880px;
    padding: 0 20px;
    margin-bottom: 36px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 18px;
    max-width: 100%;
    text-align: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange);
    animation: pulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. CENTRAL HARDWARE INSTRUMENT: DATARITH NEURAL PRECISION DECK v1.0
   -------------------------------------------------------------------------- */
.console-viewport {
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 1240px;
    padding: 0 16px;
    box-sizing: border-box;
    will-change: transform, opacity;
    transform-origin: center right;
    transition: opacity 0.25s ease;
}

.neural-deck {
    background-color: var(--bg-deck);
    border-radius: 16px;
    border: 1px solid var(--border-deck);
    box-shadow: var(--shadow-deck);
    padding: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.neural-deck.is-docked {
    box-shadow: 0 35px 95px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 85, 0, 0.25);
    border-color: rgba(255, 85, 0, 0.3);
}

/* Texture Pattern overlay on deck */
.neural-deck::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 12px 12px;
    pointer-events: none;
}

/* Deck Top Bar Header */
.deck-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-deck);
    position: relative;
    z-index: 2;
    gap: 16px;
}

.deck-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.deck-logo {
    height: 24px;
    width: auto;
    /* Invert black logo to white on dark deck surface, screen blend removes black bg */
    filter: invert(1) brightness(10);
    mix-blend-mode: screen;
    opacity: 0.92;
}

.deck-title-block {
    display: flex;
    flex-direction: column;
}

.deck-model {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--text-light);
    white-space: nowrap;
}

.deck-spec {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.deck-telemetry {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tele-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tele-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tele-val {
    font-family: var(--font-led);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 700;
    white-space: nowrap;
}

.value-online {
    color: var(--accent-green);
}

.highlight-val {
    color: var(--accent-orange);
}

/* Deck Body Grid Layout */
.deck-body-grid {
    display: grid;
    grid-template-columns: 270px 1fr 270px;
    grid-template-rows: auto auto;
    gap: 16px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.deck-panel {
    background-color: var(--bg-deck-panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    white-space: nowrap;
}

/* Panel 1: GPU Compute */
.panel-gpu {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.gpu-indicator {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-green);
    white-space: nowrap;
}

.gpu-load-display {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
}

.load-arc {
    height: 8px;
    background: #282830;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.load-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.gpu-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.stat-col {
    display: flex;
    flex-direction: column;
}

.stat-col .lbl {
    font-size: 0.58rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.stat-col .val {
    font-family: var(--font-led);
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.gpu-core-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.core-chip {
    height: 12px;
    background: #282830;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.core-chip.active {
    background: var(--accent-orange);
    box-shadow: 0 0 6px var(--accent-orange-glow);
}

/* Panel 2: Interactive Terminal Screen Console */
.panel-screen {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    background-color: var(--bg-screen);
    border: 1px solid #282830;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    overflow: hidden;
}

.screen-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #1E1E24;
    background: #111114;
    flex-wrap: wrap;
    gap: 8px;
}

.screen-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.terminal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

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

.screen-tab {
    padding: 4px 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.screen-tab.active {
    background: var(--accent-orange);
    color: white;
    font-weight: 700;
}

.screen-display-viewport {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    color: #00FF66;
    max-height: 250px;
}

.screen-view {
    display: none;
}

.screen-view.active {
    display: block;
}

.terminal-output p {
    margin-bottom: 6px;
    word-break: break-word;
}

.sys-msg {
    color: #888899;
}

.prompt-msg {
    color: #00FF66;
}

.fail-msg {
    color: #FF4444;
}

.success-msg {
    color: #00FF66;
    font-weight: 700;
}

.cluster-summary-header {
    font-size: 0.68rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-danger {
    color: var(--accent-red);
    font-weight: 700;
}

.failure-bars-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fail-bar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #141418;
    padding: 6px 10px;
    border-radius: 4px;
    gap: 8px;
}

.fail-bar-name {
    font-size: 0.72rem;
    color: #E0E0E0;
}

.fail-bar-val {
    font-size: 0.72rem;
    color: var(--accent-red);
    font-weight: 700;
    white-space: nowrap;
}

.train-graph-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.graph-info-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-success {
    color: var(--accent-green);
    font-weight: 700;
}

.loss-canvas-box {
    background: #08080A;
    border: 1px solid #1E1E24;
    border-radius: 6px;
    padding: 6px;
    width: 100%;
    overflow: hidden;
}

#loss-canvas {
    width: 100%;
    height: 120px;
    display: block;
}

.screen-input-bar {
    display: flex;
    align-items: center;
    background: #111114;
    padding: 8px 10px;
    border-top: 1px solid #1E1E24;
    gap: 6px;
}

.input-prompt {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-weight: 700;
}

#interactive-prompt-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: white;
    min-width: 0;
}

.input-btn {
    background: var(--accent-orange);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Panel 3: Main Tactile Function Keypad */
.panel-keys {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.keypad-mode {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.keypad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tactile-key {
    background: linear-gradient(180deg, #2E2E36 0%, #202026 100%);
    border: 1px solid #3A3A44;
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-key);
    position: relative;
    top: 0;
    transition: all 0.1s ease;
}

.tactile-key:active,
.tactile-key.pressed {
    top: 3px;
    box-shadow: var(--shadow-key-pressed);
    background: #1A1A20;
}

.key-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px;
}

.key-num {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
}

.key-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
}

.led-amber.active {
    background: var(--accent-amber);
    box-shadow: 0 0 6px var(--accent-amber);
}

.led-red.active {
    background: var(--accent-red);
    box-shadow: 0 0 6px var(--accent-red);
}

.led-orange.active {
    background: var(--accent-orange);
    box-shadow: 0 0 6px var(--accent-orange);
}

.led-green.active {
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

.key-label {
    font-weight: 800;
    font-size: 0.74rem;
    color: var(--text-light);
    line-height: 1.1;
    text-align: left;
}

.key-sub {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    margin-top: 3px;
}

.key-primary:hover {
    border-color: var(--accent-amber);
}

.key-danger:hover {
    border-color: var(--accent-red);
}

.key-accent:hover {
    border-color: var(--accent-orange);
}

.key-success:hover {
    border-color: var(--accent-green);
}

/* Panel 4: Parameter Rotary Knobs & Controls */
.panel-controls {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.knob-telemetry {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.knobs-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 4px;
    gap: 8px;
}

.knob-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rotary-knob {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, #383842 0%, #1F1F26 100%);
    border: 2px solid #444450;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    position: relative;
    transition: border-color 0.2s ease;
}

.rotary-knob:active {
    cursor: grabbing;
    border-color: var(--accent-orange);
}

.knob-cap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #18181E;
    position: relative;
    display: flex;
    justify-content: center;
}

.knob-pointer {
    width: 3px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 2px;
    position: absolute;
    top: 3px;
    box-shadow: 0 0 4px var(--accent-orange);
}

.knob-title {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-dim);
    margin-top: 6px;
    white-space: nowrap;
}

.knob-readout {
    font-family: var(--font-led);
    font-size: 0.68rem;
    color: var(--accent-orange);
    font-weight: 700;
    white-space: nowrap;
}

/* Deck Footer Bar */
.deck-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 16px;
    border-top: 1px solid var(--border-deck);
    position: relative;
    z-index: 2;
    gap: 12px;
    flex-wrap: wrap;
}

.deck-info {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

.footer-action-btn {
    background: rgba(255, 85, 0, 0.1);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-action-btn:hover {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 0 12px var(--accent-orange-glow);
}

/* --------------------------------------------------------------------------
   6. SECTION CONTAINERS & REUSABLE LAYOUTS
   -------------------------------------------------------------------------- */
.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 100px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    background-color: var(--bg-body);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Left-Slide Scroll Reveal Header */
.section-header-slide-left {
    text-align: left;
    max-width: 100%;
    margin: 0 0 50px 0;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.section-header-slide-left.is-revealed {
    opacity: 1;
    transform: translateX(0);
}

.section-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-orange);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. HOW IT WORKS (3 STEPS GRID)
   -------------------------------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.highlight-card {
    border-color: var(--accent-orange);
    background: white;
    box-shadow: 0 12px 28px rgba(255, 85, 0, 0.08);
}

.step-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 18px;
}

.accent-badge {
    background: var(--accent-orange);
    color: white;
}

.step-heading {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.step-subheading {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 12px;
}

.step-body {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.step-list {
    list-style: none;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}

.step-list li {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-list li::before {
    content: "✓";
    color: var(--accent-orange);
    font-weight: 900;
}

/* --------------------------------------------------------------------------
   7. HOW IT WORKS (3 STEPS INTERACTIVE PIPELINE)
   -------------------------------------------------------------------------- */
.pipeline-progress-bar {
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    padding: 10px 0;
}

.pipeline-track {
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    transform: translateY(-50%);
    z-index: 1;
    overflow: hidden;
}

.pipeline-fill {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(90deg, var(--accent-orange), #FF8800);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--accent-orange-glow);
}

.pipeline-step-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-node {
    background: #EAEAEA;
    border: 2px solid #D5D5D5;
    border-radius: 20px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.step-node.active {
    border-color: var(--accent-orange);
    background: var(--text-dark);
    box-shadow: 0 6px 18px rgba(255, 85, 0, 0.25);
}

.step-node.active .node-num {
    color: var(--accent-orange);
}

.step-node.active .node-label {
    color: white;
}

.node-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--text-muted);
}

.node-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
}

.step-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card.active {
    border-color: var(--accent-orange) !important;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(255, 85, 0, 0.15);
}

/* Pipeline Telemetry Simulator Box */
.pipeline-telemetry-box {
    margin-top: 36px;
    background: #0D0D10;
    border: 1px solid #22222A;
    border-radius: 12px;
    padding: 16px 20px;
    font-family: var(--font-mono);
}

.telemetry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-bottom: 1px solid #1E1E26;
    padding-bottom: 8px;
}

.tele-dot {
    color: var(--accent-orange);
    animation: pulse 1.8s infinite;
}

.sim-stage-name {
    color: white;
}

.tele-code-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
}

.code-line {
    color: #888899;
}

.success-line {
    color: var(--accent-green);
    font-weight: 600;
}

.prompt-line {
    color: var(--accent-orange);
}

/* --------------------------------------------------------------------------
   8. 12 REASONING DIMENSIONS MATRIX & LIVE FAILURE INSPECTOR
   -------------------------------------------------------------------------- */
.dark-section {
    background: #111114;
    color: white;
    border-radius: 20px;
}

.dark-section .section-title {
    color: white;
}

.dark-section .section-desc {
    color: var(--text-dim);
}

.dimensions-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 1100px) {
    .dimensions-layout {
        grid-template-columns: 1fr;
    }
}

.dimensions-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 640px) {
    .dimensions-grid-2col {
        grid-template-columns: 1fr;
    }
}

.dim-item {
    background: #18181E;
    border: 1px solid #262630;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dim-item:hover, .dim-item.active {
    border-color: var(--accent-orange);
    background: #22222B;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(255, 85, 0, 0.2);
}

.dim-item.active .dim-num {
    color: var(--accent-orange);
}

.dim-item.active .dim-name {
    color: white;
}

.dim-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--text-muted);
    min-width: 24px;
}

.dim-info {
    display: flex;
    flex-direction: column;
}

.dim-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #E0E0E6;
}

.dim-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* Right Column Wrapper & Telemetry Card */
.dim-right-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dim-inspector-panel {
    background: #16161C;
    border: 1px solid var(--accent-orange);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.dim-telemetry-card {
    background: #18181E;
    border: 1px solid #282834;
    border-radius: 14px;
    padding: 16px 20px;
}

.tele-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #262632;
}

.tele-card-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.tele-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.stat-pill {
    background: #101014;
    border: 1px solid #22222E;
    border-radius: 8px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-val {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--accent-orange);
    line-height: 1.2;
}

.stat-lbl {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
}

.inspector-header {
    border-bottom: 1px solid #2A2A36;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.inspector-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.inspector-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.insp-split {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insp-box {
    border-radius: 8px;
    padding: 12px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.fail-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.fail-tag {
    color: var(--accent-red);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.fix-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.fix-tag {
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.insp-text {
    color: #D1D5DB;
    margin: 0;
}
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.dim-bench {
    font-size: 0.76rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   9. FEATURES MATRIX
   -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
}

.feature-num {
    font-family: var(--font-led);
    font-size: 1.4rem;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.feature-box h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. TARGET PERSONAS
   -------------------------------------------------------------------------- */
.light-bg-section {
    background: #F9F9FB;
    border-radius: 20px;
}

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

.persona-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.persona-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.persona-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.persona-card blockquote {
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent-orange);
    padding-left: 10px;
}

.persona-meta {
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   11. ABOUT STORY & MISSION
   -------------------------------------------------------------------------- */
.story-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.story-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
}

.story-quote {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-orange);
}

.story-right p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   12. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-accordion {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #1A1A20;
    border: 1px solid #282834;
    border-radius: 10px;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.98rem;
    font-weight: 700;
    color: white;
    text-align: left;
    gap: 12px;
}

.faq-icon {
    font-size: 1.3rem;
    color: var(--accent-orange);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-content {
    padding: 0 20px 18px;
    max-height: 240px;
}

.faq-content p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. CTA BANNER & FOOTER
   -------------------------------------------------------------------------- */
.cta-banner {
    max-width: 1240px;
    margin: 50px auto;
    background: linear-gradient(135deg, #18181C 0%, #0A0A0C 100%);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    color: white;
    border: 1px solid #282830;
    box-sizing: border-box;
}

.cta-banner h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.2;
}

.cta-banner p {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

.btn {
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background: #FF6611;
    box-shadow: 0 0 16px var(--accent-orange-glow);
}

.btn-secondary {
    background: #282832;
    color: white;
}

.btn-secondary:hover {
    background: #383844;
}

.footer {
    background: #0C0C0E;
    color: white;
    padding: 50px 24px 24px;
    border-top: 1px solid #1E1E24;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo {
    height: 26px;
    width: auto;
    flex-shrink: 0;
    /* Invert black logo to white on dark footer surface */
    filter: invert(1) brightness(10);
    mix-blend-mode: screen;
    opacity: 0.92;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.footer-name {
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

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

.f-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.f-col h4 {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    margin-bottom: 4px;
}

.f-col a {
    font-size: 0.82rem;
    color: #CCC;
    transition: color 0.2s ease;
}

.f-col a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid #1E1E24;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 10px;
}

.status-indicator {
    color: var(--accent-green);
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS (FIXING ALL MOBILE SQUEEZING & OVERFLOW ISSUES)
   -------------------------------------------------------------------------- */

/* Tablet (Under 1024px) */
@media (max-width: 1024px) {
    .deck-body-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .panel-gpu,
    .panel-screen,
    .panel-keys,
    .panel-controls {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .steps-grid,
    .features-grid,
    .personas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dimensions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Mobile & Small Screen Devices (Under 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 14px;
    }

    .nav-links {
        display: none;
        /* Hide desktop nav links on small mobile */
    }


    .nav-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .marquee-track {
        font-size: 3.5rem;
    }

    /* Deck Top Bar Telemetry Layout Fix */
    .deck-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .deck-brand {
        width: 100%;
        justify-content: space-between;
    }

    .deck-telemetry {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 10px;
    }

    .tele-item {
        align-items: flex-start;
    }

    .tele-label {
        font-size: 0.55rem;
    }

    .tele-val {
        font-size: 0.78rem;
    }

    .neural-deck {
        padding: 14px;
    }

    .steps-grid,
    .features-grid,
    .personas-grid,
    .dimensions-grid {
        grid-template-columns: 1fr;
    }

    /* CTA Banner Buttons Stack Fix */
    .cta-banner {
        padding: 32px 16px;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }

    .cta-banner p {
        font-size: 0.95rem;
    }

    .cta-btn-row {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 28px;
        width: 100%;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}