/* =============================================================
   EngMind — Institutional Site
   Visual identity matches beta.engmind.ai (dark, technical, GitHub-style)
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Background layers (from beta) */
    --bg-dark: #0d1117;
    --bg-panel: #161b22;
    --bg-card: #1c2128;
    --bg-input: #0d1117;
    --bg-hover: #21262d;

    /* Borders */
    --border: #30363d;
    --border-light: #484f58;

    /* Text */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    /* Accent (brand) */
    --accent: #2f81f7;
    --accent-hover: #79c0ff;
    --accent-soft: rgba(47, 129, 247, 0.12);

    /* Brand gradients — refined for executive feel
       (tighter blue→indigo→violet range, less cyan/magenta saturation) */
    --brand-gradient: linear-gradient(135deg, #38bdf8 0%, #2f81f7 35%, #6366f1 70%, #a855f7 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.12));

    /* Severity (for mockup screens) */
    --critical: #E53E3E;
    --high: #DD6B20;
    --medium: #ECC94B;
    --low: #38A169;
    --info: #3182CE;

    /* Score */
    --score-good: #38A169;
    --score-warn: #DD6B20;
    --score-bad: #E53E3E;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 80px;
    --space-4xl: 120px;

    /* Radius */
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 14px;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, monospace;

    /* Container */
    --max-w: 1240px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

button { cursor: pointer; font-family: inherit; }

.hidden { display: none !important; }

/* =============================================================
   Container
   ============================================================= */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =============================================================
   Top Navigation
   ============================================================= */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-xl);
    height: 96px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
.nav-brand { display: flex; align-items: center; gap: var(--space-sm); }
.nav-brand img { height: 68px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-left: auto; /* push the menu to the right side */
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.nav-cta .btn {
    padding: 12px 22px;
    font-size: 15px;
}
.nav-cta .btn-ghost {
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* =============================================================
   Buttons
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #0d1117;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}
.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.btn-lg {
    padding: 14px 26px;
    font-size: 15px;
}

/* =============================================================
   Sections
   ============================================================= */
section {
    padding: var(--space-3xl) 0;
    position: relative;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}
.section-title {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    max-width: 820px;
}
.section-subtitle {
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 129, 247, 0.10), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    pointer-events: none;
}

/* =============================================================
   Home hero — Unsiloed-style schematic, animated, B2B
   (scoped to .home-hero so About / other pages keep their styles)
   ============================================================= */
.home-hero {
    position: relative;
    /* top tighter than base .hero, but bottom matches space-3xl so the
       gap to the first section is the same across every page */
    padding: clamp(40px, 5vw, 60px) 0 var(--space-3xl);
    min-height: calc(100vh - 96px); /* viewport minus nav, fits screen */
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background-image:
        linear-gradient(rgba(47,129,247,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47,129,247,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: 0 0;
    animation: hero-grid-drift 60s linear infinite;
}
.home-hero .container { width: 100%; }
@keyframes hero-grid-drift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 48px 48px, 48px 48px; }
}
.home-hero::before {
    content: "";
    position: absolute;
    top: -260px; left: 50%;
    transform: translateX(-50%);
    width: 1400px; height: 800px;
    background: radial-gradient(ellipse at center, rgba(47,129,247,0.16) 0%, rgba(47,129,247,0.06) 35%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.home-hero::after {
    content: "";
    position: absolute;
    top: 20%; right: -200px;
    width: 900px; height: 700px;
    background: radial-gradient(ellipse at center, rgba(47,129,247,0.13) 0%, rgba(47,129,247,0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero .hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
    align-items: center;
}
@media (max-width: 1100px) {
    .home-hero .hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: stretch; }
}
.home-hero .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.home-hero .hero-eyebrow .label { color: var(--accent); }
.home-hero .hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(47,129,247,0.6);
    animation: hero-pulse 1.6s ease-in-out infinite;
}
@keyframes hero-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}
.home-hero .hero-title {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0 0 18px;
    color: var(--text-primary);
}
.home-hero .hero-title .accent {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    padding-bottom: 0.14em;
    line-height: 1.15;
    display: inline-block;
}
.home-hero .hero-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 460px;
}
.home-hero .hero-sub strong {
    display: inline-block;
    margin-top: 10px;
    color: var(--text-primary);
    font-weight: 600;
}
.home-hero .hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.home-hero .hero-cta .btn { font-size: 13px; padding: 11px 18px; }
.home-hero .hero-cta .btn-lg { padding: 12px 20px; font-size: 13.5px; }
.home-hero .hero-meta {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.home-hero .hero-meta-item .v {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}
.home-hero .hero-meta-item .k {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Right column — animated stage.
   Aspect-ratio is on the inner element (.hero-drawing / .chat-main / .modules-body)
   so the highlight % coordinates on the canvas drawing match the original layout. */
.home-hero .hero-stage {
    position: relative;
    background: #0b0e13;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 30px 80px -20px rgba(0,0,0,0.7),
        0 0 0 1px rgba(255,255,255,0.02);
    display: grid;
    grid-template-rows: auto 1fr;
    width: 100%;
}
.home-hero .hero-stage-bar {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 9px 14px;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.home-hero .hero-stage-bar .tdot { width: 8px; height: 8px; border-radius: 50%; }
.home-hero .hero-stage-bar .tdot.r { background: #ff5f56; }
.home-hero .hero-stage-bar .tdot.y { background: #ffbd2e; }
.home-hero .hero-stage-bar .tdot.g { background: #27c93f; }
.home-hero .hero-stage-bar .url { margin-left: 6px; color: var(--text-secondary); }
.home-hero .hero-stage-bar .url .sep { color: var(--text-muted); margin: 0 6px; }
.home-hero .hero-stage-bar .live {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.home-hero .hero-stage-bar .live .ldot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: hero-pulse 1.4s ease-in-out infinite;
}
.home-hero .hero-stage-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
}
@media (max-width: 720px) {
    .home-hero .hero-stage-body { grid-template-columns: 1fr; }
}
.home-hero .hero-drawing {
    position: relative;
    background: #f4f1e9;
    overflow: hidden;
    border-right: 1px solid var(--border);
    cursor: crosshair;
    aspect-ratio: 1024 / 572;
    width: 100%;
}
.home-hero .hero-drawing img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.home-hero .hl {
    position: absolute;
    border: 1.5px solid;
    border-radius: 3px;
    pointer-events: auto;
    cursor: pointer;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: scale(0.6);
}
.home-hero .hl.is-revealed { opacity: 1; transform: scale(1); }
.home-hero .hl::before {
    content: attr(data-num);
    position: absolute;
    top: -10px; left: -10px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--bg);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.home-hero .hl[data-sev="critical"] { border-color: var(--critical); --bg: var(--critical); background: rgba(229,62,62,0.12); }
.home-hero .hl[data-sev="high"]     { border-color: var(--high);     --bg: var(--high);     background: rgba(221,107,32,0.12); }
.home-hero .hl[data-sev="medium"]   { border-color: var(--medium);   --bg: var(--medium);   background: rgba(236,201,75,0.14); }
.home-hero .hl[data-sev="low"]      { border-color: var(--low);      --bg: var(--low);      background: rgba(56,161,105,0.12); }
.home-hero .hl.is-active {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 0 3px var(--bg), 0 0 30px var(--bg);
    z-index: 4;
}
.home-hero .hl:hover { background: rgba(255,255,255,0.22); }
.home-hero .hl-bar {
    position: absolute;
    bottom: -8px; left: 0;
    height: 2px;
    background: var(--bg);
    width: 0;
    opacity: 0.7;
    transition: width 0.6s ease;
}
.home-hero .hl.is-processed .hl-bar { width: 100%; }
.home-hero .hero-cursor {
    position: absolute;
    top: 0; left: 0;
    width: 18px; height: 22px;
    pointer-events: none;
    z-index: 6;
    transition: transform 1.3s cubic-bezier(0.45, 0.05, 0.25, 1);
    will-change: transform;
}
.home-hero .hero-cursor svg { display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); }
.home-hero .hero-cursor .clabel {
    position: absolute;
    top: 22px; left: 14px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: #fff;
    background: var(--accent);
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.home-hero .hero-cursor.has-label .clabel { opacity: 1; transform: translateY(0); }
.home-hero .hero-stage.is-hovered .hero-cursor { opacity: 0; }
.home-hero .hero-trace {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
}
.home-hero .hero-trace path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.4;
    stroke-dasharray: 5 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.home-hero .hero-trace.is-on path { opacity: 0.75; animation: trace-march 1s linear infinite; }
@keyframes trace-march {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: 16; }
}
.home-hero .hero-scan {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(47,129,247,0.18) 50%, transparent 100%);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
}
.home-hero .hero-scan.is-on { animation: scan-sweep 3s ease-in-out forwards; }
@keyframes scan-sweep {
    0%   { top: -80px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.home-hero .hero-drawing-meta {
    position: absolute;
    top: 10px; left: 12px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: rgba(13,17,23,0.65);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}
.home-hero .hero-drawing-meta .row { display: block; }
.home-hero .hero-drawing-counter {
    position: absolute;
    bottom: 10px; right: 12px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: rgba(13,17,23,0.7);
    letter-spacing: 0.06em;
    z-index: 2;
    pointer-events: none;
    background: rgba(255,255,255,0.7);
    padding: 3px 8px;
    border-radius: 3px;
}
.home-hero .hero-side {
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
}
@media (max-width: 720px) {
    .home-hero .hero-side { border-top: 1px solid var(--border); }
}
.home-hero .hero-side-head {
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border);
}
.home-hero .hero-side-head .title {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.home-hero .hero-side-head .counts { display: flex; gap: 6px; flex-wrap: wrap; }
.home-hero .hero-side-head .chip {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    display: inline-flex; gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.home-hero .hero-side-head .chip[data-sev="critical"] { color: var(--critical); border-color: rgba(229,62,62,0.3); }
.home-hero .hero-side-head .chip[data-sev="high"]     { color: var(--high);     border-color: rgba(221,107,32,0.3); }
.home-hero .hero-side-head .chip[data-sev="medium"]   { color: var(--medium);   border-color: rgba(236,201,75,0.3); }
.home-hero .hero-side-head .chip[data-sev="low"]      { color: var(--low);      border-color: rgba(56,161,105,0.3); }
.home-hero .hero-side-head .chip .n { color: var(--text-primary); }
.home-hero .hero-side-card {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.home-hero .hero-side-card .sev {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-flex; align-items: center; gap: 6px;
}
.home-hero .hero-side-card .sev::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor;
}
.home-hero .hero-side-card[data-sev="critical"] .sev { color: var(--critical); }
.home-hero .hero-side-card[data-sev="high"] .sev     { color: var(--high); }
.home-hero .hero-side-card[data-sev="medium"] .sev   { color: var(--medium); }
.home-hero .hero-side-card[data-sev="low"] .sev      { color: var(--low); }
.home-hero .hero-side-card .ftitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.home-hero .hero-side-card .ftext {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 8px;
}
.home-hero .hero-side-card .fref {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.04em;
    display: inline-block;
    padding: 3px 7px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 3px;
}
.home-hero .hero-side-log {
    flex: 1;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.55;
    color: var(--text-muted);
    background: #0a0d12;
    overflow: hidden;
    max-height: 160px;
}
.home-hero .hero-side-log .ll {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    animation: log-in 0.35s ease forwards;
}
@keyframes log-in {
    from { opacity: 0; transform: translateX(-4px); }
    to   { opacity: 1; transform: translateX(0); }
}
.home-hero .hero-side-log .ll .t { color: var(--text-muted); }
.home-hero .hero-side-log .ll .tag { color: var(--accent); margin-right: 6px; }
.home-hero .hero-side-log .ll .tag.crit { color: var(--critical); }
.home-hero .hero-side-log .ll .tag.warn { color: var(--high); }
.home-hero .hero-side-log .ll .tag.ok   { color: var(--low); }
.home-hero .hero-side-log .cur { color: var(--accent); animation: hero-pulse 1s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .home-hero,
    .home-hero .hero-cursor,
    .home-hero .hero-trace path,
    .home-hero .hero-scan,
    .home-hero .hero-eyebrow .dot,
    .home-hero .hero-stage-bar .live .ldot { animation: none !important; }
}

/* =============================================================
   About-page hero — animated EngMind chat (reuses .home-hero)
   Replaces .hero-drawing with .chat-main and .hero-side with chat context
   ============================================================= */
.home-hero .chat-stage {
    /* inherits .hero-stage box styles */
}
.home-hero .chat-body {
    /* override grid columns: chat needs more main width than canvas */
    grid-template-columns: minmax(0, 1fr) 260px;
    height: 100%;
    min-width: 0;
}
@media (max-width: 720px) {
    .home-hero .chat-body { grid-template-columns: 1fr; }
}
.home-hero .chat-main {
    position: relative;
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    overflow: hidden;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1024 / 572;
    min-width: 0;
}
.home-hero .chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.home-hero .chat-thread::-webkit-scrollbar { display: none; }

/* Each appended message — fade in from below, then sit */
.home-hero .chat-msg {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.home-hero .chat-msg.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Message row */
.home-hero .chat-msg { display: flex; gap: 12px; align-items: flex-start; }
.home-hero .chat-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    overflow: hidden;
}
.home-hero .chat-avatar.user { background: #3a4452; }
.home-hero .chat-avatar.assistant {
    background: #0d1117;
    box-shadow: 0 0 0 1px rgba(47,129,247,0.25);
    padding: 0;
}
.home-hero .chat-avatar.assistant img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.home-hero .chat-msg-body { flex: 1; min-width: 0; }
.home-hero .chat-msg-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.home-hero .chat-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}
.home-hero .chat-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}
.home-hero .chat-role {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.home-hero .chat-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.home-hero .chat-tag.cited {
    color: #3fb950;
    border: 1px solid rgba(63,185,80,0.4);
    border-radius: 999px;
    padding: 1px 8px;
}
.home-hero .chat-text {
    font-size: 12.5px;
    color: var(--text-primary);
    line-height: 1.55;
    margin: 0;
}
.home-hero .chat-msg.assistant .chat-text { color: var(--text-secondary); }

/* Reasoning block */
.home-hero .chat-reasoning {
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    overflow: hidden;
}
.home-hero .chat-reasoning-head {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.home-hero .chat-reasoning-head .ar { color: var(--accent); }
.home-hero .chat-reasoning-head .label { color: var(--text-secondary); font-weight: 600; }
.home-hero .chat-step {
    display: block;
    margin: 4px 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.home-hero .chat-step.is-in { opacity: 1; transform: translateX(0); }
.home-hero .chat-step .arrow { color: var(--text-muted); margin-right: 6px; }
.home-hero .chat-step .label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
}
.home-hero .chat-step .text {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.55;
    padding-left: 18px;
    margin-top: 2px;
    white-space: pre-wrap;
    word-break: break-word;
}
.home-hero .chat-step .text .ok   { color: #3fb950; }
.home-hero .chat-step .text .warn { color: #d29922; }
.home-hero .chat-step .text .bad  { color: #f85149; }
.home-hero .chat-step .text .num  { color: var(--text-primary); }

.home-hero .chat-thinking {
    display: inline-flex; gap: 4px; align-items: center;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
}
.home-hero .chat-thinking .pdot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent);
    animation: chat-think 1.2s ease-in-out infinite;
}
.home-hero .chat-thinking .pdot:nth-child(2) { animation-delay: 0.2s; }
.home-hero .chat-thinking .pdot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-think {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1); }
}

/* Right-side context panel */
.home-hero .chat-context { padding: 0; }
.home-hero .chat-context .hero-side-head { padding: 14px 14px 12px; }
.home-hero .chat-context .ctx-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}
.home-hero .ctx-list {
    padding: 12px 14px;
    overflow: hidden;
    flex: 1;
}
.home-hero .ctx-section-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 14px 0 8px;
}
.home-hero .ctx-section-label:first-child { margin-top: 0; }
.home-hero .ctx-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.home-hero .ctx-item:last-child { border-bottom: 0; }
.home-hero .ctx-tag {
    flex-shrink: 0;
    width: 32px; height: 22px;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    display: flex; align-items: center; justify-content: center;
}
.home-hero .ctx-tag.dwg { color: #79c0ff; border-color: rgba(121,192,255,0.3); }
.home-hero .ctx-tag.run { color: #3fb950; border-color: rgba(63,185,80,0.3); }
.home-hero .ctx-tag.std { color: #d29922; border-color: rgba(210,153,34,0.3); }
.home-hero .ctx-content { flex: 1; min-width: 0; }
.home-hero .ctx-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-hero .ctx-meta {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================================
   Engineering Modules hero — animated upload + module + run
   ============================================================= */
.home-hero .modules-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 280px;
    align-items: stretch;
    background: var(--bg-dark);
    aspect-ratio: 1024 / 572;
}
@media (max-width: 720px) {
    .home-hero .modules-body { grid-template-columns: 1fr; aspect-ratio: auto; }
}
.home-hero .upload-area {
    position: relative;
    padding: 22px;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-hero .drop-zone {
    width: 100%;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    background: rgba(47, 129, 247, 0.04);
    padding: 32px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}
.home-hero .drop-zone.is-dragover {
    border-color: var(--accent);
    background: rgba(47, 129, 247, 0.14);
    transform: scale(1.015);
}
.home-hero .drop-icon {
    width: 30px; height: 30px;
    color: var(--accent);
    margin-bottom: 12px;
}
.home-hero .drop-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.home-hero .drop-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.home-hero .drop-btn {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    padding: 9px 22px;
    cursor: pointer;
    transition: background 0.2s;
}
.home-hero .drop-btn:hover { background: var(--accent-hover); }

.home-hero .file-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    animation: file-card-in 0.45s ease forwards;
}
@keyframes file-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.home-hero .file-head {
    display: flex; gap: 10px; align-items: center;
    margin-bottom: 16px;
}
.home-hero .file-icon-wrap {
    width: 36px; height: 36px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.home-hero .file-icon {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
}
.home-hero .file-meta { flex: 1; min-width: 0; }
.home-hero .file-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-hero .file-info {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 3px;
}

.home-hero .progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-hero .progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-input);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
}
.home-hero .progress-fill {
    width: 0%;
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 999px;
    transition: width 0.18s linear;
    box-shadow: 0 0 12px rgba(99,102,241,0.4);
}
.home-hero .progress-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-hero .progress-spinner-wrap {
    width: 18px; height: 18px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.home-hero .progress-spinner {
    width: 100%; height: 100%;
    object-fit: contain;
    animation: modules-spin 1.6s linear infinite;
    filter: drop-shadow(0 0 4px rgba(99,102,241,0.5));
}
@keyframes modules-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.home-hero .progress-pct {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 34px;
    text-align: right;
}
.home-hero .progress-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 10px;
}

/* RIGHT: config */
.home-hero .config-area {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    gap: 14px;
}
.home-hero .config-row { display: flex; flex-direction: column; }
.home-hero .config-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.home-hero .caps-count { color: var(--accent); }

.home-hero .dropdown-wrap { position: relative; }
.home-hero .dropdown {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    text-align: left;
    padding: 9px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s, background 0.2s;
}
.home-hero .dropdown:hover { border-color: var(--accent-border); }
.home-hero .dropdown.is-open { border-color: var(--accent); background: var(--bg-hover); }
.home-hero .dropdown-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-hero .dropdown.is-selected .dropdown-value { color: var(--text-primary); }
.home-hero .dropdown-arrow {
    width: 11px; height: 11px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.home-hero .dropdown.is-open .dropdown-arrow { transform: rotate(180deg); }
.home-hero .dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    list-style: none;
    padding: 4px;
    margin: 0;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 12px 28px -10px rgba(0,0,0,0.7);
    max-height: 180px;
    overflow-y: auto;
}
.home-hero .dropdown-list.is-open {
    opacity: 1; pointer-events: auto;
    transform: translateY(0);
}
.home-hero .dropdown-item {
    padding: 7px 10px;
    font-size: 12px;
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.home-hero .dropdown-item:hover,
.home-hero .dropdown-item.is-hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.home-hero .caps-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.home-hero .caps-list {
    list-style: none; padding: 2px 0; margin: 0;
    display: flex; flex-direction: column; gap: 1px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.home-hero .caps-list::-webkit-scrollbar { width: 6px; }
.home-hero .caps-list::-webkit-scrollbar-track { background: transparent; }
.home-hero .caps-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}
.home-hero .cap-item {
    display: flex; align-items: center; gap: 9px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.home-hero .cap-item:hover,
.home-hero .cap-item.is-hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.home-hero .cap-item .check {
    width: 14px; height: 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: background 0.18s, border-color 0.18s;
}
.home-hero .cap-item.is-checked { color: var(--text-primary); }
.home-hero .cap-item.is-checked .check {
    background: var(--accent);
    border-color: var(--accent);
}
.home-hero .cap-item.is-checked .check::after {
    content: '';
    position: absolute;
    left: 3.5px; top: 0px;
    width: 4px; height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.home-hero .cap-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-hero .run-btn {
    margin-top: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 14px;
    border-radius: var(--radius);
    cursor: not-allowed;
    transition: all 0.25s;
}
.home-hero .run-btn.is-ready {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 12px -2px rgba(47,129,247,0.4);
}
.home-hero .run-btn.is-ready:hover {
    background: var(--accent-hover);
}
.home-hero .run-btn.is-running {
    background: var(--bg-card);
    color: var(--text-muted);
    border-color: var(--border);
    cursor: default;
    box-shadow: none;
}

.home-hero .modules-cursor {
    position: absolute;
    top: 0; left: 0;
    width: 18px; height: 22px;
    pointer-events: none;
    z-index: 20;
    transition: transform 1.1s cubic-bezier(0.45, 0.05, 0.25, 1);
    will-change: transform;
}
.home-hero .modules-cursor svg { display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); }
.home-hero .modules-cursor .clabel {
    position: absolute;
    top: 22px; left: 14px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: #fff;
    background: var(--accent);
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@media (max-width: 720px) {
    .home-hero .modules-cursor { display: none; }
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(47, 129, 247, 0.25);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}
.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}
.hero-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}
.hero-title .accent {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    padding-bottom: 0.14em;
    line-height: 1.15;
}
.hero-sub {
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 560px;
    line-height: 1.6;
}
.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero-trust {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.hero-trust strong { color: var(--text-secondary); font-weight: 500; }

/* Hero visual: stylized "drawing canvas" preview */
.hero-visual {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(47, 129, 247, 0.05);
}
.hero-visual-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 var(--space-sm);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-md);
}
.hero-visual-bar .dot-r { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }
.hero-visual-bar .dot-y { width: 10px; height: 10px; border-radius: 50%; background: #ffbd2e; }
.hero-visual-bar .dot-g { width: 10px; height: 10px; border-radius: 50%; background: #27c93f; }
.hero-visual-bar .url {
    margin-left: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}
.hero-visual-canvas {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    min-height: 380px;
    position: relative;
}

/* =============================================================
   Stats / Trust strip
   ============================================================= */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-2xl);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.stat-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: var(--space-md);
    border-left: 2px solid var(--border);
}
.stats-strip .stat-item:first-child {
    padding-left: 0;
    border-left: none;
}
.stat-num {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.1;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    min-height: 36px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================================
   Card grids
   ============================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}
.card-grid.is-3col {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
    .card-grid.is-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .card-grid.is-3col { grid-template-columns: 1fr; }
}
.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.25s;
}
.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px solid rgba(47, 129, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: var(--space-md);
    font-size: 20px;
    flex-shrink: 0;
}
.feature-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.feature-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================================
   Problem section
   ============================================================= */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
.problem-card {
    background: var(--bg-panel);
    border-left: 3px solid var(--critical);
    border-radius: var(--radius);
    padding: var(--space-lg);
}
.problem-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--critical);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.problem-headline {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.problem-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================================
   Platform / Flow
   ============================================================= */
.flow-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: var(--space-2xl);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}
.flow-step {
    padding: var(--space-md);
    border-right: 1px dashed var(--border);
    position: relative;
}
.flow-step:last-child { border-right: none; }
.flow-step-num {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: var(--space-sm);
}
.flow-step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.flow-step-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================================
   Mockup wrapper inside site
   ============================================================= */
.mockup-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
    margin-top: var(--space-xl);
    overflow: hidden;
}
/* Scaler: lets a native-sized iframe (1440x900) render at design fidelity
   then visually shrink to fit the wrapping container width. */
.mockup-scaler {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 900;
    overflow: hidden;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
}
.mockup-iframe-native {
    position: absolute;
    top: 0; left: 0;
    width: 1440px;
    height: 900px;
    border: 0;
    transform-origin: top left;
}
/* Mobile mode: container goes 1:1, iframe swaps to 1080x1080 dashboard-mobile.html.
   The is-mobile class is toggled by the index.html JS based on viewport width. */
.mockup-scaler.is-mobile {
    aspect-ratio: 1 / 1;
}
.mockup-scaler.is-mobile .mockup-iframe-native {
    width: 1080px;
    height: 1080px;
}
.mockup-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 var(--space-sm);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-md);
}
.mockup-frame-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-frame-bar .dot.r { background: #ff5f56; }
.mockup-frame-bar .dot.y { background: #ffbd2e; }
.mockup-frame-bar .dot.g { background: #27c93f; }
.mockup-frame-bar .url {
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* =============================================================
   Industries strip
   ============================================================= */
.industries {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}
.industry-pill {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: all 0.25s;
}
.industry-pill:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}
.industry-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}
.industry-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.industry-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-family: var(--font-mono);
}

/* =============================================================
   Customer profile
   ============================================================= */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
@media (max-width: 800px) {
    .customer-grid { grid-template-columns: 1fr; }
}
.customer-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}
.customer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}
.customer-tier {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}
.customer-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}
.customer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.customer-list {
    list-style: none;
    padding: 0;
}
.customer-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.customer-list li::before {
    content: '→';
    color: var(--accent);
    font-weight: bold;
}

/* =============================================================
   Security panel
   ============================================================= */
.security-panel {
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: center;
}
.security-panel-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: var(--space-md);
}
.security-list {
    list-style: none;
    padding: 0;
}
.security-list li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: var(--space-md);
    align-items: start;
}
.security-list li:last-child { border-bottom: none; }
.security-list .check {
    color: var(--low);
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
}
.security-list strong {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 2px;
}
.security-list span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================================
   Differentiators
   ============================================================= */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
.diff-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-md);
    align-items: start;
    transition: all 0.25s;
}
.diff-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}
.diff-num {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.diff-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.diff-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================================
   Pricing model
   ============================================================= */
.pricing-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}
.pricing-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}
.pricing-headline {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}
.pricing-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}
.pricing-models {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: left;
}
.pricing-model-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.pricing-model-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================================
   Investor block
   ============================================================= */
.investor-block {
    background: linear-gradient(135deg, rgba(47, 129, 247, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(47, 129, 247, 0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
}
.investor-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    padding: 4px 12px;
    background: var(--accent-soft);
    border-radius: 999px;
    border: 1px solid rgba(47, 129, 247, 0.25);
}
.investor-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}
.investor-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}
.footer-brand-block { max-width: 360px; }
.footer-brand-block img { height: 44px; margin-bottom: var(--space-md); }
.footer-brand-block p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
}
.footer-bottom .legal { display: flex; gap: var(--space-md); }

/* =============================================================
   Inline mini dashboard preview (in hero)
   ============================================================= */
.mini-dash-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: var(--space-md);
}
.mini-stat {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
}
.mini-stat-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}
.mini-stat-num.crit { color: var(--critical); }
.mini-stat-num.high { color: var(--high); }
.mini-stat-num.ok { color: var(--low); }
.mini-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.mini-finding {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--critical);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 6px;
    font-size: 12px;
}
.mini-finding.high { border-left-color: var(--high); }
.mini-finding.med { border-left-color: var(--medium); }
.mini-finding-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2px;
}
.mini-finding-meta {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}
.mini-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 6px;
    font-size: 12px;
}
.mini-progress .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mini-progress.done .dot {
    background: var(--low);
    box-shadow: 0 0 6px rgba(56, 161, 105, 0.6);
}
.mini-progress.run .dot {
    background: var(--medium);
    box-shadow: 0 0 6px rgba(236, 201, 75, 0.6);
    animation: pulse 1.4s ease-in-out infinite;
}
.mini-progress.wait .dot {
    background: var(--text-muted);
}
.mini-progress .label {
    flex: 1;
    color: var(--text-primary);
}
.mini-progress .status {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* =============================================================
   Platform page — Hero with dashboard showcase
   ============================================================= */
.platform-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}
.platform-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 129, 247, 0.10), transparent 70%);
    pointer-events: none;
}
.platform-hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    pointer-events: none;
}
/* Dashboard showcase frame */
.dashboard-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(47, 129, 247, 0.04);
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}
.dashboard-showcase .mockup-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 var(--space-sm);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-md);
}
.dashboard-showcase .frame-tag {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(47, 129, 247, 0.25);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.08em;
}
.dashboard-iframe,
.hero-showcase-iframe {
    width: 100%;
    height: 760px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-dark);
}
.workflow-iframe {
    width: 100%;
    height: 720px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-dark);
}

/* =============================================================
   Tab grid (Five Tabs section)
   ============================================================= */
.tab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
.tab-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.tab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.25s;
}
.tab-card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px -16px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}
.tab-card:hover::before {
    opacity: 1;
}
.tab-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}
.tab-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}
.tab-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px solid rgba(47, 129, 247, 0.2);
    color: var(--accent);
    font-size: 18px;
}
.tab-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.tab-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-md);
}
.tab-card-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}
.tab-card:hover .tab-card-link {
    color: var(--accent-hover);
}

/* =============================================================
   Platform hero — iframe-based animated tour
   The cursor cycles through the 7 real mockups in mockups/*.html
   by animating its position over the iframe and swapping iframe.src.
   Box (border, mac-dot bar, aspect-ratio) is the same as About hero.
   ============================================================= */

/* Inner tour box — locks aspect ratio (1024/572) so it scales like About */
.platform-hero .platform-tour {
    position: relative;
    aspect-ratio: 1024 / 572;
    background: var(--bg-dark);
    overflow: hidden;
}

/* Scaler wraps the iframe rendered at native 1440px width, then JS sets
   transform: scale(container_w / 1440) so the mockup fits the box but
   the chrome and tabs render at their full design fidelity. */
.platform-hero .pt-scaler {
    position: absolute;
    top: 0; left: 0;
    width: 1440px;
    height: 820px;
    transform-origin: top left;
    pointer-events: none; /* prevent the iframe from stealing scroll/focus */
}
.platform-hero .pt-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--bg-dark);
    display: block;
}

/* Animated cursor — smooth transitions driven by JS via top/left changes.
   ::after ring acts as the click ripple when .is-clicking is added. */
.platform-hero .pt-cursor {
    position: absolute;
    top: 3.73%; left: 21.2%;
    width: 18px; height: 18px;
    pointer-events: none;
    z-index: 20;
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 2l8 18 2.5-7.5L21 10z' fill='white' stroke='black' stroke-width='1.5' stroke-linejoin='round'/></svg>") center/contain no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
    transition: top .6s cubic-bezier(.5,0,.25,1), left .6s cubic-bezier(.5,0,.25,1), filter .25s ease;
    will-change: top, left;
}
.platform-hero .pt-cursor.is-clicking {
    filter: drop-shadow(0 0 12px rgba(47,129,247,.95)) drop-shadow(0 2px 4px rgba(0,0,0,.6));
}
.platform-hero .pt-cursor.is-clicking::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    transform: translate(-50%, -50%) scale(.4);
    opacity: 1;
    animation: pt-click-ripple .4s ease-out forwards;
}
@keyframes pt-click-ripple {
    0%   { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

/* Reduced motion — show the dashboard, hide the cursor, don't auto-cycle */
@media (prefers-reduced-motion: reduce) {
    .platform-hero .pt-cursor { display: none; }
}

/* Responsive — hide image-with-overlay hero stages on mobile that
   don't have a mobile-optimized variant yet. Platform stays hidden;
   Security and Investors now have 1:1 mobile images and re-traced
   SVG paths, so they re-enable below 760px. */
@media (max-width: 760px) {
    .platform-hero .hero-stage { display: none; }
}

/* Default: show desktop SVG variant, hide mobile variant. */
.home-hero .security-hero-svg.mobile,
.home-hero .investors-hero-svg.mobile { display: none; }
.home-hero .security-hero-svg.desktop,
.home-hero .investors-hero-svg.desktop { display: block; }

@media (max-width: 760px) {
    /* Swap to 1:1 aspect ratio so the new mobile images render correctly. */
    .home-hero .security-hero-art,
    .home-hero .investors-hero-art { aspect-ratio: 1 / 1; }

    /* Swap SVG variants. */
    .home-hero .security-hero-svg.desktop,
    .home-hero .investors-hero-svg.desktop { display: none; }
    .home-hero .security-hero-svg.mobile,
    .home-hero .investors-hero-svg.mobile { display: block; }

    /* Stroke-width compensation: the mobile viewBox is 2048 wide vs.
       desktop 2752, so a thinner stroke value keeps similar visual weight. */
    .home-hero .ih-line { stroke-width: 26; }
    .home-hero .sh-line { stroke-width: 22; }

    /* INVESTORS — reposition hex pulse on the 1:1 image. The hex cube actually
       sits at (80.5%, 49.9%) of the mobile image; glow radius ~12.6% of width. */
    .home-hero .ih-hex-pulse {
        left: 80.5%;
        top: 49.9%;
        width: 26%;
    }
    /* Disable the bar sweep on mobile (capex bars are in a different layout) */
    .home-hero .ih-bar-sweep { display: none; }

    /* SECURITY — reposition corner locks for the 1:1 image.
       The blue padlocks on the connecting lines sit at:
         TL line lock: (22.6%, 46.9%)
         TR line lock: (77.0%, 46.8%)
         BL line lock: (22.5%, 55.1%)
         BR line lock: (77.0%, 55.0%)
       The 4 vault green checks sit at the upper-right of each vault:
         TL check: (~21%, 26%)   TR check: (~91%, 26%)
         BL check: (~21%, 64%)   BR check: (~91%, 64%) */
    .home-hero .sh-lock-1 { left: 22.6%; top: 46.9%; }
    .home-hero .sh-lock-2 { left: 77.0%; top: 46.8%; }
    .home-hero .sh-lock-3 { left: 22.5%; top: 55.1%; }
    .home-hero .sh-lock-4 { left: 77.0%; top: 55.0%; }

    .home-hero .sh-check-1 { left: 21.0%; top: 26.4%; }
    .home-hero .sh-check-2 { left: 91.5%; top: 26.3%; }
    .home-hero .sh-check-3 { left: 21.0%; top: 63.5%; }
    .home-hero .sh-check-4 { left: 91.5%; top: 63.5%; }

    /* Reposition the big dashboard padlock (now at top-right of central
       dashboard in mobile layout, ~68%, 39%). Smaller relative size. */
    .home-hero .sh-big-lock {
        left: 68.0%;
        top: 39.0%;
        width: 9%;
    }
}

/* =============================================================
   Security hero — 3-phase animation per corner, 6s cycle (slow).
   Per corner (~1.5s):
     1. blue trail flows from dashboard along the line, stops at lock
     2. corner lock blooms (interrupting the trail)
     3. green checkmark on the storage box blinks (no halo, just the icon)
   Order: TL → BR → TR → BL
   Big dashboard lock pulses slowly + independently (2.5s loop).
   Path coords (viewBox 2752x1536) are tuned to overlay the static lines.
   ============================================================= */
.home-hero .security-hero-art {
    position: relative;
    width: 100%;
    aspect-ratio: 2752 / 1536;
    overflow: hidden;
    background: var(--bg-dark);
}
.home-hero .security-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}
.home-hero .security-hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* === Lines (overlay) ===
   Bright segment 60 long, infinite gap. Trail glides from path origin
   (at dashboard edge) up to the lock, then fades. */
.home-hero .sh-line {
    fill: none;
    stroke: #7cc0ff;
    stroke-width: 18;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60 9999;
    stroke-dashoffset: 60;
    opacity: 0;
    filter: drop-shadow(0 0 14px #2f81f7) drop-shadow(0 0 6px #60a5fa);
}
/* Left-side paths: lock sits ~188 along path. */
@keyframes sh-flow-l {
    0%, 1% { stroke-dashoffset:  60; opacity: 0; }
    2%     { opacity: 1; }
    9.3%   { stroke-dashoffset: -128; opacity: 1; }
    9.6%   { opacity: 0; }
    100%   { stroke-dashoffset:  60; opacity: 0; }
}
/* Right-side paths: lock sits ~129 along path. */
@keyframes sh-flow-r {
    0%, 1% { stroke-dashoffset:  60; opacity: 0; }
    2%     { opacity: 1; }
    9.3%   { stroke-dashoffset: -69;  opacity: 1; }
    9.6%   { opacity: 0; }
    100%   { stroke-dashoffset:  60; opacity: 0; }
}

/* === Corner lock bloom === */
.home-hero .sh-lock {
    position: absolute;
    width: 7%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,1), rgba(47,129,247,0) 62%);
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    pointer-events: none;
    filter: blur(0.5px);
    mix-blend-mode: screen;
}
@keyframes sh-lock-bloom {
    0%, 9.2%   { opacity: 0;    transform: translate(-50%,-50%) scale(0.5); }
    9.3%       { opacity: 1;    transform: translate(-50%,-50%) scale(1.8); }
    14%        { opacity: 0.95; transform: translate(-50%,-50%) scale(1.05); }
    20%        { opacity: 0.45; }
    25%        { opacity: 0; }
    100%       { opacity: 0;    transform: translate(-50%,-50%) scale(0.5); }
}

/* === Green check icon (no halo, just the ✓ blinks) === */
.home-hero .sh-check {
    position: absolute;
    width: 5%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(34,197,94,.85));
}
.home-hero .sh-check svg {
    width: 100%;
    height: 100%;
    display: block;
}
@keyframes sh-check-blink {
    0%, 15.9%  { opacity: 0; transform: translate(-50%,-50%) scale(0.6); }
    16%        { opacity: 1; transform: translate(-50%,-50%) scale(1.45); }
    17.5%      { opacity: 0; transform: translate(-50%,-50%) scale(1); }
    19%        { opacity: 1; transform: translate(-50%,-50%) scale(1.2); }
    20.5%      { opacity: 0; transform: translate(-50%,-50%) scale(1); }
    22%        { opacity: 1; transform: translate(-50%,-50%) scale(1.2); }
    25%        { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    35%        { opacity: 0.5; }
    50%        { opacity: 0; }
    100%       { opacity: 0; transform: translate(-50%,-50%) scale(0.6); }
}

/* === Big dashboard lock — slow standalone pulse === */
.home-hero .sh-big-lock {
    position: absolute;
    left: 64.7%;
    top: 33.5%;
    width: 6%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,.85), rgba(47,129,247,0) 62%);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: sh-big-pulse 2.5s ease-in-out infinite;
}
@keyframes sh-big-pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%,-50%) scale(0.85); }
    50%      { opacity: 1.0; transform: translate(-50%,-50%) scale(1.25); }
}

/* === Apply animations + diagonal sequence (TL → BR → TR → BL) ===
   Cycle = 6s. Stagger every 1.5s. */
.home-hero .sh-line  { animation: sh-flow-l    6s linear   infinite; }
.home-hero .sh-line-2,
.home-hero .sh-line-4 { animation-name: sh-flow-r; }
.home-hero .sh-lock  { animation: sh-lock-bloom 6s ease-out infinite; }
.home-hero .sh-check { animation: sh-check-blink 6s ease-out infinite; }

/* TL — fires at t=0 */
.home-hero .sh-line-1,
.home-hero .sh-lock-1,
.home-hero .sh-check-1 { animation-delay: 0s; }
/* BR — fires at t=1.5s */
.home-hero .sh-line-4,
.home-hero .sh-lock-4,
.home-hero .sh-check-4 { animation-delay: 1.5s; }
/* TR — fires at t=3.0s */
.home-hero .sh-line-2,
.home-hero .sh-lock-2,
.home-hero .sh-check-2 { animation-delay: 3.0s; }
/* BL — fires at t=4.5s */
.home-hero .sh-line-3,
.home-hero .sh-lock-3,
.home-hero .sh-check-3 { animation-delay: 4.5s; }

/* Corner lock positions — measured from the actual image */
.home-hero .sh-lock-1 { left: 27.3%; top: 45.0%; } /* TL */
.home-hero .sh-lock-2 { left: 69.0%; top: 45.2%; } /* TR */
.home-hero .sh-lock-3 { left: 27.3%; top: 57.0%; } /* BL */
.home-hero .sh-lock-4 { left: 68.8%; top: 57.7%; } /* BR */

/* Check positions — measured from the actual image */
.home-hero .sh-check-1 { left: 25.9%; top: 15.9%; } /* TL */
.home-hero .sh-check-2 { left: 83.8%; top: 15.9%; } /* TR */
.home-hero .sh-check-3 { left: 25.9%; top: 67.5%; } /* BL */
.home-hero .sh-check-4 { left: 83.8%; top: 67.5%; } /* BR */

@media (prefers-reduced-motion: reduce) {
    .home-hero .sh-line,
    .home-hero .sh-lock,
    .home-hero .sh-check,
    .home-hero .sh-big-lock { animation: none !important; opacity: 0; }
}

@media (max-width: 1100px) {
    .home-hero .sh-line { stroke-width: 24; }
}

/* =============================================================
   INVESTORS HERO ANIMATION
   Three trend pulses race along their respective curves toward
   the EngMind hex; the hex pulses brightly each time a pulse
   arrives.
   Cycle = 8s. Sequence: Orange (0s) -> Blue (2s) -> Violet (4s)
   -> hex bright bloom (6s) -> reset.
   Path coords (viewBox 2752x1536) are tuned to overlay the
   static curves in investors-hero.png.
   ============================================================= */
.home-hero .investors-hero-art {
    position: relative;
    width: 100%;
    aspect-ratio: 2752 / 1536;
    overflow: hidden;
    background: var(--bg-dark);
}
.home-hero .investors-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}
.home-hero .investors-hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* === Trend pulses === */
.home-hero .ih-line {
    fill: none;
    stroke-width: 22;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 70 9999;
    stroke-dashoffset: 70;
    opacity: 0;
}
.home-hero .ih-line-1 { /* orange — retirement wave */
    stroke: #ffb37a;
    filter: drop-shadow(0 0 16px #ff7a30) drop-shadow(0 0 6px #ff8b3a);
}
.home-hero .ih-line-2 { /* blue — AI reasoning inflection */
    stroke: #7cc0ff;
    filter: drop-shadow(0 0 16px #2f81f7) drop-shadow(0 0 6px #60a5fa);
}
.home-hero .ih-line-3 { /* violet — industrial capex boom */
    stroke: #c8a8ff;
    filter: drop-shadow(0 0 16px #8b5cf6) drop-shadow(0 0 6px #a78bfa);
}

/* Pulse glides from path origin to the hex approach, then fades.
   Each line's animation runs the full 8s cycle but only flows
   during a 2s window; the rest is invisible. */
@keyframes ih-flow {
    0%      { stroke-dashoffset:  70; opacity: 0; }
    1%      { opacity: 1; }
    24%     { stroke-dashoffset: -2200; opacity: 1; }
    25%     { opacity: 0; }
    100%    { stroke-dashoffset:  70; opacity: 0; }
}

.home-hero .ih-line  { animation: ih-flow 8s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.home-hero .ih-line-1 { animation-delay: 0s; }
.home-hero .ih-line-2 { animation-delay: 2s; }
.home-hero .ih-line-3 { animation-delay: 4s; }

/* === Hex bloom at convergence point ===
   Image hex bbox is centered at ~(78.4%, 49.8%). Width matches
   the hex glow ring (~22% of art). Brightens each time a pulse
   arrives, with a final big bloom at 6s. */
.home-hero .ih-hex-pulse {
    position: absolute;
    left: 78.4%;
    top: 49.8%;
    width: 24%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%) scale(0.85);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(96, 165, 250, 0.55) 0%,
        rgba(167, 139, 250, 0.32) 32%,
        rgba(47, 129, 247, 0.10) 58%,
        rgba(0, 0, 0, 0) 75%);
    mix-blend-mode: screen;
    opacity: 0.4;
    pointer-events: none;
    animation: ih-hex-pulse 8s ease-in-out infinite;
}
@keyframes ih-hex-pulse {
    0%      { transform: translate(-50%, -50%) scale(0.85); opacity: 0.40; }
    /* Orange arrives at ~2s */
    23%     { transform: translate(-50%, -50%) scale(0.95); opacity: 0.65; }
    28%     { transform: translate(-50%, -50%) scale(0.88); opacity: 0.45; }
    /* Blue arrives at ~4s */
    48%     { transform: translate(-50%, -50%) scale(1.05); opacity: 0.80; }
    53%     { transform: translate(-50%, -50%) scale(0.92); opacity: 0.50; }
    /* Violet arrives at ~6s -> big bloom */
    73%     { transform: translate(-50%, -50%) scale(1.30); opacity: 1.00; }
    82%     { transform: translate(-50%, -50%) scale(1.05); opacity: 0.75; }
    100%    { transform: translate(-50%, -50%) scale(0.85); opacity: 0.40; }
}

/* === Bar sweep ===
   A soft vertical highlight that travels left -> right across the
   bottom band where the violet capex bars live, brightening each
   bar as it passes (mix-blend-mode: screen).
   Bars span roughly 6.5% -> 71% horizontally; band y ~ 60% -> 96%. */
.home-hero .ih-bar-sweep {
    position: absolute;
    left: 6.5%;
    top: 58%;
    width: 7%;
    height: 38%;
    border-radius: 8%;
    background: radial-gradient(ellipse at center,
        rgba(199, 168, 255, 0.55) 0%,
        rgba(139, 92, 246, 0.22) 45%,
        rgba(0, 0, 0, 0) 75%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
    animation: ih-bar-sweep 8s ease-in-out infinite;
    animation-delay: 4s;
}
@keyframes ih-bar-sweep {
    0%      { transform: translateX(0%);   opacity: 0; }
    3%      { opacity: 0.85; }
    22%     { transform: translateX(880%); opacity: 0.95; }
    25%     { transform: translateX(925%); opacity: 0; }
    100%    { transform: translateX(0%);   opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero .ih-line,
    .home-hero .ih-hex-pulse,
    .home-hero .ih-bar-sweep { animation: none !important; }
    .home-hero .ih-line { opacity: 0; }
    .home-hero .ih-hex-pulse { opacity: 0.45; }
    .home-hero .ih-bar-sweep { opacity: 0; }
}

@media (max-width: 1100px) {
    .home-hero .ih-line { stroke-width: 28; }
}

@media (max-width: 960px) {
    .tab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .platform-hero { padding: var(--space-xl) 0 var(--space-lg); }
    .dashboard-iframe,
    .hero-showcase-iframe { height: 720px; }
    .workflow-iframe { height: 540px; }
    .tab-card { padding: var(--space-lg); }
    .tab-card-title { font-size: 18px; }
    .tab-num { font-size: 26px; }
    .dashboard-showcase .frame-tag { display: none; }
}
@media (max-width: 540px) {
    .tab-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .dashboard-iframe,
    .hero-showcase-iframe { height: 620px; }
    .workflow-iframe { height: 460px; }
    .tab-card { padding: var(--space-md); }
    .tab-card-desc { font-size: 13px; }
}

/* =============================================================
   Coverage Statement Banner (replaces the Discipline Coverage matrix)
   ============================================================= */
.coverage-statement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    margin: var(--space-xl) 0 var(--space-3xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(168, 85, 247, 0.05));
    position: relative;
    overflow: hidden;
}
.coverage-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
}
.coverage-statement::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0.4;
}
.coverage-statement-icon {
    font-size: 22px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.coverage-statement strong {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Mobile */
@media (max-width: 540px) {
    .coverage-statement {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-lg) var(--space-md);
    }
    .coverage-statement strong { font-size: 18px; }
}

/* =============================================================
   Discipline Coverage Matrix (legacy — currently unused, kept for future reuse)
   ============================================================= */
.discipline-coverage {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}
.discipline-coverage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
}
.coverage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
    flex-wrap: wrap;
}
.coverage-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}
.coverage-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    background: var(--accent-soft);
    border: 1px solid rgba(47, 129, 247, 0.25);
    padding: 5px 14px;
    border-radius: 999px;
}
.discipline-clusters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg) var(--space-xl);
}
.discipline-cluster {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.cluster-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    font-weight: 600;
}
.discipline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.chip:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    color: var(--accent-hover);
    transform: translateY(-1px);
}

/* =============================================================
   Capability Groups
   ============================================================= */
.capability-group {
    margin-top: var(--space-2xl);
}
.capability-group:first-of-type {
    margin-top: 0;
}
.group-header {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.group-num {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
}
.group-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.group-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}
.group-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .problem-grid { grid-template-columns: 1fr; }
    .flow-track { grid-template-columns: 1fr; }
    .flow-step { border-right: none; border-bottom: 1px dashed var(--border); padding-bottom: var(--space-md); }
    .flow-step:last-child { border-bottom: none; }
    .industries { grid-template-columns: repeat(2, 1fr); }
    .customer-grid { grid-template-columns: 1fr; }
    .security-panel { grid-template-columns: 1fr; padding: var(--space-xl); gap: var(--space-lg); }
    .diff-grid { grid-template-columns: 1fr; }
    .pricing-models { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .nav-links { display: none; }
    section { padding: var(--space-2xl) 0; }
    .hero { padding: var(--space-2xl) 0; }
}

/* === Tablet / Phablet === */
@media (max-width: 768px) {
    .container { padding: 0 var(--space-md); }
    .site-nav-inner { height: 64px; padding: 0 var(--space-md); gap: var(--space-md); }
    .nav-brand img { height: 32px; }

    .hero { padding: var(--space-xl) 0 var(--space-2xl); }
    .hero-title { font-size: clamp(28px, 7vw, 38px); }
    .hero-sub { font-size: 15px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; width: 100%; }
    .hero-trust { font-size: 12px; gap: 8px; }
    .hero-trust span:nth-child(2n) { display: none; }

    /* Hero visual mini-dashboard scales down */
    .hero-visual { padding: 10px; }
    .hero-visual-canvas { padding: 10px; min-height: 320px; }
    .mini-dash-row { gap: 6px; }
    .mini-stat { padding: 8px; }
    .mini-stat-num { font-size: 18px; }
    .mini-stat-label { font-size: 9px; }
    .mini-progress { padding: 6px 8px; font-size: 11px; }
    .mini-progress .status { font-size: 9px; }
    .mini-finding { padding: 8px 10px; font-size: 11px; }
    .mini-finding-meta { font-size: 9px; }

    .stats-strip { padding: var(--space-lg); gap: var(--space-md); }
    .stat-num { font-size: 22px; }
    .stat-label { font-size: 12px; }

    .section-title { font-size: clamp(24px, 5.5vw, 32px); }
    .section-subtitle { font-size: 14px; }

    .feature-card { padding: var(--space-lg); }
    .feature-title { font-size: 15px; }
    .feature-text { font-size: 13px; }

    .industries { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
    .industry-pill { padding: var(--space-md) var(--space-sm); }
    .industry-icon { font-size: 26px; }
    .industry-name { font-size: 12px; }
    .industry-sub { font-size: 9px; }

    .customer-card { padding: var(--space-lg); }
    .customer-name { font-size: 17px; }
    .customer-desc { font-size: 13px; }
    .customer-list li { font-size: 12px; }

    .security-list li {
        grid-template-columns: 24px 1fr;
        gap: var(--space-sm);
        padding: var(--space-sm) 0;
    }
    .security-list strong { font-size: 14px; }
    .security-list span { font-size: 12px; }

    .diff-card {
        grid-template-columns: 44px 1fr;
        padding: var(--space-lg);
    }
    .diff-num { font-size: 20px; }
    .diff-title { font-size: 15px; }
    .diff-text { font-size: 13px; }

    .pricing-card { padding: var(--space-xl); }
    .pricing-headline { font-size: 22px; }
    .pricing-text { font-size: 14px; }

    .investor-block { padding: var(--space-xl); }
    .investor-title { font-size: 22px; }
    .investor-text { font-size: 14px; }

    .mockup-wrap iframe { height: 560px !important; }
}

/* === Phone === */
@media (max-width: 540px) {
    .industries { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }

    .hero-title { font-size: 30px; line-height: 1.1; }
    .hero-sub { font-size: 14px; }
    .hero-eyebrow { font-size: 11px; padding: 5px 10px; }

    .stats-strip { grid-template-columns: 1fr; }
    .stat-item { text-align: center; }

    .problem-card { padding: var(--space-md); }
    .problem-headline { font-size: 15px; }
    .problem-text { font-size: 13px; }

    .flow-track { padding: var(--space-md); }

    .feature-card .feature-icon { width: 38px; height: 38px; font-size: 18px; }

    .diff-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mockup-wrap iframe { height: 480px !important; }

    /* Investor page hero */
    .hero-grid { grid-template-columns: 1fr; }

    /* Buttons full width on phone */
    .btn-lg { padding: 12px 20px; font-size: 14px; }
}

/* === Very small phones === */
@media (max-width: 380px) {
    .hero-title { font-size: 26px; }
    .nav-cta .btn-ghost { display: none; }
    .site-nav-inner { gap: 8px; }
    /* Module tiles: force 1-col on very narrow phones (2-col cramps the rich cards) */
    .modules-grid { grid-template-columns: 1fr; }
}

/* === Hero-meta (3 stats below hero copy) responsive === */
@media (max-width: 540px) {
    .home-hero .hero-meta {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 16px;
        margin-top: 20px;
    }
    .home-hero .hero-meta-item {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: baseline;
        gap: 10px;
    }
    .home-hero .hero-meta-item .v { margin-bottom: 0; }
}

/* === Discipline coverage + capability groups responsive === */
@media (max-width: 768px) {
    .discipline-coverage {
        padding: var(--space-lg);
    }
    .coverage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    .discipline-clusters {
        gap: var(--space-md);
        grid-template-columns: 1fr;
    }
    .group-header {
        grid-template-columns: 56px 1fr;
        gap: var(--space-sm);
    }
    .group-num { font-size: 36px; }
    .group-title { font-size: 18px; }
    .group-eyebrow { font-size: 10px; }
    .capability-group { margin-top: var(--space-xl); }
    .chip { font-size: 11px; padding: 4px 10px; }
}
@media (max-width: 540px) {
    .discipline-coverage { padding: var(--space-md); }
    .group-header {
        grid-template-columns: 44px 1fr;
        gap: 10px;
    }
    .group-num { font-size: 30px; }
    .group-title { font-size: 16px; }
}

/* =============================================================
   FAQ page — accordion + categories
   ============================================================= */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.faq-categories a {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-decoration: none;
}
.faq-categories a:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    background: var(--bg-hover);
}

.faq-block { margin-bottom: var(--space-2xl); scroll-margin-top: 100px; }
.faq-block h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}
.faq-item {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-light); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: var(--space-md) var(--space-lg);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    transition: background 0.2s;
}
.faq-item summary:hover { background: var(--bg-hover); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--accent);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item .faq-answer {
    padding: 0 var(--space-lg) var(--space-md);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-item .faq-answer p { margin-bottom: var(--space-sm); }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* =============================================================
   Press Kit page — brand assets, palette, typography
   ============================================================= */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}
.brand-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}
.brand-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--text-primary);
}
.brand-tile-preview {
    height: 120px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    overflow: hidden;
    border: 1px solid var(--border);
}
.brand-tile-preview.is-dark { background: var(--bg-dark); }
.brand-tile-preview.is-light { background: #ffffff; }
.brand-tile-preview img { max-width: 80%; max-height: 80%; }
.brand-tile-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.brand-tile-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}
.palette-swatch {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.palette-color {
    height: 80px;
    border-bottom: 1px solid var(--border);
}
.palette-meta {
    padding: var(--space-md);
}
.palette-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.palette-hex {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.boilerplate-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
}
.boilerplate-card h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}
.boilerplate-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================================
   404 page
   ============================================================= */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
}
.error-page-inner {
    max-width: 480px;
}
.error-page-num {
    font-family: var(--font-mono);
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-md);
}
.error-page h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}
.error-page p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* =============================================================
   Security page — integration / SSO / compliance lists
   ============================================================= */
.security-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}
.security-list-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}
.security-list-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
}
.security-list-block.is-roadmap::before { opacity: 0.4; background: var(--border-light); }
.security-list-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.security-list-block .block-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    display: inline-block;
}
.security-list-block.is-roadmap .block-tag {
    color: var(--text-muted);
}
.integration-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}
.integration-row:last-child { border-bottom: none; }
.integration-row .integration-marker {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.security-list-block.is-roadmap .integration-marker {
    background: rgba(139, 148, 158, 0.12);
    color: var(--text-muted);
}
.integration-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}
.compliance-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.2s;
}
.compliance-badge:hover {
    border-color: var(--border-light);
}
.compliance-badge .badge-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.compliance-badge .badge-status {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    display: inline-block;
}

@media (max-width: 768px) {
    .security-two-col { grid-template-columns: 1fr; }
    .security-list-block { padding: var(--space-lg); }
}

/* =============================================================
   Engineering Modules page
   ============================================================= */
.modules-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin: var(--space-2xl) 0 var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
/* First header in the section sits closer to the hero (no extra top margin) */
.modules-section-header:first-child {
    margin-top: 0;
}
.modules-section-header h3 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.modules-section-header .count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(47, 129, 247, 0.25);
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.module-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--space-md);
    min-height: 168px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}
.module-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity .2s ease;
}
.module-tile:hover {
    border-color: rgba(47, 129, 247, .55);
    background: var(--bg-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -14px rgba(47, 129, 247, .35);
}
.module-tile:hover::before { opacity: 1; }

.module-tile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.module-tile-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius);
    flex-shrink: 0;
}
.module-tile-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.module-tile-count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(47, 129, 247, .3);
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    align-self: flex-start;
}
.module-tile-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}
.module-tile-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}
.module-tile-cap {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.module-tile:hover .module-tile-cap {
    color: var(--text-secondary);
    border-color: rgba(47, 129, 247, .25);
}

/* Cross-functional differentiation — amber accent instead of blue */
.module-tile.is-cross::before {
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}
.module-tile.is-cross .module-tile-icon {
    background: rgba(251, 191, 36, .12);
}
.module-tile.is-cross .module-tile-count {
    color: #fbbf24;
    background: rgba(251, 191, 36, .12);
    border-color: rgba(251, 191, 36, .3);
}
.module-tile.is-cross:hover {
    border-color: rgba(251, 191, 36, .55);
    box-shadow: 0 12px 30px -14px rgba(251, 191, 36, .3);
}
.module-tile.is-cross:hover .module-tile-cap {
    border-color: rgba(251, 191, 36, .25);
}

.module-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
    scroll-margin-top: 100px;
}
.module-section:first-of-type { border-top: none; }
.module-section-header {
    margin-bottom: var(--space-lg);
}
.module-section-header h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 4px 0 var(--space-sm);
}
.module-section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 760px;
}
.module-meta {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-panel);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.module-meta strong { color: var(--text-secondary); }

@media (max-width: 540px) {
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .modules-section-header { gap: var(--space-sm); }
}

/* =============================================================
   About page — Vision & Mission two-column section
   ============================================================= */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: stretch;
    margin-top: var(--space-xl);
}
.vm-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.vm-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}
.vm-col-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px solid rgba(47, 129, 247, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 26px;
    margin-bottom: var(--space-md);
}
.vm-col-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}
.vm-col-title {
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}
.vm-col-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.vm-col-text p {
    margin-bottom: var(--space-md);
}
.vm-col-text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .vm-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .vm-col { padding: var(--space-xl); }
    .vm-col-text { font-size: 15px; }
}

/* =============================================================
   About page — Industry Reality grid (3x3 fixed)
   ============================================================= */
.industry-reality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
@media (max-width: 960px) {
    .industry-reality-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .industry-reality-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* =============================================================
   About page — Founder letter layout (sticky photo + scrolling letter)
   ============================================================= */
.founder-letter-header {
    max-width: 1100px;
    margin: 0 auto var(--space-2xl);
    text-align: left;
}
.founder-letter-header .section-eyebrow {
    margin-bottom: var(--space-md);
}
.founder-letter-header h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.18;
    margin: 0;
}

.founder-letter-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-3xl);
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.founder-letter-aside {
    position: sticky;
    top: 100px;
    align-self: start;
}
.founder-photo-large {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    margin-bottom: var(--space-lg);
    position: relative;
}
.founder-photo-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
    z-index: 1;
}
.founder-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.founder-aside-meta .name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.founder-aside-meta .role {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}
.founder-aside-meta .location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}
.founder-aside-meta .linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}
.founder-aside-meta .linkedin-link:hover {
    color: var(--accent-hover);
}

/* Letter content takes the right column. Override .founder-letter
   max-width when used inside the new layout. */
.founder-letter-layout .founder-letter {
    max-width: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 960px) {
    .founder-letter-layout {
        grid-template-columns: 240px 1fr;
        gap: var(--space-xl);
    }
    .founder-photo-large {
        width: 220px;
        height: 220px;
    }
}
@media (max-width: 768px) {
    .founder-letter-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .founder-letter-aside {
        position: static;
        display: flex;
        align-items: center;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        border-bottom: 1px solid var(--border);
    }
    .founder-photo-large {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .founder-aside-meta .linkedin-link {
        border-top: none;
        padding-top: 0;
    }
}

/* =============================================================
   About page — Insight block (centered quote section)
   ============================================================= */
.insight-block {
    max-width: 880px;
    margin: var(--space-2xl) auto 0;
    text-align: center;
}
.insight-quote {
    margin: var(--space-xl) auto;
    max-width: 760px;
    padding: var(--space-xl) var(--space-2xl);
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    text-align: left;
    position: relative;
}
.insight-quote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 16px;
    font-family: Georgia, serif;
    font-size: 80px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.4;
}
.insight-quote p {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.005em;
    margin: 0;
}
.insight-followup {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 720px;
    margin: var(--space-xl) auto 0;
}

/* =============================================================
   About page — Numbered principle cards (Qualitech-style)
   ============================================================= */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
.principle-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
}
.principle-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4);
}
.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
}
.principle-num {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}
.principle-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}
.principle-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}
@media (max-width: 768px) {
    .principles-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .principle-card { padding: var(--space-lg); }
}

/* =============================================================
   About page — Founder credentials block (small, before letter)
   ============================================================= */
.founder-credentials {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-xl);
}
.founder-credentials .founder-photo {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
    background: var(--bg-card);
}
.founder-credentials .founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.founder-credentials-meta .name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.founder-credentials-meta .role {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.founder-credentials-meta .location {
    font-size: 13px;
    color: var(--text-secondary);
}

/* =============================================================
   About page — founder card + letter + values
   ============================================================= */
.founder-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-2xl);
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}
.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}
.founder-photo {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
    background: var(--bg-card);
}
.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.founder-bio-name {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.founder-bio-role {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
}
.founder-bio-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}
.founder-bio-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.founder-bio-actions a {
    font-size: 13px;
    font-weight: 600;
}

.founder-letter {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-2xl) 0;
}
.founder-letter h3 {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}
.founder-letter p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}
.founder-letter p strong { color: var(--text-primary); font-weight: 600; }
.founder-letter .signature {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.values-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: var(--space-xl);
}
.values-chips .chip {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.values-chips .chip:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .founder-card {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
        text-align: center;
    }
    .founder-photo { width: 160px; height: 160px; margin: 0 auto; }
    .founder-bio-actions { justify-content: center; }
    .founder-letter p { font-size: 15px; line-height: 1.7; }
}

/* =============================================================
   Hamburger nav toggle (mobile)
   ============================================================= */
.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover,
.nav-toggle:active { border-color: var(--accent); background: var(--bg-hover); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.2s;
}
.site-nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.site-nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Earlier breakpoint (was 960 — too late) so tablets get the hamburger too. */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .site-nav-inner {
        height: 64px;
        padding: 0 var(--space-md);
    }
    .nav-brand img { height: 36px; }

    /* Hide the desktop nav links AND the desktop CTA buttons on tablet/mobile.
       Both will reappear inside the full-screen drawer. */
    .site-nav .nav-links,
    .site-nav .nav-cta {
        display: none;
    }

    /* === FULL-SCREEN DRAWER ===
       When .is-open is added, lift the entire .site-nav into a fixed full-screen
       overlay with a solid opaque background. No transparency, no see-through. */
    .site-nav.is-open {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: #0d1117;            /* solid, no rgba */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    .site-nav.is-open .site-nav-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 64px;
        padding: 0 var(--space-md);
        align-content: flex-start;
    }
    /* Logo + hamburger occupy the top row, full width */
    .site-nav.is-open .nav-brand,
    .site-nav.is-open .nav-toggle { flex: 0 0 auto; }
    .site-nav.is-open .nav-brand { padding: 14px 0; }

    /* Reveal menu links and CTA stack below the header row */
    .site-nav.is-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex-basis: 100%;
        width: 100%;
        margin: 0;
        padding: var(--space-md) 0 0;
        border-top: 1px solid var(--border);
    }
    .site-nav.is-open .nav-links a {
        display: block;
        padding: 18px var(--space-md);
        border-bottom: 1px solid var(--border);
        font-size: 17px;
        font-weight: 600;
        color: var(--text-primary);
        letter-spacing: 0.01em;
        transition: color 0.15s, background 0.15s;
        background: transparent;
    }
    .site-nav.is-open .nav-links a:hover,
    .site-nav.is-open .nav-links a:active {
        color: var(--accent);
        background: rgba(47, 129, 247, 0.08);
    }
    .site-nav.is-open .nav-cta {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex-basis: 100%;
        width: 100%;
        margin: 0;
        padding: var(--space-lg) var(--space-md);
        background: var(--bg-panel);
        border-top: 1px solid var(--border);
    }
    .site-nav.is-open .nav-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
    }

    /* Lock body scroll while the drawer is open */
    body.has-drawer-open { overflow: hidden; }
}

/* Below the tablet breakpoint, keep the hamburger sized cleanly. */
@media (max-width: 540px) {
    .site-nav-inner { height: 60px; padding: 0 var(--space-md); }
    .nav-brand img { height: 32px; }
}

/* =============================================================
   Hero CSS line-scan animation (no external assets)
   ============================================================= */
.hero-animated .hero-visual {
    position: relative;
    overflow: hidden;
}
.hero-scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.7) 30%,
        rgba(168, 85, 247, 0.7) 70%,
        transparent 100%);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
    pointer-events: none;
    z-index: 2;
    animation: hero-scan 6s ease-in-out infinite;
}
@keyframes hero-scan {
    0%   { transform: translateY(0); opacity: 0; }
    8%   { opacity: 1; }
    50%  { transform: translateY(420px); opacity: 1; }
    58%  { opacity: 0; }
    100% { transform: translateY(420px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-scanline { animation: none; opacity: 0; }
}

/* =============================================================
   Cookie consent banner
   ============================================================= */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    padding: var(--space-md) var(--space-lg);
    transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: space-between;
}
.cookie-banner p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1 1 320px;
}
.cookie-banner-link {
    color: var(--accent);
    margin-left: 6px;
}
.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-banner-actions .btn { padding: 8px 16px; font-size: 13px; }

@media (max-width: 540px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: var(--space-md); }
    .cookie-banner-inner { gap: var(--space-md); }
    .cookie-banner p { flex: 1 1 100%; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn { flex: 1; }
}

/* =============================================================
   Form modal (Demo / Waitlist / Quote / Investor)
   ============================================================= */
.form-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(13, 17, 23, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.form-modal.is-open { display: flex; }
.form-modal-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.form-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}
.form-modal-close:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
}
.form-modal h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}
.form-modal p.form-modal-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}
.form-row { margin-bottom: var(--space-md); }
.form-row label {
    display: block;
    font-size: 12px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--accent);
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-lg);
}
.form-status {
    margin-top: var(--space-md);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.5;
    display: none;
}
.form-status.is-success {
    display: block;
    background: rgba(56, 161, 105, 0.10);
    border: 1px solid rgba(56, 161, 105, 0.35);
    color: var(--low);
}
.form-status.is-error {
    display: block;
    background: rgba(229, 62, 62, 0.10);
    border: 1px solid rgba(229, 62, 62, 0.35);
    color: var(--critical);
}
@media (max-width: 540px) {
    .form-modal-inner { padding: var(--space-xl) var(--space-lg); }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }
}

