:root {
  --ink: #0b0b0f;
  --ink-2: #191920;
  --paper: #ffffff;
  --mist: #f4f4f7;
  --line: #e6e6ec;
  --muted: #6b6b78;
  --muted-dark: #a3a3b2;
  --lapis: #2e4bff;
  --lapis-deep: #1a2bb8;
  --gold: #ffc24b;
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1200px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  color: #fff;
}
.nav.light { background: rgba(255,255,255,0.8); color: var(--ink); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: 0.8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; letter-spacing: -0.01em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.opacity-full { opacity: 1 !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 88px 0 0;
  margin-top: -68px; padding-top: 156px;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(46,75,255,0.55), rgba(46,75,255,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(255,194,75,0.18), rgba(255,194,75,0) 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #dfe3ff;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
h1, h2, h3 { letter-spacing: -0.045em; line-height: 0.98; margin: 0; font-weight: 700; }
.hero h1 { font-size: clamp(52px, 8.4vw, 112px); margin: 24px 0 24px; }
.hero h1 .grad {
  background: linear-gradient(100deg, #8ea0ff 0%, #2e4bff 45%, #ffc24b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted-dark); max-width: 520px; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 96px; }
.hero-visual { display: flex; justify-content: center; align-self: end; }

/* Phone mockup */
.phone {
  width: 320px; height: 600px; margin-bottom: -120px;
  border-radius: 52px; padding: 12px;
  background: linear-gradient(160deg, #2a2a33, #111116);
  box-shadow: 0 40px 120px rgba(46,75,255,0.35), inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  background: linear-gradient(180deg, #2e4bff 0%, #1a2bb8 58%, #0f1a7a 100%);
  padding: 56px 20px 20px; color: #fff;
}
.screen .island { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; }
.screen .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; opacity: .85; }
.screen .streak { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.14); padding: 6px 10px; border-radius: 999px; }
.screen .q-label { margin: 34px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.screen .q { font-size: 25px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 22px; }
.opt {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.12); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
  font-size: 15px; font-weight: 600;
}
.opt.right { background: #fff; color: var(--lapis-deep); }
.opt.right .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 13px; }
.screen .progress { margin-top: 18px; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.18); overflow: hidden; }
.screen .progress span { display: block; width: 60%; height: 100%; background: var(--gold); border-radius: 6px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-ctas { padding-bottom: 24px; }
  .phone { width: 280px; height: 540px; margin-bottom: -160px; }
}

/* ---------- Sections ---------- */
section { padding: 140px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(40px, 5.6vw, 72px); }
.section-head p { font-size: 19px; color: var(--muted); margin: 20px 0 0; max-width: 600px; }
.kicker { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lapis); margin-bottom: 16px; }
@media (max-width: 600px) { section { padding: 96px 0; } }

/* Apps */
.apps { padding-top: 220px; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 32px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--mist);
}
.app-card.featured { grid-column: span 2; background: linear-gradient(135deg, #2e4bff 0%, #1a2bb8 100%); color: #fff; }
.app-card .tag {
  align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff;
}
.app-card.featured .tag { background: var(--gold); color: var(--ink); }
.app-card h3 { font-size: clamp(30px, 3vw, 44px); margin: 0 0 12px; }
.app-card p { margin: 0; color: var(--muted); max-width: 440px; }
.app-card.featured p { color: rgba(255,255,255,0.78); }
.app-card .platforms { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.app-card:not(.featured) .chip { background: #fff; border: 1px solid var(--line); }
.app-card .glyph { position: absolute; right: -40px; top: 40px; width: 280px; opacity: .14; }
.app-card .blur-lines { display: grid; gap: 10px; margin: 28px 0 0; }
.app-card .blur-lines span { height: 14px; border-radius: 8px; background: #dcdce4; }
.app-card .blur-lines span:nth-child(2) { width: 70%; }
.app-card .blur-lines span:nth-child(3) { width: 45%; }
@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-card.featured { grid-column: auto; }
  .app-card { min-height: 340px; }
}

/* Principles */
.dark { background: var(--ink); color: #fff; }
.dark .section-head p { color: var(--muted-dark); }
.dark .kicker { color: var(--gold); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  border-radius: var(--radius); padding: 32px; background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.06);
}
.feat .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 56px; }
.feat:nth-child(1) .ico { background: rgba(46,75,255,0.2); color: #8ea0ff; }
.feat:nth-child(2) .ico { background: rgba(255,194,75,0.16); color: var(--gold); }
.feat:nth-child(3) .ico { background: rgba(120,230,180,0.14); color: #7be6b4; }
.feat h3 { font-size: 28px; margin-bottom: 12px; letter-spacing: -0.03em; line-height: 1.1; }
.feat p { margin: 0; color: var(--muted-dark); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } .feat .ico { margin-bottom: 32px; } }

/* Statement */
.statement { text-align: center; }
.statement h2 { font-size: clamp(44px, 7vw, 96px); max-width: 1000px; margin: 0 auto; }
.statement h2 .soft { color: #c4c4cf; }
.statement p { font-size: 19px; color: var(--muted); max-width: 620px; margin: 28px auto 0; }

/* Contact */
.contact { padding: 0 0 24px; }
.contact-card {
  position: relative; overflow: hidden;
  border-radius: 36px; padding: 88px 56px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #2e4bff 0%, #1a2bb8 45%, #0b0b0f 100%);
  color: #fff;
}
.contact-card h2 { font-size: clamp(40px, 6vw, 80px); }
.contact-card p { color: rgba(255,255,255,0.75); font-size: 19px; margin: 20px auto 36px; max-width: 520px; }
.contact-card .mail { display: block; margin-top: 20px; font-size: 15px; color: rgba(255,255,255,0.7); }
@media (max-width: 600px) { .contact-card { padding: 64px 24px; border-radius: 28px; } }

/* Footer */
footer { padding: 64px 0 48px; font-size: 14px; color: var(--muted); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-top .brand { color: var(--ink); }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.foot-links a:hover { color: var(--lapis); }
.foot-legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Document pages (privacy, support, legal) ---------- */
.doc-hero { background: var(--mist); padding: 96px 0 72px; }
.doc-hero h1 { font-size: clamp(44px, 6vw, 80px); }
.doc-hero p { color: var(--muted); font-size: 19px; margin: 20px 0 0; max-width: 640px; }
.doc { padding: 72px 0 120px; }
.doc .wrap { max-width: 820px; }
.doc h2 { font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; margin: 56px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; margin: 28px 0 8px; }
.doc p, .doc li { color: #33333d; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--lapis); }
.doc .card { background: var(--mist); border-radius: var(--radius-sm); padding: 24px 28px; margin: 20px 0; }
.doc dl { display: grid; grid-template-columns: 220px 1fr; gap: 12px 24px; margin: 0; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { .doc dl { grid-template-columns: 1fr; gap: 2px; } .doc dd { margin-bottom: 12px; } }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--lapis); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
