/* ============================================================================
   Landing page — the public front door at "/".
   Viewport 1 is a single locked screen over a full-bleed video; everything
   below scrolls normally. Vanilla CSS to match the rest of this frontend
   (no build step, no framework).
   ========================================================================= */

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must beat any `display` a component sets, or an element
   stays on screen while the DOM says it's closed — the mobile sheet did exactly
   that on desktop, sitting over the headline. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- hero shell */
/* Exactly one viewport tall: header + hero + stats, never a scrollbar inside. */
.hero-shell {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.bg { position: absolute; inset: 0; background: #000; overflow: hidden; }
.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
/* Keeps white type readable over whatever frame is playing underneath. */
.bg-scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% 45%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.52) 65%, rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.55) 100%);
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

/* ------------------------------------------------------------------- header */
.header {
  flex-shrink: 0;
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  flex-shrink: 0;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
.logo:hover { transform: scale(1.04); }
.logo img { width: 72%; height: 72%; object-fit: contain; }

.nav {
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.nav-link {
  position: relative;
  padding: 8px 4px;
  color: var(--nav-text);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.75; }
.nav-link.is-active { opacity: 1; }
/* Three dots under the active label. */
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 5px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  transform: translateX(-50%);
}

.sign-in {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 22px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-size: clamp(13px, 1.4vw, 14.5px);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--nav-shadow);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sign-in:hover { background: #323234; color: #fff; transform: translateY(-1px); }

.burger { display: none; }

/* --------------------------------------------------------------------- hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

/* trust row */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}
/* Dark padded ring with a white disc inside holding the logo. The white disc is
   a real child element, not a ::before — as a pseudo-element it became a grid
   item and never painted, leaving dark circles with washed-out glyphs. */
.avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 4px;
  transition: transform 0.35s ease;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  padding: 22%;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  display: block;
}
.a1 { z-index: 1; }
.a2 { z-index: 2; margin-left: calc(var(--trust-size) * -0.42); }
.a3 { z-index: 3; margin-left: calc(var(--trust-size) * -0.42); }
.a4 { z-index: 4; margin-left: calc(var(--trust-size) * -0.42); }
.trust:hover .a1 { transform: translateY(-2px); }
.trust:hover .a2 { transform: translateY(-4px); }
.trust:hover .a3 { transform: translateY(-4px); }
.trust:hover .a4 { transform: translateY(-2px); }

.trust-pill {
  height: var(--trust-size);
  display: inline-flex;
  align-items: center;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: clamp(14px, 1.8vw, 18px);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
  white-space: nowrap;
}

/* headline */
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
}
.headline .line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.headline .l1 { animation-delay: 0.12s; }
.headline .l2 { animation-delay: 0.3s; }

.subhead {
  max-width: min(560px, 92%);
  margin: clamp(14px, 2vh, 20px) auto 0;
  color: #d0d0d0;
  opacity: 0.8;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(18px, 2.6vh, 28px);
  flex-wrap: wrap;
  justify-content: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15),
    0 0 22px rgba(255,255,255,0.32),
    0 0 44px rgba(255,255,255,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.25),
    0 0 30px rgba(255,255,255,0.45),
    0 0 60px rgba(255,255,255,0.18);
}
.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(18px, 2.4vw, 24px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #e6e6e6;
  font-size: clamp(13px, 1.45vw, 14px);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cta-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); }

/* -------------------------------------------------------------------- stats */
.stats {
  flex-shrink: 0;
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 24px);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-icon {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
}
.stat-value {
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: clamp(11px, 1.2vw, 12.5px); }

/* --------------------------------------------------------------- animations */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
.anim-pulse {
  opacity: 0;
  animation: revealPulse 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); }
  70% { opacity: 1; transform: translateY(0) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes headlineFade { to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================== showcase ==== */
.showcase {
  position: relative;
  z-index: 1;
  background: #000;
  padding: clamp(64px, 10vh, 120px) clamp(18px, 5vw, 64px) clamp(56px, 8vh, 96px);
}
.showcase-head { max-width: 760px; margin: 0 auto; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
/* Hairline gradient edge — brighter top and bottom, invisible through the middle. */
.pill::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pill-badge {
  background: #fff; color: #000;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 500;
}

.showcase-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 5.2vw, 60px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.15;
}
.showcase-title em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}
.showcase-sub {
  margin: 0 auto;
  max-width: 560px;
  color: #d0d0d0;
  opacity: 0.9;
  font-size: 17px;
  line-height: 1.6;
}

/* ------------------------------------------------------------- mock screen */
.mock-wrap {
  position: relative;
  max-width: 1080px;
  margin: clamp(38px, 6vh, 64px) auto 0;
}
.mock {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
/* Soft light behind the frame so it lifts off the black page. */
.mock-glow {
  position: absolute;
  inset: 6% 12% -8%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(120,160,255,0.20), transparent 70%);
  filter: blur(52px);
  z-index: 0;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #121214;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.mock-url {
  margin-left: 12px;
  color: #6d6d72;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mock-body { display: flex; min-height: 420px; }

/* ---- sidebar: the real product nav, named ---- */
.mock-side {
  width: 208px;
  flex-shrink: 0;
  padding: 14px 10px;
  background: #0c0c0e;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ms-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; }
.ms-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: #1877f2;
  display: grid; place-items: center;
  color: #fff; font-size: 13px;
  flex-shrink: 0;
}
.ms-brand-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ms-brand-t b { font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.ms-brand-t em { font-style: normal; font-size: 10.5px; color: #6f6f77; }

.ms-group {
  padding: 14px 8px 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5c5c65;
}
.ms-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #9c9ca5;
  font-size: 12.5px;
  font-weight: 500;
}
.ms-item i { width: 14px; font-size: 11.5px; text-align: center; opacity: 0.85; }
.ms-item.is-on { background: rgba(24,119,242,0.14); color: #fff; }
.ms-item.is-on i { color: #4d94ff; opacity: 1; }
.ms-badge {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}

/* ---- main column ---- */
.mock-main { flex: 1; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.mock-top { display: flex; align-items: center; gap: 10px; }
.mt-title { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.mt-title b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.mt-title span { font-size: 11px; color: #6f6f77; }
.mt-select {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  background: #131316;
  border: 1px solid rgba(255,255,255,0.09);
  color: #b9b9be;
  font-size: 11.5px;
}
.mt-select i { font-size: 8px; opacity: 0.6; }
.mt-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(52,199,123,0.12);
  color: #67d79b;
  font-size: 11px;
  font-weight: 600;
}
.mt-live i { width: 6px; height: 6px; border-radius: 50%; background: #34c77b; }

.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi {
  padding: 12px 13px;
  border-radius: 11px;
  background: linear-gradient(180deg, #131316 0%, #0e0e11 100%);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 5px;
}
.kpi-l { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #74747d; font-weight: 500; }
.kpi-l i { font-size: 9.5px; opacity: 0.8; }
.kpi-n { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.kpi-n small { font-size: 14px; font-weight: 600; opacity: 0.65; }
.kpi-d { font-size: 10px; color: #63636b; }
.kpi-d.up { color: #5fbe8a; }

/* ---- live queue panel ---- */
.mock-panel {
  flex: 1;
  border-radius: 12px;
  background: #0e0e11;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.mp-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mp-head b { font-size: 12.5px; font-weight: 600; }
.mp-sub { font-size: 10.5px; color: #63636b; margin-right: auto; }
/* Tiny volume sparkline — throughput at a glance, no library. */
.mp-chart { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.mp-chart i { width: 4px; border-radius: 2px; background: linear-gradient(180deg, #4d94ff, rgba(77,148,255,0.25)); }

.mock-rows { display: flex; flex-direction: column; }
.mrow {
  display: grid;
  grid-template-columns: 26px 130px 1fr auto auto;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
}
.mrow:last-child { border-bottom: 0; }

.av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700;
  color: #fff;
}
.av-a { background: #5b6bd6; } .av-b { background: #2f9e6b; }
.av-c { background: #b8503f; } .av-d { background: #7a56c2; } .av-e { background: #b8863f; }

.who { display: flex; flex-direction: column; gap: 1px; color: #cdcdd3; font-weight: 600; min-width: 0; }
.who em { font-style: normal; font-size: 10px; font-weight: 400; color: #63636b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg { color: #8b8b93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag, .state {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.state i { font-size: 9px; }
.t-q { background: rgba(96,140,255,0.15); color: #8fb0ff; }
.t-p { background: rgba(52,199,123,0.14); color: #67d79b; }
.t-s { background: rgba(255,90,90,0.14); color: #ff8b8b; }
.t-i { background: rgba(230,170,60,0.15); color: #e8b866; }
.s-sent { background: rgba(52,199,123,0.14); color: #67d79b; }
.s-hid { background: rgba(255,90,90,0.14); color: #ff8b8b; }
.s-q { background: rgba(255,255,255,0.07); color: #a6a6ae; }

/* ----------------------------------------------------------------- features */
.features {
  max-width: 1080px;
  margin: clamp(56px, 9vh, 96px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.feature {
  padding: 24px 20px;
  border-radius: 14px;
  background: #0a0a0c;
  border: 1px solid rgba(255,255,255,0.08);
}
.feature i { font-size: 20px; color: #fff; opacity: 0.9; }
.feature h3 { margin: 14px 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* -------------------------------------------------------------------- close */
.closer { max-width: 620px; margin: clamp(64px, 10vh, 110px) auto 0; text-align: center; }
.closer h2 {
  margin: 0 0 26px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.2;
}
.closer-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.closer-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================== mobile == */
.overlay {
  position: fixed; inset: 0; z-index: 5;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}
.menu {
  position: fixed;
  z-index: 6;
  top: 88px; left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 420px);
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.menu-link {
  position: relative;
  padding: 14px 10px;
  color: var(--nav-text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.menu-link:nth-child(1) { animation-delay: 0.06s; }
.menu-link:nth-child(2) { animation-delay: 0.12s; }
.menu-link:nth-child(3) { animation-delay: 0.18s; }
.menu-link:nth-child(4) { animation-delay: 0.24s; }
.menu-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 8px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  transform: translateX(-50%);
}
.menu-signin {
  margin-top: 10px;
  padding: 15px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn { from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.97); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes linkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 720px) {
  .header { max-width: 100%; justify-content: space-between; gap: 0; }
  .nav, .sign-in { display: none; }
  .logo { width: 48px; height: 48px; }

  .burger {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 48px; height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--pill-dark);
    cursor: pointer;
    transition: background 0.25s ease;
  }
  .burger span {
    display: block;
    width: 18px; height: 1.5px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.25s ease;
  }
  .burger[aria-expanded="true"] { background: #fff; }
  .burger[aria-expanded="true"] span { background: #000; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .headline { letter-spacing: -0.08em; line-height: 1.05; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-side { display: none; }
  .mock-body { min-height: 0; }
  .mt-select, .mp-chart { display: none; }
  .mrow { grid-template-columns: 26px 1fr auto; gap: 9px; }
  .mrow .who, .mrow .tag { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) and (max-height: 760px) {
  .trust { margin-bottom: 12px; }
  .subhead { margin-top: 10px; }
  .cta-row { margin-top: 14px; }
}

@media (max-width: 420px) {
  .trust { --trust-size: 34px; }
  .trust-pill { font-size: 12px; }
  .headline { letter-spacing: -0.09em; line-height: 1.04; }
  .features { grid-template-columns: 1fr; }
  .cta-ghost { display: none; }
}

/* Respect the OS setting: show the finished state, skip the motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, .anim-pulse, .headline .line { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
