:root {
  --navy: #0B1520;
  --surface: #101E2E;
  --border: #1A2E42;
  --text: #FFFFFF;
  --muted: #8FB0C2;
  --dim: #5A8299;
  --cyan: #1FC8E0;
  --cyan-dark: #0D9BAE;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.6;
}
a { color: var(--cyan); }
img { max-width: 100%; display: block; }

/* Header */
.top {
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .trophy { height: 34px; width: auto; }
.brand .wordmark { height: 26px; width: auto; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* App Store button */
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cyan); color: var(--navy);
  font-weight: 700; font-size: 20px; text-decoration: none;
  padding: 14px 30px; border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.store-btn:hover { background: #45d6ea; transform: translateY(-1px); }
.store-btn svg { width: 20px; height: 20px; }
.store-btn small { display: block; font-size: 12px; font-weight: 600; opacity: .75; line-height: 1.1; }
.store-btn span { line-height: 1.15; text-align: left; }

/* Landing */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 48px 24px 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(31,200,224,.16), transparent 60%);
}
.hero .big-trophy { width: 96px; margin: 0 auto 20px; }
.hero h1 {
  font-size: clamp(36px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 16px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .sub { margin-top: 12px; font-size: 14px; color: var(--dim); }

.phones {
  max-width: 1080px; margin: 32px auto 0; padding: 0 24px;
  display: flex; justify-content: center; align-items: flex-end; gap: 22px;
}
.phone {
  width: min(30%, 280px); border-radius: 34px; overflow: hidden;
  border: 6px solid #1c2c3d; box-shadow: 0 30px 60px rgba(0,0,0,.45);
  background: #000; height: auto;
}
.phone.mid { width: min(34%, 310px); }
@media (max-width: 640px) {
  .phones { gap: 10px; }
  .phone { border-radius: 20px; border-width: 4px; }
}

.features { max-width: 1080px; margin: 72px auto 0; padding: 0 24px; }
.features h2 { text-align: center; font-size: clamp(26px, 4vw, 36px); margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px;
}
.card .emoji { font-size: 28px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px auto 0; max-width: 760px; padding: 0 24px; }
.cats span {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; color: var(--muted);
}

.cta { text-align: center; margin: 80px auto 0; padding: 48px 24px; max-width: 760px; }
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 20px; }

footer {
  border-top: 1px solid var(--border); margin-top: 72px;
  padding: 28px 24px 40px; text-align: center; color: var(--dim); font-size: 14px;
}
footer a { color: var(--muted); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--text); }
footer p { margin: 10px 0 0; }

/* Text pages (privacy, support, terms) */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 24px 0; }
.doc h1 { font-size: 34px; margin: 16px 0 4px; letter-spacing: -0.01em; }
.doc .date { color: var(--dim); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin-top: 40px; }
.doc p, .doc li { color: #D3E2EA; font-size: 16px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.doc .box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin: 20px 0;
}
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; color: #D3E2EA; }
.doc th { color: var(--text); }
