/* ============================================================================
   Ruto — rutomaps.com
   ----------------------------------------------------------------------------
   The identity starts at the trademark (chrome R, deep navy plate, red route)
   and takes the rest of its colour from the thing the app actually draws: a
   map. Water blue, park green, motorway amber, mint for the one phrase that
   matters — "Still navigating."

   Type: Bricolage Grotesque for display, Instrument Sans for reading,
   JetBrains Mono for anything that is a number on a windscreen.

   Deliberately single-theme. This is a night-driving brand; every colour is
   painted explicitly so the page never borrows a host background.
   ========================================================================== */

:root {
  /* ground */
  --ink:        #05070f;
  --ink-2:      #080d1c;
  --slab:       #0b1326;
  --line:       rgba(255,255,255,0.09);
  --line-soft:  rgba(255,255,255,0.055);
  --glass:      rgba(255,255,255,0.035);
  --glass-2:    rgba(255,255,255,0.06);

  /* text */
  --chrome:     #f4f7ff;
  --steel:      #a3b0cc;
  --steel-dim:  #6f7d9c;

  /* accents */
  --volt:       #3d7bff;
  --violet:     #9d5cff;
  --magenta:    #ff3d81;
  --amber:      #ffb020;
  --mint:       #1fe3a0;
  --cyan:       #22d3ee;
  --lime:       #a3e635;
  --route:      #ff4331;

  /* map paint */
  --land:       #0d1730;
  --water:      #123a6b;
  --park:       #0f4430;
  --road:       #22305a;
  --road-hi:    #34477d;
  --motorway:   #f5a524;

  /* geometry */
  --measure:    44rem;
  --gutter:     clamp(1.15rem, 4.5vw, 2.75rem);
  --r:          18px;
  --r-lg:       26px;
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--steel);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ── Aurora ground ─────────────────────────────────────────────────────
   Three drifting blobs plus a fine grid. Transform and opacity only.     */

.aurora {
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.85;
}
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora .a1 {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  left: -6vw; top: 2vh;
  background: radial-gradient(circle at 35% 35%, rgba(61,123,255,0.55), transparent 68%);
  animation: float-a 26s var(--ease) infinite alternate;
}
.aurora .a2 {
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  right: -4vw; top: -6vh;
  background: radial-gradient(circle at 60% 40%, rgba(157,92,255,0.5), transparent 68%);
  animation: float-b 32s var(--ease) infinite alternate;
}
.aurora .a3 {
  width: 44vw; height: 44vw; min-width: 340px; min-height: 340px;
  left: 30vw; top: 46vh;
  background: radial-gradient(circle at 50% 50%, rgba(255,61,129,0.34), transparent 70%);
  animation: float-c 38s var(--ease) infinite alternate;
}
@keyframes float-a { to { transform: translate3d(14vw, 12vh, 0) scale(1.18); } }
@keyframes float-b { to { transform: translate3d(-12vw, 16vh, 0) scale(1.12); } }
@keyframes float-c { to { transform: translate3d(10vw, -14vh, 0) scale(1.22); } }

.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5,7,15,0.2) 0%, rgba(5,7,15,0.72) 55%, var(--ink) 100%),
    repeating-linear-gradient(to right,  var(--line-soft) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 88px);
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 78%);
}

/* ── Shell ───────────────────────────────────────────────────────────── */

.wrap {
  width: min(76rem, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--chrome);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 7.4vw, 5.1rem); }
h2 { font-size: clamp(1.95rem, 4.4vw, 3.15rem); line-height: 1.06; }
h3 { font-size: 1.13rem; line-height: 1.3; letter-spacing: -0.022em; font-weight: 700; }

p { margin: 0; }

a { color: var(--chrome); text-decoration: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(31,227,160,0.16);
  animation: pip 2.6s ease-in-out infinite;
}
@keyframes pip { 50% { box-shadow: 0 0 0 9px rgba(31,227,160,0); } }

.grad {
  background: linear-gradient(96deg, #ffd9d3 0%, var(--route) 38%, var(--magenta) 70%, var(--violet) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.chrome-text {
  background: linear-gradient(180deg, #ffffff 0%, #cdd8f0 46%, #8ea0c6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ── Header ──────────────────────────────────────────────────────────── */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: linear-gradient(to bottom, rgba(5,7,15,0.86), rgba(5,7,15,0.42));
  border-bottom: 1px solid var(--line-soft);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.045em;
  color: var(--chrome);
  margin-right: auto;
}
.brand img {
  width: 34px; height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 22px -10px rgba(61,123,255,0.9);
}
header.site nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 1.9rem);
  font-size: 0.9rem;
  font-weight: 500;
}
header.site nav a { color: var(--steel); transition: color 0.2s var(--ease); }
header.site nav a:hover { color: var(--chrome); }
header.site nav a.pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--chrome);
  background: linear-gradient(135deg, var(--volt), var(--violet));
  box-shadow: 0 10px 30px -14px var(--volt);
}
@media (max-width: 620px) { .hide-sm { display: none; } }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.92rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--chrome);
  background: var(--glass-2);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.btn--hot {
  border-color: transparent;
  background: linear-gradient(120deg, var(--route) 0%, var(--magenta) 55%, var(--violet) 100%);
  box-shadow: 0 18px 44px -18px var(--magenta), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn--hot:hover { box-shadow: 0 22px 52px -18px var(--magenta), inset 0 1px 0 rgba(255,255,255,0.28); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 5rem);
}
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 1.35rem; }

.lede {
  max-width: 34rem;
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.22rem);
  color: var(--steel);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.2rem;
}
.trust span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-dim);
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
}
.trust span b { color: var(--chrome); font-weight: 600; }

/* ── The device ──────────────────────────────────────────────────────── */

.device {
  position: relative;
  display: grid;
  place-items: center;
}
.device::before {                 /* the light the screen throws */
  content: "";
  position: absolute;
  inset: 6% 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(61,123,255,0.5), transparent 72%),
    radial-gradient(closest-side at 70% 72%, rgba(255,67,49,0.34), transparent 70%);
  filter: blur(52px);
  z-index: -1;
}

.phone {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 340 / 700;
  border-radius: 52px;
  padding: 11px;
  background: linear-gradient(150deg, #4d5872 0%, #10151f 26%, #2b3346 52%, #0c1018 78%, #454f68 100%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.14),
    0 50px 90px -40px rgba(0,0,0,0.95),
    0 0 0 1px rgba(255,255,255,0.05);
  animation: hover-phone 9s ease-in-out infinite;
}
@keyframes hover-phone {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-0.35deg); }
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--land);
  isolation: isolate;
}

/* status bar */
.statusbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 46px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to bottom, rgba(5,8,18,0.82), transparent);
}
.island {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 25px;
  border-radius: 999px;
  background: #000;
  z-index: 7;
}
.sb-right { display: flex; align-items: center; gap: 7px; }
.bars rect { fill: #ffffff; }
.bars rect:nth-child(1) { animation: die 15s linear infinite; }
.bars rect:nth-child(2) { animation: die 15s linear infinite 0.05s; }
.bars rect:nth-child(3) { animation: die 15s linear infinite 0.1s; }
.bars rect:nth-child(4) { animation: die 15s linear infinite 0.15s; }
@keyframes die {
  0%, 40%   { fill: #ffffff; }
  46%, 88%  { fill: #4b5670; }
  94%, 100% { fill: #ffffff; }
}
.batt {
  display: inline-block;
  width: 22px; height: 11px;
  border: 1.4px solid rgba(255,255,255,0.6);
  border-radius: 3px;
  position: relative;
}
.batt::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  right: 6px;
  border-radius: 1px;
  background: var(--mint);
}

/* map */
.map { position: absolute; inset: 0; z-index: 1; }
.map svg { width: 100%; height: 100%; display: block; }

/* The street grid slides under a pinned puck — exactly what the app does.
   Its vertical period is 86px, so the loop is seamless. */
.grid-layer { animation: drift 5.5s linear infinite; will-change: transform; }
@keyframes drift { from { transform: translateY(-86px); } to { transform: translateY(0); } }

.route-flow { stroke-dasharray: 15 26; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -41; } }

.puck-wrap {
  position: absolute;
  left: 44.5%; top: 72%;
  z-index: 3;
  transform: translate(-50%, -50%);
}
.puck-halo {
  position: absolute; left: 50%; top: 50%;
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,123,255,0.45), transparent 70%);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.82); opacity: 0.55; }
  50%      { transform: scale(1.14); opacity: 1; }
}
.puck {
  position: relative;
  display: block;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6a58, var(--route));
  box-shadow: 0 0 0 3.5px #fff, 0 8px 18px -4px rgba(0,0,0,0.8);
}

/* maneuver card */
.maneuver {
  position: absolute;
  top: 54px; left: 12px; right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(12,18,36,0.94), rgba(9,13,26,0.9));
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 22px 46px -22px rgba(0,0,0,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.maneuver .arrow {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(31,227,160,0.22), rgba(61,123,255,0.16));
  border: 1px solid rgba(31,227,160,0.3);
  color: var(--mint);
}
.maneuver .dist {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.maneuver .street {
  display: block;
  font-size: 0.76rem;
  color: #b9c6e2;
  line-height: 1.25;
  margin-top: 1px;
}

/* lane guidance */
.lanes {
  position: absolute;
  top: 120px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 12px;
  background: rgba(8,12,24,0.86);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lanes i {
  width: 16px; height: 18px;
  display: grid; place-items: center;
  border-radius: 4px;
  color: #4a5878;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
}
.lanes i.on { color: var(--mint); background: rgba(31,227,160,0.14); }

/* speed limit shield */
.limit {
  position: absolute;
  left: 14px; bottom: 132px;
  z-index: 5;
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid #d92b1f;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,0.85);
}
.limit b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  color: #0b1326;
  line-height: 1;
}
.limit span { font-size: 0.4rem; letter-spacing: 0.08em; color: #55607a; }

/* live speed */
.speedo {
  position: absolute;
  right: 14px; bottom: 132px;
  z-index: 5;
  padding: 7px 12px;
  border-radius: 14px;
  text-align: center;
  background: rgba(8,12,24,0.84);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.speedo b {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.speedo span { font-size: 0.44rem; letter-spacing: 0.12em; color: #7f8db0; text-transform: uppercase; }

/* the one phrase */
.offchip {
  position: absolute;
  left: 12px; right: 12px; bottom: 192px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #06231a;
  background: linear-gradient(120deg, var(--mint), #6ef0c4);
  box-shadow: 0 18px 38px -16px rgba(31,227,160,0.85);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  animation: chip 15s ease-in-out infinite;
}
@keyframes chip {
  0%, 41%   { opacity: 0; transform: translateY(14px) scale(0.96); }
  47%, 86%  { opacity: 1; transform: translateY(0) scale(1); }
  92%, 100% { opacity: 0; transform: translateY(14px) scale(0.96); }
}

/* trip bar */
.tripbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 16px 18px 28px;
  border-radius: 26px 26px 42px 42px;
  background: linear-gradient(to top, rgba(6,10,20,0.98) 58%, rgba(6,10,20,0.8));
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  gap: 12px;
}
.trip-stats { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.trip-stats b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
}
.trip-stats span { font-size: 0.74rem; color: #93a1c2; }
.trip-end {
  margin-left: auto;
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,67,49,0.16);
  border: 1px solid rgba(255,67,49,0.34);
  color: #ff8878;
}

/* floating proof cards */
.float {
  position: absolute;
  z-index: 8;
  width: 236px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(19,26,48,0.92), rgba(10,14,28,0.88));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 28px 60px -26px rgba(0,0,0,0.95);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.float .k {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: 6px;
}
.float .k::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 10px var(--volt);
}
.float p { font-size: 0.82rem; line-height: 1.45; color: #d6dffa; }
.float p b { color: #fff; font-weight: 600; }
.float--a { left: -13%; top: 11%;   animation: bob 11s ease-in-out infinite; }
.float--b { right: -11%; bottom: 12%; animation: bob 11s ease-in-out infinite 1.4s; }
.float--b .k::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 1180px) { .float { width: 202px; } .float--a { left: -5%; } .float--b { right: -3%; } }
@media (max-width: 940px)  { .float { display: none; } }

/* ── Ticker ──────────────────────────────────────────────────────────── */

.ticker {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(61,123,255,0.09), rgba(255,61,129,0.07), rgba(31,227,160,0.09));
  overflow: hidden;
  padding-block: 0.9rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.ticker-row {
  display: flex;
  width: max-content;
  animation: slide 48s linear infinite;
}
.ticker-row > div {          /* two identical halves → the -50% loop is seamless */
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
}
.ticker-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}
.ticker-row span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Section heads ───────────────────────────────────────────────────── */

.section-head { max-width: var(--measure); margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head p { margin-top: 1.15rem; font-size: 1.06rem; }

/* ── Beats ───────────────────────────────────────────────────────────── */

.beats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.1rem;
}
.beat {
  --tint: var(--volt);
  position: relative;
  padding: 1.9rem 1.7rem 1.8rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 62%),
    linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease);
}
.beat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tint), transparent);
}
.beat:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tint) 46%, transparent); }
.beat .step {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tint);
  margin-bottom: 1.15rem;
}
.beat h3 { margin-bottom: 0.7rem; }
.beat p { font-size: 0.97rem; }
.beat .quote {
  display: block;
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  border-radius: 13px;
  border: 1px dashed color-mix(in srgb, var(--tint) 40%, transparent);
  background: color-mix(in srgb, var(--tint) 9%, transparent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #e3ebff;
}

/* ── Capability grid ─────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 1rem;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid + .prose, .grid + h2 { margin-top: clamp(2.4rem, 5vw, 3.6rem); }

.card {
  --tint: var(--volt);
  position: relative;
  padding: 1.6rem 1.5rem;
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014));
  border: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--tint) 70%, transparent), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); background: linear-gradient(165deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02)); }
.card:hover::after { opacity: 1; }
.card .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 1.05rem;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 30%, transparent);
  box-shadow: 0 12px 26px -16px var(--tint);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.93rem; color: var(--steel); }
.card .num {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tint);
  margin-bottom: 0.95rem;
}
a.card { display: block; color: inherit; }
a.card .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--tint);
}
a.card:hover .go { gap: 0.65rem; }
a.card .go svg { transition: transform 0.3s var(--ease); }
.card strong { color: var(--chrome); font-weight: 600; }
.card p a { color: var(--tint); text-decoration: underline; text-underline-offset: 3px; }
.card code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  padding: 0.15em 0.42em;
  border-radius: 5px;
  background: rgba(255,255,255,0.07);
  color: #dfe7fb;
}

/* ── CTA ─────────────────────────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(2.6rem, 6vw, 4.6rem);
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(61,123,255,0.3), transparent 60%),
    radial-gradient(80% 120% at 88% 100%, rgba(255,61,129,0.28), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
}
.cta img {
  width: 66px; height: 66px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 22px 50px -20px rgba(61,123,255,0.9);
}
.cta h2 { margin-bottom: 1rem; }
.cta p { max-width: 36rem; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────── */

footer.site {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.5rem 3.5rem;
  margin-top: clamp(3rem, 8vw, 6rem);
  font-size: 0.88rem;
  color: var(--steel-dim);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
}
footer.site .made { display: flex; align-items: center; gap: 0.65rem; margin-right: auto; }
footer.site .made img { width: 26px; height: 26px; border-radius: 8px; opacity: 0.9; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
footer.site a { color: var(--steel); }
footer.site a:hover { color: var(--chrome); }

/* ── Documents (privacy, support) ────────────────────────────────────── */

.doc { padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.doc-head {
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 140% at 8% 0%, rgba(61,123,255,0.24), transparent 62%),
    linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014));
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.doc-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 0.9rem; }
.doc-head .updated {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel-dim);
}
.doc-head .lede { margin-top: 1.2rem; }

.prose { max-width: var(--measure); }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.prose h3 { margin-top: 1.9rem; margin-bottom: 0.55rem; color: #dfe7fb; }
.prose p { margin-top: 0.85rem; }
.prose ul { margin: 1rem 0 0; padding-left: 1.1rem; }
.prose li { margin-top: 0.55rem; }
.prose li::marker { color: var(--volt); }
.prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #6ef0c4; }
.prose strong { color: var(--chrome); font-weight: 600; }
.prose em {
  color: #dfe7fb;
  font-style: normal;
  background: rgba(31,227,160,0.13);
  padding: 0.05em 0.4em;
  border-radius: 5px;
}
.prose code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  padding: 0.15em 0.42em;
  border-radius: 5px;
  background: rgba(255,255,255,0.07);
  color: #dfe7fb;
}

.panel {
  padding: 1.4rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  margin-top: 1.4rem;
}
.panel p:first-child { margin-top: 0; }
.panel--mint {
  border-color: rgba(31,227,160,0.3);
  background: linear-gradient(160deg, rgba(31,227,160,0.11), rgba(255,255,255,0.014));
}

.scroll { overflow-x: auto; margin-top: 1.4rem; border-radius: var(--r); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 34rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-soft); }
th {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-dim);
  background: rgba(255,255,255,0.035);
}
td { color: var(--steel); }
td:first-child { color: var(--chrome); font-weight: 600; }
tr:last-child td { border-bottom: none; }

.faq { margin-top: 1.2rem; }
.faq details {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  margin-top: 0.7rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq details[open] { border-color: rgba(61,123,255,0.4); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.35rem;
  position: relative;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--chrome);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.35rem; top: 50%;
  width: 9px; height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--volt);
  border-bottom: 2px solid var(--volt);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .body { padding: 0 1.35rem 1.35rem; }
.faq .body p:first-child { margin-top: 0; }

/* ── Scroll reveal — the resting state is VISIBLE; motion is a bonus ─── */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 700px) {
    .reveal {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 24%;
    }
    @keyframes rise-in {
      from { opacity: 0; transform: translateY(34px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

.rise { animation: rise 0.9s var(--ease-out) both; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ── Reduced motion — land everything on its end state ───────────────── */

@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;
  }
  .offchip { opacity: 1; transform: none; }
  .bars rect { fill: #4b5670; }
}
