:root {
  --bg: #0b0d12;
  --surface: #141720;
  --elevated: #1b1f2a;
  --line: #262b38;
  --text: #eceef5;
  --muted: #9aa0b4;
  --violet: #7c80ff;
  --blue: #2f8bff;
  --cyan: #22b8cf;
  --mint: #20b486;
  --amber: #f3a83b;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%;
  filter: blur(110px); opacity: 0.28; animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: var(--violet); top: -22vmax; left: -14vmax; }
.aurora span:nth-child(2) { background: var(--cyan); top: 12vmax; right: -24vmax; animation-duration: 28s; animation-delay: -6s; }
.aurora span:nth-child(3) { background: var(--mint); bottom: -30vmax; left: 18vmax; opacity: 0.18; animation-duration: 34s; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vmax, 4vmax, 0) scale(1.18); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 13, 18, 0.62); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.94rem; font-weight: 600; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 18px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--violet), var(--blue) 55%, var(--cyan));
  background-size: 180% 180%; color: #fff; box-shadow: 0 12px 34px -12px rgba(92, 120, 255, 0.75);
  animation: sheen 6s ease infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(92, 120, 255, 0.9); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  background: rgba(124, 128, 255, 0.12); border: 1px solid rgba(124, 128, 255, 0.3);
  color: #c9cbff; font-size: 0.82rem; font-weight: 700; margin-bottom: 22px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(32, 180, 134, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(32, 180, 134, 0); } 100% { box-shadow: 0 0 0 0 rgba(32, 180, 134, 0); } }
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.grad {
  background: linear-gradient(100deg, #a9abff, #5db4ff 45%, #3fe0c5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 22px 0 32px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.hero-notes span::before { content: "✓"; color: var(--mint); margin-right: 8px; font-weight: 800; }

/* ---------- Phone mock ---------- */
.stage { position: relative; display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: min(310px, 78vw); aspect-ratio: 9 / 18.6; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2f3d, #12151c); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 90px -20px rgba(92, 120, 255, 0.5);
  transform: rotateY(-10deg) rotateX(5deg); transition: transform 0.25s ease-out; animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.screen { height: 100%; border-radius: 33px; background: #07080b; padding: 22px 16px 16px; display: flex; flex-direction: column; overflow: hidden; }
.screen-head { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 0.86rem; }
.screen-head img { width: 24px; height: 24px; animation: spin 18s linear infinite; }
.screen-head small { display: block; color: var(--muted); font-weight: 600; font-size: 0.64rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.rings { position: relative; margin: 14px auto 12px; width: 82%; }
.rings svg { width: 100%; height: auto; transform: rotate(-90deg); }
.rings circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.rings .track { stroke: #1b1e27; }
.rings .arc { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.rings .arc:nth-of-type(2) { animation-delay: 0.3s; }
.rings .arc:nth-of-type(4) { animation-delay: 0.5s; }
.rings .arc:nth-of-type(6) { animation-delay: 0.7s; }
.rings .arc:nth-of-type(8) { animation-delay: 0.9s; }
@keyframes draw { to { stroke-dashoffset: var(--to); } }
.rings-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rings-center small { color: var(--muted); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.12em; }
.rings-center b { font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.15; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: #15171e; border-radius: 15px; padding: 10px 12px; }
.tile small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.62rem; font-weight: 700; }
.tile small i { width: 7px; height: 7px; border-radius: 50%; }
.tile b { font-size: 1.08rem; letter-spacing: -0.02em; }
.chip {
  position: absolute; padding: 10px 15px; border-radius: 16px; font-size: 0.8rem; font-weight: 700; white-space: nowrap;
  background: rgba(27, 31, 42, 0.86); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9); animation: float 6s ease-in-out infinite;
}
.chip b { margin-right: 6px; }
.chip-1 { top: 13%; left: 0; animation-delay: -1.5s; }
.chip-2 { top: 46%; right: -2%; animation-delay: -3s; }
.chip-3 { bottom: 9%; left: 3%; animation-delay: -4.5s; }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.12; margin: 10px 0 14px; font-weight: 800; }
.sub { color: var(--muted); max-width: 620px; font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.card {
  position: relative; background: linear-gradient(180deg, rgba(27, 31, 42, 0.9), rgba(20, 23, 32, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c, var(--violet)) 22%, transparent), transparent 60%);
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c, var(--violet)) 55%, var(--line)); }
.card:hover::after { opacity: 1; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--c, var(--violet)) 16%, transparent); color: var(--c, var(--violet));
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.13rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Privacy split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.shield {
  position: relative; aspect-ratio: 1; max-width: 400px; width: 100%; margin-inline: auto; display: grid; place-items: center;
}
.shield i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(124, 128, 255, 0.35); animation: ripple 4.5s linear infinite; }
.shield i:nth-child(2) { animation-delay: 1.5s; }
.shield i:nth-child(3) { animation-delay: 3s; }
@keyframes ripple { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.shield img { width: 42%; animation: spin 26s linear infinite; filter: drop-shadow(0 0 40px rgba(92, 120, 255, 0.55)); }
.checks { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.checks li b { color: var(--text); display: block; }
.checks li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(32, 180, 134, 0.16); color: var(--mint); font-weight: 800; font-size: 0.85rem; margin-top: 2px;
}

/* ---------- Permissions ---------- */
.perms { margin-top: 38px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(20, 23, 32, 0.8); }
.perm { display: grid; grid-template-columns: 210px 1fr auto; gap: 18px; padding: 20px 24px; align-items: center; border-top: 1px solid var(--line); }
.perm:first-child { border-top: 0; }
.perm b { font-size: 0.98rem; }
.perm p { color: var(--muted); font-size: 0.93rem; }
.tag { font-size: 0.72rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.tag.core { background: rgba(124, 128, 255, 0.15); color: #b9bbff; }
.tag.opt { background: rgba(34, 184, 207, 0.14); color: #7ddcec; }
.never { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band + footer ---------- */
.band {
  text-align: center; padding: 64px 28px; border-radius: 32px; border: 1px solid rgba(124, 128, 255, 0.28);
  background: radial-gradient(120% 140% at 50% 0%, rgba(92, 120, 255, 0.28), rgba(20, 23, 32, 0.6) 62%);
}
.band p { color: var(--muted); margin: 0 auto 28px; max-width: 520px; }
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 24px; font-weight: 600; }
footer a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 84px; }
.legal .wrap { width: min(800px, 100% - 40px); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal .meta { color: var(--muted); margin: 14px 0 34px; font-size: 0.95rem; }
.legal .box {
  background: rgba(20, 23, 32, 0.86); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px);
}
.legal h2 { font-size: 1.28rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #c3c7d6; font-size: 1rem; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 22px; display: grid; gap: 8px; }
.legal strong { color: var(--text); }
.legal a { color: #a9abff; text-decoration: underline; text-underline-offset: 3px; }
.legal code { background: var(--elevated); padding: 2px 7px; border-radius: 6px; font-size: 0.88em; word-break: break-word; }
.table-scroll { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; }
.legal table { width: 100%; border-collapse: collapse; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 0.93rem; color: #c3c7d6; vertical-align: top; }
.legal th { border-top: 0; color: var(--text); background: var(--elevated); }
.callout { border-left: 3px solid var(--mint); background: rgba(32, 180, 134, 0.09); padding: 16px 18px; border-radius: 0 14px 14px 0; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 52px; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .stage { margin-top: 26px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .perm { grid-template-columns: 1fr auto; }
  .perm p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .chip-2 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .rings .arc { stroke-dashoffset: var(--to); }
}
