/* ==========================================================================
   Sections: hero, flow diagrams, pricing, dashboard preview, CTA bands
   ========================================================================== */

/* ------------------------------------------------------------------- hero */

.hero {
    position: relative;
    padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
    background: var(--grad-wash);
    overflow: hidden;
}

/* Faint blueprint grid, masked to fade out before it reaches the content. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero__glow-a {
    top: -18rem;
    right: -10rem;
    width: 40rem;
    height: 40rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 65%);
}

.hero__glow-b {
    bottom: -22rem;
    left: -14rem;
    width: 36rem;
    height: 36rem;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 65%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

@media (max-width: 1000px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr); }
}

.hero__title { margin-bottom: var(--space-5); }
.hero__sub { font-size: var(--text-xl); color: var(--slate-600); margin-bottom: var(--space-4); max-width: 40ch; }
.hero__secondary { font-size: var(--text-base); color: var(--muted); margin-bottom: var(--space-8); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-8); }

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    color: var(--muted);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta svg { width: 16px; height: 16px; color: var(--emerald-500); }

/* ---- product hero (interior pages) ---- */

.page-hero {
    position: relative;
    padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2.75rem, 5vw, 4rem);
    background: var(--grad-wash);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}

.page-hero__glow {
    top: -20rem;
    right: -8rem;
    width: 34rem;
    height: 34rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 65%);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
    font-size: var(--text-xs);
    color: var(--muted);
}

.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--slate-300); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue-700); }
.breadcrumbs [aria-current] { color: var(--navy-700); font-weight: 550; }

/* ------------------------------------------------------------ flow diagram */

/* Horizontal on wide screens, vertical on narrow — one markup, two layouts. */
.flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    counter-reset: flow;
}

.flow__step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-3);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    position: relative;
    z-index: 1;
    font-size: var(--text-sm);
    font-weight: 570;
    color: var(--navy-800);
}

.flow__connector {
    flex: 0 0 auto;
    align-self: center;
    width: clamp(1.25rem, 3vw, 3rem);
    height: 2px;
    background: linear-gradient(90deg, var(--blue-200), var(--blue-400));
    position: relative;
}

.flow__connector::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 7px solid var(--blue-400);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* A pulse travelling along the connector, suggesting a request in flight. */
.flow__connector::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--blue-500);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
    animation: flow-pulse 2.6s var(--ease) infinite;
    animation-delay: var(--pulse-delay, 0s);
    opacity: 0;
}

@keyframes flow-pulse {
    0% { opacity: 0; transform: translateX(0); }
    12% { opacity: 1; }
    72% { opacity: 1; transform: translateX(calc(100% + 1.5rem)); }
    100% { opacity: 0; transform: translateX(calc(100% + 1.5rem)); }
}

.flow__step .icon-tile { margin-bottom: 0; }

.flow__step--accent {
    background: var(--grad-brand);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.flow__step--accent .icon-tile {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
}

.flow__note { font-size: var(--text-xs); font-weight: 450; opacity: 0.72; }

@media (max-width: 820px) {
    .flow { flex-direction: column; }
    .flow__connector {
        width: 2px;
        height: 1.5rem;
        background: linear-gradient(180deg, var(--blue-200), var(--blue-400));
    }
    .flow__connector::after {
        right: 50%;
        top: auto;
        bottom: -1px;
        transform: translateX(50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 7px solid var(--blue-400);
        border-bottom: 0;
    }
    .flow__connector::before { animation: none; }
}

.section--dark .flow__step {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.13);
    color: var(--white);
    box-shadow: none;
}

.section--dark .flow__connector { background: linear-gradient(90deg, rgba(147, 197, 253, 0.3), var(--blue-400)); }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; gap: var(--space-5); }

.steps--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); }

@media (max-width: 760px) {
    .steps--2col { grid-template-columns: minmax(0, 1fr); }
}

.step { display: flex; gap: var(--space-4); align-items: flex-start; }

.step__num {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-700);
    font-size: var(--text-sm);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.step__title { font-weight: 620; color: var(--navy-800); margin-bottom: 0.15rem; font-size: var(--text-base); }
.step__text { font-size: var(--text-sm); color: var(--muted); margin: 0; }

/* ------------------------------------------------------------- stat tiles */

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: var(--space-5);
}

.stat {
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.stat__value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--navy-800);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.2rem;
}

.stat__label { font-size: var(--text-sm); color: var(--muted); }
.stat__detail { font-size: var(--text-xs); color: var(--slate-400); margin-top: 0.35rem; }

.meter {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--slate-100);
    overflow: hidden;
    margin-top: var(--space-3);
}

.meter__fill {
    height: 100%;
    border-radius: inherit;
    background: var(--grad-brand);
    width: var(--meter, 0%);
}

.meter__fill--warn { background: linear-gradient(90deg, var(--amber-500), #ea580c); }

/* ---------------------------------------------------------------- pricing */

/* Flex rather than grid: the plan count is data-driven, and with five plans a fixed
   three-column grid leaves a hole in the trailing row. Wrapping flex items centre
   themselves, so the layout stays balanced whatever the catalog holds. */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-6);
}

.pricing-grid > * {
    display: flex;
    flex: 1 1 280px;
    min-width: 260px;
    max-width: calc((100% - 2 * var(--space-6)) / 3);
}

.pricing-grid > * > .plan { width: 100%; }

@media (max-width: 1080px) {
    .pricing-grid > * { max-width: calc((100% - var(--space-6)) / 2); }
}

@media (max-width: 700px) {
    .pricing-grid > * { max-width: 100%; }
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }

.plan--featured {
    border-color: var(--blue-600);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, #f7faff 0%, var(--white) 22%);
}

.plan--featured:hover { transform: translateY(-5px); }

@media (min-width: 1081px) {
    /* The popular plan sits slightly proud of its neighbours. */
    .plan--featured { transform: translateY(-10px); }
    .plan--featured:hover { transform: translateY(-14px); }
}

.plan__name { font-size: var(--text-xl); margin-bottom: 0.25rem; }
.plan__best-for { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-5); min-height: 2.6em; }

.plan__price { display: flex; align-items: baseline; gap: 0.35rem; margin-bottom: 0.3rem; }

.plan__amount {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--navy-800);
    letter-spacing: -0.04em;
    line-height: 1;
}

.plan__period { font-size: var(--text-sm); color: var(--muted); }
.plan__calls { font-size: var(--text-sm); font-weight: 620; color: var(--blue-700); }

.plan__rate {
    font-size: var(--text-xs);
    color: var(--muted);
    font-family: var(--font-mono);
    margin-top: 0.2rem;
    min-height: 1.4em;
}

.plan__cta { margin-block: var(--space-6); }

.plan__features { flex: 1; }

.plan__features .check-list li { font-size: var(--text-sm); margin-bottom: 0.6rem; }

.plan__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    min-height: 1.9rem;
}

/* ---- effective-rate comparison chart ---- */

.rate-chart { display: grid; gap: var(--space-4); }

.rate-row {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr) 8.5rem;
    align-items: center;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .rate-row { grid-template-columns: 5.5rem minmax(0, 1fr); }
    .rate-row__value { grid-column: 2; text-align: left; font-size: var(--text-xs); }
}

.rate-row__label { font-size: var(--text-sm); font-weight: 620; color: var(--navy-800); }

.rate-row__track {
    height: 12px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rate-row__bar {
    height: 100%;
    border-radius: inherit;
    background: var(--grad-brand);
    width: var(--bar, 0%);
    transition: width 900ms var(--ease);
}

.rate-row__value {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--slate-600);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rate-row--best .rate-row__bar { background: linear-gradient(90deg, var(--emerald-500), #059669); }
.rate-row--best .rate-row__value { color: #047857; font-weight: 620; }

/* -------------------------------------------------------- dashboard mock */

.dash {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.dash__chrome {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.7rem var(--space-4);
    background: var(--slate-50);
    border-bottom: 1px solid var(--line);
}

.dash__dots { display: flex; gap: 6px; }
.dash__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }

.dash__url {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.85rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash__body { display: grid; grid-template-columns: 13rem minmax(0, 1fr); }

@media (max-width: 820px) {
    .dash__body { grid-template-columns: minmax(0, 1fr); }
    .dash__side { display: none; }
}

.dash__side {
    border-right: 1px solid var(--line);
    background: var(--slate-50);
    padding: var(--space-4);
}

.dash__nav { list-style: none; margin: 0; padding: 0; }
.dash__nav li { margin-bottom: 2px; }

.dash__nav span {
    display: block;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--slate-600);
}

.dash__nav .is-active { background: var(--white); color: var(--blue-700); font-weight: 620; box-shadow: var(--shadow-xs); }

.dash__main { padding: clamp(1.1rem, 2.5vw, 1.75rem); min-width: 0; }

.dash__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.dash__kpi {
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.dash__kpi-label { font-size: var(--text-xs); color: var(--muted); margin-bottom: 0.3rem; }

.dash__kpi-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy-800);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.dash__kpi-detail { font-size: var(--text-xs); color: var(--slate-400); margin-top: 0.25rem; }

/* Pure-CSS column chart: heights come from an inline --h custom property. */
.chart {
    display: flex;
    align-items: flex-end;
    gap: clamp(3px, 0.8vw, 8px);
    height: 9rem;
    padding-top: var(--space-4);
}

.chart__bar {
    flex: 1;
    min-width: 0;
    height: var(--h, 20%);
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--blue-400), var(--blue-600));
    opacity: 0.9;
    transition: height 700ms var(--ease), opacity var(--dur-fast) var(--ease);
}

.chart__bar:hover { opacity: 1; }
.chart__bar--peak { background: linear-gradient(180deg, #f59e0b, #ea580c); }

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--muted);
}

.chart-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }

.chart-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--blue-500);
    display: inline-block;
}

/* Horizontal usage-by-model bars. */
.usage-list { display: grid; gap: var(--space-3); }
.usage-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 3.5rem; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }

@media (max-width: 560px) {
    .usage-row { grid-template-columns: 7rem minmax(0, 1fr) 3rem; font-size: var(--text-xs); }
}

.usage-row__track { height: 8px; border-radius: var(--radius-full); background: var(--slate-100); overflow: hidden; }
.usage-row__bar { height: 100%; border-radius: inherit; background: var(--grad-brand); width: var(--bar, 0%); }
.usage-row__value { text-align: right; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }

/* --------------------------------------------------------------- API keys */

.key-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-size: var(--text-sm);
}

.key-row__name { font-weight: 620; color: var(--navy-800); }

.key-row__value {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--muted);
    background: var(--slate-50);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.6rem;
}

.key-row__meta { margin-left: auto; display: flex; gap: var(--space-4); align-items: center; font-size: var(--text-xs); color: var(--muted); }

/* --------------------------------------------------------------- CTA band */

.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--grad-navy);
    color: rgba(255, 255, 255, 0.75);
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 72%);
}

.cta-band__glow {
    top: -14rem;
    left: 50%;
    transform: translateX(-50%);
    width: 44rem;
    height: 30rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.42), transparent 62%);
    opacity: 0.75;
}

.cta-band h2 { color: var(--white); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band__text { font-size: var(--text-lg); color: rgba(255, 255, 255, 0.7); max-width: 56ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-8); }

.cta-band__meta {
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.cta-band__meta a { color: var(--blue-300); }
.cta-band__meta a:hover { color: var(--white); }

/* -------------------------------------------------------------- long-form */

/* Legal and about pages: readable measure, clear heading rhythm. */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-12); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-8); }
.prose ul, .prose ol { margin-bottom: var(--space-5); }
.prose li { font-size: var(--text-base); }
.prose > p, .prose li { color: var(--body); }

.toc {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
    align-self: start;
    border-left: 2px solid var(--line);
    padding-left: var(--space-5);
}

.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: var(--space-3); }
.toc a { font-size: var(--text-sm); color: var(--muted); }
.toc a:hover { color: var(--blue-700); }

.doc-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width: 900px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr); }
    .toc { position: static; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: var(--space-5); }
}

/* ------------------------------------------------------------ hero visual */

/*
   Abstract representation of the request path: application -> API -> models ->
   JSON response. Built from real markup rather than a stock illustration, so it stays
   crisp at any size and reads correctly on a phone.
*/
.hero-visual {
    position: relative;
    display: grid;
    gap: var(--space-3);
    perspective: 1200px;
}

.hero-visual__card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) var(--space-5);
}

.hero-visual__label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-3);
}

.hero-visual__line {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: var(--space-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-visual__rail {
    justify-self: center;
    width: 2px;
    height: 26px;
    background: linear-gradient(180deg, var(--blue-200), var(--blue-500));
    position: relative;
    border-radius: var(--radius-full);
}

.hero-visual__rail::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--blue-500);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.9);
    animation: rail-travel 2.4s var(--ease) infinite;
    animation-delay: var(--rail-delay, 0s);
}

@keyframes rail-travel {
    0%, 15% { transform: translateY(0); opacity: 0; }
    25% { opacity: 1; }
    75% { transform: translateY(20px); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

.hero-visual__models {
    background: var(--grad-navy);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-visual__models .hero-visual__label { color: rgba(255, 255, 255, 0.55); }

.model-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
}

@media (max-width: 420px) {
    .model-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.model-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 0;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.model-chip:hover { background: rgba(59, 130, 246, 0.2); border-color: rgba(147, 197, 253, 0.35); }
.model-chip svg { width: 14px; height: 14px; flex: none; color: var(--blue-300); }
.model-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero-visual__response {
    background: var(--navy-900);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-lg);
}

.hero-visual__response .hero-visual__label { color: rgba(255, 255, 255, 0.5); }

.hero-visual__response pre {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.7;
    color: #a5b4fc;
    overflow-x: auto;
}

/* Small floating stat that overlaps the stack, adding depth without a stock image. */
.hero-visual__float {
    position: absolute;
    right: -0.75rem;
    top: 42%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    animation: float-bob 6s ease-in-out infinite;
}

.hero-visual__float strong { display: block; color: var(--navy-800); font-size: var(--text-sm); }

@keyframes float-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (max-width: 560px) {
    .hero-visual__float { display: none; }
}

/* --------------------------------------------------------------- 404 page */

.error-page { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }

.error-page__code {
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-4);
}
