:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #f1effa;
  --ink: #12122a;
  --muted: #5d5f7a;
  --line: rgba(18, 18, 42, 0.08);
  --violet: #7c3aed;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
  --shadow-sm: 0 1px 2px rgba(18, 18, 42, 0.06), 0 2px 8px rgba(18, 18, 42, 0.04);
  --shadow-lg: 0 30px 60px -20px rgba(46, 32, 120, 0.35), 0 10px 25px -10px rgba(18, 18, 42, 0.15);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b17;
    --surface: #14142a;
    --surface-2: #1b1b36;
    --ink: #f2f1fb;
    --muted: #a3a4c2;
    --line: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand .logo { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(99, 60, 237, .6); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(99, 60, 237, .7); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 110px; overflow: hidden; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none; z-index: 0; filter: blur(70px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; animation: float 18s ease-in-out infinite; }
.aurora .b1 { width: 520px; height: 520px; background: #a78bfa; left: 8%; top: 4%; }
.aurora .b2 { width: 460px; height: 460px; background: #60a5fa; right: 6%; top: 10%; animation-delay: -6s; }
.aurora .b3 { width: 380px; height: 380px; background: #67e8f9; left: 40%; top: 38%; animation-delay: -12s; }
@media (prefers-color-scheme: dark) { .aurora { opacity: .35; } }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(.95); }
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
  margin: 22px 0 20px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 34px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--violet); }

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone {
  position: relative; width: 290px; height: 590px;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2a2a48, #0f0f20);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
  transform: rotate(-4deg);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #fffdf8; color: #1d1b2e; }
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #0f0f20; z-index: 2; }
.app-bar { padding: 50px 20px 10px; display: flex; align-items: center; justify-content: space-between; }
.app-bar b { font-size: 20px; letter-spacing: -0.02em; }
.app-bar .chip { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #efe9ff; color: #6d28d9; }
.paper {
  margin: 6px 14px; height: 400px; border-radius: 18px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 33px, #e9e4f5 33px 34px),
    #fffdf8;
  border: 1px solid #efeaf7; position: relative; overflow: hidden;
}
.paper svg { width: 100%; height: 100%; }
.ink path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: write 1.4s ease forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
.toolbar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; padding: 10px 14px; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgba(30, 20, 80, .15); }
.toolbar i { width: 20px; height: 20px; border-radius: 50%; display: block; }
.toolbar i.on { outline: 2px solid #1d1b2e; outline-offset: 2px; }

.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  animation: bob2 6s ease-in-out infinite;
}
.float small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.float .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.float .ic svg { width: 20px; height: 20px; }
.float.f1 { top: 190px; left: -40px; }
.float.f2 { bottom: 150px; right: -30px; animation-delay: -3s; }
.float.f3 { bottom: 20px; left: 0; animation-delay: -1.5s; }
@keyframes bob2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Stats strip */
.strip { margin-top: -40px; position: relative; z-index: 2; }
.strip-card {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.strip-card div { padding: 26px 24px; border-right: 1px solid var(--line); }
.strip-card div:last-child { border-right: 0; }
.strip-card b { display: block; font-size: 28px; letter-spacing: -0.03em; }
.strip-card span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* App showcase */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 32px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.showcase-copy { padding: 52px; }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.app-icon {
  width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(140deg, #8b5cf6, #3b82f6); color: #fff;
  box-shadow: 0 12px 24px -8px rgba(99, 60, 237, .55);
}
.app-icon svg { width: 36px; height: 36px; }
.app-id h3 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.app-id p { margin: 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.badge-soon { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #fff3d6; color: #b45309; margin-left: 8px; vertical-align: 4px; }
.showcase-copy > p { color: var(--muted); font-size: 17px; }
.features { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.features .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--violet); }
.features .fi svg { width: 18px; height: 18px; }
.features small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; line-height: 1.45; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; line-height: 1.2;
}
.store small { display: block; font-size: 11px; font-weight: 600; opacity: .7; }
.store svg { width: 22px; height: 22px; }

.showcase-art {
  position: relative; overflow: hidden; min-height: 460px;
  background: radial-gradient(circle at 30% 20%, #c4b5fd 0, transparent 45%),
              radial-gradient(circle at 80% 70%, #67e8f9 0, transparent 45%),
              linear-gradient(140deg, #7c3aed, #2563eb);
  display: grid; place-items: center; padding: 40px;
}
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 380px; }
.note {
  background: #fffdf8; color: #1d1b2e; border-radius: 16px; padding: 14px; aspect-ratio: 3 / 4;
  box-shadow: 0 18px 30px -12px rgba(10, 5, 40, .45);
  transition: transform .35s ease;
}
.note:nth-child(1) { transform: rotate(-4deg); }
.note:nth-child(2) { transform: rotate(3deg) translateY(18px); }
.note:nth-child(3) { transform: rotate(2deg) translateY(-6px); }
.note:nth-child(4) { transform: rotate(-3deg) translateY(12px); }
.showcase:hover .note { transform: rotate(0) translateY(0); }
.note b { font-size: 13px; display: block; margin-bottom: 6px; }
.note svg { width: 100%; height: auto; }
.note .lines path { fill: none; stroke-linecap: round; stroke-width: 2.4; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
  padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value .vi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.value .vi svg { width: 26px; height: 26px; }
.value h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.value p { margin: 0; color: var(--muted); }

/* Contact */
.contact-card {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px;
  background: linear-gradient(130deg, #1e1b4b 0%, #4c1d95 45%, #1d4ed8 100%);
  color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.contact-card::before, .contact-card::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.contact-card::before { width: 360px; height: 360px; background: #a855f7; top: -120px; right: -60px; }
.contact-card::after { width: 300px; height: 300px; background: #06b6d4; bottom: -140px; left: 20%; }
.contact-card > * { position: relative; z-index: 1; }
.contact-card h2 { color: #fff; }
.contact-card p { color: rgba(255,255,255,.78); font-size: 18px; margin: 0 0 28px; }
.contact-card .btn.light { background: #fff; color: #1e1b4b; }
.contact-card .btn.light:hover { transform: translateY(-2px); }
.contact-info { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 26px; backdrop-filter: blur(8px); }
.contact-info div { display: flex; gap: 14px; align-items: flex-start; }
.contact-info div + div { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.contact-info svg { width: 22px; height: 22px; flex: none; margin-top: 2px; opacity: .9; }
.contact-info small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .65; font-weight: 700; }
.contact-info a { color: #fff; font-weight: 700; text-decoration: none; }
address { font-style: normal; font-weight: 600; }

/* Footer */
footer { padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.legal-hero { position: relative; padding: 72px 0 120px; text-align: center; }
.legal-hero h1 { font-size: clamp(36px, 5.5vw, 56px); margin: 16px 0 8px; }
.legal-hero p { color: var(--muted); margin: 0; font-weight: 600; }
.prose {
  position: relative; z-index: 1; max-width: 820px; margin: -70px auto 40px; padding: 56px 60px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg);
}
.prose h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.prose h2:first-of-type { margin-top: 28px; }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose a { color: var(--violet); }
.prose ul { padding-left: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ink path { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .showcase, .contact-card { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .cta, .trust { justify-content: center; }
  .values { grid-template-columns: 1fr; }
  .strip-card { grid-template-columns: repeat(2, 1fr); }
  .strip-card div:nth-child(2) { border-right: 0; }
  .strip-card div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .showcase-copy { padding: 36px 28px; }
  .contact-card { padding: 44px 28px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 72px 0; }
  .hero-visual { min-height: 520px; transform: scale(.9); }
  .float.f1 { left: 0; top: 170px; } .float.f2 { right: 0; } .float.f3 { left: 6px; }
  .float { padding: 10px 12px; font-size: 13px; }
  .features { grid-template-columns: 1fr; }
  .prose { padding: 36px 22px; margin-top: -80px; }
  .showcase-art { min-height: 380px; padding: 28px; }
}
