/* ═══════════════════════════════════════════════════════════════
   PNP Compute — Shared Design System
   8-point grid · Inter/Outfit typography · Refined dark theme
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg:            #0b0d12;
    --bg-elevated:   #12151c;
    --surface:       rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border:        rgba(255, 255, 255, 0.09);
    --border-hover:  rgba(255, 255, 255, 0.18);

    --text-1:   #f2f4f8;
    --text-2:   #a6aebd;
    --text-3:   #6d7683;

    --accent:   #34d399;        /* Refined emerald */
    --accent-2: #818cf8;        /* Soft indigo */
    --accent-3: #c084fc;        /* Soft violet */

    /* Typography scale */
    --fs-xs:   0.72rem;   /* 11.5px */
    --fs-sm:   0.875rem;  /* 14px */
    --fs-base: 1rem;      /* 16px */
    --fs-md:   1.25rem;   /* 20px */
    --fs-lg:   1.5rem;    /* 24px */
    --fs-xl:   1.875rem;  /* 30px */
    --fs-2xl:  2.25rem;   /* 36px */
    --fs-3xl:  3rem;      /* 48px */
    --fs-4xl:  3.5rem;    /* 56px */

    /* Spacing (8-point grid) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 16px;
    --sp-4: 24px;
    --sp-5: 32px;
    --sp-6: 48px;
    --sp-7: 64px;
    --sp-8: 96px;
    --sp-9: 128px;

    /* Layout */
    --max-w: 1160px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-1);
    font-size: var(--fs-base);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(52,211,153,0.07), transparent 60%),
        radial-gradient(700px 500px at -10% 20%, rgba(129,140,248,0.05), transparent 60%);
    pointer-events: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Canvas / Background ─────────────────────────────────── */
#canvas-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(11,13,18,0.35) 0%, rgba(11,13,18,0.9) 100%);
    pointer-events: none;
}

/* ── Container ────────────────────────────────────────────── */
.container {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-5);
}

.container-wide {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--sp-5);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) 0;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: var(--fs-md);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    letter-spacing: -0.5px;
}

.nav-brand img {
    height: 34px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
}

.nav-links a {
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-8) 0;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--sp-4);
}

.hero-label .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-4xl);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    max-width: 800px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #34d399 0%, #5eead4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: var(--fs-md);
    color: var(--text-2);
    max-width: 560px;
    margin-top: var(--sp-4);
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: inherit;
    letter-spacing: 0.1px;
}

.btn-accent {
    background: var(--accent);
    color: #052016;
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 24px -12px rgba(52,211,153,0.5);
}

.btn-accent:hover {
    transform: translateY(-1px);
    background: #4adeb2;
    box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 14px 32px -12px rgba(52,211,153,0.6);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text-1);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* ── Section ──────────────────────────────────────────────── */
.section {
    padding: var(--sp-9) 0;
}

.section-tag {
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--sp-3);
    display: block;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--sp-3);
    letter-spacing: -1px;
}

.section-desc {
    color: var(--text-2);
    font-size: var(--fs-md);
    max-width: 600px;
    font-weight: 300;
    margin-bottom: var(--sp-7);
}

/* ── Glass Cards ──────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--sp-6);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s, border-color 0.35s;
    cursor: default;
}

.glass-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.03));
    border-color: var(--border-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.4);
}

.card-badge {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 10px;
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--radius-pill);
    background: rgba(52, 211, 153, 0.05);
}

.glass-card h3 {
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: var(--sp-2);
}

.glass-card p {
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 300;
    line-height: 1.7;
}

/* ── Stats Strip ──────────────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    padding: var(--sp-7) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: var(--fs-sm);
    color: var(--text-3);
    margin-top: var(--sp-1);
}

/* ── How It Works (Steps) ─────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.step {
    text-align: center;
    padding: var(--sp-5);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: var(--sp-3);
}

.step h3 {
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: var(--sp-2);
}

.step p {
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 300;
    line-height: 1.7;
}

/* ── Detail Rows (Alternating) ────────────────────────────── */
.detail-row {
    display: flex;
    align-items: center;
    gap: var(--sp-7);
    padding: var(--sp-7) 0;
}

.detail-row:nth-child(even) {
    flex-direction: row-reverse;
}

.detail-content {
    flex: 1;
}

.detail-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-3);
}

.detail-content p {
    color: var(--text-2);
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--sp-3);
}

.detail-visual {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 280px;
    padding: var(--sp-5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-sm);
    color: var(--accent);
    overflow: hidden;
    white-space: pre;
    line-height: 1.4;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    padding: var(--sp-8) 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sp-7);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h4 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-2);
}

.footer-brand p {
    color: var(--text-3);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.footer-cols {
    display: flex;
    gap: var(--sp-8);
}

.footer-col h5 {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-2);
    margin-bottom: var(--sp-3);
}

.footer-col a {
    display: block;
    color: var(--text-3);
    font-size: var(--fs-sm);
    padding: var(--sp-1) 0;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--sp-6);
    margin-top: var(--sp-6);
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: var(--fs-xs);
}

/* ── Docs Page ────────────────────────────────────────────── */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--sp-7);
    padding: var(--sp-7) 0;
    min-height: 80vh;
}

.docs-sidebar {
    position: sticky;
    top: var(--sp-7);
    align-self: start;
}

.docs-sidebar h4 {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-2);
    margin-bottom: var(--sp-3);
    margin-top: var(--sp-5);
}

.docs-sidebar h4:first-child {
    margin-top: 0;
}

.docs-sidebar a {
    display: block;
    color: var(--text-3);
    font-size: var(--fs-sm);
    padding: var(--sp-1) var(--sp-3);
    border-left: 2px solid transparent;
    transition: all 0.3s;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

.docs-content {
    max-width: 800px;
}

.docs-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-xl);
    margin-top: var(--sp-7);
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
}

.docs-content h2:first-child { margin-top: 0; }

.docs-content h3 {
    font-size: var(--fs-lg);
    margin-top: var(--sp-5);
    margin-bottom: var(--sp-2);
}

.docs-content p {
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--sp-3);
}

.docs-content ul, .docs-content ol {
    color: var(--text-2);
    padding-left: var(--sp-4);
    margin-bottom: var(--sp-3);
}

.docs-content li {
    margin-bottom: var(--sp-2);
    font-weight: 300;
    line-height: 1.7;
}

.docs-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-sm);
    background: var(--surface-hover);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

.docs-content pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--sp-4);
    overflow-x: auto;
    margin-bottom: var(--sp-4);
}

.docs-content pre code {
    background: none;
    padding: 0;
    font-size: var(--fs-sm);
    color: var(--text-2);
    line-height: 1.6;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--sp-4);
    font-size: var(--fs-sm);
}

.docs-content th {
    text-align: left;
    padding: var(--sp-2) var(--sp-3);
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    font-weight: 600;
}

.docs-content td {
    padding: var(--sp-2) var(--sp-3);
    border-bottom: 1px solid var(--border);
    color: var(--text-3);
    font-weight: 300;
}

.docs-content td code {
    color: var(--accent);
}

/* ── Blog Page ────────────────────────────────────────────── */
.blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.blog-empty h2 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-3);
}

.blog-empty p {
    color: var(--text-3);
    font-size: var(--fs-md);
    max-width: 460px;
    font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════
   v2 — Pages, Trinity, Hierarchy, Dim Ladder, Timeline,
        Comparison, Primitive Grid, Hero Polish
   ═══════════════════════════════════════════════════════════ */

/* ── Hero polish ───────────────────────────────────────────── */
.hero-grid-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7);
    align-items: center;
}

.hero-grid-cta .demo {
    background: #0c0e13;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--sp-5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    overflow-x: auto;
}
.hero-grid-cta .demo .k { color: var(--accent); }
.hero-grid-cta .demo .v { color: var(--accent-2); }
.hero-grid-cta .demo .c { color: var(--text-3); }

@media (max-width: 1024px) {
    .hero-grid-cta { grid-template-columns: 1fr; }
}

/* ── Trinity row ───────────────────────────────────────────── */
.trinity-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
}
.trinity-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--sp-5);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.trinity-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}
.trinity-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
}
.trinity-card .label {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.trinity-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-lg);
    margin: var(--sp-2) 0 var(--sp-3);
}
.trinity-card p {
    color: var(--text-2);
    font-size: var(--fs-sm);
    line-height: 1.7;
    font-weight: 300;
}
@media (max-width: 768px) {
    .trinity-row { grid-template-columns: 1fr; }
}

/* ── Hierarchy diagram (Agency → Project → Agent → Neuro) ── */
.hierarchy-diag {
    display: flex;
    align-items: stretch;
    gap: var(--sp-3);
    flex-wrap: wrap;
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.hierarchy-diag .h-step {
    flex: 1;
    min-width: 160px;
    padding: var(--sp-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}
.hierarchy-diag .h-step:hover {
    transform: translateY(-3px);
    border-left-color: var(--accent-2);
}
.hierarchy-diag .h-step .num {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: var(--fs-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hierarchy-diag .h-step h4 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-md);
    margin: var(--sp-2) 0;
}
.hierarchy-diag .h-step p {
    color: var(--text-3);
    font-size: var(--fs-sm);
    font-weight: 300;
    line-height: 1.6;
}

/* ── Primitive grid ───────────────────────────────────────── */
.prim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--sp-3);
}
.prim {
    padding: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.prim:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    transform: translateY(-2px);
}
.prim .name {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: var(--sp-1);
}
.prim .desc {
    color: var(--text-2);
    font-size: var(--fs-sm);
    line-height: 1.6;
    font-weight: 300;
}

/* ── Dimensional ladder ───────────────────────────────────── */
.dim-ladder {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    counter-reset: dim;
}
.dim {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: var(--sp-4);
    padding: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}
.dim:hover { background: var(--surface-hover); transform: translateX(4px); }
.dim:nth-child(2) { border-left-color: #34d399; }
.dim:nth-child(3) { border-left-color: #4dd6ff; }
.dim:nth-child(4) { border-left-color: var(--accent-2); }
.dim:nth-child(5) { border-left-color: var(--accent-3); }
.dim:nth-child(6) { border-left-color: #ff6b9d; }
.dim .level {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: var(--fs-md);
}
.dim .what, .dim .nn {
    color: var(--text-2);
    font-size: var(--fs-sm);
    line-height: 1.6;
    font-weight: 300;
}
.dim .what strong, .dim .nn strong {
    color: var(--text-1);
    font-weight: 600;
}
@media (max-width: 768px) {
    .dim { grid-template-columns: 1fr; }
}

/* ── Phase timeline ───────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: var(--sp-5);
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), var(--accent-3), transparent);
}
.tl-item {
    position: relative;
    padding-bottom: var(--sp-6);
}
.tl-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 12px rgba(52,211,153,0.4);
}
.tl-item.done::before { background: var(--accent); }
.tl-item .phase {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xs);
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}
.tl-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-md);
    margin: var(--sp-1) 0 var(--sp-2);
}
.tl-item p {
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.7;
    font-size: var(--fs-sm);
}

/* ── Comparison table styled ─────────────────────────────── */
.compare-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(15px);
}
.compare-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}
.compare-wrap th {
    text-align: left;
    padding: var(--sp-3) var(--sp-4);
    background: rgba(52,211,153,0.04);
    color: var(--text-1);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
.compare-wrap th.feature { width: 26%; }
.compare-wrap th.us {
    color: var(--accent);
}
.compare-wrap td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.6;
    vertical-align: top;
}
.compare-wrap td:first-child {
    color: var(--text-1);
    font-weight: 500;
}
.compare-wrap td.us {
    color: var(--accent);
    font-weight: 500;
    background: rgba(52,211,153,0.03);
}
.compare-wrap tr:last-child td { border-bottom: none; }

/* ── Section split (image | text) ─────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7);
    align-items: center;
    padding: var(--sp-7) 0;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split h3 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-3);
    letter-spacing: -0.5px;
}
.split p {
    color: var(--text-2);
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--sp-3);
}
.split .visual {
    background: #0c0e13;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--sp-5);
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: var(--fs-sm);
    line-height: 1.7;
    overflow: auto;
    white-space: pre;
    min-height: 240px;
}
@media (max-width: 768px) {
    .split, .split.reverse { grid-template-columns: 1fr; gap: var(--sp-5); padding: var(--sp-5) 0; }
}

/* ── Layer stack (memory L0–L4) ───────────────────────────── */
.layer-stack {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.layer {
    display: grid;
    grid-template-columns: 60px 1fr 100px;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    align-items: center;
}
.layer:hover { background: var(--surface-hover); }
.layer .L {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: var(--fs-lg);
    color: var(--accent);
}
.layer h4 {
    font-size: var(--fs-md);
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
}
.layer p {
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 300;
    line-height: 1.5;
}
.layer .tok {
    color: var(--text-3);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xs);
    text-align: right;
}
@media (max-width: 768px) {
    .layer { grid-template-columns: 1fr; }
    .layer .tok { text-align: left; }
}

/* ── Inline code & pre ─────────────────────────────────────── */
code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--surface-hover);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.9em;
}
.section pre, .docs-content pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--sp-4);
    overflow-x: auto;
    margin: var(--sp-3) 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--text-2);
}
.section pre code, .docs-content pre code {
    background: none;
    padding: 0;
    color: var(--text-2);
    font-size: inherit;
}

/* ── Sub-nav (page section anchors) ───────────────────────── */
.subnav {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-5);
    overflow-x: auto;
}
.subnav a {
    color: var(--text-3);
    font-size: var(--fs-sm);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    transition: all 0.3s;
    white-space: nowrap;
}
.subnav a:hover, .subnav a.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(52,211,153,0.05);
}

/* ── Section header lite ──────────────────────────────────── */
.page-hero {
    padding: var(--sp-8) 0 var(--sp-6);
    text-align: left;
}
.page-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-3xl);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: var(--sp-3);
}
.page-hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-hero p {
    color: var(--text-2);
    font-size: var(--fs-md);
    font-weight: 300;
    line-height: 1.7;
    max-width: 720px;
}

/* ── Quote block ──────────────────────────────────────────── */
.quote {
    border-left: 3px solid var(--accent);
    padding: var(--sp-3) var(--sp-5);
    background: rgba(52,211,153,0.03);
    margin: var(--sp-5) 0;
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-size: var(--fs-md);
    color: var(--text-1);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.6;
}

/* ── Tag pill ─────────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: rgba(52,211,153,0.1);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xs);
    margin-right: var(--sp-2);
}
.tag.purple { background: rgba(192,132,252,0.15); color: #b385e0; }
.tag.blue   { background: rgba(129,140,248,0.15); color: #8da7f0; }

/* ── Big stat hero (research) ─────────────────────────────── */
.research-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
    margin: var(--sp-5) 0;
}
.research-hero .rh {
    padding: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}
.research-hero .rh .num {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--accent);
}
.research-hero .rh .lab {
    font-size: var(--fs-xs);
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}
@media (max-width: 768px) {
    .research-hero { grid-template-columns: 1fr; }
}

/* ── Three-tower table ────────────────────────────────────── */
.tower-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--sp-4);
}
.tower-table th, .tower-table td {
    padding: var(--sp-3);
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
    line-height: 1.6;
}
.tower-table th {
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--fs-xs);
}
.tower-table td {
    color: var(--text-2);
    font-weight: 300;
}
.tower-table td:first-child {
    color: var(--text-1);
    font-weight: 500;
}

/* ── App tile ─────────────────────────────────────────────── */
.app-tile {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.35s ease;
}
.app-tile:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}
.app-tile .ico {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.4);
}
.app-tile h3 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-1);
}
.app-tile .role {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xs);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
}
.app-tile p {
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 300;
    line-height: 1.7;
}

/* ── Nav links — wider with more pages ────────────────────── */
@media (max-width: 1100px) {
    .nav-links { gap: var(--sp-3); }
    .nav-links a { font-size: 11px; letter-spacing: 0.3px; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav { flex-wrap: wrap; height: auto; padding: var(--sp-3) var(--sp-4); gap: var(--sp-2); }
    .nav-links {
        display: flex; flex-wrap: wrap; width: 100%;
        gap: var(--sp-2) var(--sp-3); justify-content: flex-start;
        padding-top: var(--sp-2); border-top: 1px solid var(--border);
    }
    .nav-links a { font-size: 11px; padding: 4px 6px; }
    .nav-sep { display: none; }
    .nav-group-label { display: none; }
    .hero h1 { font-size: var(--fs-2xl); letter-spacing: -1px; }
    .hero { min-height: 70vh; text-align: center; align-items: center; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
    .btn { width: 100%; justify-content: center; }
    .card-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
    .detail-row, .detail-row:nth-child(even) { flex-direction: column; }
    .section-title { font-size: var(--fs-xl); }
    .footer-cols { flex-direction: column; gap: var(--sp-5); }
}


/* ── Nav dropdowns (consolidated header) ─────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: '▾'; font-size: 9px; opacity: 0.5; }
.nav-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,15,0.97); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: var(--sp-2);
    min-width: 170px; backdrop-filter: blur(16px); z-index: 100;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    text-align: left;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block; padding: 8px 12px; border-radius: 6px;
    font-size: var(--fs-sm); color: var(--text-2);
    transition: all 0.15s; text-transform: none; letter-spacing: 0.2px;
}
.nav-dropdown-menu a:hover { color: var(--text-1); background: var(--surface-hover); }

/* ── Coming soon + forms ──────────────────────────────────── */
.coming-soon {
    color: var(--text-3);
    font-size: var(--fs-sm);
    font-style: italic;
}

.field {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-1);
    font-size: var(--fs-sm);
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.field:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.05); }
textarea.field { resize: vertical; }
.field::placeholder { color: var(--text-3); }
select.field { appearance: none; }
