/* ================================================================
   STORMCAST — landing redesign
   Storm-night atmospheric · technical · power-user
   ================================================================ */

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

:root {
  /* surface */
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --surface: #0d1424;
  --surface-2: #121a2e;
  --line: rgba(148, 178, 224, 0.08);
  --line-2: rgba(148, 178, 224, 0.16);
  --line-bright: rgba(148, 178, 224, 0.32);

  /* ink */
  --ink: #f4f7ff;
  --ink-2: #c9d2e6;
  --mute: #7e8aa6;
  --mute-2: #4a536b;
  --mute-3: #2a3144;

  /* signal */
  --accent: #facc15;          /* brand yellow (favicon) */
  --accent-glow: rgba(250, 204, 21, 0.4);
  --blue: #4f8df4;
  --blue-glow: rgba(79, 141, 244, 0.3);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.35);
  --green: #22c55e;
  --amber: #f59e0b;
  --violet: #a78bfa;
  --teal: #2dd4bf;

  /* type */
  --display: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, svg { display: block; }

/* ── reusable atoms ──────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--mono); font-feature-settings: "zero", "ss01"; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.section-head { max-width: 720px; }
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-top: 14px;
  color: var(--ink);
}
.section-title .accent { color: var(--accent); }
.section-sub {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17px);
  max-width: 540px;
  line-height: 1.6;
}

/* ── ambient background canvas ───────────────────────────────────── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-canvas::before {
  /* radial storm centered over hero */
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  width: 1400px; height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(79, 141, 244, 0.18), transparent 65%),
    radial-gradient(ellipse 40% 30% at 30% 60%, rgba(250, 204, 21, 0.06), transparent 70%),
    radial-gradient(ellipse 35% 28% at 70% 50%, rgba(168, 85, 247, 0.07), transparent 70%);
  filter: blur(4px);
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 224, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 224, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.95 0 0 0 0 1 0 0 0 0.07 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
/* ambient rain canvas */
.bg-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}
/* lightning flash */
.bg-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 20%, rgba(238, 246, 255, 0.4), transparent 60%);
  opacity: 0;
  pointer-events: none;
}
.bg-flash.fire { animation: flash 0.5s ease-out; }
@keyframes flash {
  0% { opacity: 0; }
  10% { opacity: 0.85; }
  20% { opacity: 0.2; }
  30% { opacity: 0.7; }
  100% { opacity: 0; }
}

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-left { display: flex; align-items: center; gap: 28px; }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img {
  width: 30px; height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 16px rgba(250, 204, 21, 0.1);
}
.nav-brand span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.05);
}
.nav-status .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 1.6s infinite;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.nav-cta svg { width: 14px; height: 14px; }

/* ── EARLY ACCESS RIBBON ─────────────────────────────────────────── */
.ribbon {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.05));
  padding: 8px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.ribbon strong { font-weight: 600; color: #fcd34d; }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-coord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: rgba(13, 20, 36, 0.6);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.hero-coord span {
  transition: opacity 0.4s ease;
}
.hero-coord.fade span {
  opacity: 0.3;
}
.hero-coord .ping {
  position: relative;
  width: 8px; height: 8px;
}
.hero-coord .ping::before,
.hero-coord .ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}
.hero-coord .ping::after {
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0; }
}
.hero-coord .sep { color: var(--mute-2); }

h1.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(46px, 6.5vw, 84px);
  letter-spacing: -0.045em;
  line-height: 0.97;
  margin-bottom: 24px;
  color: var(--ink);
}
h1.hero-title .word {
  display: inline-block;
}
h1.hero-title .accent {
  background: linear-gradient(180deg, var(--accent) 0%, #f0b90a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 32px rgba(250, 204, 21, 0.25);
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(250, 204, 21, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(250, 204, 21, 0.4); }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-ghost {
  border: 1px solid var(--line-2);
  background: rgba(13, 20, 36, 0.5);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--line-bright); background: rgba(13, 20, 36, 0.8); }
.btn svg { width: 16px; height: 16px; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}
.hero-meta .sep { width: 3px; height: 3px; background: var(--mute-3); border-radius: 50%; }
.hero-meta .ok { color: var(--green); }
.hero-meta .ios-soon {
  color: var(--accent);
  font-weight: 500;
}
.store-soon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 500;
}
.store-icon {
  width: 12px; height: 12px;
  opacity: 0.9;
  flex-shrink: 0;
}

/* ── LIVE DASHBOARD PREVIEW (hero right) ─────────────────────────── */
.livecard {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.92), rgba(5, 7, 13, 0.92));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(79, 141, 244, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.livecard::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
  z-index: 2;
}

/* hero weather panel inside the card */
.lc-hero {
  background: linear-gradient(160deg, #1e40af 0%, #1d4ed8 50%, #1e3a8a 100%);
  padding: 18px 20px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(99, 179, 237, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(30, 64, 175, 0.5), transparent 60%);
  pointer-events: none;
}
.lc-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  position: relative;
}
.lc-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.lc-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 99px;
}
.lc-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
  animation: pulse 1.5s ease-in-out infinite;
}
.lc-temp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.lc-temp {
  display: flex;
  align-items: flex-start;
}
.lc-temp-num {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.lc-temp-deg {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  margin-top: 6px;
  margin-left: 2px;
  opacity: 0.85;
}
.lc-temp-icon { opacity: 0.85; position: relative; }
.lc-cond {
  position: relative;
  margin-top: -4px;
}
.lc-cond strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  display: block;
}
.lc-cond span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.lc-mini-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}
.lc-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.lc-mini:last-child { border-right: none; }
.lc-mini-l {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}
.lc-mini strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* 2x2 category tiles */
.lc-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.lc-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid;
  background: rgba(13, 20, 36, 0.4);
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.lc-tile:hover { transform: translateY(-1px); }
.lc-tile-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.lc-tile-body { display: flex; flex-direction: column; min-width: 0; }
.lc-tile-label {
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 1px;
}
.lc-tile-num {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lc-tile-red {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(13, 20, 36, 0.4));
}
.lc-tile-red .lc-tile-icon { background: #ef4444; box-shadow: 0 0 16px rgba(239, 68, 68, 0.4); }
.lc-tile-red.active .lc-tile-num { color: #fca5a5; }

.lc-tile-orange {
  border-color: rgba(249, 115, 22, 0.3);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(13, 20, 36, 0.4));
}
.lc-tile-orange .lc-tile-icon { background: #f97316; box-shadow: 0 0 16px rgba(249, 115, 22, 0.4); }

.lc-tile-blue {
  border-color: rgba(79, 141, 244, 0.3);
  background: linear-gradient(135deg, rgba(79, 141, 244, 0.08), rgba(13, 20, 36, 0.4));
}
.lc-tile-blue .lc-tile-icon { background: #4f8df4; box-shadow: 0 0 16px rgba(79, 141, 244, 0.4); }

.lc-tile-teal {
  border-color: rgba(20, 184, 166, 0.32);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(13, 20, 36, 0.4));
}
.lc-tile-teal .lc-tile-icon { background: #14b8a6; box-shadow: 0 0 16px rgba(20, 184, 166, 0.4); }
.lc-tile-teal .lc-tile-num { color: #5eead4; }

/* status panel */
.lc-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 14px 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid;
  transition: all 0.4s ease;
}
.lc-status-ok {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.06);
  color: #86efac;
}
.lc-status-warn {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}
.lc-status-warn .lc-status-icon { color: #ef4444; background: rgba(239, 68, 68, 0.15); }
.lc-status-warn .lc-status-body strong { color: #fecaca; }

.lc-status-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: #22c55e;
  flex-shrink: 0;
  transition: all 0.4s ease;
}
.lc-status-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-status-body strong {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #4ade80;
}
.lc-status-warn .lc-status-body strong { color: #fecaca; }
.lc-status-body span {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* footer */
.lc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.5);
}
.lc-foot-l, .lc-foot-r {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.lc-foot-l { display: inline-flex; align-items: center; gap: 7px; }
.lc-foot-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: pulse 1.6s infinite;
}
.lc-foot-r { color: var(--ink-2); }

/* ── REVEAL ANIMATIONS (scroll-triggered) ───────────────────────── */
/* Elements marked [data-reveal] start hidden and slide+fade in
   when the IntersectionObserver adds .in-view (handled in ambient.js) */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside revealed grids */
[data-reveal].in-view .feat { animation: feat-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-reveal].in-view .feat:nth-child(1) { animation-delay: 0.05s; }
[data-reveal].in-view .feat:nth-child(2) { animation-delay: 0.1s; }
[data-reveal].in-view .feat:nth-child(3) { animation-delay: 0.15s; }
[data-reveal].in-view .feat:nth-child(4) { animation-delay: 0.2s; }
[data-reveal].in-view .feat:nth-child(5) { animation-delay: 0.25s; }
[data-reveal].in-view .feat:nth-child(6) { animation-delay: 0.3s; }
[data-reveal].in-view .feat:nth-child(7) { animation-delay: 0.35s; }
[data-reveal].in-view .feat:nth-child(8) { animation-delay: 0.4s; }
[data-reveal].in-view .feat:nth-child(9) { animation-delay: 0.45s; }
@keyframes feat-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section heading accent underline that draws in on reveal */
.section-title {
  position: relative;
}
[data-reveal] .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-50%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
  box-shadow: 0 0 12px var(--accent-glow);
}
[data-reveal].in-view .section-title::after { width: 120px; }
/* Skip underline for left-aligned titles (install section) */
.install-left .section-title::after,
.arch-head .section-title::after,
.consolidate-copy .section-title::after { display: none !important; }

/* ── ENHANCED FEATURE CARDS ─────────────────────────────────────── */
.feat {
  cursor: default;
  position: relative;
  overflow: hidden;
}
.feat::before {
  /* sweeping accent that lights up on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(250, 204, 21, 0.06) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.feat:hover { background: var(--surface-2); transform: translateY(-2px); }
.feat:hover::before { transform: translateX(100%); }
.feat:hover .feat-icon-bg {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 24px currentColor;
}
.feat-icon-bg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}
.feat { transition: background 0.25s ease, transform 0.25s ease; }

/* ── ARCHITECTURE STATS — count-up animation ─────────────────────── */
.arch-stat .v {
  font-variant-numeric: tabular-nums;
}

/* ── PRIMARY CTA — breathing yellow glow when idle ──────────────── */
.btn-primary,
.dl-cta,
.nav-cta {
  position: relative;
}
.btn-primary::after,
.dl-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f59e0b, var(--accent));
  background-size: 200% 100%;
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  animation: breathe 4s ease-in-out infinite;
}
.btn-primary::after { opacity: 0.35; }
.dl-cta::before { opacity: 0.4; }
@keyframes breathe {
  0%, 100% { background-position: 0% 0; opacity: 0.25; }
  50% { background-position: 100% 0; opacity: 0.5; }
}

/* ── HERO RADIAL FOLLOW (subtle mouse parallax) ─────────────────── */
.hero-wrap, .hero {
  /* surface to receive --mx/--my variables */
}
.bg-canvas::before {
  /* shift the storm glow toward cursor */
  will-change: transform;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── TELEMETRY VALUE PULSE ON UPDATE ────────────────────────────── */
.telem-value, .lc-tile-num {
  transition: color 0.4s ease;
}
.telem-value.flash, .lc-tile-num.flash {
  color: var(--accent);
}

/* ── FAQ ITEM HOVER ─────────────────────────────────────────────── */
.faq-item summary {
  transition: padding 0.2s ease;
}
.faq-item:not([open]):hover summary {
  padding-left: 26px;
}
.faq-item:not([open]):hover .faq-icon {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── PHONE FLOAT (gentle idle) ──────────────────────────────────── */
.phone.center {
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 720px) {
  .phone.center { animation: none; }

  /* Kill perspective (removes GPU compositing layer that swallows touch) and
     pointer-events on the whole stage — all phone mockups are purely decorative
     on mobile so every touch falls through directly to the page scroll handler. */
  .phones-stage {
    perspective: none;
    touch-action: pan-y;
    pointer-events: none;
  }
  .phone.left  { transform: translateY(20px) translateX(20px) scale(0.94); }
  .phone.right { transform: translateY(20px) translateX(-20px) scale(0.94); }
}

/* ── BEFORE/AFTER STACK — pulsing arrow ──────────────────────────── */
.cs-arrow svg { animation: cs-arrow-pulse 2.4s ease-in-out infinite; }
@keyframes cs-arrow-pulse {
  0%, 100% { transform: rotate(90deg) translateX(0); filter: drop-shadow(0 0 8px var(--accent-glow)); }
  50%      { transform: rotate(90deg) translateX(6px); filter: drop-shadow(0 0 18px var(--accent-glow)); }
}

/* ── NAV SHRINK ON SCROLL ───────────────────────────────────────── */
.nav-shell {
  transition: padding 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.nav-shell.scrolled {
  background: rgba(5, 7, 13, 0.92);
  border-bottom-color: rgba(148, 178, 224, 0.18);
}
.nav-shell.scrolled .nav { height: 52px; }
.nav { transition: height 0.25s ease; }

/* ── RESPECT REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-reveal].in-view .feat { animation: none; }
  .btn-primary::after, .dl-cta::before { animation: none; opacity: 0; }
  .phone.center { animation: none; }
  .cs-arrow svg { animation: none; }
}

/* ── LEGAL PAGES (privacy / terms) ───────────────────────────────── */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  position: relative;
  z-index: 1;
}
.legal-head {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.legal-head .eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}
.legal-head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 18px;
}
.legal-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.legal-meta .sep { color: var(--mute-3); }
.legal-meta strong { color: var(--ink-2); font-weight: 500; }

.legal-summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 36px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.06), rgba(79, 141, 244, 0.04));
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 14px;
}
.legal-summary-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.legal-summary p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.legal-summary p strong { color: var(--accent); font-weight: 600; }

.legal-toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 56px;
}
.legal-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13.5px;
  transition: background 0.15s, color 0.15s;
}
.legal-toc a:hover { background: var(--surface-2); color: var(--ink); }
.legal-toc-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute);
  min-width: 24px;
  letter-spacing: 0.06em;
}

.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 90px;
}
.legal-section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-section h2 .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
}
.legal-section h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 24px 0 10px;
  letter-spacing: -0.005em;
}
.legal-section p,
.legal-section li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.legal-section ul, .legal-section ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-section li { margin-bottom: 6px; }
.legal-section strong { color: var(--ink); font-weight: 500; }
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(250, 204, 21, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}
.legal-section a:hover { text-decoration-color: var(--accent); }

.legal-note {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.legal-note svg { flex-shrink: 0; margin-top: 2px; }
.legal-note.amber {
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.05);
  color: #fcd34d;
}
.legal-note.blue {
  border: 1px solid rgba(79, 141, 244, 0.25);
  background: rgba(79, 141, 244, 0.05);
  color: #93c5fd;
}
.legal-note.red {
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.05);
  color: #fca5a5;
}
.legal-note strong { color: inherit; font-weight: 600; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.legal-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.legal-table td {
  padding: 12px 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  background: rgba(13, 20, 36, 0.4);
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.legal-back:hover { background: var(--surface); color: var(--ink); }

@media (max-width: 720px) {
  .legal-wrap { padding: 50px 18px 70px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-table { display: block; overflow-x: auto; }
}

@media (max-width: 720px) {
  .livecard { max-width: none; border-radius: 16px; }
  .lc-hero { padding: 16px 16px 14px; }
  .lc-temp-num { font-size: 56px; }
  .lc-tiles { padding: 12px; gap: 8px; }
  .lc-tile { padding: 10px 12px; gap: 10px; }
  .lc-tile-icon { width: 28px; height: 28px; }
  .lc-tile-num { font-size: 17px; }
  .lc-status { margin: 0 12px 12px; padding: 12px 14px; }
}
/* ── LIVE TELEMETRY BAR ──────────────────────────────────────────── */
.telemetry {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.6);
  backdrop-filter: blur(8px);
  margin-top: 40px;
  overflow: hidden;
}
.telemetry-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.telem-cell {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.telem-cell:last-child { border-right: none; }
.telem-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex; align-items: center; gap: 6px;
}
.telem-label .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 1.6s infinite; }
.telem-value {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.telem-value .unit { font-size: 12px; color: var(--mute); font-weight: 400; margin-left: 3px; font-family: var(--mono); }
.telem-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
}
.telem-sub.ok { color: var(--green); }
.telem-sub.warn { color: var(--amber); }

/* ── MOCKUP / SHOWCASE ───────────────────────────────────────────── */
.showcase { padding: 100px 0 80px; overflow-x: hidden; }
.showcase-head { text-align: center; margin: 0 auto 60px; }
.showcase-head .eyebrow { justify-content: center; display: inline-flex; }
.showcase-head .section-title { margin-left: auto; margin-right: auto; }

.phones-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  perspective: 1500px;
  min-height: 600px;
  touch-action: pan-y;   /* always allow vertical scroll through this section */
  overflow: hidden;       /* clip 3D-rotated phones so they can't create a scroll trap */
}
.phone {
  width: 240px;
  background: #050810;
  border-radius: 36px;
  border: 1px solid rgba(148, 178, 224, 0.2);
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(79, 141, 244, 0.08);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  touch-action: pan-y;  /* let vertical swipes scroll the page, not get swallowed */
}
.phone.center {
  width: 280px;
  z-index: 3;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 100px rgba(0, 0, 0, 0.85),
    0 0 120px rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.18);
}
.phone.left { transform: translateY(20px) rotateY(18deg) translateX(20px); z-index: 1; }
.phone.left-2 { transform: translateY(40px) rotateY(28deg) translateX(40px); z-index: 0; opacity: 0.75; }
.phone.right { transform: translateY(20px) rotateY(-18deg) translateX(-20px); z-index: 1; }
.phone.right-2 { transform: translateY(40px) rotateY(-28deg) translateX(-40px); z-index: 0; opacity: 0.75; }
.phone:hover { transform: translateY(-8px) rotateY(0); }

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/19;
  background: #0a0f1c;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-pill {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 22px;
  background: #050810;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-tag {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(13, 20, 36, 0.9);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.phone.center .phone-tag { color: var(--accent); border-color: rgba(250, 204, 21, 0.3); }
.phone-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ── FEATURES GRID ───────────────────────────────────────────────── */
.features {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
}
.features-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.features-head .eyebrow { justify-content: center; display: inline-flex; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.feat {
  background: var(--surface);
  padding: 28px 26px 32px;
  position: relative;
  transition: background 0.2s;
}
.feat:hover { background: var(--surface-2); }
.feat:hover .feat-icon-bg { transform: scale(1.05); }
.feat-icon-bg {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s;
  border: 1px solid;
}
.feat h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.feat p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mute);
}
.feat-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute-2);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.feat-meta span::before { content: "›"; margin-right: 4px; color: var(--mute-3); }

.feat-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s, gap 0.15s;
}
.feat-link:hover { color: #93c5fd; }

/* Status bar below features grid */
.features-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(34,197,94,0.15);
  background: rgba(34,197,94,0.04);
  font-size: 0.83rem;
  color: #8899bb;
}
.features-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e88;
  flex-shrink: 0;
  animation: status-pulse 2.5s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.features-status-link {
  margin-left: auto;
  color: #60a5fa;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.features-status-link:hover { color: #93c5fd; }

/* ── ARCHITECTURE / DATA SOURCES ─────────────────────────────────── */
.architecture {
  padding: 60px 0 100px;
}
.arch-card {
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.8), rgba(10, 15, 28, 0.5));
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}
.arch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 224, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 224, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.arch-head { position: relative; margin-bottom: 40px; }
.arch-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.arch-node {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 20px;
  background: rgba(5, 7, 13, 0.7);
  position: relative;
}
.arch-node-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
.arch-node-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.arch-node-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}
.arch-node .src-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arch-node .src-list .src {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.arch-node .src-list .src::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue-glow);
}
.arch-node.middle { border-color: rgba(250, 204, 21, 0.25); background: rgba(20, 16, 5, 0.6); }
.arch-node.middle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.15);
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.1);
  pointer-events: none;
}
.arch-node.middle .arch-node-label { color: var(--accent); }
.arch-arrow {
  display: flex; align-items: center;
  color: var(--mute-2);
  font-family: var(--mono);
  font-size: 11px;
}
.arch-arrow .line {
  width: 40px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--mute-2) 0 4px, transparent 4px 8px);
  position: relative;
}
.arch-arrow .pkt {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: travel 2.5s linear infinite;
}
@keyframes travel {
  0% { left: -8px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.arch-stats {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.arch-stat .v {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.arch-stat .v .unit { color: var(--mute); font-size: 14px; font-family: var(--mono); margin-left: 4px; }
.arch-stat .l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
}

/* ── CONSOLIDATION SECTION ───────────────────────────────────────── */
.consolidate {
  padding: 90px 0 70px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.consolidate::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(250, 204, 21, 0.06), transparent 65%);
  pointer-events: none;
}
.consolidate-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.consolidate-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 32px 32px 32px 32px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(13, 20, 36, 0.6), rgba(10, 15, 28, 0.4));
}
.consolidate-stack::before {
  content: "BEFORE";
  position: absolute;
  top: -10px; left: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
}
.cs-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 7, 13, 0.4);
  text-align: center;
}
.cs-app svg { width: 22px; height: 22px; opacity: 0.7; }
.cs-app span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cs-app-5 { grid-column: span 1; }

.cs-arrow {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  padding: 8px 0 4px;
  height: 24px;
}
.cs-arrow svg {
  width: 56px;
  height: 16px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  transform: rotate(90deg);
}
.cs-result {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(250, 204, 21, 0.04));
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 14px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.05), 0 20px 60px rgba(250, 204, 21, 0.08);
}
.cs-result::before {
  content: "AFTER";
  position: absolute;
  top: -10px; right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(250, 204, 21, 0.35);
}
.cs-result img {
  width: 44px; height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}
.cs-result-text { display: flex; flex-direction: column; gap: 2px; }
.cs-result-text strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cs-result-text span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .consolidate-inner { grid-template-columns: 1fr; gap: 40px; }
  .consolidate-stack { max-width: 460px; }
}
@media (max-width: 720px) {
  .consolidate { padding: 60px 0 40px; }
  .consolidate-stack { padding: 28px 20px 20px; gap: 8px; }
  .cs-app { padding: 12px 6px; }
  .cs-arrow svg { width: 40px; }
}
.install {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.install-left .section-title { margin-bottom: 18px; }
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 28px;
}
.install-step {
  background: var(--surface);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.install-step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.1em;
  padding-top: 3px;
  flex-shrink: 0;
  min-width: 24px;
}
.install-step-text { flex: 1; }
.install-step-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.install-step-text span { font-size: 13px; color: var(--mute); line-height: 1.55; }

.battery-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.06);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.battery-note svg { width: 16px; height: 16px; color: var(--amber); flex-shrink: 0; margin-top: 1px; }
.battery-note strong { color: #fcd34d; font-weight: 600; }

/* download card */
.dl-card {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.9), rgba(10, 15, 28, 0.7));
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.dl-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.dl-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line-2);
  margin-bottom: 24px;
}
.dl-pkg {
  display: flex; align-items: center; gap: 12px;
}
.dl-pkg img { width: 44px; height: 44px; border-radius: 10px; }
.dl-pkg-meta { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.dl-pkg-meta strong { display: block; color: var(--ink); font-size: 14px; font-family: var(--display); font-weight: 600; }
.dl-version {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  padding: 4px 8px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 6px;
}

.dl-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.dl-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 7, 13, 0.5);
}
.dl-stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.dl-stat .v { font-family: var(--display); font-size: 18px; font-weight: 500; margin-top: 4px; }

.dl-cta {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 28px rgba(250, 204, 21, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.dl-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s;
}
.dl-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 36px rgba(250, 204, 21, 0.4); }
.dl-cta:hover::after { transform: translateX(100%); }
.dl-cta.unlocked {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 28px rgba(34, 197, 94, 0.3);
}

/* Android-only chip on download button */
.dl-cta-platform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  white-space: nowrap;
  vertical-align: middle;
}

/* Store coming soon block */
.dl-stores-coming {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dl-stores-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
}
.dl-stores-row {
  display: flex;
  gap: 10px;
}
.dl-store-badge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dl-store-badge svg { flex-shrink: 0; opacity: 0.7; }
.dl-store-info { display: flex; flex-direction: column; gap: 2px; }
.dl-store-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.dl-store-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}

.dl-fineprint {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute-2);
  line-height: 1.6;
}
.dl-fineprint a { color: var(--mute); text-decoration: underline; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq { padding: 100px 0; border-top: 1px solid var(--line); }
.faq-head { text-align: center; margin: 0 auto 48px; }
.faq-head .eyebrow { justify-content: center; display: inline-flex; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.faq-item[open] { border-color: rgba(250, 204, 21, 0.3); background: var(--surface-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mute);
  transition: all 0.2s;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; transition: transform 0.2s; }
.faq-item[open] .faq-icon { color: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-body {
  padding: 0 22px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.faq-body a { color: var(--accent); text-decoration: underline; }
.faq-body strong { color: var(--ink); font-weight: 500; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 32px;
}
/* ── Alert types strip ─────────────────────────────────────────── */
.alert-types-strip {
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.alert-types-strip .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.alert-types-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a5a7a;
  white-space: nowrap;
  margin: 0;
}
.alert-types-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.alert-types-links a {
  display: inline-block;
  padding: 7px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #8899bb;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.alert-types-links a:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  color: #c8d8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; margin-bottom: 12px; }
.footer-brand p {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute-2);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .coord { color: var(--mute); }

/* ── GATE MODAL ──────────────────────────────────────────────────── */
.gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate-backdrop.show {
  display: flex;
  animation: backdrop-in 0.3s ease;
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

.gate {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, #0d1424, #0a0f1c);
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 80px rgba(79, 141, 244, 0.1);
  animation: gate-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gate::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.gate-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--mute);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  z-index: 5;
}
.gate-close:hover { background: var(--surface-2); color: var(--ink); }
.gate-head {
  padding: 28px 28px 0;
}
.gate-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.gate-progress .seg {
  height: 3px;
  flex: 1;
  background: var(--line-2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.gate-progress .seg.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: fill 0.4s ease-out;
}
.gate-progress .seg.done { background: rgba(250, 204, 21, 0.4); }
@keyframes fill { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.gate-step-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.gate-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.gate-desc {
  font-size: 13.5px;
  color: var(--mute);
  line-height: 1.55;
}
.gate-body { padding: 24px 28px 28px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input, .field select {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}
.field .hint { font-family: var(--mono); font-size: 10.5px; color: var(--mute-2); }
.field .hint.err { color: var(--red); }

/* honeypot — visually hidden but still in the DOM so bots fill it */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* beta notice + consent rows inside the gate */
.beta-notice {
  margin: 18px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.05);
  border-radius: 10px;
}
.beta-notice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fcd34d;
  margin-bottom: 6px;
}
.beta-notice-head svg { color: #fbbf24; flex-shrink: 0; }
.beta-notice p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 7, 13, 0.4);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.consent:hover { border-color: var(--line-2); }
.consent input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-bright);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s;
}
.consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid #0a0a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent:has(input:checked) {
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.04);
}
.consent span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.consent a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(250, 204, 21, 0.4);
}

.gate-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.gate-btn {
  flex: 1;
  padding: 13px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}
.gate-btn-primary { background: var(--accent); color: #0a0a0a; box-shadow: 0 4px 20px rgba(250, 204, 21, 0.25); }
.gate-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(250, 204, 21, 0.35); }
.gate-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.gate-btn-ghost { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.gate-btn-ghost:hover { background: var(--surface); }

/* ── PLATFORM PICKER (step 0) ────────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(5, 7, 13, 0.5);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: center;
}
.platform-card:hover {
  border-color: var(--line-bright);
  background: rgba(13, 20, 36, 0.7);
  transform: translateY(-2px);
}
.platform-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s, border-color 0.2s;
}
.platform-android .platform-icon { color: #86efac; }
.platform-ios     .platform-icon { color: #93c5fd; }
.platform-android:hover .platform-icon { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); }
.platform-ios:hover     .platform-icon { background: rgba(79,141,244,0.1); border-color: rgba(79,141,244,0.3); }

.platform-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.platform-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--mute);
  line-height: 1.4;
}
.platform-badge {
  position: absolute;
  top: -9px; right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 99px;
}
.badge-live {
  background: rgba(34,197,94,0.14);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.4);
}
.badge-soon {
  background: rgba(79,141,244,0.12);
  color: #93c5fd;
  border: 1px solid rgba(79,141,244,0.3);
}
.platform-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute-2);
  text-align: center;
  margin-top: 2px;
}

/* ── iOS WAITLIST SUCCESS ─────────────────────────────────────── */
.success-mark-ios {
  background: rgba(79,141,244,0.12);
  border-color: rgba(79,141,244,0.4);
}
.success-mark-ios::before { border-color: #4f8df4; }
.ios-waitlist-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 16px;
  border-radius: 10px;
  background: rgba(79,141,244,0.06);
  border: 1px solid rgba(79,141,244,0.2);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  text-align: left;
}
.ios-waitlist-note svg { flex-shrink: 0; color: #93c5fd; margin-top: 1px; }

/* captcha — radar tile grid */
.captcha-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: rgba(79, 141, 244, 0.06);
  border: 1px solid rgba(79, 141, 244, 0.2);
  border-radius: 10px;
}
.captcha-prompt-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(79, 141, 244, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.captcha-prompt-text { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.captcha-prompt-text strong { color: var(--accent); font-weight: 600; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  background: #050810;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.tile {
  aspect-ratio: 1;
  background: #0a0f1c;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s;
  border: none;
  padding: 0;
}
.tile:hover { transform: scale(0.97); }
.tile .tile-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 224, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
  pointer-events: none;
}
.tile .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  mix-blend-mode: screen;
}
.tile.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.tile.selected::before {
  content: "✓";
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  z-index: 5;
}
.captcha-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute);
}
.captcha-meta .err { color: var(--red); }

/* success step */
.success-mark {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: success-pop 0.6s cubic-bezier(0.2, 1.5, 0.3, 1);
}
@keyframes success-pop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-mark::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: ping-large 1.8s ease-out infinite;
}
.success-mark svg { width: 36px; height: 36px; color: var(--green); }
.success-step { text-align: center; padding: 8px 0; }
.success-step .gate-title { font-size: 24px; margin-bottom: 10px; }
.success-step .gate-desc { max-width: 320px; margin: 0 auto 24px; }
.success-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 22px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}
.success-meta strong { color: var(--ink); display: block; font-size: 13px; font-family: var(--display); font-weight: 500; margin-top: 2px; }

/* unlocked banner */
.unlocked-banner {
  display: none;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--green);
  font-family: var(--mono);
  align-items: center;
  gap: 10px;
}
.unlocked-banner.show { display: flex; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: 1fr; gap: 40px; }
  .telemetry-inner { grid-template-columns: repeat(3, 1fr); }
  .telem-cell:nth-child(4), .telem-cell:nth-child(5) { border-top: 1px solid var(--line); }
  .telem-cell:nth-child(3) { border-right: none; }
  .arch-pipeline { grid-template-columns: 1fr; }
  .arch-arrow { transform: rotate(90deg); justify-self: center; }
  .arch-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── HAMBURGER / MOBILE MENU ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(148,178,224,0.12); }
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: #c9d2e6;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,7,13,0.7);
  backdrop-filter: blur(4px);
}
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(280px, 85vw);
  height: 100%;
  background: rgba(13,20,36,0.97);
  border-left: 1px solid rgba(148,178,224,0.15);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 72px 0 32px;
  animation: menu-slide-in 0.25s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes menu-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.mobile-menu-panel a {
  display: flex;
  align-items: center;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 500;
  color: #c9d2e6;
  text-decoration: none;
  border-bottom: 1px solid rgba(148,178,224,0.08);
  transition: color 0.15s, background 0.15s;
}
.mobile-menu-panel a:hover { color: #f4f7ff; background: rgba(148,178,224,0.06); }
.mobile-menu-panel a.menu-cta {
  margin: 24px 28px 0;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(148,178,224,0.1);
  border: none;
  border-radius: 50%;
  color: #c9d2e6;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-status { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-left { gap: 12px; }
  .nav-brand span { font-size: 15px; }
  .ribbon { font-size: 10px; padding: 7px 12px; line-height: 1.4; }

  .hero { padding: 40px 0 30px; }
  h1.hero-title { font-size: clamp(38px, 11vw, 52px); letter-spacing: -0.04em; }
  .hero-sub { font-size: 15px; }
  .hero-coord { font-size: 10px; flex-wrap: wrap; }
  .hero-cta-row .btn { flex: 1; justify-content: center; padding: 13px 16px; font-size: 13px; }
  .hero-meta { font-size: 10px; gap: 10px; }

  .telemetry-inner { grid-template-columns: 1fr 1fr; }
  .telem-cell { border-right: none !important; border-bottom: 1px solid var(--line); padding: 16px 18px; }
  .telem-cell:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .telem-cell:last-child { border-bottom: none; }
  .telem-value { font-size: 19px; }
  .telem-label { font-size: 9px; }

  /* showcase handled by carousel block below */
  .phones-stage-mobile-hint { display: none; }

  .features { padding: 60px 0 70px; }
  .features-head { margin-bottom: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .feat { padding: 22px 20px 24px; }

  .architecture { padding: 40px 0 60px; }
  .arch-card { padding: 28px 22px; }
  .arch-card .section-title { font-size: 30px; }
  .arch-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .arch-stat .v { font-size: 24px; }

  .install { padding: 60px 0; }
  .install-left .section-title { font-size: 32px; }
  .install-step { padding: 14px 16px; gap: 12px; }
  .install-step-text strong { font-size: 13px; }
  .install-step-text span { font-size: 12px; }
  .dl-card { padding: 24px 20px; }
  .dl-stats { grid-template-columns: 1fr 1fr; }

  .faq { padding: 70px 0; }
  .faq-head { margin-bottom: 32px; }
  .faq-item summary { padding: 16px 18px; font-size: 13.5px; gap: 12px; }
  .faq-body { padding: 0 18px 18px; font-size: 13px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 10.5px; }
  footer { padding: 40px 0 28px; }

  .section-title { font-size: clamp(28px, 6vw, 38px); }
  .section-sub { font-size: 14px; }

  /* Gate modal — bottom sheet on mobile */
  .gate-backdrop {
    padding: 0;
    align-items: flex-end;
    overflow: hidden;
  }
  .gate-backdrop.show { align-items: flex-end; }
  .gate {
    width: 100%;
    max-width: 100%;
    max-height: 90%;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: gate-up 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  @keyframes gate-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
  /* drag handle */
  .gate::after {
    content: "";
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 4px;
    background: rgba(148,178,224,0.25);
    border-radius: 99px;
  }
  .gate-head {
    padding: 20px 18px 0;
    flex-shrink: 0;
  }
  .gate-progress { margin-bottom: 10px; }
  .gate-title { font-size: 17px; margin-bottom: 4px; }
  .gate-desc { font-size: 12px; line-height: 1.4; }
  .gate-body {
    padding: 10px 18px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1;
    min-height: 0;
  }
  .field { margin-bottom: 9px; gap: 5px; }
  .field input, .field select { padding: 9px 12px; font-size: 13px; }
  .beta-notice { margin: 8px 0 7px; padding: 8px 10px; }
  .beta-notice p { font-size: 11px; line-height: 1.45; }
  .consent { padding: 7px 9px; margin-bottom: 5px; }
  .consent span { font-size: 11.5px; line-height: 1.4; }
  .gate-actions { margin-top: 10px; }
  .gate-btn { font-size: 13px; padding: 11px; }
  .tile-grid { gap: 3px; padding: 4px; }
}

@media (max-width: 420px) {
  h1.hero-title { font-size: 38px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
  .hero-meta { font-size: 9px; }
  .telemetry-inner { grid-template-columns: 1fr; }
  .telem-cell { border-right: none !important; }
  .arch-stats { grid-template-columns: 1fr 1fr; }
  /* shrink tweaks panel on small screens */
  .twk-panel { width: calc(100vw - 32px); max-width: 280px; right: 12px; bottom: 12px; }
}

/* ── COMPARISON TABLE ───────────────────────────────────────────── */
.compare {
  padding: 90px 0 80px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.compare::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(250, 204, 21, 0.04), transparent 65%);
  pointer-events: none;
}
.compare-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  position: relative;
}
.compare-head .eyebrow {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 16px;
}
.compare-card {
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.85), rgba(10, 15, 28, 0.7));
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 30px 80px rgba(0, 0, 0, 0.5);
}
.compare-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.compare-table {
  display: flex;
  flex-direction: column;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.compare-row:last-child { border-bottom: none; }
.compare-row:not(.compare-header):hover {
  background: rgba(13, 20, 36, 0.5);
}

.compare-header {
  background: rgba(5, 7, 13, 0.6);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 60px;
  z-index: 4;
  backdrop-filter: blur(12px);
}
.compare-header .compare-feature,
.compare-header .compare-col {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-header .compare-feature { color: var(--mute); }

.compare-col {
  justify-content: center;
  text-align: center;
}
.compare-col img,
.compare-col-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
}
.compare-col img {
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.2);
}
.compare-col span:not(.compare-col-icon) {
  font-weight: 600;
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.compare-col-us span:not(.compare-col-icon) {
  color: var(--accent);
}

.compare-feature {
  padding: 16px 22px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
}
.compare-cell {
  padding: 16px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.compare-cell::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.compare-cell.yes {
  color: #86efac;
}
.compare-cell.yes::before {
  content: "✓";
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.compare-cell.no {
  color: var(--mute-2);
}
.compare-cell.no::before {
  content: "×";
  background: rgba(148, 178, 224, 0.05);
  color: var(--mute);
  border: 1px solid var(--line-2);
  padding-bottom: 1px;
}
.compare-cell.partial {
  color: #fcd34d;
}
.compare-cell.partial::before {
  content: "~";
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 2px;
}

/* Highlight the StormCast column */
.compare-row > div:nth-child(2) {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.04), rgba(250, 204, 21, 0.02));
  border-left: 1px solid rgba(250, 204, 21, 0.15);
  border-right: 1px solid rgba(250, 204, 21, 0.15);
}
.compare-header > div:nth-child(2) {
  background: rgba(250, 204, 21, 0.05);
}

.compare-foot {
  max-width: 740px;
  margin: 24px auto 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--mute-2);
  letter-spacing: 0.02em;
}
.compare-ast {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
  margin-left: 2px;
}
.compare-foot a {
  color: var(--mute);
  text-decoration: underline;
  text-decoration-color: var(--line-bright);
}
.compare-foot a:hover { color: var(--ink-2); }

.compare-scroll-hint {
  display: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mute-2);
  margin-top: 10px;
  margin-bottom: -2px;
}

@media (max-width: 720px) {
  .compare { padding: 60px 0 50px; }
  .compare-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-table {
    min-width: 640px;
  }
  .compare-feature {
    font-size: 13px;
    padding: 14px 16px;
  }
  .compare-cell {
    padding: 14px 10px;
    font-size: 12px;
  }
  .compare-header { position: static; }
  .compare-header .compare-feature,
  .compare-header .compare-col {
    padding: 12px 14px;
    font-size: 9.5px;
  }
}

/* ── WHAT THIS APP WON'T DO ─────────────────────────────────────── */
.limits {
  padding: 90px 0 70px;
  border-top: 1px solid var(--line);
  position: relative;
}
.limits-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.limits-head .eyebrow {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 16px;
}
.limits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 940px;
  margin: 0 auto;
}
.limit-card {
  position: relative;
  padding: 26px 28px 28px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(13, 20, 36, 0.6), rgba(10, 15, 28, 0.4));
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.limit-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}
.limit-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  margin-bottom: 16px;
}
.limit-icon .limit-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
.limit-card h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.limit-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.limits-foot {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 20, 36, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  font-style: italic;
}
.limits-foot svg {
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .limits { padding: 60px 0 50px; }
  .limits-grid { grid-template-columns: 1fr; }
  .limit-card { padding: 22px 22px 24px; }
  .limits-foot { font-size: 12.5px; padding: 12px 14px; }
}

/* ── ABOUT PAGE ──────────────────────────────────────────────────── */
.about-wrap {
  position: relative;
  z-index: 1;
}
.about-hero {
  padding: 80px 0 60px;
}
.about-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 78px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 900px;
  margin: 20px 0 28px;
}
.about-hero h1 .accent { color: var(--accent); }
.about-lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.6;
}

.about-story {
  padding: 40px 0 80px;
  border-top: 1px solid var(--line);
}
.about-story-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.about-story-eyebrow {
  margin-bottom: 36px;
  display: inline-flex;
}
.about-story p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.about-story p:first-of-type {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.about-story .emphasis {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.about-story strong { color: var(--ink); font-weight: 600; }

.values-section { padding: 80px 0; border-top: 1px solid var(--line); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.value-card {
  padding: 28px 26px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13,20,36,0.7), rgba(10,15,28,0.5));
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.value-card:hover {
  border-color: rgba(250, 204, 21, 0.3);
  transform: translateY(-3px);
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.value-card-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.value-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.value-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.timeline-section { padding: 80px 0; border-top: 1px solid var(--line); }
.timeline {
  position: relative;
  max-width: 680px;
  margin: 48px auto 0;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(250,204,21,0.4), rgba(148,178,224,0.1));
}
.tl-item {
  position: relative;
  padding-bottom: 32px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(250,204,21,0.08);
}
.tl-item.done::before { background: var(--accent); }
.tl-item.now::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15), 0 0 16px rgba(34,197,94,0.5);
  animation: pulse 1.8s ease-in-out infinite;
}
.tl-item.future::before {
  background: var(--bg);
  border-color: var(--mute);
  box-shadow: none;
}
.tl-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.tl-item.future .tl-date { color: var(--mute); }
.tl-item.now .tl-date { color: var(--green); }
.tl-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.tl-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mute);
}

.roadmap-section { padding: 80px 0; border-top: 1px solid var(--line); }
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 40px;
}
.roadmap-row {
  background: var(--surface);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 22px;
  align-items: center;
  transition: background 0.2s ease;
}
.roadmap-row:hover { background: var(--surface-2); }
.roadmap-status {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  justify-self: start;
}
.roadmap-status.shipping {
  background: rgba(34,197,94,0.12);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.3);
}
.roadmap-status.next {
  background: rgba(250,204,21,0.12);
  color: var(--accent);
  border: 1px solid rgba(250,204,21,0.3);
}
.roadmap-status.exploring {
  background: rgba(79,141,244,0.1);
  color: #93c5fd;
  border: 1px solid rgba(79,141,244,0.25);
}
.roadmap-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 2px;
}
.roadmap-desc {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
}
.roadmap-eta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.contact-section {
  padding: 80px 0 110px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-card {
  max-width: 580px;
  margin: 40px auto 0;
  padding: 40px 32px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13,20,36,0.8), rgba(10,15,28,0.5));
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.contact-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 26px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(250,204,21,0.28);
}
.contact-email:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(250,204,21,0.4);
}
.signoff {
  margin-top: 48px;
  font-family: var(--display);
  font-size: 16px;
  color: var(--mute);
  font-style: italic;
}
.signoff strong { color: var(--accent); font-style: normal; font-weight: 500; }

@media (max-width: 720px) {
  .about-hero { padding: 40px 0 30px; }
  .about-story { padding: 30px 0 60px; }
  .about-story p:first-of-type { font-size: 19px; }
  .about-story .emphasis { font-size: 19px; padding-left: 18px; margin: 26px 0; }
  .values-grid { grid-template-columns: 1fr; gap: 12px; }
  .value-card { padding: 24px 22px; }
  .timeline { padding-left: 26px; }
  .timeline::before { left: 4px; }
  .tl-item::before { left: -26px; }
  .roadmap-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .roadmap-eta { display: none; }
  .contact-card { padding: 28px 22px; }
  .contact-section { padding: 60px 0 80px; }
  .values-section, .timeline-section, .roadmap-section { padding: 60px 0; }
}

/* ────────────────────────────────────────────────────────────────────
   MOBILE POLISH — tighter sizing, overflow fixes, small-screen layout
   ──────────────────────────────────────────────────────────────────── */

/* Prevent horizontal scroll globally */
html, body { max-width: 100%; overflow-x: hidden; }

/* ── 720 px enhancements (on top of existing breakpoint) ─────────── */
@media (max-width: 720px) {

  /* Hero */
  .hero { padding: 36px 0 26px; }
  h1.hero-title { font-size: clamp(36px, 10vw, 50px); }
  .hero-sub { font-size: 15px; margin-bottom: 26px; }
  .hero-coord { padding: 5px 10px; gap: 6px; }
  .hero-cta-row { gap: 10px; margin-bottom: 22px; }

  /* Live dashboard card — collapse 4-col mini-row to 2×2 grid on phones */
  .lc-mini-row {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 10px;
    margin-top: 10px;
  }
  .lc-mini:nth-child(2) { border-right: none; }
  .lc-mini:nth-child(3),
  .lc-mini:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 2px;
  }

  /* Showcase phone stage — carousel handles this */

  /* Architecture card */
  .arch-card { border-radius: 16px; }
  .arch-node-title { font-size: 16px; }

  /* Compare table */
  .compare-card { border-radius: 14px; }
  .compare-scroll-hint { display: block; }

  /* About hero title — scale down for narrow screens */
  .about-hero h1 { font-size: clamp(34px, 8.5vw, 54px); }
  .about-lede { font-size: 15px; }

  /* About story */
  .about-story p { font-size: 15.5px; line-height: 1.7; }
  .about-story p:first-of-type { font-size: 18px; }

  /* Contact email link — allow word-break on very small labels */
  .contact-email { max-width: 100%; }
}

/* ── 480 px — small phones ───────────────────────────────────────── */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }

  /* Nav */
  .nav-cta { padding: 7px 10px; font-size: 11px; gap: 5px; }
  .nav-cta svg { width: 13px; height: 13px; }

  /* Ribbon */
  .ribbon { font-size: 9.5px; letter-spacing: 0.02em; line-height: 1.5; }

  /* Hero */
  .hero { padding: 28px 0 20px; }
  h1.hero-title { font-size: 32px; line-height: 1; letter-spacing: -0.035em; }
  .hero-sub { font-size: 14px; margin-bottom: 20px; }
  .hero-coord { font-size: 9px; padding: 4px 9px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 16px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; padding: 13px 16px; font-size: 13px; }
  .hero-meta { font-size: 9px; gap: 6px; }

  /* Live dashboard card */
  .lc-hero { padding: 14px 14px 12px; }
  .lc-temp-num { font-size: 50px; }
  .lc-cond strong { font-size: 15px; }
  .lc-tiles { padding: 10px; gap: 7px; }
  .lc-tile { padding: 9px 10px; gap: 8px; }
  .lc-tile-icon { width: 26px; height: 26px; border-radius: 7px; }
  .lc-tile-label { font-size: 10px; }
  .lc-tile-num { font-size: 16px; }
  .lc-status { padding: 11px 13px; gap: 11px; }
  .lc-status-body strong { font-size: 13px; }
  .lc-status-body span { font-size: 11.5px; }

  /* Telemetry */
  .telem-value { font-size: 18px; }
  .telem-cell { padding: 14px 14px; }

  /* Showcase — horizontal scroll carousel */
  .showcase { padding: 40px 0 60px; }
  .showcase-head { margin-bottom: 28px; }

  .phones-stage {
    display: flex;
    overflow-x: scroll;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y; /* pan-x alone blocks vertical page scroll on Android */
    pointer-events: auto;      /* re-enable for carousel swipe */
    scrollbar-width: none;
    gap: 16px;
    min-height: auto;
    perspective: none;
    align-items: center;
    /* side padding = (viewport - center phone) / 2 so dashboard centers exactly */
    padding: 16px calc(50vw - 134px) 48px;
  }
  .phones-stage::-webkit-scrollbar { display: none; }

  /* All phones: upright, no 3D transform */
  .phone,
  .phone.left-2, .phone.left,
  .phone.center,
  .phone.right, .phone.right-2 {
    display: block;
    flex-shrink: 0;
    width: 230px;
    transform: none !important;
    opacity: 0.55;
    scroll-snap-align: center;
    transition: opacity 0.3s ease;
    animation: none;
  }
  /* Dashboard phone — full size & full brightness */
  .phone.center {
    width: 268px;
    opacity: 1;
    border-color: rgba(250, 204, 21, 0.18);
    box-shadow:
      0 0 0 1px rgba(0,0,0,0.6),
      0 40px 100px rgba(0,0,0,0.85),
      0 0 100px rgba(250,204,21,0.15);
  }
  .phone:hover { transform: none !important; }
  .phone-tag { bottom: -28px; }

  /* Features */
  .features { padding: 48px 0 56px; }
  .features-head { margin-bottom: 32px; }
  .feat { padding: 18px 16px 20px; }
  .feat h3 { font-size: 15px; }
  .feat p { font-size: 13px; }
  .feat-icon-bg { width: 38px; height: 38px; }

  /* Section title global */
  .section-title { font-size: clamp(24px, 7.5vw, 32px); }
  .section-sub { font-size: 13.5px; }

  /* Architecture */
  .architecture { padding: 32px 0 48px; }
  .arch-card { padding: 20px 16px; }
  .arch-node { padding: 14px 12px; }
  .arch-node-title { font-size: 15px; }
  .arch-node-sub { font-size: 10px; }
  .arch-stat .v { font-size: 22px; }
  .arch-stats { gap: 12px; margin-top: 24px; padding-top: 20px; }

  /* Compare */
  .compare { padding: 48px 0 40px; }
  .compare-head { margin-bottom: 32px; }

  /* Limits */
  .limits { padding: 48px 0 40px; }
  .limits-head { margin-bottom: 32px; }
  .limit-card { padding: 20px 18px 22px; }
  .limit-card h3 { font-size: 15px; }
  .limit-card p { font-size: 13px; }
  .limits-foot { font-size: 12px; gap: 10px; padding: 12px 14px; }

  /* Install */
  .install { padding: 48px 0; }
  .install-step { padding: 12px 14px; gap: 10px; }
  .dl-card { padding: 20px 16px; }
  .dl-card-head { padding-bottom: 16px; margin-bottom: 16px; }
  .dl-pkg img { width: 38px; height: 38px; }

  /* FAQ */
  .faq { padding: 56px 0; }
  .faq-item summary { padding: 14px 16px; font-size: 13px; }
  .faq-body { padding: 0 16px 16px; font-size: 13px; }

  /* Footer */
  footer { padding: 36px 0 24px; }
  .footer-brand p { font-size: 12px; max-width: 100%; }
  .footer-bottom { font-size: 10px; }

  /* ── About page on small phones ─────────────── */
  .about-hero { padding: 32px 0 22px; }
  .about-hero h1 { font-size: clamp(28px, 8vw, 38px); letter-spacing: -0.04em; }
  .about-lede { font-size: 14px; line-height: 1.55; }

  .about-story { padding: 28px 0 48px; }
  .about-story p { font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; }
  .about-story p:first-of-type { font-size: 17px; line-height: 1.5; }
  .about-story .emphasis { font-size: 16px; padding-left: 14px; margin: 22px 0; }

  .values-section, .timeline-section, .roadmap-section { padding: 48px 0; }
  .values-grid { gap: 10px; margin-top: 32px; }
  .value-card { padding: 20px 18px; }
  .value-card h3 { font-size: 17px; }
  .value-card p { font-size: 13.5px; }

  .timeline { margin-top: 32px; padding-left: 22px; }
  .timeline::before { left: 3px; }
  .tl-item::before { left: -22px; width: 12px; height: 12px; top: 3px; }
  .tl-title { font-size: 16px; }
  .tl-desc { font-size: 13px; }
  .tl-item { padding-bottom: 26px; }

  .roadmap-list { margin-top: 28px; }
  .roadmap-row { padding: 14px 16px; }
  .roadmap-title { font-size: 14px; }
  .roadmap-desc { font-size: 12.5px; }

  .contact-section { padding: 48px 0 64px; }
  .contact-card { padding: 24px 18px; border-radius: 16px; margin-top: 28px; }
  .contact-card h3 { font-size: 19px; }
  .contact-card p { font-size: 13.5px; margin-bottom: 20px; }
  .contact-email { font-size: 13px; padding: 11px 16px; gap: 8px; }
  .signoff { margin-top: 32px; font-size: 14.5px; }
}

/* ── 360 px — smallest common Android screens ───────────────────── */
@media (max-width: 375px) {
  h1.hero-title { font-size: 28px; }
  .about-hero h1 { font-size: 26px; }
  .section-title { font-size: 22px; }
  .hero-sub { font-size: 13.5px; }
  .nav-brand span { font-size: 14px; }
  .lc-temp-num { font-size: 44px; }
}
