/*
 * Avtodars landing — "Midnight Ascent".
 *
 * The palette is the MOBILE APP's, not the admin panel's. A student arriving
 * here is one tap from the App Store, and the page they land on should look
 * like the thing they are about to install. The operator panel deliberately
 * uses a different (editorial) system; that split is documented in
 * admin/CLAUDE.md.
 *
 * Deliberately dependency-free: no framework, no build step, no fonts fetched
 * from a third party. This page has to outlive whatever tooling is fashionable,
 * and the legal pages it hosts are an App Store submission requirement — they
 * must render as static HTML for a crawler that executes no JavaScript.
 */

:root {
  --body: #080d22;
  --surface: #101736;
  --surface-2: #182050;
  --border: #232c52;
  --primary: #5d73ff;
  --primary-bright: #8f9fff;
  --text: #f4f6ff;
  --text-muted: #8b93be;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--body);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-bright); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 13, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.brand span { color: var(--primary-bright); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 72px;
  /* Two soft pools of brand colour rather than a flat fill, so the fold has
     depth without an image to download. */
  background:
    radial-gradient(1100px 460px at 12% -8%, rgba(93, 115, 255, 0.22), transparent 62%),
    radial-gradient(900px 420px at 88% 4%, rgba(52, 76, 211, 0.18), transparent 60%);
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero p.lede {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 32px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-bright); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); }

.note { margin-top: 14px; font-size: 0.86rem; color: var(--text-muted); }

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding: 64px 0; }
h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-lede { color: var(--text-muted); max-width: 60ch; margin: 0 0 34px; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.06rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.card .ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  margin-bottom: 14px;
  font-size: 1.15rem;
}

/* ── Steps ──────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 32px;
  height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.step h3 { margin: 2px 0 4px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 46px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.foot-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--text-muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* ── Legal pages ────────────────────────────────────────────────────── */
.legal { padding: 56px 0 80px; max-width: 76ch; }
.legal h1 { font-size: clamp(1.8rem, 4.4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 32px; }
.legal h2 { font-size: 1.18rem; margin: 34px 0 10px; }
.legal p, .legal li { color: #cfd5f2; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 7px; }

@media (max-width: 640px) {
  .hero { padding: 60px 0 52px; }
  section { padding: 48px 0; }
}
