:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f3;
  --text: #1d1d1f;
  --text-2: #5f6068;
  --text-3: #6e6f77;
  --hairline: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.06);
  --green: #34c759;
  --teal: #30d0c8;
  --blue: #0a84ff;
  --amber: #9a6200;
  --orange: #ff9500;
  --red: #ff3b30;
  --gauge: linear-gradient(100deg, var(--green), var(--teal) 55%, var(--blue));
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --bg-alt: #111217;
    --surface: #16171d;
    --surface-2: #1d1e25;
    --text: #f5f5f7;
    --text-2: #a4a5ad;
    --text-3: #8a8b93;
    --hairline: rgba(255, 255, 255, 0.09);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
    --amber: #ffc53d;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.022em; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.88em; }
code { background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
.warn { color: var(--amber); }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

.ic { width: 18px; height: 18px; flex: none; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--text-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 6px 20px color-mix(in srgb, var(--text) 25%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { padding: 7px 15px; font-size: 14px; }

a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 3px; }

/* Hero */
.hero { padding: 92px 0 40px; overflow: hidden; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 62%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.lede { margin-top: 22px; max-width: 640px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; color: var(--text-2); }
.lede em { font-style: normal; color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.fine a { color: var(--text-2); }

/* Desktop illustration */
.desktop {
  position: relative;
  margin: 64px auto 0;
  max-width: 1040px;
  height: 620px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 12% 100%, #1fbf8f 0%, transparent 60%),
    radial-gradient(55% 70% at 88% 10%, #2f7bff 0%, transparent 60%),
    radial-gradient(50% 60% at 60% 90%, #23c7d4 0%, transparent 60%),
    linear-gradient(135deg, #0d2a4a, #0b1c2c 60%, #08141f);
  box-shadow: 0 40px 80px -30px rgba(10, 40, 70, 0.55), 0 0 0 1px var(--hairline);
}
.desktop::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 50%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.menubar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  padding: 0 14px 0 18px;
  color: #fff;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.mb-right { gap: 12px; }
.mb-app { font-weight: 700; }
.mb-muted { opacity: 0.92; }
.mb-ic { width: 17px; height: 17px; color: #fff; }
.mb-ic.bat { width: 24px; }
.mb-clock { font-variant-numeric: tabular-nums; }
.mb-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s;
}
.mb-item.is-active { background: rgba(255, 255, 255, 0.24); }
.mb-item svg { width: 16px; height: 16px; }
.mb-item .sep { opacity: 0.5; margin: 0 1px; }
.mb-item .code { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; opacity: 0.85; }

.popover {
  position: absolute;
  z-index: 1;
  top: 44px;
  right: 100px;
  width: 340px;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(255, 255, 255, 0.25);
  animation: drop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.2s;
}
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(0.98); } }
.desktop-note { margin-top: 16px; text-align: center; font-size: 12px; color: var(--text-3); }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker {
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--gauge); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.section h2, .final h2 { margin-top: 10px; font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; }
.sub { margin-top: 18px; font-size: 19px; color: var(--text-2); line-height: 1.5; }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--hairline);
}
.section-alt .card { background: var(--bg); }
.card-ic {
  width: 40px; height: 40px; padding: 9px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
}
.card h3 { margin-top: 20px; font-size: 20px; font-weight: 650; }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--text-2); }

/* Menu bar demo */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.split-top { align-items: start; }
.split-copy h2 { margin-top: 10px; }
.segmented {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 30px; padding: 4px;
  border-radius: 14px; background: var(--surface-2);
}
.segmented button {
  font: 500 14px var(--font); color: var(--text-2);
  padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 0 0 1px var(--hairline); }

.mb-stage {
  border-radius: var(--radius);
  padding: 72px 32px 40px;
  background:
    radial-gradient(70% 90% at 0% 100%, #1fbf8f, transparent 60%),
    radial-gradient(70% 90% at 100% 0%, #2f7bff, transparent 60%),
    linear-gradient(135deg, #0d2a4a, #08141f);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.mb-strip {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  width: 100%; height: 44px; padding: 0 16px;
  border-radius: 14px; color: #fff; font-size: 15px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.mb-strip .mb-item { height: 30px; padding: 0 10px; font-size: 15px; }
.mb-strip .mb-item svg { width: 19px; height: 19px; }
.mb-caption { color: rgba(255, 255, 255, 0.78); font-size: 14px; text-align: center; min-height: 2.6em; max-width: 380px; }

/* Providers */
.providers {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.providers li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.providers strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.providers span:not(.mono-badge) { display: block; font-size: 13px; color: var(--text-3); line-height: 1.35; margin-top: 2px; }
.mono-badge {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-2);
  font: 700 12px var(--font-mono); letter-spacing: 0.02em; color: var(--text-2);
}
.pill {
  display: inline-block; vertical-align: 2px; margin-left: 4px;
  font: 600 10px var(--font); font-style: normal; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px;
  color: var(--amber); background: color-mix(in srgb, var(--orange) 14%, transparent);
}
.callout {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  position: relative; overflow: hidden;
}
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gauge); }
.callout h3 { font-size: 19px; font-weight: 650; }
.callout p { margin-top: 4px; color: var(--text-2); font-size: 15.5px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-weight: 600; font-size: 15.5px; color: var(--blue); text-decoration: none;
}
.link-arrow .ic { width: 16px; height: 16px; transition: transform 0.15s; }
.link-arrow:hover .ic { transform: translateX(3px); }
.footnote { margin: 22px auto 0; max-width: 720px; text-align: center; font-size: 13px; color: var(--text-3); }

/* Privacy */
.section-dark {
  --text: #f5f5f7; --text-2: #a4a5ad; --text-3: #8a8b93; --hairline: rgba(255, 255, 255, 0.1);
  background: #0b0c10 radial-gradient(45% 60% at 85% 50%, rgba(10, 132, 255, 0.14), transparent 70%);
  color: var(--text);
}
.section-dark .link-arrow { margin-top: 26px; color: #5ac8fa; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text-2); font-size: 15.5px;
}
.checks strong { color: var(--text); font-weight: 600; }
.checks .ic { margin-top: 2px; width: 20px; height: 20px; color: var(--green); }

/* Screenshot pair */
.pair { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.pair figure { margin: 0; width: 320px; }
.pair img { border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--hairline); }
.pair figcaption { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-3); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.steps li {
  padding: 30px 28px; border-radius: var(--radius);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--hairline);
}
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gauge); color: #fff; font-weight: 700; font-size: 15px;
}
.steps h3 { margin-top: 18px; font-size: 20px; font-weight: 650; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }
.steps strong { color: var(--text); font-weight: 600; }

/* Support */
.support {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: 22px;
  padding: clamp(24px, 3.5vw, 34px) clamp(24px, 3.5vw, 38px);
  border-radius: var(--radius);
  background: radial-gradient(80% 140% at 100% 50%, rgba(255, 221, 0, 0.14), transparent 60%), var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e8ad39 30%, var(--hairline));
}
.support h3 { font-size: 21px; font-weight: 650; }
.support p { margin-top: 6px; max-width: 560px; color: var(--text-2); font-size: 15.5px; }
.btn-coffee { flex: none; background: #ffdd00; color: #111; box-shadow: 0 10px 30px -12px rgba(255, 221, 0, 0.6); }
.btn-coffee:hover { background: #ffe433; box-shadow: 0 14px 36px -12px rgba(255, 221, 0, 0.75); }

/* Final CTA */
.final { padding: 130px 0 120px; text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final img { width: 96px; height: 96px; filter: drop-shadow(0 18px 30px rgba(10, 132, 255, 0.25)); }
.final h2 { margin-top: 26px; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 34px 0 44px; font-size: 13px; color: var(--text-3); }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand-quiet { font-size: 14px; color: var(--text-2); }
.brand-quiet img { width: 22px; height: 22px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--text-2); }
.footer nav a:hover { color: var(--text); }
.footer p { flex-basis: 100%; }
.footer p a { color: var(--text-2); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .popover { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .providers { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .popover { right: 50%; transform: translateX(50%); animation: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 64px; }
  .section { padding: 88px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .desktop { height: 560px; border-radius: 20px; }
  .popover { width: 300px; }
  .hide-sm { display: none; }
  .mb-left .mb-muted { display: none; }
  .callout, .support { flex-direction: column; align-items: flex-start; }
  .pair figure { width: 280px; }
}
@media (max-width: 520px) {
  .providers { grid-template-columns: 1fr; }
  .mb-stage { padding: 48px 16px 28px; }
  .hide-xs { display: none; }
  .mb-strip { justify-content: center; }
}
