/* ============ tokens — "cozy stream-night arcade" (§3 of the content pack) ============ */
:root {
  --bg: #0B0A12;
  --bg-alt: #12101d;
  --surface: #161425;
  --border: #2A2740;
  --accent: #7C3AED;
  --accent-hover: #6D28D9; /* keeps white text ≥ 4.5:1 on hover */
  --accent-glow: #A78BFA;
  --amber: #FBBF24;
  --text: #F4F2FF;
  --text-dim: #9A94B8;
  --live: #34D399;
  --radius: 1rem; /* rounded-2xl energy */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* anchors clear the sticky nav */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 350;
  line-height: 1.65;
  overflow-x: hidden;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 3px;
}

/* violet-950 gradient TOP — scrolls away with the hero (absolute, not fixed) */
.bg-grad {
  position: absolute;
  inset: 0 0 auto 0;
  height: 90vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(251, 191, 36, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ============ type ============ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 640; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.12; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.grad {
  background: linear-gradient(100deg, var(--accent-glow), #c4b5fd 55%, var(--amber) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-glow);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.lede {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 640px;
  margin-top: 1.1rem;
  margin-inline: auto; /* stays centered under centered headings */
}
.hero-copy .lede { margin-inline: 0; }

.chat-cmd {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.1rem 0.5rem;
  color: var(--amber);
  font-size: 0.9em;
}

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(11, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.logo-sprite { display: inline-block; width: 32px; height: 32px; } /* multiple of 16: no pixel seams */
.logo-sprite svg { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ============ buttons ============ */
.btn {
  position: relative;
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 8px 34px rgba(167, 139, 250, 0.5);
}
.btn-primary:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent-glow); }

/* emote-burst particles */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  font-size: 1.1rem;
}

/* ============ hero ============ */
.hero { padding: 5rem 0 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
}
.hero-form { justify-content: flex-start; margin-top: 2.2rem; }

.hero-sprite {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.mood-ring {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7C3AED, #A78BFA, #FBBF24, #34D399, #7C3AED);
  filter: blur(46px);
  opacity: 0.3;
}
.sprite-stage {
  position: relative;
  width: 224px; height: 224px; /* multiples of 16: pixel-crisp */
  animation: bob 2.6s ease-in-out infinite;
}
.sprite-stage svg {
  width: 100%; height: 100%;
  display: block;
  shape-rendering: crispEdges;
  image-rendering: pixelated;
}
.sprite-small { width: 96px; height: 96px; margin: 0 auto 1.4rem; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* blink: eyelids drawn in body color, revealed for a beat every few seconds */
.eyelid { opacity: 0; animation: blink 3.8s infinite; }
@keyframes blink {
  0%, 94%, 100% { opacity: 0; }
  95%, 98% { opacity: 1; }
}

.sprite-bubble {
  position: absolute;
  bottom: -1.2rem;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
.sprite-bubble::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 10px; height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

/* demo slot */
.demo-frame {
  margin: 4rem auto 0;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.demo-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(124, 58, 237, 0.3), transparent 60%),
    radial-gradient(ellipse at 80% 85%, rgba(251, 191, 36, 0.08), transparent 55%),
    var(--surface);
  border: none; cursor: pointer;
  display: grid; place-items: center; align-content: center; gap: 1rem;
  font-family: inherit; color: var(--text);
  padding: 1rem;
}
.play-btn {
  display: grid; place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 1.5rem;
  padding-left: 5px;
  transition: transform 0.2s, background 0.2s;
}
.demo-placeholder:hover .play-btn { transform: scale(1.08); background: rgba(255, 255, 255, 0.16); }
.demo-caption { color: var(--text-dim); font-size: 0.95rem; max-width: 480px; }

/* ============ sections ============ */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section > .container { text-align: center; }

/* proof */
.proof { padding-top: 3rem; }
.proof-grid {
  display: grid;
  grid-template-columns: minmax(240px, 560px);
  justify-content: center;
  margin-top: 2.6rem;
}
.proof-slot {
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  background: rgba(22, 20, 37, 0.5);
  padding: 1rem;
}

/* feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
  text-align: left;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-glow); }
.card-icon { width: 40px; height: 40px; margin-bottom: 0.9rem; }
.card-icon svg {
  width: 100%; height: 100%;
  display: block;
  shape-rendering: crispEdges;
  image-rendering: pixelated;
}
.card p { color: var(--text-dim); font-size: 0.95rem; }
@media (min-width: 900px) {
  .card-wide { grid-column: 1 / -1; } /* 7th card spans the row instead of orphaning */
}

.trust-strip {
  margin: 2.6rem auto 0;
  max-width: 820px;
  color: var(--text-dim);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  background: rgba(22, 20, 37, 0.6);
}
.trust-strip a { color: var(--accent-glow); text-decoration: none; }
.trust-strip a:hover { text-decoration: underline; }

/* tier-2 pills */
.pills-title { margin-top: 3.5rem; font-size: 1.35rem; }
.pills {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  justify-content: center;
  margin-top: 1.4rem;
  max-width: 900px;
  margin-inline: auto;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--amber); color: var(--text); }

.mission-control {
  margin: 3.5rem auto 0;
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  text-align: left;
}
.mission-control h3 { margin-bottom: 0.5rem; }
.mission-control p { color: var(--text-dim); font-size: 0.92rem; }

/* steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
  text-align: left;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700; font-size: 1.05rem;
  margin-bottom: 1rem;
}
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ============ honest costs ============ */
.table-wrap {
  margin-top: 3rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 620px;
}
.cost-table th, .cost-table td {
  padding: 0.95rem 1.3rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cost-table th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--accent-glow);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table td { color: var(--text-dim); }
.cost-table td:first-child { color: var(--text); font-weight: 500; }
.cost-table strong { color: var(--amber); font-weight: 650; }

.models-note {
  margin: 1.2rem auto 0;
  max-width: 720px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.cost-summary {
  margin: 2.4rem auto 0;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  text-align: left;
}
.cost-summary h3 { margin-bottom: 0.4rem; }
.cost-summary p, .cost-summary li { color: var(--text-dim); font-size: 0.95rem; }
.cost-summary ul { margin: 0.7rem 0 0.9rem 1.2rem; }
.cost-summary strong { color: var(--text); }
.cost-total { border-top: 1px solid var(--border); padding-top: 0.9rem; }
.cost-total strong { color: var(--amber); }

.mid-cta { margin-top: 2.6rem; }
.mid-cta p { color: var(--text-dim); margin-bottom: 1rem; }

/* ============ tiers ============ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
  text-align: left;
  align-items: start;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.tier-featured {
  border-color: var(--accent);
  box-shadow: 0 0 44px rgba(124, 58, 237, 0.25);
}
.tier-badge {
  position: absolute;
  top: -0.8rem; right: 1.4rem;
  background: var(--amber);
  color: #14101c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}
.tier h3 { font-size: 1.35rem; }
.tier .soon {
  font-size: 0.7rem; vertical-align: middle;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.tier-price {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 650;
}
.tier-price span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 0.2rem;
}
.tier ul { list-style: none; display: grid; gap: 0.45rem; flex: 1; }
.tier li {
  color: var(--text-dim); font-size: 0.93rem;
  padding-left: 1.3rem; position: relative;
}
.tier li::before {
  content: "✦";
  position: absolute; left: 0;
  color: var(--accent-glow);
  font-size: 0.75rem;
}
.tier .btn { text-align: center; }

/* ============ faq ============ */
.faq-list {
  margin: 3rem auto 0;
  max-width: 760px;
  display: grid;
  gap: 0.8rem;
  text-align: left;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  color: var(--accent-glow);
  font-size: 1.3rem;
  line-height: 1.4;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 0.7rem; color: var(--text-dim); font-size: 0.95rem; }

/* ============ waitlist ============ */
.waitlist {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.18), transparent 65%),
    var(--bg);
  border-top: 1px solid var(--border); /* boundary against the faq slab above */
}
.waitlist-inner { text-align: center; }
.waitlist-form {
  display: flex; gap: 0.8rem;
  justify-content: center;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.waitlist-form input {
  width: min(340px, 100%);
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-form input::placeholder { color: var(--text-dim); }
.waitlist-form input:focus {
  border-color: var(--accent-glow);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.5);
}
.form-note { margin-top: 1rem; font-size: 0.87rem; color: var(--text-dim); }
.form-note.success { color: var(--live); font-weight: 600; }
.form-note.error { color: #f87171; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--border); padding: 2.2rem 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer p { color: var(--text-dim); font-size: 0.88rem; }

/* ============ scroll reveal (JS-gated so no-JS visitors see everything) ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sprite-stage { animation: none; }
  .eyelid { animation: none; }
}

/* ============ responsive ============ */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-form { justify-content: center; }
  /* value prop stays first on mobile; sprite follows the copy, smaller */
  .hero-sprite { min-height: 200px; }
  .sprite-stage { width: 160px; height: 160px; } /* multiple of 16 */
  .mood-ring { width: 200px; height: 200px; }
}
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  h1 br { display: none; } /* let the headline wrap naturally on small screens */
  .nav-inner { flex-wrap: wrap; }
  /* keep in-page nav on mobile: scrollable pill row instead of hiding it */
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 1.1rem;
    padding-bottom: 0.3rem;
    font-size: 0.88rem;
    -webkit-overflow-scrolling: touch;
  }
}
