/* ================================================================
   Asobi — Kinetic Infrastructure Design System
   Cosmic navy, tonal layering, no hard borders
   ================================================================ */

/* Self-hosted fonts (SIL OFL licensed) */
@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Variable.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Surface hierarchy */
    --surface:               #101320;
    --surface-container-low: #181b29;
    --surface-container:     #1c1f2d;
    --surface-container-high:#262938;
    --surface-highest:       #313443;
    --surface-lowest:        #0a0d1b;

    /* Text */
    --on-surface:            #e0e1f5;
    --on-surface-variant:    #c9c4d7;
    --text-muted:            #938ea0;

    /* Accent palette */
    --primary:               #c9beff;
    --primary-container:     #5f41d8;
    --secondary:             #91cdff;
    --tertiary:              #4ae183;
    --error:                 #ffb4ab;

    /* Structural */
    --outline-variant:       #484554;
    --ghost-border:          rgba(72, 69, 84, 0.15);
    --ghost-border-hover:    rgba(72, 69, 84, 0.4);

    /* Spacing & radius */
    --radius-md:  0.75rem;
    --radius-lg:  1rem;
    --radius-xl:  1.5rem;
    --max-width:  1120px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #e0d8ff; }

code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    background: var(--surface-lowest);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--secondary);
}

/* ---- Navigation ---- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(16, 19, 32, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.brand-icon { font-size: 1.6rem; }

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

.nav-links a {
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--on-surface); }

.nav-github {
    padding: 8px 20px;
    background: var(--primary-container);
    color: var(--on-surface) !important;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.2s;
}

.nav-github:hover {
    transform: scale(0.97);
    box-shadow: 0 0 20px rgba(201, 190, 255, 0.15);
    color: var(--on-surface) !important;
}

/* Hamburger menu (hidden on desktop) */
.nav-toggle { display: none; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    z-index: 110;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--on-surface);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---- Hero ---- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 100px;
    text-align: center;
    background: var(--surface);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(95, 65, 216, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-blob-left,
.hero-blob-right {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-blob-left {
    top: 25%;
    left: -80px;
    background: rgba(95, 65, 216, 0.1);
}

.hero-blob-right {
    bottom: 25%;
    right: -80px;
    background: rgba(145, 205, 255, 0.1);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--on-surface-variant);
    background: var(--surface-container-high);
    outline: 1px solid var(--ghost-border);
    border-radius: 9999px;
    margin-bottom: 32px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tertiary);
    box-shadow: 0 0 8px var(--tertiary);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--on-surface-variant);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-notice {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding: 14px 24px;
    background: var(--surface-container-high);
    border-radius: var(--radius-md);
    outline: 1px solid var(--ghost-border);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Buttons ---- */

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: #1b0062;
    box-shadow: 0 0 24px rgba(201, 190, 255, 0.2);
}

.btn-primary:hover {
    color: #1b0062;
    transform: scale(1.02);
    box-shadow: 0 0 32px rgba(201, 190, 255, 0.3);
}

.btn-secondary {
    background: var(--surface-container-high);
    color: #fff;
    outline: 1px solid var(--ghost-border);
}

.btn-secondary:hover {
    background: var(--surface-highest);
    color: #fff;
    outline-color: var(--ghost-border-hover);
}

/* ---- Sections ---- */

.section {
    padding: 96px 32px;
}

.section-alt {
    background: var(--surface-container-low);
}

.section-deep {
    background: var(--surface-lowest);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--tertiary);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title-center {
    text-align: center;
}

.section-subtitle {
    color: var(--on-surface-variant);
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 56px;
}

.section-subtitle-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Section header with text on both sides ---- */

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.section-header-split .section-subtitle {
    margin-bottom: 0;
    max-width: 400px;
}

/* ---- Why Prose ---- */

.why-prose {
    max-width: 680px;
    margin: 0 auto;
}

.why-prose p {
    color: var(--on-surface-variant);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.why-prose p:first-child {
    color: var(--on-surface);
    font-size: 1.15rem;
}

/* ---- Bento Grid (BEAM section) ---- */

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

.bento-card {
    background: var(--surface-container-high);
    border-radius: var(--radius-lg);
    padding: 32px;
    outline: 1px solid var(--ghost-border);
    transition: background 0.2s, outline-color 0.2s;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    background: var(--surface-highest);
    outline-color: var(--ghost-border-hover);
}

.bento-card-wide { grid-column: span 2; }

.bento-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.bento-card p {
    color: var(--on-surface-variant);
    font-size: 0.92rem;
    line-height: 1.7;
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.bento-icon-primary { color: var(--primary); }
.bento-icon-secondary { color: var(--secondary); }
.bento-icon-tertiary { color: var(--tertiary); }

/* Behaviour Engine card (gradient outline) */
.bento-card-gradient {
    background: linear-gradient(135deg, rgba(201, 190, 255, 0.15), rgba(145, 205, 255, 0.15));
    padding: 2px;
    border-radius: var(--radius-lg);
    outline: none;
    grid-column: span 2;
}

.bento-card-gradient-inner {
    background: var(--surface-lowest);
    border-radius: calc(var(--radius-lg) - 2px);
    padding: 32px;
    height: 100%;
    display: flex;
    gap: 32px;
    align-items: center;
}

.bento-card-gradient-inner .bento-text { flex: 1; }

.bento-code-preview {
    flex: 1;
    background: #0d0f17;
    border-radius: var(--radius-md);
    padding: 20px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--secondary);
    outline: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.bento-code-preview .kw { color: var(--text-muted); }
.bento-code-preview .fn { color: var(--primary); }

.bento-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.bento-check-list li {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-check-list li::before {
    content: '\2713';
    font-weight: 700;
}

/* ---- Feature Grid ---- */

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

.feature-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface-container-high);
    transition: background 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    background: var(--surface-highest);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.feature-icon-primary  { background: rgba(201, 190, 255, 0.1); color: var(--primary); }
.feature-icon-secondary { background: rgba(145, 205, 255, 0.1); color: var(--secondary); }
.feature-icon-tertiary { background: rgba(74, 225, 131, 0.1); color: var(--tertiary); }
.feature-icon-error    { background: rgba(255, 180, 171, 0.1); color: var(--error); }

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.feature-card p {
    color: var(--on-surface-variant);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 8px;
}

/* ---- Code Block ---- */

.code-block {
    background: var(--surface-lowest);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow-x: auto;
    max-width: 700px;
    margin: 0 auto;
    outline: 1px solid var(--ghost-border);
}

.code-block pre { margin: 0; }

.code-block code {
    background: none;
    padding: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--secondary);
}

/* ---- SDK Section ---- */

.sdk-outer-card {
    background: var(--surface-container-high);
    border-radius: var(--radius-xl);
    padding: 64px;
    overflow: hidden;
}

.sdk-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.sdk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.sdk-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-highest);
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    outline: 1px solid var(--ghost-border);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: outline-color 0.2s, background 0.2s;
}

.sdk-chip:hover {
    outline-color: var(--ghost-border-hover);
    color: #fff;
}

.sdk-chip-lang {
    font-size: 0.7rem;
    color: var(--tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Status Grid ---- */

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

.status-card {
    background: var(--surface-container-high);
    border-radius: var(--radius-lg);
    padding: 28px;
    outline: 1px solid var(--ghost-border);
    transition: background 0.2s;
}

.status-card:hover {
    background: var(--surface-highest);
}

.status-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.status-card p {
    color: var(--on-surface-variant);
    font-size: 0.88rem;
    line-height: 1.6;
}

.status-indicator {
    display: inline-block;
    font-family: 'SF Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.status-done .status-indicator {
    color: var(--tertiary);
    background: rgba(74, 225, 131, 0.1);
}

.status-wip .status-indicator {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.status-planned .status-indicator {
    color: var(--text-muted);
    background: rgba(147, 142, 160, 0.1);
}

/* ---- Comparison Table ---- */

.comparison-table-wrap { overflow-x: auto; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    text-align: left;
}

.comparison-table thead th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--ghost-border);
}

.comparison-table thead .highlight {
    color: var(--primary);
    font-size: 1rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid rgba(72, 69, 84, 0.05);
}

.comparison-table .highlight {
    color: var(--tertiary);
    font-weight: 600;
}

.row-label {
    font-weight: 600;
    color: #fff;
}

.comparison-table td {
    color: var(--on-surface-variant);
}

/* ---- Getting Started (CTA card) ---- */

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-container);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    outline: 1px solid rgba(201, 190, 255, 0.15);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.cta-card .section-title {
    text-align: center;
}

.steps {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: #1b0062;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
}

.step-content code {
    color: var(--tertiary);
}

.steps-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---- Community ---- */

.community-section {
    text-align: center;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.nav-link-btn {
    color: var(--text-muted) !important;
}

/* ---- Footer ---- */

.site-footer {
    padding: 64px 32px 32px;
    background: var(--surface);
    border-top: 1px solid var(--ghost-border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 8px;
}

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

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

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--ghost-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'SF Mono', monospace;
    font-size: 0.7rem;
    color: var(--tertiary);
}

.footer-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tertiary);
}

/* ---- Guide Pages ---- */

.guide-page {
    padding: 96px 32px 64px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.guide-back {
    display: inline-block;
    margin-bottom: 32px;
    font-size: 0.9rem;
    font-weight: 500;
}

.guide-header {
    margin-bottom: 48px;
}

.guide-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.guide-header p {
    color: var(--on-surface-variant);
    font-size: 1.1rem;
    max-width: 640px;
}

.guide-section {
    margin-bottom: 48px;
}

.guide-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ghost-border);
    color: #fff;
}

.guide-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--tertiary);
}

.guide-section p {
    color: var(--on-surface-variant);
    margin-bottom: 16px;
    line-height: 1.7;
}

.guide-code {
    background: var(--surface-lowest);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow-x: auto;
    margin-bottom: 24px;
    outline: 1px solid var(--ghost-border);
}

.guide-code pre { margin: 0; }

.guide-code code {
    background: none;
    padding: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--secondary);
}

.guide-github {
    display: inline-block;
    margin-top: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    outline: 1px solid var(--ghost-border);
    border-radius: var(--radius-md);
    transition: outline-color 0.2s;
}

.guide-github:hover {
    outline-color: var(--primary);
}

/* ---- Demo Page ---- */

.demo-page {
    background: var(--surface);
}

.demo-hero {
    padding: 160px 32px 80px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(74, 225, 131, 0.08) 0%, transparent 60%),
        var(--surface);
}

.demo-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.demo-mechanics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.mechanic-card {
    background: var(--surface-container-high);
    border-radius: var(--radius-lg);
    padding: 24px;
    outline: 1px solid var(--ghost-border);
    transition: outline-color 0.2s, background 0.2s;
}

.mechanic-card:hover {
    outline-color: rgba(74, 225, 131, 0.3);
    background: var(--surface-highest);
}

.mechanic-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.mechanic-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--tertiary);
}

.mechanic-card p {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    line-height: 1.6;
}

.demo-arch {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.arch-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.arch-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tertiary);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.arch-content h3 {
    font-family: 'SF Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--tertiary);
}

.arch-content p {
    color: var(--on-surface-variant);
    font-size: 0.92rem;
    line-height: 1.6;
}

.demo-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.demo-client-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-container-high);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: inherit;
    outline: 1px solid var(--ghost-border);
    transition: outline-color 0.2s, background 0.2s;
}

.demo-client-card:hover {
    color: inherit;
    outline-color: var(--ghost-border-hover);
    background: var(--surface-highest);
}

.demo-client-engine {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.demo-client-card p {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.demo-client-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 32px;
}

.nav-active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary-container);
    padding-bottom: 4px;
}

/* ---- Play CTA ---- */

.cta-card-play {
    max-width: 900px;
    text-align: left;
}

.play-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.play-cta-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 12px 0 8px;
}

.play-cta-text p {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 560px;
}

.play-cta-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.play-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.play-detail-icon {
    font-size: 1.1rem;
}

.showcase-more {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.showcase-more-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.showcase-demos {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.showcase-demo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--surface-container);
    border-radius: var(--radius-lg);
    outline: 1px solid var(--ghost-border);
    text-decoration: none;
    color: inherit;
    transition: outline-color 0.2s, background 0.2s;
}

.showcase-demo-card:hover {
    color: inherit;
    outline-color: var(--ghost-border-hover);
    background: var(--surface-highest);
}

.showcase-demo-icon {
    font-size: 1.5rem;
}

.showcase-demo-card strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--on-surface);
}

.showcase-demo-card p {
    color: var(--on-surface-variant);
    font-size: 0.85rem;
    margin: 2px 0 0;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-card-wide { grid-column: span 2; }
    .bento-card-gradient { grid-column: span 2; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .sdk-layout { grid-template-columns: 1fr; }
    .sdk-outer-card { padding: 40px; }
    .status-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(16, 19, 32, 0.95);
        backdrop-filter: blur(16px);
        padding: 24px;
        gap: 16px;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .nav-links a { font-size: 1rem; }

    .nav-toggle:checked ~ .nav-links {
        transform: translateY(0);
    }

    .nav-toggle:checked ~ .nav-hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle:checked ~ .nav-hamburger span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .nav-hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero { padding: 120px 20px 72px; min-height: auto; }
    .section { padding: 64px 20px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card-wide { grid-column: span 1; }
    .bento-card-gradient { grid-column: span 1; }
    .bento-card-gradient-inner { flex-direction: column; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .status-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-links { gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
    .cta-card { padding: 40px 24px; }
    .play-cta-details { flex-direction: column; gap: 12px; }
    .showcase-demos { flex-direction: column; }
    .section-header-split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .comparison-table { font-size: 0.8rem; }
    .comparison-table th,
    .comparison-table td { padding: 12px 14px; }
    .sdk-outer-card { padding: 24px; }
}
