/* =========================================================================
   AviatorTutor — premium aviation marketing CSS
   Hand-authored, no Tailwind/CDN. Dark navy + sky-blue accent.
   Loaded by views/layouts/marketing.php and partial pages.
   ========================================================================= */

:root {
    --bg:           #0b1322;
    --bg-elev:      #0f1a2e;
    --bg-card:      #122036;
    --bg-card-2:    #16263f;
    --line:         rgba(148, 163, 184, 0.16);
    --line-strong:  rgba(148, 163, 184, 0.32);

    --text:         #e2e8f0;
    --text-muted:   #94a3b8;
    --text-soft:    #64748b;
    --text-on-accent: #02101f;

    --accent:       #38bdf8;     /* sky-400 */
    --accent-hi:    #7dd3fc;
    --accent-soft:  rgba(56, 189, 248, 0.14);
    --accent-strong:#0ea5e9;
    --warn:         #fbbf24;
    --success:      #34d399;
    --danger:       #fb7185;

    --radius:       12px;
    --radius-lg:    18px;
    --radius-pill:  999px;

    --shadow-card:  0 6px 30px -10px rgba(0, 0, 0, 0.55);
    --shadow-glow:  0 0 0 1px var(--accent), 0 0 32px -10px var(--accent);

    --font-sans:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono:    "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { color-scheme: dark; scroll-behavior: smooth; }
body {
    background: radial-gradient(ellipse at top, #0b1726 0%, var(--bg) 60%) fixed;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hi); }

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    margin: 0 0 0.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #f1f5f9;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--text-muted); }

code, .mono, .num {
    font-family: var(--font-mono);
    font-feature-settings: "tnum" 1;
}

::selection { background: var(--accent-soft); color: #fff; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-tight { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(11, 19, 34, 0.78);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a.active { color: var(--accent); }
/* Button-styled nav items must inherit their .btn color/weight, not the
   muted slate of plain nav links. The .site-header nav a rule above wins
   on specificity (two selectors) over .btn-primary (one), so we re-assert
   the button styles with matching specificity. */
.site-header nav a.btn { font-weight: 600; color: var(--text); }
.site-header nav a.btn-primary { color: #02101f; font-weight: 700; }
.site-header nav a.btn-primary:hover { color: #02101f; }
.site-header nav a.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.site-header nav a.btn-ghost:hover { color: var(--accent-hi); }

.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text) !important;
    font-family: 'DM Sans', Inter, system-ui, sans-serif;
    font-weight: 700; letter-spacing: -0.015em;
    font-size: 1.12rem;
    text-decoration: none;
}
.brand__logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56,189,248,0.18) 0%, rgba(37,99,235,0.12) 100%);
    box-shadow: 0 0 0 1px rgba(56,189,248,0.32), 0 6px 18px -8px rgba(56,189,248,0.55);
    display: grid; place-items: center;
    color: #F1F5F9;
    flex-shrink: 0;
}
.brand__wordmark {
    line-height: 1;
}
.brand__wordmark-accent {
    color: var(--accent, #38BDF8);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius);
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--line-strong);
    font: inherit; font-weight: 600; font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.08s, background 0.15s, border-color 0.15s;
    text-decoration: none; line-height: 1;
}
.btn:hover { background: var(--bg-card); border-color: rgba(148,163,184,0.45); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #02101f;
    border-color: var(--accent-strong);
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255,255,255,0.18);
    box-shadow: 0 6px 24px -10px var(--accent);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent) 100%);
    border-color: var(--accent);
    color: #02101f;
}
.btn-primary:focus-visible {
    outline: 3px solid rgba(56,189,248,0.45);
    outline-offset: 2px;
}
.btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 96px 0 80px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: -10% -10% auto -10%; height: 540px;
    background:
        radial-gradient(60% 60% at 30% 30%, rgba(56,189,248,0.18), transparent 60%),
        radial-gradient(50% 50% at 80% 60%, rgba(34,197,94,0.10), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}
.hero h1 { max-width: 22ch; }
.hero .lead {
    max-width: 60ch;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    margin: 0 0 32px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(56,189,248,0.4);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}
.hero__chip::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.6; transform: scale(0.8); }
}
.hero__metabar {
    display: flex; gap: 28px; flex-wrap: wrap;
    margin-top: 56px;
    color: var(--text-soft); font-size: 0.85rem;
}
.hero__metabar span { display: inline-flex; align-items: center; gap: 8px; }
.hero__metabar strong { color: var(--text); font-family: var(--font-mono); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-elev); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section__head h2 { margin-bottom: 12px; }
.section__head p { max-width: 60ch; margin: 0 auto; color: var(--text-muted); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Cards ---------- */
.card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.card--accent { border-top: 2px solid var(--accent); }

.card__icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-mono); font-weight: 700;
    margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin: 0; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pricing-card {
    max-width: 460px; margin: 0 auto;
    padding: 36px 32px 32px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
    border: 1.5px solid var(--accent);
    border-radius: 22px;
    box-shadow: 0 0 0 8px rgba(56,189,248,0.06);
    text-align: center;
}
.pricing-card__price {
    font-family: var(--font-mono);
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin: 8px 0 6px;
}
.pricing-card__price small { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.pricing-card__list { list-style: none; padding: 24px 0; margin: 0; text-align: left; }
.pricing-card__list li {
    padding: 8px 0;
    color: var(--text-muted);
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.95rem;
}
.pricing-card__list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- How it works steps ---------- */
.steps { counter-reset: step; }
.step {
    padding: 24px 24px 24px 86px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute; top: 24px; left: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-on-accent);
    display: grid; place-items: center;
    font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: border-color 0.15s, background 0.15s;
}
.faq details[open] { border-color: rgba(56,189,248,0.45); background: var(--bg-card-2); }
.faq summary {
    cursor: pointer;
    list-style: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.4rem; line-height: 1;
    color: var(--accent);
    transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; transform: scale(1.05); }
.faq details > p, .faq details > div { margin-top: 12px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 96px;
    padding: 56px 0 40px;
    color: var(--text-soft);
    font-size: 0.88rem;
    background: var(--bg-elev);
}
.site-footer .container > div:first-child {
    display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px;
    margin-bottom: 40px;
}
.site-footer h4 { color: var(--text); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul li a { color: var(--text-muted); font-size: 0.9rem; }
.site-footer ul li a:hover { color: var(--text); }
.site-footer__bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}

/* ---------- Flash messages ---------- */
.flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--line-strong);
    background: var(--bg-card);
    font-size: 0.92rem;
}
.flash--success { border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.10); color: var(--success); }
.flash--error   { border-color: rgba(251,113,133,0.4); background: rgba(251,113,133,0.10); color: var(--danger); }
.flash--info    { border-color: rgba(56,189,248,0.4); background: var(--accent-soft); color: var(--accent); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 12px 14px;
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font: inherit; font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.18);
}
.form-help { font-size: 0.8rem; color: var(--text-soft); margin-top: 6px; }

/* ---------- Hamburger toggle (mobile drawer) ---------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn {
    display: none;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    color: var(--text); cursor: pointer;
    border-radius: 10px;
    transition: background 0.15s;
}
.nav-toggle-btn:hover { background: rgba(255,255,255,0.04); }

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .nav-toggle-btn { display: inline-flex; }
    .site-header { position: relative; }
    .site-header__inner { gap: 12px; }
    .site-header nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px;
        background: var(--bg-elev);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 32px -16px rgba(0,0,0,0.6);
        max-height: 0; overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .nav-toggle:checked ~ .site-header nav,
    .site-header:has(.nav-toggle:checked) nav { max-height: 600px; }
    .site-header nav a {
        padding: 10px 12px;
        border-radius: 10px;
    }
    .site-header nav a:hover { background: rgba(255,255,255,0.04); }
    .site-header nav a.btn { width: 100%; justify-content: center; text-align: center; }
    .hero { padding: 64px 0 48px; }
    .section { padding: 56px 0; }
    .site-footer .container > div:first-child { grid-template-columns: 1fr 1fr; }
}

/* Tiny utility */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* ============================================================
   HERO VISUAL (Phase 1 — premium right-side preview stack)
   ------------------------------------------------------------
   Pure HTML/CSS, no images, no JS. Three cards rotate via a
   shared 27s keyframe (each card highlighted for ~9s). Pauses
   on hover. Hidden below 980px so mobile keeps its current
   single-column layout exactly as before.
   ============================================================ */
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.hero__copy { min-width: 0; }
.hero__copy h1 { max-width: 22ch; }
.hero__copy .lead { max-width: 60ch; }

.hero__visual {
    position: relative;
    min-height: 480px;
    perspective: 1400px;
}
.hv-stack {
    position: relative;
    width: 100%;
    height: 480px;
}
.hv-stack:hover .hv-card { animation-play-state: paused; }

.hv-card {
    position: absolute;
    left: 0; right: 0;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.78) 100%);
    box-shadow:
        0 24px 60px -20px rgba(0, 0, 0, 0.6),
        0 8px 22px -10px rgba(56,189,248,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    overflow: hidden;
    will-change: transform, opacity;
    animation: hv-rotate 27s ease-in-out infinite;
}
.hv-card--01 { top: 0;     transform: translateY(0)    rotate(-1.4deg); animation-delay: 0s; z-index: 3; }
.hv-card--02 { top: 240px; transform: translateY(0)    rotate(1.6deg);  animation-delay: -18s; z-index: 2; }
.hv-card--03 { top: 320px; transform: translateY(0)    rotate(-0.8deg); animation-delay: -9s; z-index: 1; }

@keyframes hv-rotate {
    /* Each card spends ~9s in front, then fades back. */
    0%, 28%   { transform: translateY(0)    rotate(-1.4deg) scale(1);    opacity: 1; z-index: 3; }
    33%, 61%  { transform: translateY(48px) rotate(0.6deg)  scale(0.96); opacity: 0.55; z-index: 1; }
    66%, 94%  { transform: translateY(24px) rotate(-0.4deg) scale(0.98); opacity: 0.7;  z-index: 2; }
    100%      { transform: translateY(0)    rotate(-1.4deg) scale(1);    opacity: 1; z-index: 3; }
}

.hv-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}
.hv-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.hv-dot--red    { background: #EF4444; }
.hv-dot--amber  { background: #F59E0B; }
.hv-dot--green  { background: #22C55E; }
.hv-card__crumb {
    margin-left: 6px;
    font-family: var(--font-mono, ui-monospace, Menlo, Monaco, monospace);
    font-size: 11px;
    color: var(--text-soft, rgba(226,232,240,0.55));
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hv-card__chip {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(56,189,248,0.14);
    color: var(--accent, #38BDF8);
    border: 1px solid rgba(56,189,248,0.32);
}
.hv-card__chip--gold {
    background: rgba(201,168,76,0.14);
    color: #E0B84A;
    border-color: rgba(201,168,76,0.34);
    margin-left: 0;
}
.hv-card__chip--ghost {
    background: rgba(255,255,255,0.04);
    color: var(--text-soft, rgba(226,232,240,0.55));
    border-color: rgba(255,255,255,0.12);
    margin-left: 0;
}

/* --- Slide preview card --- */
.hv-slide { padding: 18px 18px 16px; }
.hv-slide__title {
    font-family: var(--font-head, "DM Sans", Inter, sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #E2E8F0);
    margin-bottom: 14px;
    line-height: 1.3;
}
.hv-slide__diagram {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}
.hv-node {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: var(--font-mono, ui-monospace, Menlo, monospace);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(56,189,248,0.4);
    background: rgba(56,189,248,0.10);
    color: var(--accent, #38BDF8);
    white-space: nowrap;
}
.hv-node--gen { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.4); color: #4ADE80; }
.hv-node--tie { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.4); color: #FBBF24; }
.hv-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(56,189,248,0.55), rgba(56,189,248,0.15));
    border-radius: 2px;
    min-width: 8px;
}
.hv-slide__bullets {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hv-slide__bullets li {
    position: relative;
    padding-left: 14px;
    font-size: 12px;
    color: var(--text-muted, rgba(226,232,240,0.7));
    line-height: 1.5;
}
.hv-slide__bullets li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent, #38BDF8);
}
.hv-slide__bullets strong { color: var(--text, #E2E8F0); font-weight: 600; }
.hv-slide__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hv-pill {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent, #38BDF8);
    color: #0F172A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.hv-progress {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.hv-progress > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent, #38BDF8), #4ADE80);
}

/* --- Flashcard card --- */
.hv-flash { padding: 16px 18px 18px; }
.hv-flash__q {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text, #E2E8F0);
    line-height: 1.45;
    margin-bottom: 14px;
}
.hv-flash__input {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(56,189,248,0.32);
    margin-bottom: 10px;
}
.hv-flash__type {
    font-family: var(--font-mono, ui-monospace, Menlo, monospace);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent, #38BDF8);
    letter-spacing: 0.02em;
}
.hv-flash__cursor {
    display: inline-block;
    width: 1.5px; height: 16px;
    background: var(--accent, #38BDF8);
    margin-left: 2px;
    animation: hv-blink 0.9s steps(1) infinite;
}
@keyframes hv-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.hv-flash__check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34,197,94,0.14);
    color: #4ADE80;
    border: 1px solid rgba(34,197,94,0.32);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* --- KPI sliver card --- */
.hv-kpi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 18px 12px;
}
.hv-kpi__cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}
.hv-kpi__num {
    font-family: var(--font-head, "DM Sans", Inter, sans-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--text, #E2E8F0);
    line-height: 1;
}
.hv-kpi__den {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft, rgba(226,232,240,0.55));
    margin-left: 2px;
}
.hv-kpi__label {
    font-size: 10.5px;
    color: var(--text-muted, rgba(226,232,240,0.7));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.hv-kpi__chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 38px;
    padding: 0 18px 16px;
}
.hv-kpi__chart > span {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, var(--accent, #38BDF8) 0%, rgba(56,189,248,0.25) 100%);
    min-height: 4px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.hv-kpi__chart:hover > span { opacity: 1; }

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
    .hv-card { animation: none; }
    .hv-flash__cursor { animation: none; opacity: 1; }
}

/* Tablet & phone: hide the visual stack, restore the original
   single-column hero exactly as it was. The breakpoint at 980px
   gives the visual just enough room before it starts cropping. */
@media (max-width: 979px) {
    .hero__inner { display: block; }
    .hero__visual { display: none; }
}
