@font-face {
  font-family: "Jakarta";
  src: url("/assets/plus_jakarta_sans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #FCFAFF;
  --surface: #FFFFFF;
  --surface-2: #F3F0FF;
  --text: #17142B;
  --muted: #5D5873;
  --line: rgba(23, 20, 43, 0.09);
  --brand: #5B4CF0;
  --brand-2: #8C6CFF;
  --rose: #E04882;
  --on-brand: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.62);
  --shadow: 0 30px 80px -30px rgba(66, 46, 196, 0.45);
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0D1A;
    --surface: #17152A;
    --surface-2: #1F1C38;
    --text: #F2F0FF;
    --muted: #A9A4C6;
    --line: rgba(255, 255, 255, 0.09);
    --glass: rgba(26, 23, 48, 0.6);
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Ambient light behind the page */
.aurora {
  position: fixed; inset: -20vh -20vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 18% 30%, rgba(91, 76, 240, 0.28), transparent 70%),
    radial-gradient(34vw 34vw at 82% 12%, rgba(224, 72, 130, 0.20), transparent 70%),
    radial-gradient(30vw 30vw at 60% 70%, rgba(140, 108, 255, 0.18), transparent 70%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(0, 4vh, 0) scale(1.06); } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background .2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); box-shadow: 0 12px 30px -10px rgba(91, 76, 240, .7); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(91, 76, 240, .85); transform: translateY(-1px); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 12px; }

/* Hero */
.hero { padding: 56px 0 24px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; padding: 96px 0 48px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--brand); font-size: 13px; font-weight: 700;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
h1 {
  font-size: clamp(40px, 8.5vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 18px 0 18px; text-wrap: balance;
}
.grad { background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 45%, var(--rose) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 34ch; margin: 0 0 28px; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.chips li { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.hero-art { position: relative; justify-self: center; width: min(360px, 82vw); }
.hero-art img { border-radius: 34px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.hero-art .float {
  position: absolute; inset-inline-end: -12px; bottom: 14%; padding: 12px 14px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 10px; animation: bob 5s ease-in-out infinite;
}
.hero-art .float span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 52ch; font-size: 17px; }

/* Screens rail */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 62vw); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 24px; margin-inline: -16px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail img { width: 100%; scroll-snap-align: center; border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 9 / 16; object-fit: cover; }

/* Bento features */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .wide { grid-column: span 2; } }
.card {
  position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.card.accent { background: linear-gradient(135deg, var(--brand), #7A5CFF 55%, var(--rose)); color: #fff; border: 0; }
.card.accent p { color: rgba(255, 255, 255, .85); }
.card.accent .ic { background: rgba(255, 255, 255, .18); }

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: step; padding: 0; list-style: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--muted); }

/* Privacy band */
.band {
  border-radius: 36px; padding: clamp(28px, 5vw, 56px); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #6E5BFF 0%, #4A3AD6 45%, #2A1F7A 100%);
}
.band::after { content: ""; position: absolute; width: 380px; height: 380px; inset-inline-end: -120px; top: -120px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.band h2 { color: #fff; }
.band ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .band ul { grid-template-columns: repeat(3, 1fr); } }
.band li { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Final CTA + footer */
.final { text-align: center; padding: 72px 0; }
.final img { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px; box-shadow: var(--shadow); }
.final .ctas { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
.legal { flex-basis: 100%; font-size: 12.5px; }

/* Reveal on scroll, where the browser supports scroll-driven animations */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.98); } }
}

/* Language menu */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  font-size: 14px; font-weight: 600;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  min-width: 200px; max-height: 70vh; overflow: auto; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lang li a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 420px) { .nav-actions .btn-small { display: none; } }

/* Text pages (privacy policy) */
.prose { max-width: 720px; padding: 48px 0 72px; }
.prose h1 { font-size: clamp(32px, 6vw, 48px); margin-top: 0; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--brand); }
@media (prefers-color-scheme: dark) { .prose a { color: var(--brand-2); } }

/* Scripts with tall marks or joined letters need more line height and no tight tracking. */
:lang(hi) h1, :lang(ar) h1 { line-height: 1.3; letter-spacing: 0; }
:lang(hi) h2, :lang(ar) h2, :lang(hi) .brand, :lang(ar) .brand { letter-spacing: 0; line-height: 1.3; }
