:root {
  --bg: #07090d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3f5f7;
  --muted: #9aa3ae;
  --faint: #6b7480;
  --green: #34d399;
  --indigo: #6366f1;
  --radius: 22px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f8fa;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-strong: #ffffff;
    --border: rgba(10, 20, 30, 0.08);
    --text: #0b1015;
    --muted: #4b5563;
    --faint: #6b7280;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- Background: slow aurora + film grain ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.blob {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.35; mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}
.b1 { background: radial-gradient(circle, #10b981 0%, transparent 60%); top: -25vmax; left: -15vmax; }
.b2 { background: radial-gradient(circle, #6366f1 0%, transparent 60%); top: -10vmax; right: -25vmax; animation-delay: -8s; }
.b3 { background: radial-gradient(circle, #0ea5e9 0%, transparent 60%); bottom: -35vmax; left: 20vmax; animation-delay: -16s; opacity: 0.22; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .blob { mix-blend-mode: multiply; opacity: 0.18; }
}
@keyframes drift {
  to { transform: translate(6vmax, 5vmax) scale(1.12) rotate(20deg); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 16px 20px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; display: block; }
.links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--text); }
.pill { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text) !important; }

/* ---------- Hero ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 96px 20px 72px; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(52, 211, 153, 0.25); border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
}
h1 {
  margin: 0; font-size: clamp(44px, 8vw, 92px); line-height: 1.02;
  letter-spacing: -0.045em; font-weight: 800;
}
.gradient-text {
  background: linear-gradient(100deg, #34d399 0%, #22d3ee 45%, #818cf8 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 620px; margin: 26px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 14px; font-weight: 600; font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: #04120c; background: linear-gradient(120deg, #34d399, #22d3ee);
  box-shadow: 0 10px 30px -10px rgba(52, 211, 153, 0.55);
}
.btn.ghost { border: 1px solid var(--border); background: var(--surface); }
.btn.big { padding: 18px 28px; font-size: 18px; word-break: break-all; }
.stats {
  display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px);
  margin-top: 64px; color: var(--muted); font-size: 14px;
}
.stats div { display: flex; flex-direction: column; align-items: center; }
.stats strong { color: var(--text); font-size: 22px; letter-spacing: -0.02em; }

/* ---------- Sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 20px; }
.section-head { text-align: center; margin-bottom: 40px; }
h2 { margin: 0; font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -0.035em; line-height: 1.1; }

/* ---------- App cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card:hover::before { opacity: 1; }
.card.featured { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}
.app-icon svg { width: 26px; height: 26px; fill: currentColor; }
.badge { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; letter-spacing: 0.02em; }
.badge.live { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.badge.building { color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
.badge.soon { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.card h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.tag { margin: 4px 0 12px; color: var(--accent); font-weight: 600; font-size: 15px; }
.card p { color: var(--muted); margin-top: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 22px; }
.chips li { font-size: 13px; padding: 5px 11px; border-radius: 9px; border: 1px solid var(--border); color: var(--muted); }
.more { font-weight: 600; font-size: 15px; color: var(--text); }
.more span { display: inline-block; transition: transform 0.2s ease; }
.more:hover span { transform: translateX(4px); }
.more.muted { color: var(--faint); font-weight: 500; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.pillar h3 { margin: 10px 0 8px; font-size: 22px; }
.pillar p { margin: 0; color: var(--muted); }
.num {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  background: linear-gradient(100deg, #34d399, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Contact ---------- */
.contact-card {
  text-align: center; padding: clamp(36px, 7vw, 72px) 24px; border-radius: 30px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px circle at 20% 0%, rgba(52, 211, 153, 0.16), transparent 60%),
    radial-gradient(600px circle at 80% 100%, rgba(99, 102, 241, 0.18), transparent 60%),
    var(--surface);
}
.contact-card p { color: var(--muted); margin: 12px 0 28px; }

/* ---------- Footer ---------- */
.footer {
  max-width: 1120px; margin: 0 auto; padding: 36px 20px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 14px;
}
.footer strong { color: var(--text); margin-right: 10px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: var(--text); }
.copy { grid-column: 1 / -1; margin: 6px 0 0; color: var(--faint); }

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

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .grid, .pillars { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}
@media (max-width: 520px) {
  .links a:not(.pill) { display: none; }
  .footer { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

/* ---------- Document pages (privacy, terms, account deletion) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.doc .back { color: var(--muted); font-size: 15px; }
.doc .back:hover { color: var(--text); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin: 18px 0 8px; }
.doc .meta { color: var(--faint); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.02em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc a:not(.btn):not(.back) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: var(--muted); }
.doc .callout {
  padding: 18px 20px; border-radius: 16px; margin: 20px 0;
  border: 1px solid rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.07);
}
.doc .callout p { margin: 0; color: var(--text); }
.doc .steps { counter-reset: step; list-style: none; padding: 0; }
.doc .steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
.doc .steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #04120c;
  background: linear-gradient(120deg, #34d399, #22d3ee);
}
@media (max-width: 520px) { .doc table { font-size: 14px; } .doc th, .doc td { padding: 8px 6px; } }
