:root {
  --bg: #0A0E1A;
  --bg-2: #0F1526;
  --card: #141B2F;
  --line: rgba(255, 255, 255, 0.08);
  --text: #EEF2FA;
  --muted: #9AA6BF;
  --blue: #4F8BFF;
  --amber: #FFB547;
  --green: #34C77B;
  --red: #FF5A6E;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 16px;
  border: 0; cursor: pointer;
  box-shadow: 0 6px 24px rgba(79, 139, 255, 0.35);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.small { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.22), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -10%; width: 680px; height: 680px;
  background: radial-gradient(closest-side, rgba(79, 139, 255, 0.20), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 56px; } }

.eyebrow { color: var(--amber); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; }
h1 .glow { color: var(--amber); }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Phone mockup */
.phone {
  justify-self: center;
  width: 320px; max-width: 100%;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2A3148, #11162A);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen { border-radius: 36px; background: var(--bg); padding: 22px 16px 76px; position: relative; overflow: hidden; }
.notch { width: 108px; height: 30px; border-radius: 20px; background: #000; margin: -10px auto 14px; }
.screen h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.screen .sub { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.tile .k { color: var(--muted); font-size: 11.5px; }
.tile .v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.tile .d { font-size: 11.5px; margin-top: 2px; }
.up { color: var(--green); }
.down { color: var(--red); }
.alert {
  margin-top: 12px; padding: 12px; border-radius: 16px;
  background: rgba(255, 90, 110, 0.10); border: 1px solid rgba(255, 90, 110, 0.35);
  font-size: 13px;
}
.alert b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.mark {
  margin-top: 12px; padding: 12px; border-radius: 16px;
  background: rgba(79, 139, 255, 0.12); border: 1px solid rgba(79, 139, 255, 0.35);
  font-size: 13px;
}
.mark .who { color: var(--blue); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.tabbar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-around; padding: 10px 0; border-radius: 22px; background: rgba(20, 27, 47, 0.9); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.tabbar .on { color: var(--blue); font-weight: 600; }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 14px; }
.section-lede { color: var(--muted); font-size: 19px; max-width: 40em; margin: 0 0 44px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h4 { margin: 12px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(79, 139, 255, 0.14); color: var(--blue); }
.ico.amber { background: rgba(255, 181, 71, 0.14); color: var(--amber); }
.ico svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list b { display: block; margin-bottom: 2px; }
.list span { color: var(--muted); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber); color: #1A1200; font-weight: 700; font-size: 14px;
}

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }

.final { text-align: center; }
.final .section-lede { margin-left: auto; margin-right: auto; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--muted); }

/* Text pages */
.doc { max-width: 760px; padding: 64px 24px 88px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc li { color: #C9D2E3; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 15px; }
