/* landing.html
   Kept out of an inline <style> block so the Content-Security-Policy's
   style-src needs no 'unsafe-inline'. */

/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080810;
  --bg2:       #0d0d1a;
  --cream:     #F2EDE6;
  --terra:     #C4826A;
  --terra-dim: rgba(196,130,106,0.15);
  --lavender:  #9B8FB5;
  --sage:      #8BAD7E;
  --amber:     #C4A55A;
  --blue:      #378ADD;
  --muted:     rgba(242,237,230,0.45);
  --border:    rgba(255,255,255,0.07);
  --card-bg:   rgba(255,255,255,0.04);
  --glass:     rgba(8,8,16,0.88);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Topbar ────────────────────────────────────────────────────────────────── */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 60px;
  background: rgba(8,8,16,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 40px;
  gap: 0;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 620; letter-spacing: -0.2px;
  color: var(--cream);
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
  margin-left: 48px;
}
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--cream); }

.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.btn-ghost {
  padding: 7px 18px;
  border: 1px solid rgba(242,237,230,0.18);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.btn-ghost:hover { border-color: rgba(242,237,230,0.4); background: rgba(255,255,255,0.04); }

.btn-primary {
  padding: 7px 18px;
  border: none;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #C4826A 0%, #A86852 100%);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px;
  border: 1px solid rgba(196,130,106,0.35);
  border-radius: 20px;
  background: rgba(196,130,106,0.08);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--terra);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--terra);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--cream);
  margin-bottom: 24px;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--terra) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 44px;
}

.hero-ctas {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.btn-hero-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, #C4826A 0%, #A86852 100%);
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: #fff;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.15s, transform 0.12s;
  box-shadow: 0 8px 32px rgba(196,130,106,0.3);
}
.btn-hero-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-hero-ghost {
  padding: 14px 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(242,237,230,0.15);
  border-radius: 12px;
  font-size: 15px; font-weight: 500; color: var(--cream);
  cursor: pointer; font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(242,237,230,0.3); }

.hero-stat-row {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; margin-top: 64px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 28px; font-weight: 700; letter-spacing: -1px;
  color: var(--cream);
}
.hero-stat-label {
  font-size: 12px; color: var(--muted); margin-top: 2px;
}
.hero-stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}

/* ── Section shell ─────────────────────────────────────────────────────────── */
.section {
  padding: 100px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--terra);
  margin-bottom: 14px;
}
.section-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; letter-spacing: -1.2px;
  color: var(--cream); line-height: 1.12;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px; color: var(--muted); line-height: 1.7;
  max-width: 560px;
}

/* ── Features ──────────────────────────────────────────────────────────────── */
#features { border-top: 1px solid var(--border); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feat-card:hover { border-color: rgba(242,237,230,0.14); transform: translateY(-3px); }
.feat-card:hover::before { opacity: 1; }

.feat-card.c-map::before  { background: radial-gradient(ellipse at top left, rgba(55,138,221,0.08) 0%, transparent 65%); }
.feat-card.c-learn::before { background: radial-gradient(ellipse at top left, rgba(155,143,181,0.08) 0%, transparent 65%); }
.feat-card.c-pass::before  { background: radial-gradient(ellipse at top left, rgba(139,173,126,0.08) 0%, transparent 65%); }

.feat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.feat-icon.i-map    { background: rgba(55,138,221,0.15);   color: var(--blue); }
.feat-icon.i-learn  { background: rgba(155,143,181,0.15);  color: var(--lavender); }
.feat-icon.i-pass   { background: rgba(139,173,126,0.15);  color: var(--sage); }

.feat-title {
  font-size: 18px; font-weight: 660; letter-spacing: -0.3px;
  color: var(--cream); margin-bottom: 10px;
}
.feat-body {
  font-size: 14px; color: var(--muted); line-height: 1.7;
}
.feat-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 600;
  background: rgba(242,237,230,0.06);
  color: rgba(242,237,230,0.5);
}

/* ── How it works ──────────────────────────────────────────────────────────── */
#how {
  border-top: 1px solid var(--border);
  padding: 100px 24px;
}
#how .inner { max-width: 1120px; margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(16.66% + 24px); right: calc(16.66% + 24px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--terra), var(--amber), var(--terra), transparent);
  opacity: 0.4;
}

.step {
  text-align: center;
  padding: 0 32px;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(196,130,106,0.4);
  background: rgba(196,130,106,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 18px; font-weight: 700; color: var(--terra);
  position: relative; z-index: 1;
}
.step-title {
  font-size: 16px; font-weight: 650; color: var(--cream);
  margin-bottom: 10px; letter-spacing: -0.2px;
}
.step-body { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── Map visualization ─────────────────────────────────────────────────────── */
#mapviz {
  border-top: 1px solid var(--border);
  padding: 100px 24px;
  overflow: hidden;
}
#mapviz .inner { max-width: 1120px; margin: 0 auto; }

.mapviz-wrap {
  margin-top: 56px;
  position: relative;
  height: 480px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
#viz-canvas {
  width: 100%; height: 100%;
  display: block;
}
.mapviz-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}
.mapviz-legend {
  position: absolute; bottom: 24px; left: 24px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.legend-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(242,237,230,0.55);
  background: rgba(8,8,16,0.7);
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--border);
}
.legend-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
#pricing { border-top: 1px solid var(--border); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
  align-items: start;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: border-color 0.2s;
}
.price-card.featured {
  border-color: rgba(196,130,106,0.5);
  background: rgba(196,130,106,0.06);
  position: relative;
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, #C4826A, #A86852);
  border-radius: 20px;
  font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.price-tier {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.price-amount {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 6px;
}
.price-cur { font-size: 18px; font-weight: 600; color: var(--cream); margin-top: 4px; }
.price-num { font-size: 48px; font-weight: 700; letter-spacing: -2px; color: var(--cream); line-height: 1; }
.price-per { font-size: 13px; color: var(--muted); }
.price-desc { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }

.price-divider { height: 1px; background: var(--border); margin-bottom: 24px; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.price-features li .check {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(139,173,126,0.15);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.price-features li .check.terra {
  background: rgba(196,130,106,0.15); color: var(--terra);
}

.price-cta {
  width: 100%; margin-top: 28px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
}
.price-cta.primary {
  background: linear-gradient(135deg, #C4826A 0%, #A86852 100%);
  border: none; color: #fff;
  box-shadow: 0 4px 20px rgba(196,130,106,0.25);
}
.price-cta.secondary {
  background: transparent;
  border: 1px solid rgba(242,237,230,0.15);
  color: var(--cream);
}
.price-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border);
  padding: 56px 40px;
}
#footer .inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: var(--muted); max-width: 240px; line-height: 1.6; }

.footer-links {
  display: flex; gap: 48px; flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(242,237,230,0.35);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px; color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1120px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(242,237,230,0.25);
  flex-wrap: wrap; gap: 8px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  #topbar { padding: 0 20px; }
  .nav-links { display: none; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .price-card.featured { margin-top: 0; }
  .footer-links { gap: 28px; }
  .section { padding: 72px 20px; }
}

@media (max-width: 520px) {
  .hero-stat-row { gap: 20px; }
  .hero-stat-divider { display: none; }
}

/* ── Scroll reveal ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.verify-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 12px);
  background: var(--glass); color: var(--cream);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 20px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100vw - 32px);
}
.verify-toast.show { opacity: 1; transform: translate(-50%, 0); }
.verify-toast.ok { border-color: rgba(139,173,126,0.4); color: var(--sage); }

/* ── One-off modifiers (were inline style="" attributes) ──────────────────────
   Compound selectors, last in the file, so they win over the base rules —
   media queries included — the way the inline styles they replace did. */
.btn-ghost.btn-inline,
.btn-primary.btn-inline,
.btn-hero-primary.btn-inline { display: inline-flex; align-items: center; }
.section.section-flush-bottom { padding-bottom: 0; }
.section.section-flush-top { padding-top: 0; }
.price-cta.price-cta-block { display: block; text-align: center; }
.footer-bottom.footer-bottom-padded { padding: 0 40px; }
.legend-dot.legend-dot-math { background: #378ADD; }
.legend-dot.legend-dot-philosophy { background: #9F8FE8; }
.legend-dot.legend-dot-social { background: #EF9F27; }
.legend-dot.legend-dot-medicine { background: #E2614A; }
.legend-dot.legend-dot-humanities { background: #2BBFA0; }
.legend-dot.legend-dot-arts { background: #D4537E; }
.legend-dot.legend-dot-applied { background: #7ABF3C; }
.legend-dot.legend-dot-natural { background: #5BC8D8; }
.legend-dot.legend-dot-skills { background: #C4A55A; }
