/* ==========================================================================
   Gleamcode landing - layout and components
   Dark theme only, locked. Single accent. One radius system.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: var(--t-body);
    line-height: 1.6;
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* `svg { display: block }` is an author rule and beats the user-agent's
   `[hidden] { display: none }`, so the burger rendered its open and close icons
   at the same time. Restore the attribute's meaning for every element. */
[hidden] {
    display: none !important;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

::selection {
    background: rgb(56 182 255 / 0.28);
    color: #fff;
}

.skip-link {
    position: absolute;
    left: var(--sp-4);
    top: -100px;
    z-index: var(--z-overlay);
    padding: var(--sp-3) var(--sp-5);
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: var(--r-pill);
    font-weight: 600;
    transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
    top: var(--sp-4);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section-y);
}

.section--tight {
    padding-block: calc(var(--section-y) * 0.66);
}

.rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
    border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.h1 {
    font-size: var(--t-display);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 600;
    text-wrap: balance;
}

.h2 {
    font-size: var(--t-h2);
    line-height: 1.1;
    letter-spacing: -0.028em;
    font-weight: 600;
    text-wrap: balance;
}

.h3 {
    font-size: var(--t-h3);
    line-height: 1.25;
    letter-spacing: -0.018em;
    font-weight: 600;
}

.lead {
    font-size: var(--t-lead);
    line-height: 1.55;
    color: var(--fg-muted);
    max-width: 58ch;
    text-wrap: pretty;
}

.muted {
    color: var(--fg-muted);
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.accent-text {
    color: var(--accent);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    max-width: 62ch;
    margin-bottom: var(--sp-8);
}

/* --------------------------------------------------------------------------
   4. Ambient backdrop
   Purely decorative, pointer-events none, fixed so it never repaints on scroll.
   -------------------------------------------------------------------------- */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-base);
    pointer-events: none;
    overflow: clip;
}

.backdrop__grid {
    position: absolute;
    inset: -20%;
    background-image: linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.32;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 70%);
}

.backdrop__halo {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.backdrop__halo--a {
    inset-block-start: -28vh;
    inset-inline-start: 50%;
    translate: -50% 0;
    width: min(1100px, 120vw);
    aspect-ratio: 1.6;
    background: radial-gradient(
        circle,
        rgb(0 56 192 / 0.34) 0%,
        rgb(0 16 64 / 0.22) 45%,
        transparent 70%
    );
}

.backdrop__halo--b {
    inset-block-start: 62vh;
    inset-inline-end: -18vw;
    width: min(680px, 90vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgb(0 144 248 / 0.16) 0%, transparent 68%);
}

.backdrop__noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
    position: relative;
    z-index: var(--z-raised);
}

/* --------------------------------------------------------------------------
   5. Icons
   -------------------------------------------------------------------------- */
.ico {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: currentColor;
}

.ico--lg {
    width: 1.75rem;
    height: 1.75rem;
}

/* --------------------------------------------------------------------------
   6. Brand lockup
   The mark is full-colour raster with gradients: it cannot be tinted or
   inverted. On dark surfaces it sits on a light plate, per Shared/ui/brand.css.
   -------------------------------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    flex: none;
}

.brand__plate {
    display: grid;
    place-items: center;
    padding: 0.35rem 0.5rem;
    background: #f4f7ff;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.brand__plate img {
    width: auto;
    height: 1.5rem;
}

.brand__word {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand--lg .brand__plate img {
    height: 2.25rem;
}

.brand--lg .brand__word {
    font-size: 1.375rem;
}

/* --------------------------------------------------------------------------
   7. Navigation - single line, capped height
   -------------------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    height: 68px;
    display: flex;
    align-items: center;
    background: rgb(5 6 14 / 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-fast) var(--ease-out),
        background-color var(--dur-fast) var(--ease-out);
}

.nav[data-stuck="true"] {
    border-bottom-color: var(--line);
    background: rgb(5 6 14 / 0.88);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    margin-inline-start: auto;
    list-style: none;
    padding: 0;
}

.nav__link {
    font-size: var(--t-sm);
    color: var(--fg-muted);
    padding-block: var(--sp-2);
    transition: color var(--dur-fast) var(--ease-out);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-inline-start: auto;
}

.nav__links + .nav__actions {
    margin-inline-start: 0;
}

/* Language toggle: a real 2-state control, not a dropdown */
.lang {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}

.lang__btn {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding-inline: var(--sp-3);
    border-radius: var(--r-pill);
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--fg-muted);
    transition: color var(--dur-fast) var(--ease-out),
        background-color var(--dur-fast) var(--ease-out);
}

.lang__btn[aria-pressed="true"] {
    background: var(--surface-3);
    color: var(--fg);
}

.nav__burger {
    display: none;
    width: var(--touch-min);
    height: var(--touch-min);
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 48px;
    padding: 0 var(--sp-5);
    border-radius: var(--r-pill);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap; /* a CTA label must never wrap */
    transition: transform var(--dur-press) var(--ease-out),
        background-color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out);
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: var(--glow-accent);
}

.btn--secondary {
    background: var(--surface-2);
    color: var(--fg);
    border: 1px solid var(--line-strong);
}

.btn--ghost {
    color: var(--fg-muted);
    border: 1px solid var(--line);
}

.btn--lg {
    min-height: 56px;
    padding: 0 var(--sp-6);
    font-size: var(--t-body);
}

.btn--block {
    width: 100%;
}

.btn__sub {
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    font-weight: 400;
    opacity: 0.68;
}

/* --------------------------------------------------------------------------
   9. Hero - asymmetric split, fits the first viewport
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: clamp(2.5rem, 5vw, 6rem) clamp(3.5rem, 7vw, 7rem);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.12fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-5);
}

/* Both stops stay in the readable band. The first version ended on --brand-mid
   (#0038C0), which measures 2.24:1 on the page background: the tail of the
   headline was below AA even though the start of it looked fine. */
.hero__title .accent-text {
    background: linear-gradient(96deg, #7dd3ff, var(--accent) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    max-width: 46ch;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
}

/* Hero visual: the product screen, floated with depth */
.hero__stage {
    position: relative;
    perspective: 1600px;
}

.screen {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-screen);
}

.screen img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.screen--hero {
    transform: rotateY(-7deg) rotateX(2.5deg) translateZ(0);
    transform-origin: left center;
}

.screen__chrome {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    color: var(--fg-faint);
}

.screen__chrome .ico {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--accent);
}

.hero__float {
    position: absolute;
    inset-block-end: -8%;
    inset-inline-start: -12%;
    width: 46%;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}

.hero__float img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top left;
}

/* --------------------------------------------------------------------------
   10. Platform strip - factual, no invented social proof
   -------------------------------------------------------------------------- */
.strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3) var(--sp-6);
    align-items: center;
    padding-block: var(--sp-5);
    border-block: 1px solid var(--line);
}

.strip__item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    letter-spacing: 0.04em;
    color: var(--fg-muted);
}

.strip__item .ico {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   11. Modules - bento grid, exactly 9 cells, deliberate rhythm
   -------------------------------------------------------------------------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--sp-4);
}

.cell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color var(--dur-mid) var(--ease-out),
        transform var(--dur-mid) var(--ease-out);
}

.cell__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--accent);
}

.cell__title {
    display: flex;
    align-items: baseline;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.cell__route {
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    color: var(--fg-faint);
}

.cell__body {
    font-size: var(--t-sm);
    color: var(--fg-muted);
    max-width: 52ch;
}

/* Cells that carry a real screenshot */
.cell--shot {
    padding-bottom: 0;
}

.cell__shot {
    margin-top: auto;
    border-radius: var(--r-md) var(--r-md) 0 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    box-shadow: 0 -18px 40px -24px rgb(0 8 40 / 0.9);
}

/* A fixed height, not an aspect ratio: the cells span different column counts,
   so a ratio would make the 4-column cells twice as tall as the 2-column ones
   and the text-only cells would stretch to match, leaving dead space. */
.cell__shot img {
    width: 100%;
    height: clamp(150px, 17vw, 250px);
    object-fit: cover;
    object-position: top center;
}

/* Grid placement: varied spans, no repeated rows */
.cell--a { grid-column: span 4; }
.cell--b { grid-column: span 2; }
.cell--c { grid-column: span 2; }
.cell--d { grid-column: span 4; }
.cell--e { grid-column: span 2; }
.cell--f { grid-column: span 2; }
.cell--g { grid-column: span 2; }
.cell--h { grid-column: span 3; }
.cell--i { grid-column: span 3; }

/* --------------------------------------------------------------------------
   12. Gallery - horizontal scroll-snap
   -------------------------------------------------------------------------- */
.gallery__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-5);
    margin-bottom: var(--sp-6);
}

.gallery__nav {
    display: flex;
    gap: var(--sp-2);
    flex: none;
}

.gallery__btn {
    display: grid;
    place-items: center;
    width: var(--touch-min);
    height: var(--touch-min);
    border-radius: var(--r-pill);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--fg);
    transition: transform var(--dur-press) var(--ease-out),
        background-color var(--dur-fast) var(--ease-out),
        opacity var(--dur-fast) var(--ease-out);
}

.gallery__btn:active {
    transform: scale(0.94);
}

.gallery__btn[disabled] {
    opacity: 0.35;
    cursor: default;
}

.rail {
    display: flex;
    gap: var(--sp-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: var(--sp-4);
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    /* bleed to the viewport edge so the rail reads as continuous */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
}

.rail::-webkit-scrollbar {
    height: 6px;
}

.rail::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: var(--r-pill);
}

.shot {
    flex: 0 0 min(760px, 82vw);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.shot__frame {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.shot__frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.shot__caption {
    display: flex;
    align-items: baseline;
    gap: var(--sp-3);
    flex-wrap: wrap;
    font-size: var(--t-sm);
}

.shot__caption b {
    font-weight: 600;
}

.shot__caption span {
    color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
   13. Capabilities - grouped columns with hairlines, not a 10-row spec table
   -------------------------------------------------------------------------- */
.caps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6) var(--sp-8);
}

.capgroup__title {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--line-strong);
    margin-bottom: var(--sp-3);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.capgroup__title .ico {
    color: var(--accent);
}

.capgroup ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--sp-3);
}

.capgroup li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--sp-3);
    font-size: var(--t-sm);
    color: var(--fg-muted);
}

.capgroup li .ico {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.45em;
    color: var(--accent);
}

.capgroup li b {
    color: var(--fg);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. Hardware - full-width, single strong composition
   -------------------------------------------------------------------------- */
.hardware {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: linear-gradient(160deg, var(--surface-2), var(--bg-raised) 62%);
    padding: clamp(1.75rem, 4vw, 3.5rem);
    overflow: hidden;
}

.hardware__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.hardware__list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--sp-4);
    margin-top: var(--sp-5);
}

.hardware__list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--sp-4);
    align-items: start;
}

.hardware__list .ico {
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.2em;
    color: var(--accent);
}

.hardware__list b {
    display: block;
    font-weight: 600;
    font-size: var(--t-sm);
}

.hardware__list span {
    font-size: var(--t-sm);
    color: var(--fg-muted);
}

.transport {
    display: grid;
    gap: var(--sp-3);
}

.transport__row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4);
    background: rgb(5 6 14 / 0.6);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.transport__tag {
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    padding: var(--sp-1) var(--sp-2);
    border: 1px solid var(--line-accent);
    border-radius: var(--r-sm);
    text-align: center;
}

.transport__row span {
    font-size: var(--t-xs);
    color: var(--fg-muted);
    font-family: var(--font-mono);
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   15. Download
   -------------------------------------------------------------------------- */
.dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
}

.dl__card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color var(--dur-mid) var(--ease-out);
}

.dl__top {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.dl__os {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--accent);
}

.dl__specs {
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--sp-2);
    margin: 0;
}

.dl__specs li {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: var(--sp-3);
    font-size: var(--t-xs);
    padding-block: var(--sp-2);
    border-bottom: 1px solid var(--line);
}

.dl__specs li:last-child {
    border-bottom: 0;
}

.dl__specs dt,
.dl__specs .k {
    color: var(--fg-faint);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.dl__specs .v {
    color: var(--fg-muted);
}

.dl__cta {
    margin-top: auto;
}

.note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--sp-3);
    padding: var(--sp-4);
    margin-top: var(--sp-5);
    background: rgb(56 182 255 / 0.06);
    border: 1px solid var(--line-accent);
    border-radius: var(--r-md);
    font-size: var(--t-xs);
    color: var(--fg-muted);
}

.note .ico {
    color: var(--accent);
    margin-top: 0.15em;
}

.note b {
    color: var(--fg);
    font-weight: 600;
}

/* Pending-file state: the button must say so, never 404 silently */
.dl__pending {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    color: var(--fg-faint);
}

.dl__pending::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fg-faint);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--line);
    padding-block: var(--sp-7) var(--sp-6);
}

.footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-6);
    justify-content: space-between;
    align-items: flex-start;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-5);
    list-style: none;
    padding: 0;
    font-size: var(--t-sm);
    color: var(--fg-muted);
}

.footer__base {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    justify-content: space-between;
    align-items: center;
    margin-top: var(--sp-7);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line);
    font-size: var(--t-xs);
    color: var(--fg-faint);
}

/* --------------------------------------------------------------------------
   17. Motion
   Entry reveals are transitions driven by a data attribute, so they are
   interruptible and never restart from zero. Nothing starts from scale(0).
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-reveal) var(--ease-out),
        transform var(--dur-reveal) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal][data-shown] {
    opacity: 1;
    transform: none;
}

/* Hover affordances only where a real pointer exists */
@media (hover: hover) and (pointer: fine) {
    .nav__link:hover {
        color: var(--fg);
    }

    .lang__btn:hover {
        color: var(--fg);
    }

    .btn--primary:hover {
        background: var(--accent-strong);
    }

    .btn--secondary:hover {
        border-color: var(--accent);
    }

    .btn--ghost:hover {
        color: var(--fg);
        border-color: var(--line-strong);
    }

    .cell:hover {
        border-color: var(--line-strong);
        transform: translateY(-2px);
    }

    .dl__card:hover {
        border-color: var(--line-strong);
    }

    .gallery__btn:not([disabled]):hover {
        background: var(--surface-2);
    }

    .footer__links a:hover {
        color: var(--fg);
    }
}

/* --------------------------------------------------------------------------
   18. Reduced motion
   Fewer and gentler, not zero: opacity still aids comprehension, movement goes.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .screen--hero {
        transform: none;
    }

    .rail {
        scroll-behavior: auto;
    }
}

/* --------------------------------------------------------------------------
   19. Responsive
   Every multi-column block declares its own collapse.
   -------------------------------------------------------------------------- */

/* Tablet landscape and below */
@media (max-width: 1023.98px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-7);
    }

    .hero__copy {
        max-width: 42rem;
    }

    .screen--hero {
        transform: none;
    }

    .hero__float {
        inset-inline-start: auto;
        inset-inline-end: -4%;
        inset-block-end: -10%;
        width: 38%;
    }

    .cell--a,
    .cell--d {
        grid-column: span 6;
    }

    .cell--b,
    .cell--c,
    .cell--e,
    .cell--f,
    .cell--g,
    .cell--h,
    .cell--i {
        grid-column: span 3;
    }

    .hardware__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The bar collapses earlier than the rest of the layout, and on its own measurement:
   brand + four links + language toggle + CTA need about 820px plus gutters, so at
   768px it was still overflowing after the phone rules had stopped applying. */
@media (max-width: 899.98px) {
    .nav__links {
        display: none;
    }

    .nav__burger {
        display: grid;
    }
}

/* Tablet portrait and phone */
@media (max-width: 767.98px) {
    .nav {
        height: 64px;
    }

    /* Brand + language toggle + CTA + burger do not fit either: measured 528px of
       content in a 375px viewport. The download CTA is the one to drop, because both
       hero buttons and the footer link already lead to the same section. */
    .nav__actions > .btn {
        display: none;
    }

    .nav[data-open="true"] .nav__links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: var(--sp-2) var(--gutter) var(--sp-4);
        background: rgb(5 6 14 / 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
    }

    .nav[data-open="true"] .nav__link {
        min-height: var(--touch-min);
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--line);
    }

    .caps,
    .dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .cell--a,
    .cell--b,
    .cell--c,
    .cell--d,
    .cell--e,
    .cell--f,
    .cell--g,
    .cell--h,
    .cell--i {
        grid-column: span 6;
    }

    .hero__float {
        display: none; /* the overlap has nowhere to go on a phone */
    }

    .gallery__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .shot {
        flex-basis: 86vw;
    }

    .dl__specs li {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-1);
    }

    .transport__row {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-2);
    }

    .transport__tag {
        justify-self: start;
        min-width: 88px;
    }
}

@media (max-width: 479.98px) {
    .btn {
        width: 100%;
    }

    .hero__ctas {
        width: 100%;
    }

    .nav__actions .btn {
        width: auto;
    }
}
