:root {
  --bg: #0b1120;
  --bg-2: #111a30;
  --card: #151f38;
  --border: #253257;
  --text: #e6edf7;
  --muted: #93a5c4;
  --accent: #4f8bff;
  --accent-2: #22d3ee;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --danger-bg: #3b1219;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 32, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .cta {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06121f !important;
  padding: 6px 14px; border-radius: 999px; font-weight: 700;
}
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

.hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(900px 380px at 20% -10%, rgba(79,139,255,.25), transparent 60%),
    radial-gradient(700px 320px at 90% 0%, rgba(34,211,238,.16), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: 42px; line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 18px 0 24px; font-size: 18px; color: var(--muted); max-width: 560px; }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #06121f; box-shadow: 0 8px 24px rgba(79,139,255,.35); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); }
.btn.big { padding: 14px 26px; font-size: 16px; }
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  background: rgba(52, 211, 153, .12); color: var(--good); border: 1px solid rgba(52,211,153,.35);
  margin-bottom: 16px;
}

/* phone mockup */
.phone {
  width: 300px; height: 620px; margin: 0 auto;
  background: #0a0f1d; border: 3px solid var(--border); border-radius: 40px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 6px #04060c;
  padding: 46px 16px 18px; position: relative; overflow: hidden;
}
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: var(--bg-2); border-radius: 999px; z-index: 2; }
.screen { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.prow { display: flex; align-items: center; gap: 8px; }
.pname { font-size: 16px; font-weight: 800; }
.pstatus { font-size: 11px; color: var(--muted); }
.pbar { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.pbar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pcard { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
.pcard b { display: block; font-size: 13px; margin-bottom: 4px; }
.pbadge { font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 2px 8px; border-radius: 999px; }
.pbadge.on { background: rgba(52,211,153,.15); color: var(--good); }
.pbadge.off { background: rgba(248,113,113,.15); color: var(--bad); }

/* feature grid */
.features { padding: 64px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: 30px; font-weight: 800; }
.sec-head p { color: var(--muted); margin-top: 10px; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.fcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .15s ease, transform .15s ease; }
.fcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.fcard .emoji { font-size: 26px; }
.fcard h3 { font-size: 16px; margin: 12px 0 6px; }
.fcard p { font-size: 13.5px; color: var(--muted); }

/* how it works */
.how { padding: 60px 0; border-top: 1px solid var(--border); background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06121f;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }
.step code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* preview */
.preview { padding: 64px 0; border-top: 1px solid var(--border); }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 920px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pgrid { grid-template-columns: 1fr; } }
.pshot { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pshot .title { padding: 10px 14px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--border); }
.pshot .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.mini { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; }
.mini .t { font-weight: 600; font-size: 12px; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.switch.off { background: var(--border); }
.switch.off::after { right: auto; left: 2px; }
.pshot code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 5px; font-size: 11px; }

/* download page */
.dpage { padding: 56px 0 70px; }
.dpage h1 { font-size: 34px; font-weight: 800; }
.dpage .sub { color: var(--muted); margin-top: 8px; }
.dgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 32px; }
@media (max-width: 760px) { .dgrid { grid-template-columns: 1fr; } }
.dlcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.dlcard .who { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-2); }
.dlcard h2 { font-size: 22px; font-weight: 800; }
.dlcard p { font-size: 14px; color: var(--muted); }
.dlcard ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.dlcard ul li { padding-left: 22px; position: relative; color: var(--text); }
.dlcard ul li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.dlcard .btn { margin-top: auto; justify-content: center; }
.meta { font-size: 12.5px; color: var(--muted); }

/* gating */
.gate {
  margin-top: 26px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--danger-bg); border: 1px solid rgba(248,113,113,.4);
  font-size: 14px; display: none;
}
.gate b { color: var(--bad); }
.gate .btn { margin-top: 12px; }
.gate-visible { display: block; }

/* cta band */
.cta-band { padding: 54px 0; text-align: center; border-top: 1px solid var(--border); background:
  radial-gradient(600px 260px at 50% 0%, rgba(79,139,255,.18), transparent 70%); }
.cta-band h2 { font-size: 26px; font-weight: 800; }
.cta-band p { color: var(--muted); margin: 10px 0 22px; }
.subtle { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* static pages */
.page { padding: 48px 0 70px; max-width: 820px; }
.page h1 { font-size: 32px; font-weight: 800; }
.page .updated { color: var(--muted); font-size: 13px; margin: 8px 0 24px; }
.page h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.page p, .page li { font-size: 15px; color: var(--text-d); color: #c7d3e8; }
.page ul, .page ol { padding-left: 22px; margin: 10px 0; }
.page li { margin: 6px 0; }
.page a { color: var(--accent-2); }
.page table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.page th, .page td { text-align: left; padding: 9px 12px; border: 1px solid var(--border); }
.page th { background: var(--bg-2); color: var(--text); }
.page .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }

footer { border-top: 1px solid var(--border); padding: 26px 0 40px; color: var(--muted); font-size: 13px; }
.foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot .links { display: flex; gap: 16px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); text-decoration: underline; }

code.inline { background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 6px; font-size: 13px; }
pre.codeblock {
  background: #080d19; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; font-size: 13px; margin: 12px 0;
}
pre.codeblock code { color: #bfe3ff; }