:root {
  --bg: #0a0f1c;
  --bg-soft: #101830;
  --card: #141d36;
  --text: #eef3ff;
  --muted: #a7b5d0;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #4f7cff;
  --accent2: #a855f7;
  --grad: linear-gradient(135deg, #4f7cff 0%, #a855f7 100%);
  --radius: 20px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.center { text-align: center; }

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; margin-bottom: 28px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--muted); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand.small img { width: 24px; height: 24px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.14s ease;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 26px rgba(79, 124, 255, 0.35);
}

.btn.primary:hover { opacity: 0.94; }

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn.big { padding: 16px 30px; font-size: 17px; }
.btn.tiny { padding: 8px 16px; font-size: 14px; color: #fff !important; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -200px 0 auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(79, 124, 255, 0.28), transparent 70%),
              radial-gradient(closest-side, rgba(168, 85, 247, 0.22), transparent 70%);
  background-position: 20% 0, 78% 12%;
  background-repeat: no-repeat;
  background-size: 60% 100%, 55% 90%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 700;
  color: #8fa6d8;
  margin-bottom: 14px;
}

.lede { font-size: 18.5px; max-width: 55ch; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 10px;
}

.cta-note {
  font-size: 14.5px;
  color: #8296bb;
  margin: 0;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stats div { display: flex; flex-direction: column; }
.stats strong {
  font-size: 30px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { font-size: 13.5px; color: var(--muted); }

/* Phone frame */

.hero-art { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 300px;
  padding: 10px;
  border-radius: 46px;
  background: #1b2440;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
}

.phone img { border-radius: 38px; }

.notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #05070d;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section.narrow .wrap { max-width: 760px; }

.section-lede {
  font-size: 18px;
  max-width: 62ch;
  margin-bottom: 28px;
}

.section.center .section-lede,
.center .section-lede { margin-inline: auto; }

/* ---------- Feature cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 155, 255, 0.4);
}

.card p { margin: 0; font-size: 15.5px; }

.ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

/* ---------- Trick ladder ---------- */

.ladder { display: flex; flex-direction: column; gap: 12px; }

.rung {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  border-left: 4px solid var(--accent);
}

.rung-name { font-weight: 700; font-size: 17.5px; }
.rung-meta { color: var(--muted); font-size: 14.5px; }

.rung.t1 { border-left-color: #34d399; }
.rung.t2 { border-left-color: #38bdf8; }
.rung.t3 { border-left-color: #4f7cff; }
.rung.t4 { border-left-color: #a855f7; }
.rung.t5 { border-left-color: #f43f5e; }

.families-label {
  margin: 32px 0 14px;
  font-size: 15px;
  color: var(--muted);
}

.families {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.families li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
}

.shots figure { margin: 0; text-align: center; }

.shots img {
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.shots figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Join ---------- */

.join-section {
  position: relative;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(79, 124, 255, 0.18), transparent 70%),
    var(--bg);
}

.join-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}

.join-form input {
  flex: 0 1 320px;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.join-form input::placeholder { color: #7d8db0; }

.join-form input:focus {
  outline: none;
  border-color: rgba(126, 155, 255, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.join-note {
  font-size: 14.5px;
  color: #8296bb;
  margin: 0;
}

.join-note.shown { color: #7ee0a8; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 22px; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.footer-links a:hover { color: var(--text); }

.copyright { margin: 0; font-size: 14px; color: #7185a8; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 56px 0 68px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { order: -1; }
  .phone { width: 260px; }
  .section { padding: 64px 0; }
  .stats { gap: 28px; }
}

@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Privacy page ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}

.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc .updated { color: #7185a8; font-size: 14.5px; margin-bottom: 32px; }
.doc ul { color: var(--muted); padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: #8fb0ff; }
