/* ============================================================
   Cosmic Cadets — marketing site styles.
   Palette + fonts mirror the app (webapp/css/tokens.css) so the
   site feels like the product. This file is host-agnostic; it ships
   as a plain static asset (no build step).
   ============================================================ */

:root {
  /* Brand palette (from the app's tokens.css) */
  --cyan: #3DE0E0;
  --pink: #FF5CCB;
  --lime: #B6F25C;
  --orange: #FF9F45;
  --violet: #8C7CFF;

  --space-top: #1B1448;
  --space-bot: #0C0824;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.13);
  --ink: #FFFFFF;
  --muted: #A99FD6;

  --bg-space: radial-gradient(125% 85% at 18% -5%, #2A1E6B 0%, #1B1448 40%, #0C0824 100%);
  --accent-grad: linear-gradient(100deg, var(--cyan), var(--violet) 58%, var(--pink));
  --on-accent: #06222A;

  --font-head: "Baloo 2", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.38);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-space) fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

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

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(12, 8, 36, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 16px;
}
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { font-size: 1.3rem; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) { .nav-links a.nav-hide { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 12px 22px; color: var(--ink); background: var(--card-strong);
  cursor: pointer; font-size: 1rem; transition: transform .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-grad); color: var(--on-accent); border: none; box-shadow: 0 0 26px rgba(140, 124, 255, 0.4); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.hero { padding: 72px 0 48px; }
.eyebrow { font-family: var(--font-head); font-weight: 700; color: var(--cyan); letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; margin-bottom: 10px; }
.lead { font-size: 1.2rem; color: #E9E4FF; }
.muted { color: var(--muted); }

/* ---------- hero split ---------- */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.subline { font-size: 1.05rem; color: var(--muted); font-weight: 700; margin: -6px 0 22px; }
.subline b { color: var(--lime); }

/* ---------- waitlist form ---------- */
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.waitlist input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem;
}
.waitlist input::placeholder { color: #8478b5; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.coming-soon { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--muted); font-size: .95rem; }
.coming-soon b { color: var(--ink); }

/* ---------- device frame (real app screen goes here) ---------- */
.device {
  border: 10px solid #14102f; border-radius: 26px; background: #000;
  box-shadow: var(--shadow-card); overflow: hidden; aspect-ratio: 4 / 3; width: 100%;
}
.device iframe, .device img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.device-cap { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- trust badge row ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 8px 0; padding: 0; list-style: none; }
.badges li {
  font-weight: 700; font-size: .9rem; color: #E9E4FF;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 7px 14px;
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0; }
.card .ic { font-size: 1.6rem; display: block; margin-bottom: 8px; }

/* ---------- comparison table ---------- */
.cmp { width: 100%; border-collapse: collapse; margin: 22px 0; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font-family: var(--font-head); background: rgba(255,255,255,.04); }
.cmp td.yes { color: var(--lime); font-weight: 700; }
.cmp td.no { color: var(--muted); }
.cmp caption { caption-side: bottom; color: var(--muted); font-size: .8rem; padding-top: 10px; text-align: left; }

/* ---------- prose (content pages) ---------- */
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.callout {
  background: var(--card); border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 20px; margin: 22px 0;
}

/* ---------- CTA strip ---------- */
.cta-strip { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 24px; margin: 24px 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 24px; font-size: .82rem; opacity: .85; }
