/* ---------- tokens ---------- */
:root {
  --bg-top:    #0C1222;
  --bg-mid:    #0A0716;
  --bg-bottom: #050309;

  --ink:       #E7EAF1;
  --ink-soft:  #A0A6B4;
  --ink-mute:  #6E7486;

  --accent-teal:   #4FD1C5;
  --accent-violet: #A78BFA;
  --accent-indigo: #5B2E91;
  --parchment:     #F5F0E6;
  --danger:        #FF6B7A;

  --surface:      rgba(26, 31, 48, 0.60);
  --surface-hi:   rgba(36, 42, 66, 0.74);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hi:    rgba(255, 255, 255, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, 0.55),
               0 6px 16px -6px rgba(0, 0, 0, 0.4);

  --max-width: 1100px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg-mid);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Aurora background — three soft radial glows behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 12% 8%,  rgba(91, 46, 145, 0.45) 0%, transparent 45%),
    radial-gradient(ellipse at 88% 30%, rgba(31, 162, 162, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 100%, rgba(79, 209, 197, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

a { color: var(--accent-teal); text-decoration: none; }
a:hover { color: #7de3d9; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 600; margin-top: 2.2em; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.6em; }

p { color: var(--ink-soft); margin: 0 0 1em; }
p.lead { color: var(--ink); font-size: 1.15rem; }

ul, ol { color: var(--ink-soft); padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--parchment);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  background: rgba(10, 7, 22, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1A1F30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--border-hi), var(--shadow-lg);
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .nav-links { gap: 0.9rem; font-size: 0.88rem; }
}

/* ---------- hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-logo {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  margin: 0 auto 1.75rem;
  background: #1A1F30;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px var(--border-hi),
    0 30px 90px -20px rgba(79, 209, 197, 0.35),
    0 20px 60px -20px rgba(167, 139, 250, 0.35);
  overflow: hidden;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 {
  background: linear-gradient(90deg, #F5F0E6 0%, var(--accent-teal) 55%, var(--accent-violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.cta-row {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
  cursor: pointer;
}
.btn-primary {
  color: #0E1423;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-violet));
  box-shadow: 0 10px 30px -10px rgba(79, 209, 197, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); color: #0E1423; }

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border-hi);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-hi); color: var(--ink); }

/* ---------- feature grid ---------- */
.section {
  padding: 3rem 0;
}
.section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; }
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.22), rgba(167, 139, 250, 0.22));
  border: 1px solid var(--border-hi);
  color: var(--parchment);
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 3.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0E1423;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-violet));
}
.step h3 { margin-top: 0; }

/* ---------- doc pages (privacy / terms) ---------- */
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 0 5rem;
}
.doc h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.doc .meta {
  color: var(--ink-mute);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.doc h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
}
.doc p, .doc li { color: var(--ink-soft); }
.doc strong { color: var(--ink); }
.doc .callout {
  border: 1px solid var(--border-hi);
  background: var(--surface);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  color: var(--ink);
  backdrop-filter: blur(12px);
}

/* ---------- footer ---------- */
.footer {
  margin-top: 4rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 7, 22, 0.4);
  backdrop-filter: blur(10px);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.92rem;
}
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-meta {
  color: var(--ink-mute);
  font-size: 0.85rem;
}
