/* ══════════════════════════════════════════════════════════════
   Elyara Stack — Design System
   Single source of truth for all styles
   ══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
    --bg: #050506;
    --bg-alt: #09090b;
    --bg-surface: #0c0c0f;
    --border: rgba(255,255,255,0.06);
    --border-h: rgba(255,255,255,0.1);
    --text-1: #edece9;
    --text-2: #a09d93;
    --text-3: #8a8780;
    --text-4: #706d65; /* a11y: raised from #4a4842 for ~3.5:1 contrast on dark bg */
    --accent: #4a9eff;
    --accent-dim: rgba(74,158,255,0.08);
    --purple: #bc8cff;
    --green: #3fb950;
    --amber: #d29922;
    --red: #f85149;
    --cyan: #06b6d4;
    --pink: #f778ba;
    --font: 'Outfit', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html { scroll-behavior: smooth }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-1);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: var(--accent-dim); color: var(--accent) }

/* ── Accessibility ───────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: var(--accent); color: var(--bg);
    padding: 8px 16px; border-radius: 4px;
    font-size: 0.8rem; font-weight: 600;
    z-index: 200; text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem }

/* Focus visible for keyboard nav */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none }

/* Active language button */
.lang-btn[aria-pressed="true"],
.lang-btn.active { color: var(--text-1) }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: 60px; display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    background: rgba(5,5,6,0.8);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-weight: 700; font-size: 1.05rem;
    letter-spacing: 0.06em; color: var(--text-1);
    text-decoration: none; transition: opacity 0.15s;
}
.nav-logo:hover { opacity: 0.8 }
.nav-links { display: flex; gap: 2rem; list-style: none }
.nav-links a {
    color: var(--text-3); text-decoration: none;
    font-size: 0.76rem; font-weight: 500;
    letter-spacing: 0.01em; transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.on { color: var(--text-2) }
.nav-r { display: flex; align-items: center; gap: 0.75rem }
.lang-group { display: flex }
.lang-btn {
    background: none; border: none; cursor: pointer;
    font-family: var(--mono); font-size: 0.6rem;
    color: var(--text-4); padding: 3px 6px;
    transition: color 0.15s;
}
.lang-btn:hover { color: var(--text-3) }
.lang-btn.active { color: var(--text-2) }
.nav-contact {
    font-size: 0.74rem; font-weight: 500;
    color: var(--text-2);
    border: 1px solid var(--border-h);
    background: transparent;
    padding: 6px 14px; border-radius: 4px;
    text-decoration: none; transition: all 0.15s;
}
.nav-contact:hover { color: var(--text-1); border-color: var(--text-3) }
.mob-toggle {
    display: none; background: none; border: none;
    color: var(--text-1); font-size: 1.1rem; cursor: pointer;
}

/* Nav scroll state — enhanced with JS */
.nav.scrolled {
    background: rgba(5,5,6,0.92);
    border-bottom-color: rgba(74,158,255,0.08);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 10px 20px; background: var(--text-1);
    color: var(--bg); font-family: var(--font);
    font-weight: 600; font-size: 0.8rem;
    border: none; border-radius: 4px;
    cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px) }
.btn-secondary {
    display: inline-flex; align-items: center;
    padding: 10px 20px; background: transparent;
    color: var(--text-2); font-family: var(--font);
    font-weight: 500; font-size: 0.8rem;
    border: 1px solid var(--border-h); border-radius: 4px;
    cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.btn-secondary:hover { color: var(--text-1); border-color: var(--text-3) }
.btn-growth { border-color: rgba(210,153,34,0.3); color: var(--amber) }
.btn-growth:hover { color: var(--amber); border-color: rgba(210,153,34,0.6) }

/* ── Module Badges ──────────────────────────────────────────── */
.mod-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: var(--mono); font-size: 0.5rem;
    font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px; border-radius: 3px;
    margin-bottom: 0.5rem;
}
.mod-badge.mod-core {
    color: var(--accent);
    background: rgba(74,158,255,0.06);
    border: 1px solid rgba(74,158,255,0.15);
}
.mod-badge.mod-clinical {
    color: var(--purple);
    background: rgba(188,140,255,0.06);
    border: 1px solid rgba(188,140,255,0.15);
}
.mod-badge.mod-growth {
    color: var(--amber);
    background: rgba(210,153,34,0.06);
    border: 1px solid rgba(210,153,34,0.15);
}

/* Module selector — dimming non-selected */
.section[data-module].mod-dimmed {
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.section[data-module]:not(.mod-dimmed) {
    transition: opacity 0.4s ease;
}

/* ── Module Selector Bar ────────────────────────────────────── */
.mod-selector {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    justify-content: center;
    padding: 1rem clamp(2rem, 6vw, 8rem);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 60px; z-index: 90;
    background: rgba(5,5,6,0.92);
    backdrop-filter: blur(12px);
}
.mod-btn {
    font-family: var(--mono); font-size: 0.62rem;
    font-weight: 600; letter-spacing: 0.06em;
    padding: 6px 14px; border-radius: 4px;
    cursor: pointer; transition: all 0.2s;
    border: 1px solid var(--border);
    background: transparent; color: var(--text-3);
}
.mod-btn:hover { border-color: var(--border-h); color: var(--text-2) }
.mod-btn.active { color: var(--text-1); border-color: var(--text-3); background: var(--bg-alt) }
.mod-btn[data-mod="core"].active { color: var(--accent); border-color: rgba(74,158,255,0.4) }
.mod-btn[data-mod="clinical"].active { color: var(--purple); border-color: rgba(188,140,255,0.4) }
.mod-btn[data-mod="growth"].active { color: var(--amber); border-color: rgba(210,153,34,0.4) }
.mod-btn[data-mod="full"].active { color: var(--green); border-color: rgba(63,185,80,0.4) }

/* ── Section Layout ──────────────────────────────────────────── */
.section {
    padding: 8rem clamp(2rem, 6vw, 8rem);
    border-top: 1px solid var(--border);
    /* P0: Skip rendering of off-screen sections until they scroll into view */
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}
.section-inner { max-width: 1040px }
.section-tag {
    font-family: var(--mono); font-size: 0.6rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: 1.75rem;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1; margin-bottom: 1rem;
}
.section-desc {
    font-size: 0.92rem; color: var(--text-3);
    line-height: 1.7; max-width: 520px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex;
    flex-direction: column; justify-content: center;
    padding: 0 clamp(2rem, 6vw, 8rem);
    position: relative;
}
.hero::before {
    content: ''; position: absolute;
    top: 20%; right: 10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-dim), transparent 70%);
    pointer-events: none;
    animation: heroPulse 8s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { opacity: 0.6; transform: scale(1) }
    50% { opacity: 1; transform: scale(1.08) }
}
.hero-tag {
    font-family: var(--mono); font-size: 0.65rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: 3rem;
    opacity: 0; animation: up .5s ease forwards .1s;
}
.hero h1 {
    font-size: clamp(4rem, 9vw, 8.5rem);
    font-weight: 800; line-height: 0.92;
    letter-spacing: -0.045em;
    opacity: 0; animation: up .6s ease forwards .2s;
    background: linear-gradient(135deg, var(--text-1) 0%, var(--text-2) 50%, var(--text-1) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 400; color: var(--text-2);
    letter-spacing: -0.01em;
    margin-top: 1.5rem; margin-bottom: 1rem;
    opacity: 0; animation: up .6s ease forwards .35s;
}
.hero-desc {
    font-size: 0.95rem; color: var(--text-3);
    max-width: 520px; line-height: 1.7;
    margin-bottom: 3.5rem;
    opacity: 0; animation: up .6s ease forwards .45s;
}
.hero-actions {
    display: flex; gap: 0.5rem;
    opacity: 0; animation: up .6s ease forwards .55s;
}

/* ── Architecture — Capability List ──────────────────────────── */
.layer-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6rem; margin-top: 4rem; align-items: start;
}
.cap-list { list-style: none; margin-top: 2rem }
.cap-list li {
    font-size: 0.86rem; color: var(--text-2);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 0.9rem;
}
.cap-list li:first-child { border-top: 1px solid var(--border) }
.cap-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}

/* ── Workflow — Animated Data Flow ───────────────────────────── */
.wf-canvas {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 1.5rem 2rem;
    position: relative; overflow: hidden;
}
.wf-canvas::before {
    content: ''; position: absolute;
    top: 0; left: 2rem; right: 2rem; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74,158,255,0.3), transparent);
}
.wf-canvas::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(74,158,255,0.03), transparent 60%);
    pointer-events: none;
}
.wf-label {
    font-family: var(--mono); font-size: 0.55rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-4); margin-bottom: 1.5rem;
    text-align: center;
}
.wf-flow {
    display: flex; align-items: center;
    gap: 0; justify-content: center;
    padding: 1rem 0; position: relative;
}
.wf-stage {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.4rem; z-index: 2;
}
.wf-stage-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: all 0.3s;
}
.wf-stage-name { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.01em }
.wf-stage-sub {
    font-size: 0.48rem; font-weight: 400;
    opacity: 0.5; font-family: var(--mono);
    max-width: 80px; text-align: center; line-height: 1.4;
}
.wf-conn { width: 60px; height: 2px; position: relative; overflow: hidden }
.wf-conn-line {
    width: 100%; height: 1px;
    background: var(--border-h);
    position: absolute; top: 50%;
}
.wf-conn-particle {
    position: absolute; width: 6px; height: 6px;
    border-radius: 50%; top: 50%;
    transform: translateY(-50%);
    animation: wfParticle 2s linear infinite;
}
.wf-note {
    font-size: 0.58rem; color: var(--text-4);
    text-align: center; margin-top: 1.25rem;
    font-family: var(--mono); line-height: 1.7;
    max-width: 380px; margin-left: auto; margin-right: auto;
}

/* Workflow stage colors */
.st-req .wf-stage-icon { background: rgba(237,236,233,0.1); border: 1px solid rgba(237,236,233,0.2); color: var(--text-1) }
.st-gw  .wf-stage-icon { background: rgba(74,158,255,0.1);  border: 1px solid rgba(74,158,255,0.25);  color: var(--accent) }
.st-val .wf-stage-icon { background: rgba(248,81,73,0.1);   border: 1px solid rgba(248,81,73,0.25);   color: var(--red) }
.st-proc .wf-stage-icon { background: rgba(188,140,255,0.1); border: 1px solid rgba(188,140,255,0.25); color: var(--purple) }
.st-aud .wf-stage-icon { background: rgba(6,182,212,0.1);   border: 1px solid rgba(6,182,212,0.25);   color: var(--cyan) }
.st-res .wf-stage-icon { background: rgba(63,185,80,0.1);   border: 1px solid rgba(63,185,80,0.25);   color: var(--green) }

.st-req .wf-stage-name  { color: var(--text-1) }
.st-gw  .wf-stage-name  { color: var(--accent) }
.st-val .wf-stage-name  { color: var(--red) }
.st-proc .wf-stage-name { color: var(--purple) }
.st-aud .wf-stage-name  { color: var(--cyan) }
.st-res .wf-stage-name  { color: var(--green) }

/* Workflow connector particles */
.wf-flow .wf-conn:nth-of-type(1) .wf-conn-particle { background: var(--accent); animation-delay: 0s }
.wf-flow .wf-conn:nth-of-type(2) .wf-conn-particle { background: var(--red);    animation-delay: 0.35s }
.wf-flow .wf-conn:nth-of-type(3) .wf-conn-particle { background: var(--purple); animation-delay: 0.7s }
.wf-flow .wf-conn:nth-of-type(4) .wf-conn-particle { background: var(--cyan);   animation-delay: 1.05s }
.wf-flow .wf-conn:nth-of-type(5) .wf-conn-particle { background: var(--green);  animation-delay: 1.4s }

/* Workflow node pulse */
.wf-flow .wf-stage:nth-child(1)  .wf-stage-icon { animation: wfNodePulse 4s ease infinite 0s }
.wf-flow .wf-stage:nth-child(3)  .wf-stage-icon { animation: wfNodePulse 4s ease infinite 0.6s }
.wf-flow .wf-stage:nth-child(5)  .wf-stage-icon { animation: wfNodePulse 4s ease infinite 1.2s }
.wf-flow .wf-stage:nth-child(7)  .wf-stage-icon { animation: wfNodePulse 4s ease infinite 1.8s }
.wf-flow .wf-stage:nth-child(9)  .wf-stage-icon { animation: wfNodePulse 4s ease infinite 2.4s }
.wf-flow .wf-stage:nth-child(11) .wf-stage-icon { animation: wfNodePulse 4s ease infinite 3.0s }

/* ── Governance Grid ─────────────────────────────────────────── */
.gov-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 1px; background: var(--border);
    border-radius: 8px; overflow: hidden; margin-top: 3rem;
}
.gov-card {
    background: var(--bg); padding: 2rem 1.5rem;
    transition: background 0.25s, transform 0.25s;
}
.gov-card:hover { background: var(--bg-surface); transform: translateY(-2px) }
.gov-icon {
    font-size: 1.1rem; margin-bottom: 0.75rem;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-dim); border-radius: 6px;
}
.gov-icon.red    { background: rgba(248,81,73,0.08) }
.gov-icon.green  { background: rgba(63,185,80,0.08) }
.gov-icon.purple { background: rgba(188,140,255,0.08) }
.gov-icon.cyan   { background: rgba(6,182,212,0.08) }
.gov-icon.amber  { background: rgba(210,153,34,0.08) }
.gov-icon.pink   { background: rgba(247,120,186,0.08) }
.gov-name { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem }
.gov-desc { font-size: 0.76rem; color: var(--text-3); line-height: 1.5 }

/* Assurance layers (row 2) */
.gov-row2 {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    border-radius: 8px; overflow: hidden; margin-top: 1px;
}
.gov-row2-label {
    font-family: var(--mono); font-size: 0.55rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-4); margin-top: 2.5rem;
    margin-bottom: 0.75rem; text-align: center;
}

/* ── Clinical Section ────────────────────────────────────────── */
.clinical-section { background: var(--bg-alt) }
.clin-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6rem; margin-top: 4rem; align-items: start;
}
.clin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 2rem;
    position: relative; overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}
.clin-card:hover { border-color: var(--border-h); transform: translateY(-2px) }
.clin-card::before {
    content: ''; position: absolute;
    top: 0; left: 2rem; right: 2rem; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(188,140,255,0.2), transparent);
}
.clin-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--mono); font-size: 0.58rem;
    font-weight: 500; letter-spacing: 0.08em;
    color: var(--purple); margin-bottom: 1rem;
    padding: 4px 10px; border-radius: 3px;
    background: rgba(188,140,255,0.06);
    border: 1px solid rgba(188,140,255,0.12);
}
.clin-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem }
.clin-desc { font-size: 0.82rem; color: var(--text-3); line-height: 1.65 }
.clin-layers { list-style: none; margin-top: 1.5rem }
.clin-layers li {
    font-size: 0.76rem; color: var(--text-2);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 0.7rem;
}
.clin-layers li:first-child { border-top: 1px solid var(--border) }
.layer-num {
    font-family: var(--mono); font-size: 0.55rem;
    color: var(--purple); min-width: 14px; padding-top: 2px;
}
.cluster-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.4rem; margin-top: 1rem;
}
.cluster-pill {
    font-family: var(--mono); font-size: 0.58rem;
    padding: 4px 8px; border-radius: 3px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-3); text-align: center;
    transition: all 0.15s;
}
.cluster-pill:hover { border-color: rgba(188,140,255,0.2); color: var(--purple) }

/* ── Agents Section ──────────────────────────────────────────── */
.agent-section { background: var(--bg-alt) }
.agent-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    border-radius: 8px; overflow: hidden; margin-top: 3rem;
}
.tier-card {
    background: var(--bg); padding: 2rem 1.5rem;
    transition: background 0.25s, transform 0.25s;
}
.tier-card:hover { background: var(--bg-surface); transform: translateY(-2px) }
.tier-label {
    font-family: var(--mono); font-size: 0.6rem;
    letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.tier-label.t0 { color: var(--green) }
.tier-label.t1 { color: var(--amber) }
.tier-label.t2 { color: var(--purple) }
.tier-mode { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem }
.tier-agents {
    font-size: 0.74rem; color: var(--text-3);
    line-height: 1.6; margin-bottom: 0.75rem;
}
.tier-rule {
    font-size: 0.7rem; color: var(--text-4);
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

/* ── Systems List ────────────────────────────────────────────── */
.systems-list { margin-top: 4rem }
.sys-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: start; gap: 2rem;
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}
.sys-row:first-child { border-top: 1px solid var(--border) }
.sys-row:hover { padding-left: 1rem }
.sys-num {
    font-family: var(--mono); font-size: 0.6rem;
    color: var(--text-4); padding-top: 0.3rem;
}
.sys-name {
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: -0.015em; margin-bottom: 0.4rem;
}
.sys-text {
    font-size: 0.84rem; color: var(--text-3);
    line-height: 1.6; max-width: 520px;
}
.sys-end {
    color: var(--text-4); font-size: 0.85rem;
    padding-top: 0.3rem; transition: color 0.2s;
}
.sys-row:hover .sys-end { color: var(--accent) }

/* ── Scale Section ───────────────────────────────────────────── */
.scale-section { background: var(--bg-alt) }
.scale-metrics {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 1px; background: var(--border);
    border-radius: 8px; overflow: hidden; margin-top: 4rem;
}
.sm-item {
    background: var(--bg); padding: 2.5rem 1.5rem;
    transition: background 0.25s;
}
.sm-item:hover { background: var(--bg-surface) }
.sm-val {
    font-size: 1.8rem; font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 0.35rem;
}
.sm-label { font-size: 0.78rem; color: var(--text-3); line-height: 1.4 }
.sm-note {
    font-family: var(--mono); font-size: 0.55rem;
    color: var(--text-4); margin-top: 0.2rem;
}
.trust-bar {
    display: flex; gap: 2rem; flex-wrap: wrap;
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.trust-item {
    font-size: 0.76rem; color: var(--text-3);
    display: flex; align-items: center; gap: 0.5rem;
}
.trust-mark { font-family: var(--mono); font-size: 0.65rem; color: var(--accent) }

/* ── Status Grid ─────────────────────────────────────────────── */
.status-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--border);
    border-radius: 8px; overflow: hidden; margin-top: 3rem;
}
.status-card {
    background: var(--bg); padding: 1.5rem; position: relative;
    transition: background 0.25s, transform 0.25s;
}
.status-card:hover { background: var(--bg-surface); transform: translateY(-1px) }
.status-card::before {
    content: ''; position: absolute;
    top: 0.75rem; right: 1rem;
    width: 6px; height: 6px; border-radius: 50%;
}
.status-card.st-live::before { background: var(--green); box-shadow: 0 0 8px var(--green) }
.status-card.st-beta::before { background: var(--amber); box-shadow: 0 0 8px var(--amber) }
.status-card.st-dev::before  { background: var(--accent); animation: stPulse 2s ease infinite }
.status-card.st-soon::before { background: var(--text-4) }
.status-name { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.25rem }
.status-desc { font-size: 0.68rem; color: var(--text-3); line-height: 1.5 }
.status-tag {
    font-family: var(--mono); font-size: 0.5rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-top: 0.5rem; display: inline-block;
    padding: 2px 6px; border-radius: 3px; font-weight: 500;
}
.status-tag.tg-live { color: var(--green); background: rgba(63,185,80,0.08) }
.status-tag.tg-beta { color: var(--amber); background: rgba(210,153,34,0.08) }
.status-tag.tg-dev  { color: var(--accent); background: rgba(74,158,255,0.08) }
.status-tag.tg-soon { color: var(--text-4); background: rgba(255,255,255,0.03) }
.status-legend {
    display: flex; gap: 1.5rem;
    margin-top: 1.5rem; flex-wrap: wrap;
}
.status-legend-item {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.65rem; color: var(--text-4);
}
.status-legend-dot { width: 6px; height: 6px; border-radius: 50% }

/* ── Founder Bar ─────────────────────────────────────────────── */
.founder-bar {
    display: flex; align-items: center; gap: 2rem;
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.founder-text { font-size: 0.82rem; color: var(--text-2); line-height: 1.6 }
.founder-tag {
    font-family: var(--mono); font-size: 0.58rem;
    color: var(--text-4); letter-spacing: 0.06em;
}

/* ── Pricing Section ─────────────────────────────────────────── */
.pricing-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--border);
    border-radius: 8px; overflow: hidden; margin-top: 3rem;
}
.price-card {
    background: var(--bg); padding: 2.5rem 1.5rem;
    position: relative; transition: background 0.25s, transform 0.25s;
}
.price-card:hover { background: var(--bg-surface); transform: translateY(-2px) }
.price-card.featured::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--green);
}
.price-tier {
    font-family: var(--mono); font-size: 0.6rem;
    letter-spacing: 0.1em; font-weight: 600;
    margin-bottom: 1rem;
}
.price-val {
    font-size: 1.4rem; font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 0.2rem;
}
.price-per {
    font-size: 0.62rem; color: var(--text-4);
    font-family: var(--mono); margin-bottom: 1.5rem;
}
.price-features { list-style: none; margin-bottom: 1.5rem }
.price-features li {
    font-size: 0.74rem; color: var(--text-3);
    padding: 0.4rem 0;
    display: flex; align-items: flex-start; gap: 0.5rem;
    line-height: 1.4;
}
.price-features li::before {
    content: '✓'; font-size: 0.6rem; color: var(--green);
    flex-shrink: 0; padding-top: 2px;
}
.price-ideal {
    font-size: 0.68rem; color: var(--text-4);
    border-top: 1px solid var(--border); padding-top: 1rem;
    line-height: 1.5;
}
.price-cta {
    display: block; text-align: center;
    margin-top: 1.25rem; padding: 8px 0;
    font-size: 0.72rem; font-weight: 600;
    border: 1px solid var(--border-h); border-radius: 4px;
    color: var(--text-2); text-decoration: none;
    transition: all 0.2s;
}
.price-cta:hover { color: var(--text-1); border-color: var(--text-3) }

/* ── Feature Comparison Table ────────────────────────────────── */
.compare-wrap {
    overflow-x: auto; margin-top: 3rem;
    border: 1px solid var(--border); border-radius: 8px;
}
.compare-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.74rem;
}
.compare-table th, .compare-table td {
    padding: 0.75rem 1rem; text-align: left;
    border-bottom: 1px solid var(--border);
}
.compare-table th {
    font-family: var(--mono); font-size: 0.58rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-3); background: var(--bg-surface);
    font-weight: 600;
}
.compare-table td:first-child {
    color: var(--text-2); font-weight: 500;
    min-width: 180px;
}
.compare-table td { color: var(--text-3) }
.compare-table tr:last-child td { border-bottom: none }
.compare-table .ck { color: var(--green); text-align: center }
.compare-table .no { color: var(--text-4); text-align: center }
.compare-table .cat-row td {
    background: var(--bg-surface); font-weight: 600;
    color: var(--text-2); font-size: 0.68rem;
    letter-spacing: 0.04em;
}

/* ── Interactive Org Chart ────────────────────────────────────── */
.org-selector {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    justify-content: center; margin-bottom: 2.5rem;
}
.org-btn {
    font-family: var(--mono); font-size: 0.6rem;
    font-weight: 600; letter-spacing: 0.06em;
    padding: 6px 14px; border-radius: 4px;
    cursor: pointer; transition: all 0.2s;
    border: 1px solid var(--border);
    background: transparent; color: var(--text-3);
}
.org-btn:hover { border-color: var(--border-h); color: var(--text-2) }
.org-btn.active { color: var(--text-1); border-color: var(--text-3); background: var(--bg-alt) }

.org-canvas {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    min-height: 300px;
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; gap: 1.5rem;
}
.org-row {
    display: flex; gap: 1rem; flex-wrap: wrap;
    justify-content: center; align-items: center;
}
.org-node {
    padding: 0.5rem 1rem; border-radius: 6px;
    font-size: 0.72rem; font-weight: 600;
    text-align: center; transition: all 0.3s;
    border: 1px solid var(--border);
    min-width: 80px;
}
.org-node.n-ceo { background: rgba(237,236,233,0.08); color: var(--text-1); border-color: rgba(237,236,233,0.2) }
.org-node.n-core { background: rgba(74,158,255,0.06); color: var(--accent); border-color: rgba(74,158,255,0.2) }
.org-node.n-clinical { background: rgba(188,140,255,0.06); color: var(--purple); border-color: rgba(188,140,255,0.2) }
.org-node.n-growth { background: rgba(210,153,34,0.06); color: var(--amber); border-color: rgba(210,153,34,0.2) }
.org-node.n-legion { background: rgba(210,153,34,0.04); color: var(--amber); border-color: rgba(210,153,34,0.15); border-style: dashed }
.org-conn {
    font-family: var(--mono); font-size: 0.65rem;
    color: var(--text-4); text-align: center;
}
.org-node[data-org-hidden] { display: none }
.org-conn[data-org-hidden] { display: none }

/* ── SENTINEL v8 Section ────────────────────────────────────── */
.sentinel-v8-section { background: var(--bg-alt) }

/* ── LOGOS Section ─────────────────────────────────────────── */
.logos-section { background: var(--bg-alt) }

/* ── STRATEGOS Section ────────────────────────────────────── */
.strategos-section { background: var(--bg) }

/* ── ATHENA Section ──────────────────────────────────────────── */
.athena-section { background: var(--bg-alt) }

/* ── Decision Matrix ────────────────────────────────────────── */
.dm-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    border-radius: 8px; overflow: hidden;
}
.dm-card {
    background: var(--bg); padding: 2rem 1.5rem;
    text-align: center; transition: background 0.25s, transform 0.25s;
}
.dm-card:hover { background: var(--bg-surface); transform: translateY(-2px) }
.dm-icon { font-size: 2rem; margin-bottom: 0.75rem }
.dm-label {
    font-size: 0.82rem; font-weight: 700; margin-bottom: 0.4rem;
}
.dm-desc { font-size: 0.74rem; color: var(--text-3); line-height: 1.55 }
.dm-auto .dm-label { color: var(--accent) }
.dm-shared .dm-label { color: var(--amber) }
.dm-human .dm-label { color: var(--green) }
.dm-auto .dm-icon { filter: hue-rotate(0deg) }
.dm-shared .dm-icon { filter: hue-rotate(30deg) }
.dm-human .dm-icon { filter: hue-rotate(90deg) }

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-end { max-width: 580px }
.cta-end .section-title { margin-bottom: 1rem }
.cta-end .section-desc { margin-bottom: 3rem }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    padding: 2rem clamp(2rem, 6vw, 8rem);
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.footer-l {
    font-size: 0.66rem; color: var(--text-4);
    font-family: var(--mono); letter-spacing: 0.02em;
}
.footer-r { display: flex; gap: 1.5rem }
.footer-r a {
    font-size: 0.66rem; color: var(--text-4);
    text-decoration: none; transition: color 0.15s;
}
.footer-r a:hover { color: var(--text-3) }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes up {
    from { opacity: 0; transform: translateY(10px) }
    to   { opacity: 1; transform: translateY(0) }
}
@keyframes wfParticle {
    from { left: -6px; opacity: 0 }
    10%  { opacity: 1 }
    90%  { opacity: 1 }
    to   { left: calc(100% + 6px); opacity: 0 }
}
@keyframes wfNodePulse {
    0%, 100% { box-shadow: 0 0 0 0 transparent; transform: scale(1) }
    50%      { box-shadow: 0 0 16px 3px currentColor; transform: scale(1.06) }
}
@keyframes stPulse {
    0%, 100% { opacity: 0.5 }
    50%      { opacity: 1 }
}

/* Scroll reveal */
.reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1),
                transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0) }
.reveal.from-left { transform: translateX(-20px) }
.reveal.from-right { transform: translateX(20px) }
.reveal.from-left.visible,
.reveal.from-right.visible { transform: translateX(0) }
.reveal.scale-in { transform: scale(0.95) }
.reveal.scale-in.visible { transform: scale(1) }

/* Stagger children in grids */
.gov-grid.reveal.visible .gov-card,
.gov-row2.reveal.visible .gov-card,
.agent-grid.reveal.visible .tier-card,
.scale-metrics.reveal.visible .sm-item,
.status-grid.reveal.visible .status-card {
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* Stagger delays — nth-child cascade */
.gov-grid.reveal.visible .gov-card:nth-child(1) { animation-delay: 0s }
.gov-grid.reveal.visible .gov-card:nth-child(2) { animation-delay: 0.06s }
.gov-grid.reveal.visible .gov-card:nth-child(3) { animation-delay: 0.12s }
.gov-grid.reveal.visible .gov-card:nth-child(4) { animation-delay: 0.18s }
.gov-grid.reveal.visible .gov-card:nth-child(5) { animation-delay: 0.24s }
.agent-grid.reveal.visible .tier-card:nth-child(1) { animation-delay: 0s }
.agent-grid.reveal.visible .tier-card:nth-child(2) { animation-delay: 0.08s }
.agent-grid.reveal.visible .tier-card:nth-child(3) { animation-delay: 0.16s }
.scale-metrics.reveal.visible .sm-item:nth-child(1) { animation-delay: 0s }
.scale-metrics.reveal.visible .sm-item:nth-child(2) { animation-delay: 0.05s }
.scale-metrics.reveal.visible .sm-item:nth-child(3) { animation-delay: 0.1s }
.scale-metrics.reveal.visible .sm-item:nth-child(4) { animation-delay: 0.15s }
.scale-metrics.reveal.visible .sm-item:nth-child(5) { animation-delay: 0.2s }
.status-grid.reveal.visible .status-card:nth-child(1) { animation-delay: 0s }
.status-grid.reveal.visible .status-card:nth-child(2) { animation-delay: 0.04s }
.status-grid.reveal.visible .status-card:nth-child(3) { animation-delay: 0.08s }
.status-grid.reveal.visible .status-card:nth-child(4) { animation-delay: 0.12s }
.status-grid.reveal.visible .status-card:nth-child(5) { animation-delay: 0.16s }
.status-grid.reveal.visible .status-card:nth-child(6) { animation-delay: 0.2s }
.status-grid.reveal.visible .status-card:nth-child(7) { animation-delay: 0.24s }
.status-grid.reveal.visible .status-card:nth-child(8) { animation-delay: 0.28s }
.status-grid.reveal.visible .status-card:nth-child(9) { animation-delay: 0.32s }
.status-grid.reveal.visible .status-card:nth-child(10) { animation-delay: 0.36s }
.status-grid.reveal.visible .status-card:nth-child(11) { animation-delay: 0.4s }
.status-grid.reveal.visible .status-card:nth-child(12) { animation-delay: 0.44s }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px) }
    to { opacity: 1; transform: translateY(0) }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; transition: none }
    .hero-tag, .hero h1, .hero-subtitle,
    .hero-desc, .hero-actions { opacity: 1; animation: none }
    .hero::before { animation: none; opacity: 0.6 }
}

/* ── Flywheel Demo ──────────────────────────────────────────── */
.fw-wrap { margin: 2rem 0 }
.fw-steps {
    display: flex; align-items: center; gap: 0.3rem;
    flex-wrap: wrap; justify-content: center; margin-bottom: 2rem;
}
.fw-step {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 8px 14px; border-radius: 6px;
    border: 1px solid var(--border); background: transparent;
    transition: all 0.4s;
}
.fw-step-icon {
    font-size: 1rem; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--bg-surface);
    border: 1px solid var(--border); transition: all 0.4s;
}
.fw-step-label {
    font-family: var(--mono); font-size: 0.6rem;
    color: var(--text-4); letter-spacing: 0.04em;
    transition: color 0.4s;
}
.fw-arrow { color: var(--text-4); font-size: 0.7rem; opacity: 0.3 }
.fw-step.active {
    border-color: var(--accent);
    background: rgba(74,158,255,0.06);
    transform: scale(1.05);
}
.fw-step.active .fw-step-label { color: var(--text-1) }
.fw-step.active .fw-step-icon {
    border-color: var(--step-color, var(--accent));
    box-shadow: 0 0 12px rgba(74,158,255,0.3);
}
.fw-step.done { border-color: rgba(63,185,80,0.3); background: rgba(63,185,80,0.04) }
.fw-step.done .fw-step-label { color: var(--green) }
.fw-detail {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 1.2rem; min-height: 80px;
    margin-bottom: 1.5rem;
}
.fw-detail h4 { font-size: 0.9rem; margin-bottom: 0.4rem }
.fw-detail p { font-size: 0.82rem; color: var(--text-3); line-height: 1.6 }
.fw-prompt { color: var(--text-4); font-size: 0.82rem }
.fw-controls { display: flex; gap: 0.8rem; margin-bottom: 1.5rem }
.fw-counter {
    display: flex; gap: 2rem; justify-content: center;
    padding: 1.2rem; border-top: 1px solid var(--border);
}
.fw-count-item { text-align: center }
.fw-count-val {
    display: block; font-size: 1.5rem; font-weight: 700;
    color: var(--accent); font-family: var(--mono);
}
.fw-count-label { font-size: 0.65rem; color: var(--text-4) }

/* ── ROI Calculator ─────────────────────────────────────────── */
.roi-wrap { margin: 3rem 0 }
.roi-inputs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem; margin-bottom: 2rem;
}
.roi-field label {
    display: block; font-family: var(--mono); font-size: 0.6rem;
    color: var(--text-4); letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.roi-field input[type="range"] {
    width: 100%; accent-color: var(--accent);
}
.roi-field select {
    width: 100%; background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 4px; padding: 8px 12px; color: var(--text-1);
    font-family: var(--font); font-size: 0.82rem;
}
.roi-val {
    font-family: var(--mono); font-size: 1.1rem;
    font-weight: 700; color: var(--accent);
}
.roi-results {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 1.5rem;
}
.roi-result-card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 1.2rem; text-align: center;
}
.roi-result-card.featured { border-color: rgba(74,158,255,0.3) }
.roi-result-card h4 {
    font-family: var(--mono); font-size: 0.55rem;
    color: var(--text-4); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 0.6rem;
}
.roi-big {
    font-size: 1.6rem; font-weight: 700; font-family: var(--mono);
}
.roi-big.red { color: var(--red) }
.roi-big.green { color: var(--green) }
.roi-big.accent { color: var(--accent) }
.roi-pct { font-size: 0.72rem; color: var(--text-3); margin-top: 0.3rem }
.roi-breakdown { border-top: 1px solid var(--border); padding-top: 1rem }
.roi-bd-row {
    display: flex; justify-content: space-between;
    padding: 0.5rem 0; font-size: 0.78rem; color: var(--text-2);
    border-bottom: 1px solid var(--border);
}

/* ── Loading Skeletons ──────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-alt) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
.skeleton-card { height: 200px; margin-bottom: 1rem }
.skeleton-line { height: 14px; margin-bottom: 0.6rem; width: 80% }
.skeleton-line.short { width: 40% }
@keyframes shimmer {
    0% { background-position: 200% 0 }
    100% { background-position: -200% 0 }
}

/* ── RTL Support (Arabic) ────────────────────────────────────── */
[dir="rtl"] { direction: rtl; text-align: right }
[dir="rtl"] .nav { flex-direction: row-reverse }
[dir="rtl"] .nav-links { flex-direction: row-reverse }
[dir="rtl"] .nav-r { flex-direction: row-reverse }
[dir="rtl"] .lang-group { flex-direction: row-reverse }
[dir="rtl"] .footer { flex-direction: row-reverse }
[dir="rtl"] .footer-r { flex-direction: row-reverse }
[dir="rtl"] .skip-link { left: auto; right: 1rem }
[dir="rtl"] .hero::before { right: auto; left: 10% }
[dir="rtl"] .sys-row:hover { padding-left: 0; padding-right: 1rem }
[dir="rtl"] .status-card::before { right: auto; left: 1rem }
[dir="rtl"] .cap-list li { flex-direction: row-reverse }
[dir="rtl"] .trust-item { flex-direction: row-reverse }
[dir="rtl"] .clin-layers li { flex-direction: row-reverse }

/* ── Responsive — Tablet ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .layer-grid, .clin-grid { grid-template-columns: 1fr; gap: 3rem }
    .gov-grid { grid-template-columns: repeat(2, 1fr) }
    .gov-row2 { grid-template-columns: repeat(2, 1fr) }
    .agent-grid { grid-template-columns: 1fr }
    .sys-row { grid-template-columns: 1fr; gap: 0.5rem }
    .sys-num, .sys-end { display: none }
    .scale-metrics { grid-template-columns: repeat(3, 1fr) }
    .status-grid { grid-template-columns: repeat(2, 1fr) }
    .wf-flow { flex-wrap: wrap; gap: 0.5rem }
    .pricing-grid { grid-template-columns: repeat(2, 1fr) }
    .dm-grid { grid-template-columns: 1fr }
}

/* ── Responsive — Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none }
    .mob-toggle { display: block }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%;
        left: 0; right: 0;
        background: var(--bg-alt);
        padding: 1.5rem; gap: 0.75rem;
        border-bottom: 1px solid var(--border);
    }
    .hero {
        padding-top: 7rem; min-height: auto;
        padding-bottom: 5rem;
    }
    .section { padding-top: 5rem; padding-bottom: 5rem }
    .hero-actions {
        flex-direction: column; max-width: 260px;
    }
    .hero-actions a { text-align: center }
    .gov-grid { grid-template-columns: 1fr }
    .gov-row2 { grid-template-columns: 1fr }
    .scale-metrics { grid-template-columns: 1fr 1fr }
    .status-grid { grid-template-columns: 1fr }
    .cluster-grid { grid-template-columns: 1fr }
    .pricing-grid { grid-template-columns: 1fr }
    .compare-table { font-size: 0.66rem }
    .compare-table th, .compare-table td { padding: 0.5rem 0.6rem }
    .trust-bar { flex-direction: column; gap: 0.75rem }
    .footer { flex-direction: column; gap: 0.75rem; text-align: center }

    /* Workflow vertical on mobile */
    .wf-flow { flex-direction: column; align-items: center; gap: 0 }
    .wf-conn { width: 2px; height: 40px; overflow: visible }
    .wf-conn-line { width: 1px; height: 100%; top: 0; left: 50% }
    .wf-conn-particle {
        top: -6px; left: 50%;
        transform: translateX(-50%);
        animation: wfParticleV 2s linear infinite;
    }
    .wf-stage-sub { max-width: 120px }

    /* Flywheel mobile */
    .fw-steps { gap: 0.2rem }
    .fw-step { padding: 6px 8px }
    .fw-step-label { font-size: 0.5rem }
    .fw-arrow { display: none }
    .fw-counter { gap: 1rem; flex-wrap: wrap }

    /* ROI calculator mobile */
    .roi-inputs { grid-template-columns: 1fr }
    .roi-results { grid-template-columns: 1fr }
    .roi-big { font-size: 1.3rem }

    /* RTL mobile overrides */
    [dir="rtl"] .nav { flex-direction: row-reverse }
    [dir="rtl"] .footer { flex-direction: column }
}

@keyframes wfParticleV {
    from { top: -6px; opacity: 0 }
    10%  { opacity: 1 }
    90%  { opacity: 1 }
    to   { top: calc(100% + 6px); opacity: 0 }
}

/* ── Focus-visible — WCAG AA keyboard navigation ─────────── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Buttons and links get slightly different treatment */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-contact:focus-visible {
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Form inputs — accent border instead of outline */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Skip link visible on focus */
.skip-link:focus {
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    z-index: 9999;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}

/* ── Extracted utility classes (reduce inline styles) ─────── */
.form-input {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--text-1);
    font-family: var(--font);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent) }
.form-input::placeholder { color: var(--text-4) }

.form-select {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--text-3);
    font-family: var(--font);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
}

.section-mono-label {
    font-family: var(--mono);
    font-size: 0.55rem;
    color: var(--text-4);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-box {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.stat-flex {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* ── Skeleton Loading — lazy-loaded fragment placeholders ─────── */
@keyframes skelShimmer {
    0%   { background-position: -600px 0 }
    100% { background-position:  600px 0 }
}
[data-frag]:not([data-loaded]) {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 6rem clamp(2rem, 6vw, 8rem);
    overflow: hidden;
    position: relative;
}
[data-frag]:not([data-loaded])::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.03) 40%,
        rgba(255,255,255,0.05) 50%,
        rgba(255,255,255,0.03) 60%,
        transparent 100%
    );
    background-size: 600px 100%;
    animation: skelShimmer 1.8s ease-in-out infinite;
}
[data-frag]:not([data-loaded]) .skel-line {
    height: 1em;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    margin-bottom: 0.75rem;
}
[data-frag]:not([data-loaded]) .skel-line.w-40  { width: 40% }
[data-frag]:not([data-loaded]) .skel-line.w-60  { width: 60% }
[data-frag]:not([data-loaded]) .skel-line.w-80  { width: 80% }
[data-frag]:not([data-loaded]) .skel-line.w-100 { width: 100% }
[data-frag]:not([data-loaded]) .skel-line.h-title { height: 2.5em; margin-bottom: 1.5rem }
[data-frag]:not([data-loaded]) .skel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
[data-frag]:not([data-loaded]) .skel-card {
    height: 120px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}
