/* ─────────────────────────────────────────────────────────────
   LDIL — shared styles
   Matches the app's established design system exactly:
   near-black bg, cyan (live/primary), blue (historical/secondary),
   orange (achievement), Orbitron for the wordmark only, Space
   Grotesk for everything else.
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0D0D0D;
  --surface-1: #161616;
  --surface-2: #1F1F1F;
  --border: #2A2A2A;
  --cyan: #00E5FF;
  --blue: #2979FF;
  --orange: #FF6D00;
  --text-primary: #F5F5F5;
  --text-secondary: #9A9A9A;
  --text-disabled: #5C5C5C;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wordmark {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wordmark .accent { color: var(--cyan); }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

nav .wordmark { font-size: 22px; }

nav .nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

nav .nav-links a:hover { color: var(--text-primary); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 80px 0 100px;
  text-align: center;
}

.hero-ring {
  width: 180px;
  height: 180px;
  margin: 0 auto 40px;
}

.hero-ring svg { width: 100%; height: 100%; }

.ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
  stroke-linecap: round;
}

.ring-progress {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw-ring 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards 0.2s;
}

.pulse-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: draw-pulse 0.8s ease-out forwards 1.4s;
}

@keyframes draw-ring {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero p.sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
}

.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25);
}

/* ── Section shared ─────────────────────────────────────── */
section.block {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.block h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  max-width: 560px;
}

.block p.lead {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 48px;
}

/* ── Services grid ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── How it works ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step .step-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 12px;
}

.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plan-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}

.plan-card.featured {
  border-color: rgba(0, 229, 255, 0.4);
  background: linear-gradient(180deg, rgba(0,229,255,0.06), var(--surface-1) 40%);
}

.plan-name { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.plan-card.featured .plan-name { color: var(--cyan); }

.plan-price {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-price span { font-size: 15px; color: var(--text-secondary); font-weight: 400; }

.plan-card ul { list-style: none; margin: 24px 0; }

.plan-card li {
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card li:first-child { border-top: none; }

.check { color: var(--cyan); font-weight: 700; }
.dash { color: var(--text-disabled); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

footer .footer-links a:hover { color: var(--text-primary); }

footer .copyright {
  font-size: 13px;
  color: var(--text-disabled);
  margin-top: 24px;
}

/* ── Policy pages ───────────────────────────────────────── */
.policy-content { padding: 60px 0 100px; max-width: 720px; margin: 0 auto; }
.policy-content h1 { font-size: 32px; margin-bottom: 8px; }
.policy-content .updated { color: var(--text-secondary); font-size: 13px; margin-bottom: 40px; }
.policy-content h2 { font-size: 18px; margin: 36px 0 12px; color: var(--cyan); }
.policy-content p, .policy-content li { color: var(--text-secondary); font-size: 15px; margin-bottom: 12px; }
.policy-content ul { padding-left: 20px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero h1 { font-size: 34px; }
  .services-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  nav .nav-links { display: none; }
}
