/* Rudra Labs — styles.css
   Apple-inspired system: SF type, true black, mist, one action color.
   No external fonts or images; everything here is CSP-safe (style-src 'self'). */

@layer reset, tokens, base, layout, components, motion;

/* ------------------------------------------------------------------ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  svg { display: block; flex-shrink: 0; }
  input, button, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
  button { cursor: pointer; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  [hidden] { display: none !important; }
}

/* ----------------------------------------------------------------- tokens */
@layer tokens {
  :root {
    color-scheme: light dark;

    /* Palette */
    --black: #000000;
    --white: #ffffff;
    --mist: #f5f5f7;
    --graphite: #1d1d1f;
    --slate: #6e6e73;
    --neel: #2846f0;        /* action color, named for Neelkanth */
    --neel-deep: #1c35c8;
    --neel-light: #8b9bff;  /* action color on black */

    /* Semantic tokens (light) */
    --bg: var(--white);
    --bg-alt: var(--mist);
    --text: var(--graphite);
    --text-2: var(--slate);
    --line: rgb(0 0 0 / 0.1);
    --line-strong: rgb(0 0 0 / 0.22);
    --action: var(--neel);
    --action-hover: var(--neel-deep);
    --on-action: var(--white);
    --link: var(--neel);
    --field-bg: var(--white);
    --field-line: rgb(0 0 0 / 0.2);
    --focus: var(--neel);
    --danger: #d70015;
    --success: #1a7f37;

    /* Type */
    --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --step-hero: clamp(3.5rem, 1.6rem + 8.4vw, 8.5rem);
    --step-1: clamp(2.5rem, 1.55rem + 4.2vw, 4.5rem);
    --step-2: clamp(2.25rem, 1.75rem + 2.2vw, 3.5rem);
    --step-3: clamp(1.3125rem, 1.05rem + 1.15vw, 1.75rem);
    --step-4: 1.1875rem;
    --step-body: 1.0625rem;
    --step-small: 0.875rem;
    --step-fine: 0.75rem;

    /* Space and shape */
    --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
    --section-y: clamp(5rem, 3.4rem + 7vw, 10rem);
    --nav-h: 48px;
    --radius-node: 14px;
    --radius-field: 12px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Dark tokens: system preference, unless the page is pinned to light */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: var(--black);
      --bg-alt: #161617;
      --text: #f5f5f7;
      --text-2: #a1a1a6;
      --line: rgb(255 255 255 / 0.14);
      --line-strong: rgb(255 255 255 / 0.3);
      --link: var(--neel-light);
      --field-bg: #1d1d1f;
      --field-line: rgb(255 255 255 / 0.24);
      --focus: var(--neel-light);
      --danger: #ff6961;
      --success: #30d158;
    }
  }

  :root[data-theme="dark"] {
    --bg: var(--black);
    --bg-alt: #161617;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: rgb(255 255 255 / 0.14);
    --line-strong: rgb(255 255 255 / 0.3);
    --link: var(--neel-light);
    --field-bg: #1d1d1f;
    --field-line: rgb(255 255 255 / 0.24);
    --focus: var(--neel-light);
    --danger: #ff6961;
    --success: #30d158;
  }
}

/* ------------------------------------------------------------------- base */
@layer base {
  :root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--black);
  }

  html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 8px);
    scroll-behavior: smooth;
  }

  html.is-locked { overflow: hidden; }

  body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: var(--step-body);
    line-height: 1.47;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-wrap: balance;
  }

  p { text-wrap: pretty; }

  a { color: var(--link); text-decoration: none; }
  a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

  ::selection { background: rgb(40 70 240 / 0.24); }

  /* Always-dark surfaces: hero, security, footer, ink tiles */
  .theme-dark {
    color-scheme: dark;
    --bg: var(--black);
    --bg-alt: #161617;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: rgb(255 255 255 / 0.14);
    --line-strong: rgb(255 255 255 / 0.3);
    --link: var(--neel-light);
    --field-bg: #1d1d1f;
    --field-line: rgb(255 255 255 / 0.24);
    --focus: var(--neel-light);
    --danger: #ff6961;
    --success: #30d158;
    color: var(--text);
  }

  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .skip {
    position: absolute;
    left: 1rem;
    top: -6rem;
    z-index: 200;
    padding: 0.75rem 1.125rem;
    border-radius: 10px;
    background: var(--action);
    color: var(--on-action);
    font-weight: 600;
  }
  .skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }
}

/* ----------------------------------------------------------------- layout */
@layer layout {
  .container {
    width: min(100% - 2 * var(--gutter), 980px);
    margin-inline: auto;
  }

  .section {
    padding-block: var(--section-y);
    background: var(--bg);
    color: var(--text);
  }
  .section--alt { background: var(--bg-alt); }

  .section__head {
    max-width: 46rem;
    margin-inline: auto;
    margin-bottom: clamp(3rem, 2rem + 4vw, 5rem);
    text-align: center;
  }

  .section__title {
    font-size: var(--step-1);
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .section__lede {
    margin-top: 1.25rem;
    font-size: var(--step-3);
    line-height: 1.35;
    letter-spacing: -0.012em;
    font-weight: 500;
    color: var(--text-2);
  }
}

/* ------------------------------------------------------------- components */
@layer components {

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6875rem 1.375rem;
    border: 1px solid transparent;
    border-radius: 980px;
    font-size: var(--step-body);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
  }
  .btn:hover { text-decoration: none; }
  .btn:active { transform: scale(0.98); }
  .btn:disabled { cursor: progress; opacity: 0.72; }

  .btn--primary { background: var(--action); color: var(--on-action); }
  .btn--primary:hover { background: var(--action-hover); }

  .btn--ghost { border-color: var(--link); color: var(--link); background: transparent; }
  .btn--ghost:hover { background: var(--link); color: var(--bg); }

  .btn--sm { min-height: 40px; padding: 0.5rem 1.125rem; font-size: var(--step-small); }
  .btn--xs { min-height: 28px; padding: 0.25rem 0.875rem; font-size: var(--step-fine); }
  .btn--lg { min-height: 56px; padding-inline: 1.75rem; border-radius: var(--radius-field); }

  /* Global navigation */
  .gnav {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 100;
    color: #e8e8ed;
  }
  /* Blur lives on a pseudo-element so the fixed mobile menu is positioned against the viewport */
  .gnav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(22 22 23 / 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .gnav::before { background: rgb(22 22 23 / 0.97); }
  }

  .gnav__bar {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .gnav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f5f5f7;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
  }
  .gnav__brand:hover { text-decoration: none; }
  .gnav__mark { width: 24px; height: 24px; color: var(--white); }

  .wordmark {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .gnav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
  }

  .gnav__links { display: flex; gap: 1.75rem; }
  .gnav__links a {
    color: rgb(255 255 255 / 0.8);
    font-size: var(--step-fine);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
  }
  .gnav__links a:hover { color: var(--white); text-decoration: none; }

  .gnav__toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: -12px;
    border: 0;
    background: none;
    color: #f5f5f7;
  }
  .gnav__toggle svg { width: 18px; height: 18px; }
  .gnav__line {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.3s var(--ease-out);
  }
  .gnav[data-open] .gnav__line--top { transform: translateY(2.5px) rotate(45deg); }
  .gnav[data-open] .gnav__line--bottom { transform: translateY(-2.5px) rotate(-45deg); }

  @media (max-width: 833px) {
    .gnav__toggle { display: inline-grid; }

    .gnav__menu {
      position: fixed;
      inset: 0;
      z-index: -1;
      margin: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 2.5rem;
      padding:
        calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 1.75rem)
        var(--gutter)
        calc(env(safe-area-inset-bottom, 0px) + 2rem);
      background: rgb(0 0 0 / 0.97);
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    .gnav[data-open] .gnav__menu {
      visibility: visible;
      opacity: 1;
      transition: opacity 0.25s ease;
    }

    .gnav__links { flex-direction: column; gap: 0.25rem; }
    .gnav__links a {
      display: block;
      padding-block: 0.375rem;
      color: #f5f5f7;
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 600;
      letter-spacing: -0.025em;
    }
    .gnav__cta { align-self: flex-start; min-height: 44px; padding-inline: 1.375rem; font-size: var(--step-body); }
  }

  /* Hero */
  .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 40rem;
    min-height: min(calc(100svh - env(safe-area-inset-top, 0px)), 59rem);
    margin-top: calc(-1 * var(--nav-h));
    padding: calc(var(--nav-h) + clamp(4rem, 3rem + 5vw, 7rem)) var(--gutter) clamp(5rem, 4rem + 5vw, 8rem);
    background: var(--black);
    text-align: center;
  }

  .hero__glow {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 36%;
    width: min(92vw, 46rem);
    aspect-ratio: 1;
    translate: -50% -50%;
    background: radial-gradient(closest-side, rgb(139 155 255 / 0.36), rgb(40 70 240 / 0.14) 55%, transparent 100%);
    opacity: 0.8;
  }

  .hero__mark {
    width: clamp(5.5rem, 4rem + 7vw, 9.5rem);
    height: clamp(5.5rem, 4rem + 7vw, 9.5rem);
    margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    color: var(--white);
    filter: drop-shadow(0 0 22px rgb(139 155 255 / 0.55));
  }

  .hero__title {
    padding-bottom: 0.04em;
    font-size: var(--step-hero);
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--white);
  }
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .hero__title {
      background: linear-gradient(180deg, #ffffff 30%, #b4beff 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
  }

  .hero__tagline {
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #f5f5f7;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem 1rem;
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  }

  /* Product tiles */
  .tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100% - 24px, 1440px);
    margin-inline: auto;
  }
  @media (min-width: 735px) {
    .tiles { grid-template-columns: 1fr 1fr; }
  }

  .tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: clamp(26rem, 20rem + 16vw, 36rem);
    padding: clamp(2.75rem, 2rem + 2vw, 3.5rem) 1.5rem 0;
    background: var(--bg-alt);
    color: var(--text);
    text-align: center;
  }
  .tile.theme-dark { background: var(--black); }
  .tile--feature, .tile--wide { grid-column: 1 / -1; }
  .tile--feature { min-height: clamp(34rem, 26rem + 14vw, 42rem); }
  .tile--wide { min-height: clamp(24rem, 20rem + 8vw, 28rem); }

  .tile__name {
    font-size: var(--step-2);
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .tile__line {
    margin-top: 0.5rem;
    font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
    line-height: 1.3;
    letter-spacing: -0.015em;
  }

  .tile__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: var(--step-small);
    color: var(--text-2);
  }
  .tile__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff9f0a;
  }
  .tile__status[data-state="beta"]::before { background: var(--neel-light); }
  .tile__status[data-state="live"]::before { background: #30d158; }

  .tile__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .tile__art {
    width: min(100%, 24rem);
    height: auto;
    margin-top: auto;
    padding-top: 2rem;
    color: var(--text);
    opacity: 0.85;
  }
  .tile__art--wave {
    width: clamp(10rem, 8rem + 8vw, 15rem);
    aspect-ratio: 256 / 164;
    margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
    padding-top: 0;
    color: var(--white);
    opacity: 1;
  }
  .tile__art--next { width: min(100%, 18rem); padding-top: 1.5rem; }

  /* Platform flow */
  .flow-figure { margin: 0; }

  .flow {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 2.25rem;
    max-width: 24rem;
    margin-inline: auto;
  }

  .node {
    position: relative;
    display: grid;
    gap: 0.125rem;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-node);
    background: var(--bg);
    text-align: left;
  }
  .node__kind { font-size: var(--step-fine); color: var(--text-2); }
  .node__name { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.015em; }
  .node__meta { margin-top: 0.25rem; font-size: var(--step-small); line-height: 1.35; color: var(--text-2); }

  .node--core {
    border-color: var(--neel);
    background: var(--black);
    color: #f5f5f7;
    box-shadow: 0 0 0 5px rgb(40 70 240 / 0.14);
  }
  .node--core .node__kind,
  .node--core .node__meta { color: #a1a1a6; }

  /* Connectors: vertical on small screens */
  .flow > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 1px);
    width: 1px;
    height: 2.25rem;
    background: var(--line-strong);
  }

  .services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .node--svc { padding-block: 0.75rem; }
  .node--live .node__name { display: inline-flex; align-items: center; gap: 0.5rem; }
  .node--live .node__name::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #30d158;
  }
  .node--next { border-style: dashed; background: transparent; color: var(--text-2); }

  @media (min-width: 1069px) {
    .flow {
      grid-template-columns: 1fr 1fr 1.35fr 1.1fr;
      align-items: center;
      gap: 2.5rem;
      max-width: none;
    }
    .flow > li:not(:last-child)::after {
      left: calc(100% + 1px);
      top: 50%;
      width: 2.5rem;
      height: 1px;
    }

    /* Services branch off one spine, like the mark */
    .services {
      position: relative;
      grid-template-columns: 1fr;
      padding-left: 1.5rem;
    }
    .services::before {
      content: "";
      position: absolute;
      left: 0;
      top: 1.5rem;
      bottom: 1.5rem;
      width: 1px;
      background: var(--line-strong);
    }
    .node--svc::before {
      content: "";
      position: absolute;
      right: 100%;
      top: 50%;
      width: 1.5rem;
      height: 1px;
      background: var(--line-strong);
    }
  }

  .flow__caption {
    margin-top: 2.5rem;
    text-align: center;
    font-size: var(--step-small);
    color: var(--text-2);
  }

  .facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 3rem;
    margin-top: clamp(4rem, 3rem + 4vw, 6.5rem);
    padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    border-top: 1px solid var(--line);
  }
  @media (min-width: 735px) {
    .facts { grid-template-columns: repeat(3, 1fr); }
  }
  .fact__title { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.02em; }
  .fact__text { margin-top: 0.5rem; color: var(--text-2); }

  /* Security */
  .security { position: relative; isolation: isolate; overflow: hidden; }
  .security::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 0;
    width: min(120vw, 70rem);
    aspect-ratio: 2;
    translate: -50% -50%;
    background: radial-gradient(closest-side, rgb(40 70 240 / 0.28), transparent);
  }

  .measures {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 3.5rem;
    max-width: 60rem;
    margin-inline: auto;
  }
  @media (min-width: 735px) {
    .measures { grid-template-columns: 1fr 1fr; }
  }

  .measure {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    column-gap: 1rem;
    padding-block: 1.75rem;
    border-top: 1px solid var(--line);
  }
  .measure__icon { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--neel-light); }
  .measure__title { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.02em; }
  .measure__text { margin-top: 0.375rem; color: var(--text-2); }

  .security__report {
    max-width: 40rem;
    margin: 3.5rem auto 0;
    text-align: center;
    color: var(--text-2);
  }

  /* Sign-up form */
  .signup { max-width: 36rem; margin-inline: auto; }

  .signup__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  @media (min-width: 735px) {
    .signup__row { grid-template-columns: 1fr auto; }
  }

  .field { position: relative; }

  .field__input {
    width: 100%;
    height: 56px;
    padding: 1.375rem 1rem 0.375rem;
    border: 1px solid var(--field-line);
    border-radius: var(--radius-field);
    background: var(--field-bg);
    font-size: var(--step-body);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .field__input:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 4px rgb(40 70 240 / 0.18);
  }
  .field__input[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgb(215 0 21 / 0.12);
  }

  .field__label {
    position: absolute;
    left: 1rem;
    top: 50%;
    translate: 0 -50%;
    color: var(--text-2);
    font-size: var(--step-body);
    pointer-events: none;
    transition: top 0.15s ease, translate 0.15s ease, font-size 0.15s ease;
  }
  .field__input:focus + .field__label,
  .field__input:not(:placeholder-shown) + .field__label,
  .field--select .field__label {
    top: 0.5rem;
    translate: 0 0;
    font-size: var(--step-fine);
  }

  .field--select .field__input { padding-right: 2.5rem; cursor: pointer; }
  .field__chevron {
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 12px;
    height: 12px;
    translate: 0 -50%;
    color: var(--text-2);
    pointer-events: none;
  }

  .field__error {
    margin-top: 0.625rem;
    color: var(--danger);
    font-size: var(--step-small);
  }

  .trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .signup__status {
    min-height: 1.5em;
    margin-top: 1.25rem;
    text-align: center;
    font-weight: 500;
  }
  .signup__status[data-tone="success"] { color: var(--success); }
  .signup__status[data-tone="error"] { color: var(--danger); }

  .signup__note {
    margin-top: 0.5rem;
    text-align: center;
    font-size: var(--step-small);
    color: var(--text-2);
  }

  /* Footer */
  .footer {
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--line); /* separates it from a black section in dark mode */
    background: var(--bg);
    font-size: var(--step-fine);
    line-height: 1.33;
    letter-spacing: -0.01em;
    color: var(--text-2);
  }

  .footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
  }
  @media (min-width: 735px) {
    .footer__top { grid-template-columns: 1fr 2fr; }
  }

  .footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    align-self: start;
    color: var(--text);
    font-family: var(--font-display);
    font-size: var(--step-body);
    font-weight: 600;
  }
  .footer__mark { width: 26px; height: 26px; }
  .footer__brand .wordmark { font-size: 0.875rem; }

  .footer__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 2rem;
  }
  .footer__heading {
    margin-bottom: 0.75rem;
    font-family: var(--font-text);
    font-size: var(--step-fine);
    font-weight: 600;
    color: var(--text);
  }
  .footer__links { display: grid; gap: 0.625rem; }
  .footer__links a { color: var(--text-2); }
  .footer__links a:hover { color: var(--text); }

  .footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-top: 1.25rem;
  }

  .status { display: inline-flex; align-items: center; gap: 0.5rem; }
  .status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); }
  .status[data-state="ok"] .status__dot { background: #30d158; }
  .status[data-state="degraded"] .status__dot { background: #ff9f0a; }
  .status[data-state="down"] .status__dot { background: #ff453a; }

  /* 404 */
  .notfound {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 1.25rem;
    min-height: 100svh;
    padding: 2rem var(--gutter);
    background: var(--black);
    text-align: center;
  }
  .notfound__mark { width: 4rem; height: 4rem; color: var(--white); margin-bottom: 0.5rem; }
  .notfound .section__lede { margin: 0 0 1rem; }
}

/* ----------------------------------------------------------------- motion */
/* One orchestrated moment: the mark strikes, then the name settles in. */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .hero__mark { animation: mark-rise 1.1s var(--ease-out) both, mark-strike 1.7s ease-out 0.7s both; }
    .hero__glow { animation: glow-in 1.9s ease-out 0.6s both; }
    .hero__title { animation: title-in 1.3s var(--ease-out) 0.95s both; }
    .hero__tagline { animation: rise-in 0.9s var(--ease-out) 1.2s both; }
    .hero__actions { animation: rise-in 0.9s var(--ease-out) 1.35s both; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
  }

  @keyframes mark-rise {
    from { clip-path: inset(100% -60% -60% -60%); translate: 0 18px; }
    to { clip-path: inset(-60% -60% -60% -60%); translate: 0 0; }
  }
  @keyframes mark-strike {
    0% { filter: drop-shadow(0 0 0 rgb(139 155 255 / 0)); }
    18% { filter: drop-shadow(0 0 40px rgb(232 236 255 / 0.95)) brightness(1.7); }
    100% { filter: drop-shadow(0 0 22px rgb(139 155 255 / 0.55)); }
  }
  @keyframes glow-in {
    0% { opacity: 0; scale: 0.55; }
    28% { opacity: 1; scale: 1.08; }
    100% { opacity: 0.8; scale: 1; }
  }
  @keyframes title-in {
    from { opacity: 0; letter-spacing: -0.01em; }
    to { opacity: 1; letter-spacing: -0.045em; }
  }
  @keyframes rise-in {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }
}
