/* Leela site. Colours mirror leela-mobile/src/theme/colors.ts (dark-only, like the app). */
:root {
  --bg: #05040d;
  --bg-elevated: #0d0a19;
  --surface: #100d20;
  --surface-alt: #16112a;
  --border: #302546;
  --border-strong: #5d4386;
  --text: #ffffff;
  --text-2: #d0c8e7;
  --text-3: #9a93b8;
  --purple: #a92bff;
  --pink: #f21cd6;
  --magenta: #f13bff;
  --grad: linear-gradient(90deg, var(--purple), var(--pink));
  --radius: 18px;
  --gutter: 20px;
  --max: 1080px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--magenta); text-underline-offset: 3px; }
a:hover { color: #ff8cff; }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--text); color: var(--bg);
  padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(5, 4, 13, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand svg { width: 28px; height: 28px; }
.header-cta {
  font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
}
.header-cta:hover { color: var(--text); border-color: var(--magenta); }

/* Hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto; height: 620px; z-index: -1;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(169, 43, 255, 0.35), transparent),
    radial-gradient(closest-side at 75% 55%, rgba(242, 28, 214, 0.28), transparent);
  filter: blur(10px);
}
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.kicker {
  display: inline-block; margin: 0 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(16, 13, 32, 0.7);
}
h1 {
  margin: 0; font-size: clamp(38px, 10vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em;
}
.tagline {
  margin: 18px 0 0; font-size: clamp(22px, 5.5vw, 30px); font-weight: 800; letter-spacing: -0.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(241, 59, 255, 0.45));
}
.lede { margin: 16px 0 0; color: var(--text-2); font-size: 18px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(242, 28, 214, 0.35); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 40px rgba(242, 28, 214, 0.55); }
.btn-ghost { color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--magenta); }

/* Hero map illustration */
.map-art { width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1 / 1; }
.map-art .pin-glow { animation: pulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.map-art .pin-glow:nth-of-type(2n) { animation-delay: 0.8s; }
.map-art .pin-glow:nth-of-type(3n) { animation-delay: 1.6s; }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.35); } }

/* Sections */
section { padding: 56px 0; }
.section-title { margin: 0 0 8px; font-size: clamp(28px, 7vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { margin: 0 0 32px; color: var(--text-2); max-width: 46ch; }

.features { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.card {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
}
.card h3 { margin: 14px 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(241, 59, 255, 0.12); border: 1px solid rgba(241, 59, 255, 0.35);
}
.icon svg { width: 24px; height: 24px; }

.cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cities li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: 15px; }
.cities li.live { color: var(--text); border-color: transparent; background: var(--grad); }
.note { color: var(--text-3); font-size: 15px; margin: 16px 0 0; }

.hosts {
  padding: 28px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 100% 0%, rgba(242, 28, 214, 0.18), transparent 60%), var(--surface);
  border: 1px solid var(--border-strong);
}
.hosts h2 { margin-top: 0; }
.hosts p { color: var(--text-2); margin: 0 0 16px; max-width: 50ch; }

.beta-grid { display: grid; gap: 16px; }
.beta-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.beta-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.beta-card p { margin: 0 0 18px; color: var(--text-2); font-size: 16px; }
.btn-disabled {
  color: var(--text-3); border: 1px dashed var(--border-strong); cursor: default;
}
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--text-3); font-size: 14px; font-weight: 600; }
.facts li::before { content: "•"; color: var(--magenta); margin-right: 8px; }

.prose { max-width: 62ch; }
.prose p { color: var(--text-2); margin: 0 0 16px; }
.ticks { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { color: var(--text-2); padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--magenta); font-weight: 800; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(70%, 240px); gap: 16px;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.shots li { scroll-snap-align: start; }
.shots img {
  width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(169, 43, 255, 0.18);
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 14px; background: #fff; color: #05040d; text-decoration: none; font-weight: 800; font-size: 19px;
}
.store:hover { color: #05040d; }
.store svg { width: 26px; height: 26px; flex: none; }
.store > span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.store-soon { background: transparent; color: var(--text); border: 1px solid var(--border-strong); cursor: default; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 40px 0 48px; color: var(--text-3); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .small { margin: 0; font-size: 13px; }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 8vw, 42px); margin-bottom: 18px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }
.legal code { font-size: 0.9em; background: var(--surface-alt); padding: 1px 6px; border-radius: 6px; }
.legal .table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-2); }
.legal th { color: var(--text); background: var(--surface-alt); }
.legal tr:last-child td { border-bottom: 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin-bottom: 24px; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { padding: 88px 0 64px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .beta-grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; margin: 0; padding: 0; overflow: visible; }
  section { padding: 80px 0; }
  .hosts { padding: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map-art .pin-glow { animation: none; }
}

.map-art .secret-pin { filter: drop-shadow(0 0 14px rgba(241, 59, 255, 0.7)); }

/* Hero: a real capture of the app's map */
.hero-shot { margin: 0 auto; max-width: 380px; }
.hero-shot img {
  width: 100%; height: auto; border-radius: 32px; border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(169, 43, 255, 0.28);
}
.hero-shot figcaption { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }
.hero-shot figcaption a { color: var(--text-3); }

/* "Coming soon" message for the store buttons (no script: opens on #soon) */
a.store-soon { cursor: pointer; }
a.store-soon:hover { color: var(--text); border-color: var(--magenta); }
.modal { display: none; position: fixed; inset: 0; z-index: 20; align-items: center; justify-content: center; padding: var(--gutter); }
.modal:target { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 13, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; max-width: 440px; width: 100%; padding: 28px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 100% 0%, rgba(242, 28, 214, 0.2), transparent 60%), var(--surface);
  border: 1px solid var(--border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal-card h2 { margin: 0 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.modal-card p { color: var(--text-2); margin: 0 0 12px; }
.modal-card .kicker { margin-bottom: 14px; }
.modal-card .actions { margin-top: 20px; }
