/* Outfit, self-hosted (SIL OFL) — display face for headlines, wordmark, buttons. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/outfit-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/outfit-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/outfit-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/outfit-800-latin.woff2") format("woff2");
}

:root {
  --navy-950: #050b18;
  --navy-900: #0a1326;
  --navy-800: #111d38;
  --navy-700: #1b2a4d;
  --ink: #0f172a;
  --muted: #55627a;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #e8efff;
  --on-dark: #e8edf7;
  --on-dark-muted: #9aa7c2;
  --ok: #0f7a4d;
  --bad: #b4281f;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #8fb1ff; }
::selection { background: var(--accent); color: #fff; }
code { font-family: var(--mono); font-size: 0.9em; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark img { width: 30px; height: 30px; border-radius: 8px; }
.header nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); font-size: 0.9375rem; }
.header nav a:not(.btn) { color: var(--muted); font-weight: 500; text-decoration: none; }
.header nav a:not(.btn):hover, .header nav a[aria-current="page"] { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: inherit; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 10px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: #cbd3e1; color: var(--ink); }
.on-dark .btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.22); }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--navy-900); }

/* ---------- section grammar ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.on-dark { background: var(--navy-900); color: var(--on-dark); }
.eyebrow { display: inline-block; margin-bottom: 10px; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; color: inherit; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 700; }
.section-head p { margin-top: 14px; font-size: 1.125rem; color: var(--muted); }
.on-dark .section-head p { color: var(--on-dark-muted); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: var(--on-dark); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; margin-bottom: 24px; font-size: 0.8125rem; font-weight: 600; color: var(--on-dark); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
.hero h1 { font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.07; color: #fff; }
.hero h1 em { font-style: normal; color: inherit; }
.hero-lede { margin-top: 22px; max-width: 34em; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--on-dark-muted); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; font-size: 0.875rem; color: var(--on-dark-muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: #4ade80; flex-shrink: 0; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 560px; }
.phone { position: relative; width: 250px; flex-shrink: 0; padding: 7px; background: #1a2644; border-radius: 38px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.45); }
.phone img { width: 100%; height: auto; aspect-ratio: 460 / 1000; object-fit: cover; border-radius: 31px; background: #0a0e1a; }
.hero-art .phone:nth-child(1) { z-index: 2; margin-top: 32px; }
.hero-art .phone:nth-child(2) { position: absolute; right: 0; top: 0; width: 215px; opacity: 0.96; transform: translateX(36%) scale(0.98); }

/* ---------- facts strip ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; }
.fact { padding: 28px 0; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.9375rem; color: var(--muted); }

/* ---------- features ---------- */
.grid3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 18px; padding: 0; background: transparent; border: 0; }
.card .icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); background: var(--accent-soft); border-radius: 12px; grid-row: span 2; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1875rem; font-weight: 650; margin-bottom: 2px; align-self: end; }
.card p { color: var(--muted); font-size: 0.9875rem; max-width: 36em; }

/* ---------- screens ---------- */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.screen { text-align: center; }
.screen .phone { width: min(100%, 240px); margin: 0 auto; background: var(--navy-800); box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), var(--shadow); }
.screen h3 { margin-top: 22px; font-size: 1.0625rem; font-weight: 650; }
.screen p { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- flow ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.flow li { position: relative; padding-top: 0; }
.flow h3 { font-size: 1.125rem; font-weight: 650; color: #fff; margin-bottom: 8px; }
.flow p { font-size: 0.9375rem; color: var(--on-dark-muted); }

/* ---------- verify ---------- */
.verify { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.verify .section-head { margin-bottom: 0; }
.verify-note { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); }
.console { background: var(--navy-950); color: var(--on-dark); border: 1px solid var(--navy-700); border-radius: var(--radius-lg); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--navy-800); font-size: 0.8125rem; color: var(--on-dark-muted); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34425f; }
.console-bar span { margin-left: 8px; }
.console-body { padding: 22px 24px 8px; }
.console label { display: block; margin-bottom: 8px; font-size: 0.8125rem; font-weight: 500; color: var(--on-dark-muted); }
.try-input { display: block; width: 100%; padding: 12px 14px; font: inherit; font-family: var(--mono); font-size: 0.9375rem; color: #fff; background: var(--navy-900); border: 1px solid var(--navy-700); border-radius: 10px; }
.try-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.console dl { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; font-size: 0.9375rem; }
.console dt, .console dd { padding: 12px 0; border-top: 1px solid var(--navy-800); }
.console dt { color: var(--on-dark-muted); }
.console dd { padding-left: 16px; text-align: right; font-family: var(--mono); font-size: 0.875rem; font-weight: 600; overflow-wrap: anywhere; }
.console .refused { color: #ff8f86; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 24px 22px; }
.examples button { min-height: 34px; padding: 0 12px; font: inherit; font-family: var(--mono); font-size: 0.8125rem; color: var(--on-dark-muted); background: transparent; border: 1px solid var(--navy-700); border-radius: 999px; cursor: pointer; transition: color 160ms, border-color 160ms; }
.examples button:hover { color: #fff; border-color: #4a5d8a; }

/* ---------- stack ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.stack .section-head { margin-bottom: 0; }
.spec { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec dl { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; }
.spec dt, .spec dd { padding: 18px 24px; border-top: 1px solid var(--line); }
.spec dt { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.spec dt:first-of-type, .spec dt:first-of-type + dd { border-top: 0; }
.spec dd { font-weight: 500; }

/* ---------- call to action ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); color: #fff; }
.cta p { margin: 16px auto 0; max-width: 34em; font-size: 1.125rem; color: var(--on-dark-muted); }
.cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-note { margin-top: 20px !important; font-size: 0.875rem !important; }
.cta code { color: var(--on-dark); }
.cta { background: var(--navy-950); }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-muted); border-top: 1px solid var(--navy-800); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 32px; padding-block: 56px 40px; }
.footer .wordmark { color: #fff; }
.footer-grid p { margin-top: 14px; max-width: 28em; }
.footer h4 { margin-bottom: 14px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 32px; border-top: 1px solid var(--navy-800); font-size: 0.8125rem; }

/* ---------- motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 150ms linear; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 0; padding-top: 8px; }
  .hero-art .phone:nth-child(1) { margin-top: 0; }
  .hero-art .phone:nth-child(2) { transform: translateX(34%) scale(0.96); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .verify, .stack { grid-template-columns: minmax(0, 1fr); }
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 4px 0; }
}
@media (max-width: 640px) {
  .header nav a:not(.btn) { display: none; }
  .header-in { height: 60px; }
  .hero-art .phone:nth-child(2) { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .grid3, .flow { grid-template-columns: 1fr; }
  .screens { gap: 28px 12px; }
  .spec dl { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .spec dd { padding-top: 4px; border-top: 0; }
  .spec dt:first-of-type { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
