:root {
  --accent: #5b47fb;
  --accent-2: #8f7dff;
  --ink: #15132b;
  --night: #0f0d24;
  --muted: #6b6884;
  --ground: #f5f5f8;
  --surface: #ffffff;
  --line: #e6e5ee;
  --mint: #12b886;
  --coral: #ff5a3c;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }

/* ── Header ───────────────────────────────────────────── */
.top { max-width: 1180px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; gap: 24px; position: relative; z-index: 5; }
.logo svg { height: 34px; width: auto; display: block; }
.sections { display: flex; gap: 26px; margin-left: 12px; }
.sections a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 500; font-size: 15px; }
.sections a:hover { color: #fff; }
.langs { display: flex; gap: 2px; margin-left: auto; }
.langs a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--muted); padding: 5px 9px; border-radius: 9px; }
.langs a.on { background: var(--ink); color: #fff; }
.home .top { position: absolute; left: 0; right: 0; }
.home .langs a { color: rgba(255, 255, 255, 0.7); }
.home .langs a.on { background: rgba(255, 255, 255, 0.16); color: #fff; }
main { max-width: 880px; margin: 0 auto; padding: 0 16px 40px; }
main.wide { max-width: none; padding: 0; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(91, 71, 251, 0.55), transparent 65%),
    radial-gradient(600px 400px at 10% 90%, rgba(255, 90, 60, 0.18), transparent 70%),
    var(--night);
  padding: 130px 20px 90px;
}
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, rgba(15, 13, 36, 0.6)); pointer-events: none; }
.hero-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c9c0ff; background: rgba(143, 125, 255, 0.16); padding: 7px 12px; border-radius: 999px; margin: 0 0 18px; }
.eyebrow.dark { color: var(--accent); background: rgba(91, 71, 251, 0.1); }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); font-weight: 800; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.78); max-width: 540px; margin: 22px 0 30px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: #fff; color: var(--ink); min-width: 180px; }
.store small { display: block; font-size: 11px; color: var(--muted); line-height: 1.1; }
.store b { display: block; font-size: 17px; line-height: 1.2; white-space: nowrap; }
.stats { list-style: none; display: flex; gap: 34px; padding: 0; margin: 36px 0 0; }
.stats b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; }
.stats span { color: rgba(255, 255, 255, 0.6); font-size: 14px; }

.hero-phones { position: relative; height: 620px; width: 100%; max-width: 540px; margin: 0 auto; }
.phone { width: 290px; aspect-ratio: 640 / 1385; border-radius: 44px; padding: 10px; background: #1d1b33; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08); position: relative; }
.screen { height: 100%; border-radius: 34px; overflow: hidden; padding-top: 34px; position: relative; background: #f5f5f8; color: var(--ink); }
.screen.dark { background: #15132b; color: #fff; }
.screen .sb { position: absolute; top: 9px; left: 26px; font-size: 13px; font-weight: 700; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: #1d1b33; border-radius: 999px; z-index: 2; }
.hero-phones .phone { position: absolute; }
.hero-phones .front { left: 0; top: 30px; transform: rotate(-5deg); z-index: 2; }
.hero-phones .back { right: 0; top: 0; transform: rotate(7deg) scale(0.92); opacity: 0.95; }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 999px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); white-space: nowrap; animation: float 6s ease-in-out infinite; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.mint { background: var(--mint); } .dot.accent { background: var(--accent); } .dot.coral { background: var(--coral); }
.c1 { left: -4%; top: 140px; }
.c2 { right: 0; top: 330px; animation-delay: -2s; }
.c3 { left: 12%; bottom: 40px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } html { scroll-behavior: auto; } }

/* ── Features ─────────────────────────────────────────── */
.features { max-width: 1080px; margin: 0 auto; padding: 100px 20px 40px; display: grid; gap: 110px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature.flip .feature-img { order: 2; }
.feature-img { display: flex; justify-content: center; position: relative; }
.feature-img::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 71, 251, 0.22), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.feature-img .phone { width: 280px; box-shadow: 0 30px 60px rgba(21, 19, 43, 0.22); }
.feature-copy h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 18px; }
.feature-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 0; max-width: 460px; }

/* ── How it works ─────────────────────────────────────── */
.how { max-width: 1080px; margin: 0 auto; padding: 90px 20px; text-align: center; }
.how h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: #fff; font-family: var(--display); font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* ── Organizers ───────────────────────────────────────── */
.org { padding: 0 20px; }
.org-in { max-width: 1080px; margin: 0 auto; background: var(--night) radial-gradient(700px 400px at 85% 20%, rgba(91, 71, 251, 0.5), transparent 70%); color: #fff; border-radius: 36px; padding: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; overflow: hidden; }
.org h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-bottom: 26px; }
.org ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.org li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.85); }
.org li svg { flex: none; color: #fff; background: var(--accent); border-radius: 8px; padding: 2px; margin-top: 2px; }
.org-img { display: flex; justify-content: center; }
.org-img .phone { width: 260px; transform: rotate(4deg); margin-bottom: -120px; }

/* ── Call to action ───────────────────────────────────── */
.cta { position: relative; max-width: 760px; margin: 0 auto; padding: 140px 20px 110px; text-align: center; }
.cta .kite { width: 70px; color: var(--accent); margin: 0 auto 20px; display: block; animation: float 6s ease-in-out infinite; }
.cta h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.cta p { color: var(--muted); font-size: 18px; margin: 16px auto 28px; max-width: 520px; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 16px 28px; border-radius: 16px; box-shadow: 0 14px 30px rgba(91, 71, 251, 0.35); }
.button:hover { background: #4a36f0; }

/* ── Legal pages ──────────────────────────────────────── */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 44px); margin-top: 10px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; margin-bottom: 6px; }
.doc .lead { color: var(--muted); font-size: 18px; }
.doc h2 { font-size: 22px; margin: 30px 0 8px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.muted { color: var(--muted); font-size: 14px; }

/* ── Footer ───────────────────────────────────────────── */
footer { margin: 40px auto 0; padding: 30px 20px 40px; text-align: center; border-top: 1px solid var(--line); max-width: 1080px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--accent); }

/* Narrow desktops: smaller phones so both stay visible. */
@media (max-width: 1180px) and (min-width: 901px) {
  .hero-phones { height: 560px; }
  .hero-phones .phone { width: 240px; }
}

/* ── Small screens ────────────────────────────────────── */
@media (max-width: 900px) {
  .sections { display: none; }
  .hero { padding: 110px 16px 60px; }
  .hero-in { grid-template-columns: 1fr; text-align: left; }
  .hero-phones { height: 520px; margin-top: 10px; max-width: 460px; }
  .hero-phones .phone { width: 230px; }
  .c1 { left: -2%; top: 60px; } .c2 { right: -2%; top: 300px; } .c3 { left: 6%; bottom: 10px; }
  .features { gap: 80px; padding-top: 70px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .feature.flip .feature-img { order: 0; }
  .feature-copy p:not(.eyebrow) { margin: 0 auto; }
  .feature-img .phone { width: 240px; }
  .steps { grid-template-columns: 1fr; }
  .org-in { grid-template-columns: 1fr; padding: 40px 24px 0; border-radius: 28px; }
  .org-img .phone { width: 220px; margin-bottom: -90px; }
  .org-img { overflow: hidden; padding-bottom: 0; }
  .stats { gap: 24px; }
}
@media (max-width: 420px) {
  .hero-phones { height: 430px; max-width: 340px; }
  .hero-phones .phone { width: 196px; border-radius: 34px; padding: 8px; }
  .hero-phones .screen { border-radius: 27px; padding-top: 28px; }
  .hero-phones .screen .sb { top: 7px; left: 20px; font-size: 11px; }
  .hero-phones .phone::before { top: 14px; width: 64px; height: 18px; margin-left: -32px; }
  .chip { font-size: 12px; padding: 8px 11px; }
  .stores { flex-direction: column; }
  .store { min-width: 0; width: 100%; }
}
