*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:  #1E88E5;
  --red:   #FF1744;
  --text:  #F5F6FA;
  --muted: #A3A7B5;
  --faint: #6B6F80;
  --line:  rgba(255, 255, 255, 0.12);
}

html, body {
  background: #05060B;
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Night sky: deep gradient washed with blue and red glows (as in the app). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(30, 136, 229, 0.38) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 72%, rgba(255, 23, 68, 0.30) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 8%, rgba(124, 77, 219, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, #070B1F 0%, #0B0716 55%, #1A0610 100%);
  pointer-events: none;
  z-index: 0;
}

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

a { color: #8EC5FF; text-decoration: none; }
a:hover { text-decoration: underline; }

.gradient {
  background: linear-gradient(90deg, var(--blue) 0%, #7C4DDB 50%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- One-pager ---------- */

.wrapper { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 64px;
}

.headline {
  font-size: clamp(64px, 13vw, 128px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.tagline {
  margin-top: 20px;
  font-size: clamp(13px, 2.2vw, 16px);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.description {
  margin-top: 24px;
  max-width: 540px;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.store-wrap { margin-top: 52px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, var(--blue), #7C4DDB, var(--red));
  box-shadow: 0 10px 40px rgba(255, 23, 68, 0.25), 0 10px 40px rgba(30, 136, 229, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.store-badge:hover { opacity: 0.9; transform: translateY(-2px); text-decoration: none; }
.store-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-badge.coming-soon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}
.store-badge.coming-soon:hover { transform: none; opacity: 1; }

footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 24px 40px;
}
.wrapper footer { opacity: 0; animation: fadeUp 0.8s ease forwards 0.8s; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--faint); letter-spacing: 0.02em; transition: color 0.2s; }
.footer-links a:hover { color: var(--muted); text-decoration: none; }
.footer-copy { font-size: 12px; color: #4A4E5E; letter-spacing: 0.03em; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Document pages (privacy, terms) ---------- */

nav.doc-nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
}
nav.doc-nav a { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }

.content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 56px 24px 64px; }
.doc-header { margin-bottom: 40px; }
.content h1 { font-size: clamp(30px, 6vw, 42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.grad-bar { width: 44px; height: 3px; border-radius: 3px; margin-top: 16px; background: linear-gradient(90deg, var(--blue), var(--red)); }
.meta { margin-top: 12px; font-size: 13px; color: var(--muted); }
.content section { margin-bottom: 32px; }
.content h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.content p, .content li { font-size: 16px; line-height: 1.75; color: #D5D8E2; }
.content p { margin-bottom: 10px; }
.content ul { padding-left: 20px; margin-bottom: 10px; }
.content li { margin-bottom: 6px; }
.content strong { color: var(--text); font-weight: 600; }

.content + footer { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line); }

/* ---------- 404 ---------- */
.center { text-align: center; }
.btn-home {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 26px;
  border-radius: 50px;
  border: 1px solid var(--line);
  color: var(--text);
}
