/* =============================================================================
   CABIN — Terminal aesthetic, product-first
   ============================================================================= */

:root {
    --bg: #050505;
    --bg-elevated: #0a0a0a;
    --bg-surface: #0f0f0f;

    --amber: #f0a500;
    --amber-dim: #b87a00;
    --amber-glow: rgba(240, 165, 0, 0.15);
    --amber-subtle: rgba(240, 165, 0, 0.08);

    --text: #e8e8e8;
    --text-dim: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.3);

    --border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);

    --critic: #ff6b35;
    --want: #a855f7;

    --font: 'IBM Plex Mono', monospace;
    --max-width: 900px;
}

/* =============================================================================
   Base
   ============================================================================= */

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

html {
    background: var(--bg);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--amber);
    color: var(--bg);
}

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

/* =============================================================================
   Ambient Glow
   ============================================================================= */

.glow-orb {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--amber-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* =============================================================================
   Layout
   ============================================================================= */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* =============================================================================
   Header
   ============================================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--amber);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 12px;
    transition: color 0.2s ease;
}

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

.header-cta {
    font-size: 12px;
    color: var(--text-dim);
    padding: 8px 16px;
    border: 1px solid var(--border);
    margin-left: 8px;
    transition: all 0.2s ease;
}

.header-cta:hover {
    color: var(--amber);
    border-color: var(--amber-dim);
    background: var(--amber-subtle);
}

/* =============================================================================
   Hero
   ============================================================================= */

.hero {
    padding: 160px 0 80px;
    text-align: center;
}

.hero-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin-bottom: 24px;
}

.hero-hook {
    font-size: 14px;
    color: var(--amber);
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--amber);
    color: var(--bg);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #ffb520;
    box-shadow: 0 0 30px var(--amber-glow), 0 0 60px var(--amber-glow);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 14px;
}

.hero-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* =============================================================================
   Terminal Demo
   ============================================================================= */

.demo {
    padding: 40px 0 120px;
}

.terminal-window {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 20px 50px -20px rgba(0, 0, 0, 0.5),
        0 0 100px -50px var(--amber-glow);
}

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

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

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

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

.terminal-title {
    font-size: 11px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.line {
    line-height: 1.7;
}

.line-system {
    color: var(--text-muted);
    font-size: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.line-aspect,
.line-you {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.tag-blade { color: #ff6b6b; }
.tag-thief { color: #4ecdc4; }
.tag-shrug { color: #a855f7; }
.tag-you { color: var(--text-muted); }

.line-aspect p {
    color: var(--text);
    padding-left: 16px;
    border-left: 2px solid var(--border);
}

.line-you p {
    color: var(--text-dim);
    padding-left: 16px;
}

/* Terminal Input Field */
.line-input {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    opacity: 0;
}

.input-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.input-prompt {
    color: var(--amber);
    font-weight: 500;
}

.input-text {
    color: var(--text-muted);
    font-size: 14px;
}

.input-cursor {
    width: 8px;
    height: 18px;
    background: var(--amber);
    animation: blink 1s step-end infinite;
}

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

/* Terminal Replay Button */
.terminal-replay {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.terminal-replay.visible {
    opacity: 1;
    visibility: visible;
}

.terminal-replay:hover {
    color: var(--amber);
    border-color: var(--amber-dim);
    background: var(--amber-subtle);
}

.terminal-replay svg {
    width: 12px;
    height: 12px;
}


/* =============================================================================
   Explanation
   ============================================================================= */

.explanation {
    padding: 100px 0;
    border-top: 1px solid var(--border-subtle);
}

.explain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.explain-block h2 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin-bottom: 24px;
}

.explain-block p {
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.8;
}

.explain-block em {
    color: var(--amber);
    font-style: normal;
}

.not-list {
    list-style: none;
    margin-bottom: 24px;
}

.not-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 14px;
}

.x {
    color: #ef4444;
    font-weight: 600;
}

.explain-note {
    color: var(--text);
    font-size: 14px;
}

/* =============================================================================
   For Who
   ============================================================================= */

.for-who {
    padding: 100px 0;
    border-top: 1px solid var(--border-subtle);
}

.for-who h2 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin-bottom: 32px;
}

.traits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.trait {
    padding: 20px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.trait:hover {
    border-color: var(--amber-dim);
    color: var(--text);
    background: var(--amber-subtle);
}

/* =============================================================================
   How It Works
   ============================================================================= */

.how-it-works {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.how-it-works h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-num {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.step h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.step p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
}

@media (max-width: 800px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Engine Section
   ============================================================================= */

.engine {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.engine h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin-bottom: 16px;
}

.engine-intro {
    color: var(--text-dim);
    margin-bottom: 48px;
    max-width: 500px;
}

.engine-diagram {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.engine-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 20px;
    padding: 16px 0;
    opacity: 0.5;
}

.flow-node {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 20px 24px;
}

.node-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.node-content {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

.input-node {
    border-color: var(--amber-dim);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.input-node .node-content {
    color: var(--amber);
    font-style: italic;
}

.output-node {
    border-color: #ff6b6b;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.output-aspect {
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

/* Engine Core */
.engine-core {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    overflow: hidden;
}

.core-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.core-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--amber);
}

.core-status {
    font-size: 11px;
    color: var(--text-muted);
    animation: pulse 2s ease-in-out infinite;
}

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

.core-processes {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.process {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.process:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.process-name {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--amber-dim);
    min-width: 140px;
    flex-shrink: 0;
}

.process-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Memory Layers */
.memory-layers {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 20px;
}

.layers-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.layers-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-left: 3px solid var(--border);
    transition: all 0.2s ease;
}

.layer:hover {
    background: var(--amber-subtle);
    border-left-color: var(--amber-dim);
}

.layer-1 { border-left-color: rgba(255, 255, 255, 0.2); }
.layer-2 { border-left-color: rgba(255, 255, 255, 0.15); }
.layer-3 { border-left-color: rgba(255, 255, 255, 0.1); }
.layer-4 { border-left-color: rgba(255, 255, 255, 0.05); }

.layer-name {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text);
}

.layer-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Engine Notes */
.engine-notes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
}

.note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.note-icon {
    color: var(--amber-dim);
    font-size: 10px;
    margin-top: 4px;
}

.note-text {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .engine-diagram {
        grid-template-columns: 1fr;
    }

    .engine-notes {
        padding-top: 32px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .note {
        flex: 1 1 250px;
    }
}

@media (max-width: 600px) {
    .process {
        flex-direction: column;
        gap: 6px;
    }

    .process-name {
        min-width: auto;
    }

    .layer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* =============================================================================
   Mind Graph Section
   ============================================================================= */

.mind-graph-section {
    padding: 120px 0 80px 0;
    border-top: 1px solid var(--border-subtle);
}

.mind-graph-section h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin-bottom: 16px;
}

.mind-graph-intro {
    color: var(--text-dim);
    margin-bottom: 48px;
    max-width: 500px;
}

.mind-graph-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.mind-graph-canvas-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    max-height: 900px;
    background: linear-gradient(180deg, var(--bg) 0%, #0a0805 50%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    box-shadow:
        inset 0 50px 100px -50px rgba(240, 165, 0, 0.03),
        inset 0 -50px 100px -50px rgba(240, 165, 0, 0.03);
}

.mind-graph-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Node Labels (CSS2D) */
.node-label {
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.node-label-name {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.node-label-role {
    font-family: var(--font);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.node-memory-badge {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: #1a1510;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.mind-graph-legend {
    position: absolute;
    bottom: 48px;
    left: 48px;
    display: flex;
    gap: 24px;
    z-index: 10;
    background: rgba(5, 5, 5, 0.6);
    padding: 12px 20px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

.legend-you {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.legend-aspect {
    background: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.6);
}

.legend-pattern {
    background: #b388eb;
    box-shadow: 0 0 10px rgba(179, 136, 235, 0.6);
}

.mind-graph-instructions {
    position: absolute;
    bottom: 48px;
    right: 48px;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    z-index: 10;
    background: rgba(5, 5, 5, 0.6);
    padding: 12px 20px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

/* Example Badge */
.mind-graph-example-badge {
    position: absolute;
    top: 20px;
    left: 48px;
    z-index: 15;
    background: rgba(5, 5, 5, 0.8);
    padding: 10px 16px;
    border: 1px solid var(--amber-dim);
    backdrop-filter: blur(10px);
    cursor: default;
}

.mind-graph-example-badge .badge-text {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--amber);
    text-transform: uppercase;
}

.mind-graph-example-badge .badge-hover {
    display: none;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.mind-graph-example-badge:hover .badge-text {
    display: none;
}

.mind-graph-example-badge:hover .badge-hover {
    display: inline;
}


@media (max-width: 768px) {
    .mind-graph-canvas-container {
        height: 70vh;
        min-height: 500px;
    }

    .mind-graph-legend {
        bottom: 20px;
        left: 20px;
        gap: 16px;
        padding: 10px 16px;
    }

    .mind-graph-instructions {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 10px;
    }

    .mind-graph-example-badge {
        left: 20px;
        top: 16px;
        padding: 8px 12px;
    }

    .mind-graph-example-badge .badge-text,
    .mind-graph-example-badge .badge-hover {
        font-size: 10px;
    }

}

@media (max-width: 500px) {
    .mind-graph-canvas-container {
        height: 60vh;
        min-height: 400px;
    }

    .mind-graph-legend {
        left: 16px;
        bottom: 16px;
        gap: 12px;
        padding: 8px 12px;
    }

    .legend-item {
        font-size: 9px;
    }

    .mind-graph-instructions {
        display: none;
    }

    .mind-graph-example-badge {
        left: 16px;
        top: 12px;
    }
}

/* Mind Graph Detail Panel */
.mind-graph-detail-panel {
    --panel-accent: #d4a574;

    position: absolute;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100%;
    background: rgba(5, 5, 5, 0.97);
    border-left: 1px solid var(--border);
    padding: 24px;
    z-index: 20;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mind-graph-detail-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--panel-accent), transparent);
}

.mind-graph-detail-panel.open {
    right: 0;
}

.detail-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 21;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-close-btn:hover {
    color: var(--text);
}

.detail-panel-content h2 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    padding-right: 40px;
}

.role-badge,
.pattern-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.detail-section:first-of-type {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

.detail-section h4 {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.detail-section p {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    font-size: 11px;
    padding: 6px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.2s;
}

.detail-tag:hover {
    border-color: var(--panel-accent);
    color: var(--text);
}

.detail-tag small {
    opacity: 0.5;
    margin-left: 4px;
}

@media (max-width: 900px) {
    .mind-graph-detail-panel {
        width: 300px;
        right: -320px;
    }
}

@media (max-width: 600px) {
    .mind-graph-detail-panel {
        width: 100%;
        right: -100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .mind-graph-detail-panel.open {
        right: 0;
    }
}

/* =============================================================================
   Specs Section
   ============================================================================= */

.specs {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.specs h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin-bottom: 32px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.spec {
    background: var(--bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.spec-value {
    font-size: 13px;
    color: var(--text);
}

@media (max-width: 900px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================================================
   Not Section
   ============================================================================= */

.not-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.not-section h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin-bottom: 32px;
}

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

.not-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.not-x {
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.not-item strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.not-item p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .not-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Pricing Section
   ============================================================================= */

.pricing {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.pricing h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 640px;
}

.pricing-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pricing-card-primary {
    border-color: var(--amber-dim);
    background: var(--amber-subtle);
}

.pricing-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pricing-card-primary .pricing-name {
    color: var(--amber);
}

.pricing-amount {
    font-size: 32px;
    font-weight: 500;
    color: var(--text);
}

.pricing-period {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dim);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-dim);
    padding-left: 20px;
    position: relative;
}

.pricing-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.pricing-card-primary .pricing-features li::before {
    color: var(--amber-dim);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--bg-surface);
}

.pricing-card .btn-primary {
    text-align: center;
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* =============================================================================
   Final CTA
   ============================================================================= */

.final-cta {
    padding: 140px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.cta-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 16px;
}

.final-cta h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 500;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 32px;
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
}

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

.footer-nav a {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--amber);
}

.footer-email {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--amber);
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 60px;
    }

    .explain-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .traits {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .terminal-body {
        padding: 16px;
    }

    .line-aspect p,
    .line-you p {
        padding-left: 12px;
    }
}

/* =============================================================================
   Mobile Navigation
   ============================================================================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:first-child {
    margin-bottom: 6px;
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

@media (max-width: 640px) {
    .menu-toggle {
        display: block;
    }

    .header-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 32px 24px;
        gap: 8px;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s ease;
        z-index: 99;
    }

    .header-nav.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-subtle);
        color: var(--text-dim);
    }

    .nav-link:last-of-type {
        border-bottom: none;
    }

    .header-cta {
        margin: 24px 0 0 0;
        padding: 16px 24px;
        text-align: center;
        font-size: 14px;
    }

    /* Prevent scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* =============================================================================
   Additional Mobile Fixes
   ============================================================================= */

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 50px;
    }

    .hero-sub {
        font-size: 14px;
        line-height: 1.7;
    }

    .btn-primary {
        padding: 14px 28px;
        width: 100%;
        text-align: center;
    }

    .btn-lg {
        padding: 16px 32px;
    }

    .demo {
        padding: 30px 0 80px;
    }

    .terminal-window {
        border-radius: 6px;
    }

    .tag {
        font-size: 10px;
    }

    .line-aspect p,
    .line-you p {
        font-size: 14px;
    }

    .how-it-works,
    .engine,
    .specs,
    .not-section,
    .pricing {
        padding: 80px 0;
    }

    .how-it-works h2,
    .engine h2,
    .specs h2,
    .not-section h2,
    .pricing h2 {
        font-size: 13px;
        margin-bottom: 32px;
    }

    .engine-intro,
    .mind-graph-intro {
        font-size: 14px;
    }

    .final-cta {
        padding: 100px 0;
    }

    .final-cta h2 {
        font-size: 22px;
    }

    .cta-sub {
        font-size: 13px;
    }

    /* Pricing cards stack better */
    .pricing-card {
        padding: 24px;
    }

    .pricing-amount {
        font-size: 28px;
    }

    /* Specs grid tighter */
    .spec {
        padding: 16px;
    }

    .spec-label {
        font-size: 9px;
    }

    .spec-value {
        font-size: 12px;
    }

    /* Engine diagram mobile fixes */
    .process-name {
        font-size: 9px;
        min-width: 100px;
    }

    .process-desc {
        font-size: 12px;
    }

    .node-content {
        font-size: 13px;
    }

    .layer-name {
        font-size: 10px;
    }

    .layer-desc {
        font-size: 11px;
    }

    /* Container padding */
    .container {
        padding: 0 20px;
    }

    /* Footer stacking */
    .footer .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Steps grid */
    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border-subtle);
    }

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

    /* Glow orb smaller on mobile */
    .glow-orb {
        width: 400px;
        height: 300px;
        top: 10%;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .btn-primary,
    .btn-secondary,
    .header-cta {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pricing-features li {
        padding: 8px 0 8px 20px;
    }
}
