/* =========================================================
   DoomStopper — Landing page
   Dark canvas, crimson accent, rounded friendly type.
   ========================================================= */

:root {
  --bg-0:        #0B0710;
  --bg-1:        #110A1A;
  --bg-2:        #1A1024;
  --surface:     rgba(255, 255, 255, 0.04);
  --surface-hi:  rgba(255, 255, 255, 0.07);
  --stroke:      rgba(255, 255, 255, 0.08);
  --stroke-hi:   rgba(255, 255, 255, 0.14);

  --ink:         #FFFFFF;
  --ink-dim:     #B4AEC0;
  --ink-mute:    #807A8C;

  --ember:       #FF3A47;
  --ember-hi:    #FF6A5C;
  --ember-lo:    #C5231A;
  --ember-glow:  rgba(255, 58, 71, 0.45);

  --gold:        #FFD23C;
  --good:        #2FBF71;

  --radius-lg:   24px;
  --radius-md:   18px;
  --radius-sm:   12px;
  --radius-pill: 999px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display",
          "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* Subtle ambient background — two radial pools of crimson light */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(255, 58, 71, 0.18) 0%, transparent 60%),
    radial-gradient(50% 40% at 90% 90%, rgba(255, 106, 92, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand img { width: 28px; height: 28px; }
.nav-cta {
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--stroke-hi);
  color: var(--ink);
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--surface-hi); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 96px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--stroke);
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember-glow);
}
h1.headline {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 20px 0 18px;
}
h1.headline .accent {
  background: linear-gradient(135deg, var(--ember-hi), var(--ember), var(--ember-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 520px;
  margin: 0 0 32px;
}

/* Waitlist form */
.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
  background: var(--surface);
  padding: 8px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  transition: border-color .2s ease, background .2s ease;
}
.waitlist:focus-within {
  border-color: var(--ember);
  background: var(--surface-hi);
  box-shadow: 0 0 0 4px rgba(255, 58, 71, 0.18);
}
.waitlist input {
  flex: 1 1 220px;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 12px 16px;
}
.waitlist input::placeholder { color: var(--ink-mute); }
.waitlist button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--ember-hi), var(--ember) 50%, var(--ember-lo));
  box-shadow: 0 6px 0 rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.waitlist button:hover { filter: brightness(1.05); }
.waitlist button:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.waitlist button[disabled] { opacity: 0.7; cursor: progress; }

.form-note {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 14px 2px 0;
}
.form-note strong { color: var(--ink-dim); font-weight: 600; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(47, 191, 113, 0.10);
  border: 1px solid rgba(47, 191, 113, 0.35);
  color: #C8F3DC;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  max-width: 480px;
  font-size: 15px;
  font-weight: 600;
}
.form-success.is-on { display: flex; }
.form-success .check {
  flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--good);
  color: #06261A;
  display: grid; place-items: center;
  font-weight: 900;
}

.form-error {
  display: none;
  background: rgba(255, 58, 71, 0.10);
  border: 1px solid rgba(255, 58, 71, 0.4);
  color: #FFC9CE;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  max-width: 480px;
  font-size: 14px;
  margin-top: 10px;
}
.form-error.is-on { display: block; }

/* Hero art */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero-art picture,
.hero-art .ember-img {
  display: block;
  width: min(420px, 88%);
  height: auto;
  animation: floaty 6s ease-in-out infinite;
  /* vignette mask in the PNG handles the soft edge — no drop-shadow needed */
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
/* Floating UI chips around Ember */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(20, 12, 28, 0.85);
  border: 1px solid var(--stroke-hi);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.chip .ic {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px;
}
.chip.streak  { top: 8%;  left: -4%; animation: floaty 5s ease-in-out infinite; }
.chip.level   { top: 32%; right: -6%; animation: floaty 7s ease-in-out -1s infinite; }
.chip.points  { bottom: 6%; left: 4%; animation: floaty 6.5s ease-in-out -2s infinite; }
.chip.heart   { top: 60%; left: -8%; animation: floaty 7.5s ease-in-out -3s infinite; }

.chip .ic.flame { background: linear-gradient(180deg, #FFB02E, #FF4A3A); }
.chip .ic.star  { background: linear-gradient(180deg, #FFE14D, #FFA62E); color:#1A0A0A; }
.chip .ic.gem   { background: linear-gradient(180deg, #FF6A5C, #C5231A); }
.chip .ic.heart { background: linear-gradient(180deg, #FF6A5C, #C5231A); }

/* ---------- Trust strip ---------- */
.trust {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ember); opacity: 0.6; }

/* ---------- Section base ---------- */
section { padding: 96px 0; position: relative; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}
.section-head h2 .accent {
  background: linear-gradient(135deg, var(--ember-hi), var(--ember), var(--ember-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p {
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- How it works (3 steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-hi);
  background: var(--surface-hi);
}
.step .num {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--ember-hi), var(--ember-lo));
  box-shadow: 0 4px 16px rgba(255, 58, 71, 0.35);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.step p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.step .quote {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--ember);
  background: rgba(255, 58, 71, 0.07);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: var(--ink-dim);
  font-style: italic;
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
}
.feature .ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 58, 71, 0.12);
  color: var(--ember-hi);
  font-size: 20px;
  margin-bottom: 14px;
}
.feature h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
}

/* ---------- Promise quote band ---------- */
.promise {
  margin: 32px 0 0;
  padding: 56px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 58, 71, 0.12), rgba(255, 58, 71, 0.04));
  border: 1px solid rgba(255, 58, 71, 0.25);
  position: relative;
  overflow: hidden;
}
.promise::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 60% at 50% 0%, rgba(255, 58, 71, 0.25), transparent 70%);
  pointer-events: none;
}
.promise blockquote {
  position: relative;
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.promise blockquote .em {
  background: linear-gradient(135deg, var(--ember-hi), var(--ember), var(--ember-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promise cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: background .2s ease, border-color .2s ease;
}
.faq details[open] {
  background: var(--surface-hi);
  border-color: var(--stroke-hi);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-dim);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq p {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}
.final-cta h2 .accent {
  background: linear-gradient(135deg, var(--ember-hi), var(--ember), var(--ember-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-cta p {
  color: var(--ink-dim);
  font-size: 18px;
  margin: 0 0 32px;
}
.final-cta .waitlist { margin: 0 auto; }
.final-cta .form-note { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--stroke);
  margin-top: 64px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-mute);
  font-size: 13px;
}
.foot .links { display: flex; gap: 18px; }
.foot a:hover { color: var(--ink-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { min-height: 340px; order: -1; }
  .chip.streak, .chip.heart { left: 4%; }
  .chip.level { right: 4%; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 64px; }
  h1.headline { font-size: 44px; }
  .sub { font-size: 17px; }
  .waitlist { flex-direction: column; border-radius: var(--radius-md); }
  .waitlist button { width: 100%; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-art picture,
  .hero-art .ember-img { animation: none !important; }
  .waitlist button { transition: none; }
  html { scroll-behavior: auto; }
}
