/*
   Agentic SWMM Workflow — design system
   Light theme · verification-first stormwater modeling
   Ported from prototype variant B. Zero build step.
*/

/* ============ DESIGN TOKENS ============ */
:root {
    --blue-50:#f0f9ff; --blue-100:#e0f2fe; --blue-200:#bae6fd; --blue-300:#7dd3fc;
    --blue-400:#38bdf8; --blue-500:#0ea5e9; --blue-600:#0284c7; --blue-700:#0369a1;
    --blue-800:#075985; --blue-900:#0c4a6e;
    --slate-50:#f8fafc; --slate-100:#f1f5f9; --slate-200:#e2e8f0; --slate-300:#cbd5e1;
    --slate-400:#94a3b8; --slate-500:#64748b; --slate-600:#475569; --slate-700:#334155;
    --slate-800:#1e293b; --slate-900:#0f172a;
    --bg-page:#f8fafc; --bg-surface:#ffffff;
    --text-1:#1e293b; --text-2:#475569; --text-3:#64748b;
    --accent:#0284c7; --accent-hover:#0369a1; --border:#e2e8f0;
    --font-head:'Sora', system-ui, sans-serif;
    --font-body:'Inter', system-ui, sans-serif;
    --font-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    /* type scale — modular, consistent display-tier ratio (~1.7) */
    --fs-display:clamp(2.5rem, 4.8vw, 4rem);
    --fs-h2:clamp(1.875rem, 3.2vw, 2.5rem);
    --fs-h3:1.5rem;
    --fs-lead:clamp(1.125rem, 1.5vw, 1.3rem);
    --fs-stat:clamp(2.25rem, 3.4vw, 2.85rem);
    --fs-eyebrow:0.8rem;
    --radius-sm:8px; --radius-md:12px; --radius-lg:16px; --radius-pill:999px;
    --shadow-xs:0 1px 2px rgba(15,23,42,.04);
    --shadow-sm:0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md:0 4px 12px -2px rgba(15,23,42,.08), 0 2px 6px -2px rgba(15,23,42,.06);
    --shadow-lg:0 12px 32px -8px rgba(15,23,42,.12), 0 4px 12px -4px rgba(15,23,42,.08);
    --section-pad:clamp(4rem, 8vw, 6.5rem);
    --container:1200px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
    font-family:var(--font-body); background:var(--bg-page); color:var(--text-1);
    line-height:1.65; -webkit-font-smoothing:antialiased;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
h1, h2, h3, h4 { font-family:var(--font-head); line-height:1.15; color:var(--text-1); font-weight:700; }
ul { list-style:none; }
code { font-family:var(--font-mono); font-size:.95em; }

.container { max-width:var(--container); margin:0 auto; padding:0 clamp(1.25rem, 4vw, 2.5rem); }
.grad {
    background:linear-gradient(120deg, var(--text-1) 0%, var(--accent) 100%);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.eyebrow {
    display:inline-block; font-family:var(--font-head); font-weight:600;
    font-size:var(--fs-eyebrow); letter-spacing:.14em; text-transform:uppercase;
    color:var(--accent); margin-bottom:1rem;
}

/* ============ BUTTONS ============ */
.btn {
    display:inline-flex; align-items:center; justify-content:center; gap:.45rem;
    font-family:var(--font-head); font-weight:600; font-size:.95rem;
    padding:.8rem 1.45rem; border-radius:var(--radius-md); border:1px solid transparent;
    cursor:pointer;
    transition:transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}
.btn-primary { background:var(--accent); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover { background:var(--accent-hover); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-outline { background:#fff; border-color:var(--border); color:var(--text-1); }
.btn-outline:hover { border-color:var(--accent); color:var(--accent); transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.btn-ghost { color:var(--text-1); }
.btn-ghost:hover { color:var(--accent); }
.btn-row { display:flex; gap:.75rem; flex-wrap:wrap; }

/* ============ NAV (shared) ============ */
.nav {
    position:sticky; top:0; z-index:50;
    background:rgba(255,255,255,.85); backdrop-filter:blur(12px);
    border-bottom:1px solid var(--border);
}
.nav-inner { display:flex; align-items:center; justify-content:space-between; height:64px; }
.nav-brand { display:flex; align-items:center; }
.nav-brand img { height:40px; width:auto; display:block; }
.nav-menu { display:flex; gap:1.6rem; }
.nav-link { font-size:.92rem; color:var(--text-2); font-weight:500; padding:.4rem 0; position:relative; transition:color .25s; }
.nav-link:hover, .nav-link.is-active { color:var(--accent); }
.nav-link.is-active::after { content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:var(--accent); border-radius:2px; }
.nav-toggle { display:none; background:none; border:none; font-size:1.4rem; cursor:pointer; color:var(--text-1); }

/* ============ SECTION HEADS (shared) ============ */
.section-head { margin-bottom:2.75rem; }
.section-head-center { text-align:center; max-width:42rem; margin-left:auto; margin-right:auto; }
.section-head h2 { font-size:var(--fs-h2); font-weight:700; line-height:1.16; letter-spacing:-.022em; }

/* ============ HOMEPAGE — VARIANT B ============ */
.vb-hero {
    padding:clamp(3rem, 6vw, 5rem) 0 var(--section-pad);
    background:
        radial-gradient(55rem 28rem at 82% -12%, var(--blue-100), transparent 62%),
        linear-gradient(180deg, #fff, var(--bg-page));
}
.vb-hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(2rem, 4vw, 4rem); align-items:center; }
.vb-h1 { font-size:var(--fs-display); font-weight:800; line-height:1.06; letter-spacing:-.032em; margin-bottom:1.15rem; }
.vb-lead { font-size:var(--fs-lead); line-height:1.6; color:var(--text-2); margin-bottom:1.85rem; max-width:34rem; }
.vb-trust { display:flex; flex-wrap:wrap; gap:.55rem 1.3rem; margin-top:1.85rem; }
.vb-trust li { font-size:.85rem; color:var(--text-3); font-weight:500; position:relative; padding-left:1.05rem; }
.vb-trust li::before { content:''; position:absolute; left:0; top:.5rem; width:6px; height:6px; border-radius:50%; background:var(--blue-400); }

.vb-hero-visual { display:grid; gap:1.4rem; }
.vb-hero-logo {
    width:100%; height:auto; max-height:220px;
    object-fit:contain; display:block;
}

.vb-terminal {
    background:var(--slate-900); border:1px solid var(--slate-800);
    border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg);
}
.vb-term-bar { display:flex; align-items:center; gap:.4rem; padding:.7rem 1rem; background:var(--slate-800); }
.vb-term-bar i { width:11px; height:11px; border-radius:50%; display:block; }
.vb-term-bar i:nth-child(1) { background:#f87171; }
.vb-term-bar i:nth-child(2) { background:#fbbf24; }
.vb-term-bar i:nth-child(3) { background:#34d399; }
.vb-term-bar em { margin-left:auto; font-style:normal; color:var(--slate-400); font-size:.8rem; font-family:var(--font-head); }
.vb-term-body {
    padding:1.3rem 1.45rem; font-family:var(--font-mono);
    font-size:.86rem; line-height:1.95; color:var(--slate-300); white-space:pre-wrap;
}
.vb-term-body .c-prompt { color:var(--blue-400); }
.vb-term-body .c-ok { color:#34d399; }
.vb-term-body .c-dim { color:var(--slate-500); }

.vb-layers { padding:var(--section-pad) 0; background:var(--blue-50); }
.vb-cards { display:grid; grid-template-columns:repeat(3, 1fr); gap:1.25rem; }
.vb-card {
    background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:2rem 1.8rem; box-shadow:var(--shadow-sm);
    transition:transform .3s ease, box-shadow .3s ease;
}
.vb-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.vb-card-num {
    display:inline-flex; align-items:center; justify-content:center;
    width:2.5rem; height:2.5rem; border-radius:var(--radius-md);
    background:var(--blue-100); color:var(--blue-700);
    font-family:var(--font-head); font-weight:700; margin-bottom:1.15rem;
}
.vb-card h3 { font-size:var(--fs-h3); font-weight:700; line-height:1.2; letter-spacing:-.014em; margin-bottom:.55rem; }
.vb-card p { color:var(--text-2); font-size:.96rem; }

.vb-diagram { padding:var(--section-pad) 0; }
.vb-diagram-frame {
    background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:clamp(1.25rem, 3vw, 2.5rem); box-shadow:var(--shadow-lg); overflow:hidden;
}
.vb-diagram-frame img { transition:transform .45s cubic-bezier(.22, 1, .36, 1); }
.vb-diagram-frame:hover img { transform:scale(1.025); }

/* homepage project video */
.vb-video { padding:0 0 var(--section-pad); }
.vb-video-frame {
    background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:clamp(.6rem, 1.4vw, 1rem); box-shadow:var(--shadow-lg); overflow:hidden;
}
.vb-video-frame video {
    display:block; width:100%; aspect-ratio:16 / 9;
    border-radius:var(--radius-md); background:var(--slate-900);
}

.vb-stats { padding:0 0 var(--section-pad); }
.vb-stats-grid {
    display:grid; grid-template-columns:repeat(4, 1fr);
    background:var(--bg-surface); border:1px solid var(--border);
    border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md);
}
.vb-stat { padding:2.1rem 1.5rem; text-align:center; }
.vb-stat + .vb-stat { border-left:1px solid var(--border); }
.vb-stat-n { display:block; font-family:var(--font-head); font-size:var(--fs-stat); font-weight:800; line-height:1; letter-spacing:-.02em; color:var(--accent); }
.vb-stat-l { font-size:.8rem; color:var(--text-3); text-transform:uppercase; letter-spacing:.07em; font-weight:600; }

.vb-explore { padding:var(--section-pad) 0; background:var(--blue-50); }
.vb-explore-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:1.25rem; }
.vb-ex-card {
    background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:1.8rem; box-shadow:var(--shadow-sm);
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.vb-ex-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--blue-300); }
.vb-ex-card h3 { font-size:1.3rem; font-weight:700; letter-spacing:-.014em; margin-bottom:.4rem; color:var(--accent); }
.vb-ex-card p { color:var(--text-2); font-size:.95rem; }

/* ============ HOMEPAGE — ECOSYSTEM ============ */
.vb-eco { padding:var(--section-pad) 0; }
.vb-eco-sub {
    font-size:var(--fs-lead); color:var(--text-2); line-height:1.6;
    margin-top:1rem; max-width:44rem; margin-left:auto; margin-right:auto;
}

/* featured card — SWMMCanada (upstream) */
.vb-eco-feature {
    display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(1.5rem, 3vw, 3rem);
    align-items:center;
    background:
        radial-gradient(38rem 20rem at 100% 0%, var(--blue-50), transparent 65%),
        var(--bg-surface);
    border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:clamp(1.75rem, 3.5vw, 2.75rem);
    box-shadow:var(--shadow-md); margin-bottom:1.25rem;
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.vb-eco-feature:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--blue-300); }
.vb-eco-badge {
    display:inline-block; font-family:var(--font-head); font-weight:600;
    font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
    color:var(--blue-700); background:var(--blue-100);
    padding:.35rem .75rem; border-radius:var(--radius-pill); margin-bottom:1rem;
}
.vb-eco-feature h3 { font-size:1.85rem; font-weight:800; letter-spacing:-.02em; margin-bottom:.6rem; }
.vb-eco-feature-lead { color:var(--text-2); font-size:1.02rem; line-height:1.65; margin-bottom:1.1rem; }
.vb-eco-feature-lead code { color:var(--blue-800); font-weight:600; }
.vb-eco-tags { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.4rem; }
.vb-eco-tags li {
    font-family:var(--font-head); font-size:.78rem; font-weight:600; color:var(--text-2);
    background:var(--slate-50); border:1px solid var(--border);
    padding:.32rem .7rem; border-radius:var(--radius-pill);
}
.vb-eco-link {
    display:inline-flex; align-items:center; gap:.3rem;
    font-family:var(--font-head); font-weight:600; font-size:.95rem; color:var(--accent);
    transition:gap .25s ease;
}
.vb-eco-feature:hover .vb-eco-link, .vb-eco-card:hover .vb-eco-link { gap:.6rem; }

/* flow visual — SWMMCanada hands off to Agentic SWMM */
.vb-eco-flow {
    display:grid; gap:.5rem; padding:1.4rem;
    background:var(--blue-50); border:1px solid var(--blue-100); border-radius:var(--radius-md);
}
.vb-eco-node {
    display:grid; grid-template-columns:auto 1fr; column-gap:.85rem; row-gap:.15rem;
    align-items:center;
    background:#fff; border:1px solid var(--border); border-radius:var(--radius-sm);
    padding:.8rem 1rem; box-shadow:var(--shadow-xs);
}
.vb-eco-node-k {
    grid-row:1 / -1; align-self:center;
    display:inline-flex; align-items:center; justify-content:center;
    min-width:2.7rem; height:2.1rem; padding:0 .5rem; border-radius:6px;
    background:var(--slate-100); color:var(--slate-600);
    font-family:var(--font-mono); font-weight:700; font-size:.78rem;
}
.vb-eco-node p { grid-column:2; font-size:.92rem; font-weight:600; color:var(--text-1); line-height:1.25; }
.vb-eco-node em { grid-column:2; font-style:normal; font-size:.76rem; color:var(--text-3); }
.vb-eco-node--file .vb-eco-node-k { background:var(--blue-100); color:var(--blue-700); }
.vb-eco-node--run { border-color:var(--blue-300); box-shadow:0 0 0 1px var(--blue-200) inset, var(--shadow-xs); }
.vb-eco-node--run .vb-eco-node-k { background:var(--accent); color:#fff; }
.vb-eco-conn { width:2px; height:1.1rem; margin-left:1.85rem; background:var(--blue-200); border-radius:2px; }

/* sibling cards — Agentic MIKE+ / Hydrology Platform */
.vb-eco-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:1.25rem; }
.vb-eco-card {
    display:flex; flex-direction:column; align-items:flex-start;
    background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:1.8rem; box-shadow:var(--shadow-sm);
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.vb-eco-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--blue-300); }
.vb-eco-kicker {
    font-family:var(--font-head); font-size:.75rem; font-weight:600; letter-spacing:.08em;
    text-transform:uppercase; color:var(--accent); margin-bottom:.6rem;
}
.vb-eco-card h3 { font-size:1.3rem; font-weight:700; letter-spacing:-.014em; margin-bottom:.5rem; }
.vb-eco-card p { color:var(--text-2); font-size:.95rem; line-height:1.6; margin-bottom:1.1rem; }
.vb-eco-card .vb-eco-link { margin-top:auto; }

/* ============ CONTENT PAGES — inner-page components ============ */
/* These power vision / features / validation / download / contact.
   Same tokens, radius, shadows, fonts as the homepage. */

/* inner-page header — page title + eyebrow on the light background */
.page-header {
    padding:clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(48rem 22rem at 86% -20%, var(--blue-100), transparent 60%),
        linear-gradient(180deg, #fff, var(--bg-page));
    border-bottom:1px solid var(--border);
}
.page-header-inner { max-width:50rem; }
.page-header h1 {
    font-size:clamp(2.25rem, 4vw, 3.25rem); font-weight:800;
    line-height:1.1; letter-spacing:-.028em;
}
.page-header .page-lead {
    font-size:var(--fs-lead); line-height:1.6; color:var(--text-2);
    margin-top:1rem; max-width:42rem;
}

/* prose content section */
.content-section { padding:var(--section-pad) 0; }
.content-section .container { max-width:54rem; }
.content-section-wide .container { max-width:var(--container); }
.content-section h2 {
    font-size:var(--fs-h2); font-weight:700; line-height:1.16;
    letter-spacing:-.022em; margin:2.75rem 0 1rem;
}
.content-section h2:first-child { margin-top:0; }
.content-section h3 {
    font-size:var(--fs-h3); font-weight:700; letter-spacing:-.014em;
    margin:2rem 0 .75rem;
}
.content-section p {
    color:var(--text-2); font-size:1.05rem; line-height:1.75; margin-bottom:1.1rem;
}
.content-section ul, .content-section ol {
    margin:0 0 1.5rem 1.4rem; padding-left:.6rem;
}
.content-section ul { list-style:disc; }
.content-section ol { list-style:decimal; }
.content-section li {
    color:var(--text-2); font-size:1.05rem; line-height:1.7; margin-bottom:.6rem;
}
.content-section li::marker { color:var(--blue-400); }
.content-section strong { color:var(--text-1); font-weight:600; }
.content-section code {
    background:var(--blue-50); color:var(--blue-800);
    padding:.12em .42em; border-radius:6px; font-size:.88em;
    border:1px solid var(--blue-100);
}
.content-section a:not(.btn) { color:var(--accent); font-weight:500; }
.content-section a:not(.btn):hover { color:var(--accent-hover); text-decoration:underline; }

/* highlight / callout box */
.highlight-box {
    background:var(--blue-50); border:1px solid var(--blue-100);
    border-left:4px solid var(--accent); border-radius:var(--radius-md);
    padding:1.5rem 1.75rem; margin:2rem 0; box-shadow:var(--shadow-xs);
}
.highlight-box p {
    margin:0; color:var(--text-1); font-size:1.08rem; font-weight:500;
    font-style:italic; line-height:1.65;
}
.highlight-box p + p { margin-top:.75rem; }

/* dark terminal-style code block */
.code-block {
    position:relative;
    background:var(--slate-900); border:1px solid var(--slate-800);
    border-radius:var(--radius-md); overflow:hidden;
    margin:1rem 0 2rem; box-shadow:var(--shadow-md);
}
.code-block code, .code-block pre {
    display:block; padding:1.15rem 3.6rem 1.15rem 1.35rem;
    font-family:var(--font-mono); font-size:.88rem; line-height:1.85;
    color:var(--slate-300); white-space:pre; overflow-x:auto;
    background:none; border:none;
}
.code-block .c-prompt { color:var(--blue-400); }
.code-block .c-ok { color:#34d399; }
.code-block .c-dim { color:var(--slate-500); }
/* code block with a faux terminal title bar */
.code-block-bar {
    display:flex; align-items:center; gap:.4rem;
    padding:.6rem 1rem; background:var(--slate-800);
}
.code-block-bar i { width:11px; height:11px; border-radius:50%; display:block; }
.code-block-bar i:nth-child(1) { background:#f87171; }
.code-block-bar i:nth-child(2) { background:#fbbf24; }
.code-block-bar i:nth-child(3) { background:#34d399; }
.code-block-bar em {
    margin-left:auto; font-style:normal; color:var(--slate-400);
    font-size:.8rem; font-family:var(--font-head);
}

/* installer / command panel */
.installer-panel {
    background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:clamp(1.25rem, 3vw, 2rem);
    margin:1.5rem 0 2rem; box-shadow:var(--shadow-sm);
}
.installer-command + .installer-command {
    margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid var(--border);
}
.installer-command h3 {
    font-size:1.05rem; font-weight:700; color:var(--text-1);
    letter-spacing:-.01em; margin:0 0 .65rem;
}
.installer-command .code-block { margin:0; }

/* install method tabs + copy button (download page) */
.install-tabs {
    background:var(--bg-surface); border:1px solid var(--border);
    border-radius:var(--radius-lg); overflow:hidden;
    box-shadow:var(--shadow-sm); margin:1.5rem 0 2rem;
}
.install-tab-list {
    display:flex; gap:.35rem; padding:.6rem;
    background:var(--slate-50); border-bottom:1px solid var(--border);
    overflow-x:auto;
}
.install-tab {
    flex:0 0 auto; border:1px solid transparent; border-radius:var(--radius-sm);
    background:transparent; color:var(--text-2); cursor:pointer;
    font-family:var(--font-head); font-size:.9rem; font-weight:600;
    padding:.55rem .95rem;
    transition:color .25s ease, background .25s ease, border-color .25s ease;
}
.install-tab:hover { color:var(--accent); }
.install-tab.is-active {
    background:var(--bg-surface); border-color:var(--border);
    color:var(--accent); box-shadow:var(--shadow-xs);
}
.install-panel { padding:clamp(1.25rem, 3vw, 1.85rem); }
.install-panel[hidden] { display:none; }
.install-label {
    display:block; font-family:var(--font-head); color:var(--accent);
    font-size:.78rem; font-weight:600; letter-spacing:.08em;
    text-transform:uppercase; margin-bottom:.5rem;
}
.install-panel h3 {
    font-size:var(--fs-h3); font-weight:700; letter-spacing:-.014em;
    margin-bottom:.4rem;
}
.install-panel p { color:var(--text-2); font-size:.98rem; margin:.9rem 0; }
.install-panel p:first-of-type { margin-top:0; }
.install-panel .code-block { margin:.6rem 0; }
.install-panel .code-block:last-child { margin-bottom:0; }

.copy-btn {
    position:absolute; top:.5rem; right:.5rem;
    display:inline-flex; align-items:center;
    padding:.32rem .62rem; border-radius:var(--radius-sm);
    border:1px solid var(--slate-700); background:var(--slate-800);
    color:var(--slate-300); cursor:pointer;
    font-family:var(--font-head); font-size:.72rem; font-weight:600; line-height:1;
    transition:color .25s ease, background .25s ease, border-color .25s ease;
}
.copy-btn:hover { color:#fff; background:var(--slate-700); border-color:var(--slate-600); }
.copy-btn.is-copied { color:#34d399; border-color:#34d399; }

/* citation block */
.citation-block {
    background:#fff; border:1px solid var(--border);
    border-left:4px solid var(--blue-300); border-radius:var(--radius-md);
    padding:1.5rem 1.75rem; margin:1.5rem 0 2rem;
    box-shadow:var(--shadow-xs);
    font-size:.98rem; line-height:1.7; color:var(--text-2);
}
.citation-block strong { color:var(--text-1); font-weight:600; }
.citation-block em { color:var(--text-1); }
.citation-block a { color:var(--accent); font-weight:500; word-break:break-word; }
.citation-block a:hover { color:var(--accent-hover); text-decoration:underline; }

/* data table */
.table-wrap {
    width:100%; overflow-x:auto; margin:2rem 0;
    border:1px solid var(--border); border-radius:var(--radius-lg);
    background:#fff; box-shadow:var(--shadow-sm);
}
.data-table { width:100%; min-width:680px; border-collapse:collapse; }
.data-table th, .data-table td {
    padding:1rem 1.15rem; border-bottom:1px solid var(--border);
    text-align:left; vertical-align:top;
}
.data-table thead th {
    background:var(--blue-50); color:var(--blue-800);
    font-family:var(--font-head); font-size:.82rem; font-weight:700;
    text-transform:uppercase; letter-spacing:.05em;
}
.data-table tbody tr:last-child td { border-bottom:none; }
.data-table tbody tr:hover { background:var(--slate-50); }
.data-table td { color:var(--text-2); font-size:.95rem; line-height:1.6; }
.data-table td strong { color:var(--text-1); font-weight:600; }

/* details / summary accordion */
details {
    background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-md); padding:1rem 1.25rem;
    margin-bottom:1rem; box-shadow:var(--shadow-xs);
}
details[open] { box-shadow:var(--shadow-sm); }
summary {
    font-family:var(--font-head); font-weight:600; font-size:1.02rem;
    color:var(--text-1); cursor:pointer; list-style:none;
    display:flex; align-items:center; gap:.6rem;
}
summary::-webkit-details-marker { display:none; }
summary::before {
    content:'+'; display:inline-flex; align-items:center; justify-content:center;
    width:1.4rem; height:1.4rem; flex-shrink:0;
    background:var(--blue-50); color:var(--accent);
    border-radius:6px; font-weight:700; font-size:1rem;
    transition:transform .2s ease;
}
details[open] summary::before { content:'\2212'; }
details > *:not(summary) { margin-top:1rem; }

/* CTA row + inline link */
.cta-row {
    display:flex; gap:.75rem; flex-wrap:wrap; margin-top:2.5rem;
}
.cta-row-center { justify-content:center; }
.inline-link { color:var(--accent); font-weight:500; }
.inline-link:hover { color:var(--accent-hover); text-decoration:underline; }

/* figure + caption */
.figure {
    margin:2rem 0;
}
.figure-frame {
    background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:clamp(1rem, 2.5vw, 1.75rem); box-shadow:var(--shadow-md); overflow:hidden;
}
.figure-frame img { border-radius:var(--radius-sm); margin:0 auto; width:100%; }
.figure figcaption {
    text-align:center; font-size:.9rem; color:var(--text-3);
    margin-top:1rem; line-height:1.55;
}

/* ============ FOOTER (shared) ============ */
.site-footer { background:#fff; border-top:1px solid var(--border); padding:clamp(3rem, 5vw, 4rem) 0 2rem; }
.footer-grid { display:grid; grid-template-columns:1.4fr 2fr; gap:3rem; }
.footer-logo { height:46px; width:auto; margin-bottom:.9rem; }
.footer-brand p { color:var(--text-3); font-size:.95rem; max-width:24rem; }
.footer-cols { display:grid; grid-template-columns:repeat(4, 1fr); gap:1.5rem; }
.footer-col h4 { font-family:var(--font-head); font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:.9rem; }
.footer-col a { display:block; color:var(--text-2); font-size:.9rem; margin-bottom:.5rem; transition:color .25s; }
.footer-col a:hover { color:var(--accent); }
.footer-base {
    margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid var(--border);
    display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
    font-size:.85rem; color:var(--text-3);
}

/* ============ MOTION — typewriter cursor + scroll reveal ============ */
.tw-cursor {
    display:inline-block; width:.055em; height:.9em; vertical-align:baseline;
    background:var(--accent); margin-left:.07em; translate:0 .1em; border-radius:1px;
    animation:tw-blink 1s step-end infinite;
}
.tw-cursor--done { animation:none; opacity:0; transition:opacity .45s ease; }
@keyframes tw-blink { 0%, 100% { opacity:1; } 50% { opacity:0; } }

.reveal { opacity:0; translate:0 22px; transition:opacity .85s ease, translate .85s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity:1; translate:0 0; }
.reveal-img { opacity:0; translate:0 26px; scale:.965; transition:opacity 1.05s ease, translate 1.15s cubic-bezier(.22, 1, .36, 1), scale 1.15s cubic-bezier(.22, 1, .36, 1); }
.reveal-img.is-visible { opacity:1; translate:0 0; scale:1; }
.vb-cards .reveal:nth-child(2) { transition-delay:.13s; }
.vb-cards .reveal:nth-child(3) { transition-delay:.26s; }
.vb-explore-grid .reveal:nth-child(2) { transition-delay:.1s; }
.vb-explore-grid .reveal:nth-child(3) { transition-delay:.2s; }
.vb-explore-grid .reveal:nth-child(4) { transition-delay:.3s; }
.vb-eco-grid .reveal:nth-child(2) { transition-delay:.1s; }
@media (prefers-reduced-motion:reduce) {
    .reveal, .reveal-img { opacity:1 !important; translate:0 0 !important; scale:1 !important; }
    .tw-cursor { display:none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width:900px) {
    .nav-menu {
        display:none; position:absolute; top:64px; left:0; right:0;
        background:#fff; flex-direction:column; padding:1.25rem;
        border-bottom:1px solid var(--border); box-shadow:var(--shadow-md);
    }
    .nav-menu.is-open { display:flex; }
    .nav-toggle { display:block; }
    .vb-hero-grid { grid-template-columns:1fr; }
    .vb-cards { grid-template-columns:1fr; }
    .vb-stats-grid { grid-template-columns:1fr 1fr; }
    .vb-stat:nth-child(3) { border-left:none; }
    .vb-explore-grid { grid-template-columns:1fr; }
    .vb-eco-feature { grid-template-columns:1fr; }
    .vb-eco-grid { grid-template-columns:1fr; }
    .footer-grid { grid-template-columns:1fr; gap:2rem; }
    .footer-cols { grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:560px) {
    .vb-stats-grid { grid-template-columns:1fr; }
    .vb-stat + .vb-stat { border-left:none; border-top:1px solid var(--border); }
    .footer-cols { grid-template-columns:1fr 1fr; }
    .cta-row .btn { flex:1 1 100%; }
}
@media (prefers-reduced-motion:reduce) {
    * { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
