/* =========================================================
   GHOST WINGZ — Coming Soon Landing
   Brand tokens
   ========================================================= */
:root {
  --gw-black:      #000000;
  --gw-charcoal:   #1A1A1A;
  --gw-charcoal-2: #0E0606;   /* warm tint for cards (below the hero only) */
  /* Must be pure black: primary-logo.png has a painted black grunge backdrop
     baked in with transparent edges. Any warm tint here frames the lockup. */
  --gw-page-bg:    #000000;
  --gw-orange:     #FF4A00;   /* primary accent */
  --gw-red:        #E11B22;   /* secondary accent */
  --gw-white:      #FFFFFF;
  --gw-bone:       #F4EDE0;

  --font-display:   "Bungee", "Anton", "Oswald", system-ui, sans-serif;
  --font-condensed: "Oswald", "Bebas Neue", "Helvetica Neue Condensed", system-ui, sans-serif;
  --font-mono:      "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Intensity = MEDIUM (baked-in) */
  --shadow:    6px;
  --shadow-x2: 12px;
  --rotate:    1.2;   /* multiplier for rotation rhythm */
  --halo:      0.6;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--gw-page-bg);
  color: var(--gw-white);
  font-family: var(--font-condensed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* Accessibility utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
}

/* =========================================================
   Atmosphere — grunge background + smoke puffs
   ========================================================= */
.grunge-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  /* Color glows kept in the lower corners, away from the hero's bounding box,
     so they don't bleed behind the lockup and break the pure-black backdrop. */
  background-image:
    radial-gradient(circle at 8% 85%, rgba(225,27,34,0.14), transparent 35%),
    radial-gradient(circle at 92% 92%, rgba(255,74,0,0.10), transparent 40%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3' /></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.4'/></svg>");
}

.smoke {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.smoke-puff {
  position: absolute;
  top: 40%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(120,30,30,0.24), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: smoke 6s ease-out infinite;
}
.smoke-puff:nth-child(1) { animation-delay: 0s; }
.smoke-puff:nth-child(2) { animation-delay: 1.5s; }
.smoke-puff:nth-child(3) { animation-delay: 3s; }
.smoke-puff:nth-child(4) { animation-delay: 4.5s; }

@keyframes smoke {
  0%   { transform: translateY(0) scale(1);    opacity: 0; }
  30%  { opacity: 0.4; }
  100% { transform: translateY(-300px) scale(2); opacity: 0; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.85; }
  51%      { opacity: 1; }
  52%      { opacity: 0.7; }
}
.flicker { animation: flicker 4s infinite; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--gw-white);
  text-shadow: 0 0 18px rgba(225,27,34,0.6);
  text-transform: uppercase;
}
.nav__wordmark-accent { color: var(--gw-orange); }

.nav__pill {
  padding: 10px 20px;
  border: 1px dashed var(--gw-orange);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gw-orange);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 40px 60px 0;
  position: relative;
  text-align: center;
  max-width: 1440px;
  margin: 0 auto;
}

.hero__art {
  position: relative;
  display: inline-block;
  margin-top: 40px;
}

/* Real brand lockup PNG (wings + brushy wordmark + tagline baked in).
   The artwork carries its own painted black grunge backdrop with transparent
   edges, so on the pure-black page it reads as part of the page — no blend
   tricks needed, just the drop-shadow glow stack. */
.hero__lockup {
  width: min(1100px, 90vw);
  filter:
    drop-shadow(0 0 80px rgba(225,27,34,0.4))
    drop-shadow(0 30px 60px rgba(0,0,0,0.6));
}

/* Animated sauce drips layered over the wing area of the lockup (JS-inserted) */
.drip {
  position: absolute;
  top: 28%;
  background: linear-gradient(180deg, var(--gw-red) 0%, var(--gw-orange) 100%);
  border-radius: 0 0 50% 50%;
  transform-origin: top;
  filter: drop-shadow(0 0 8px rgba(225,27,34,0.8));
  pointer-events: none;
  animation-name: drip;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes drip {
  0%   { transform: scaleY(0); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

.hero__subline {
  margin: 56px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.6);
}

/* =========================================================
   WAITLIST
   ========================================================= */
.waitlist {
  margin: 120px auto;
  padding: 60px 50px;
  max-width: 1320px;
  background: var(--gw-charcoal-2);
  border: 2px solid var(--gw-red);
  position: relative;
  box-shadow:
    0 0 0 8px #000,
    0 0 0 9px var(--gw-orange);
}

.waitlist__splatter {
  position: absolute;
  inset: -20px;
  background-image:
    radial-gradient(circle, var(--gw-red) 1px, transparent 2px),
    radial-gradient(circle, var(--gw-orange) 1px, transparent 2px);
  background-size: 80px 80px, 50px 50px;
  background-position: 0 0, 25px 25px;
  opacity: 0.15;
  pointer-events: none;
}

.waitlist__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ransom {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 20px;
}

.ransom__pill {
  display: inline-block;
  padding: 8px 14px;
  color: #000;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
}
/* Order: pill 1 (-3deg, red), pill 2 (0, orange), pill 3 (+3deg, red) */
.ransom__pill:nth-child(1) { transform: rotate(calc(-3deg * var(--rotate))); }
.ransom__pill:nth-child(2) { transform: rotate(0deg); }
.ransom__pill:nth-child(3) { transform: rotate(calc(3deg * var(--rotate))); }

.ransom__pill--red    { background: var(--gw-red); }
.ransom__pill--orange { background: var(--gw-orange); }

.waitlist__promo {
  margin: 0;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: rgba(255,255,255,0.8);
  max-width: 460px;
}

.waitlist__form { margin: 0; }

/* Honeypot — positioned off-screen, never shown to or focusable by humans */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.field {
  width: 100%;
  padding: 20px 22px;
  background: #000;
  color: var(--gw-white);
  border: 2px solid rgba(255,255,255,0.2);
  font-family: var(--font-mono);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.field:focus { border-color: var(--gw-orange); }
.field::placeholder { color: rgba(255,255,255,0.4); }

.waitlist__form .field { margin-bottom: 14px; }

.waitlist__row {
  display: flex;
  gap: 14px;
}

.field--zip {
  width: 130px;
  flex: 0 0 auto;
  margin-bottom: 0;
}

.btn-summon {
  flex: 1;
  padding: 20px;
  background: var(--gw-orange);
  color: #000;
  border: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--gw-red);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-summon:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--gw-red);
}
.btn-summon:active {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--gw-red);
}
.btn-summon.is-submitted {
  background: #000;
  color: var(--gw-orange);
  box-shadow: 6px 6px 0 var(--gw-red);
  cursor: default;
}

.waitlist__error {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gw-orange);
  text-transform: uppercase;
}

/* =========================================================
   SUMMONING RITUAL
   ========================================================= */
.ritual {
  padding: 80px 60px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.ritual__heading {
  text-align: center;
  margin-bottom: 80px;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--gw-orange);
}

.ritual__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(72px, 10vw, 140px);
  color: var(--gw-white);
  text-shadow: 5px 5px 0 var(--gw-red);
  text-transform: uppercase;
  transform: rotate(calc(-2deg * var(--rotate)));
}

.ritual__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--gw-charcoal-2);
  border: 2px solid rgba(225,27,34,0.4);
  padding: 40px 32px;
  position: relative;
  min-height: 380px;
}
.step--1 { transform: rotate(calc(-1.2deg * var(--rotate))); }
.step--2 { transform: rotate(0deg); }
.step--3 { transform: rotate(calc(1.2deg * var(--rotate))); }

.step__tag {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--gw-orange);
  color: #000;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 700;
}

.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 120px;
  color: var(--gw-red);
  line-height: 0.9;
  text-shadow: 4px 4px 0 #000;
  margin-bottom: 16px;
}

.step__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--gw-white);
  text-transform: uppercase;
}

.step__body {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
}

/* =========================================================
   DELIVERY APPS
   ========================================================= */
.apps {
  padding: 100px 60px;
  background: #000;
  border-top: 2px solid var(--gw-red);
}

.apps__eyebrow {
  margin: 0 0 56px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gw-orange);
}

.apps__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: 0 auto;
}

.app-pill {
  padding: 40px 60px;
  background: var(--gw-charcoal-2);
  border: 2px solid var(--gw-charcoal);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--gw-white);
  margin: 0 -2px;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}
.app-pill--1 { transform: rotate(calc(-1.5deg * var(--rotate))); }
.app-pill--2 { transform: rotate(0deg); }
.app-pill--3 { transform: rotate(calc(1.5deg * var(--rotate))); }
.app-pill:hover {
  transform: translateY(-4px) rotate(0deg);
}

.app-pill__dot {
  margin-right: 12px;
  display: inline-block;
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  padding: 80px 60px;
  background: linear-gradient(180deg, #000 0%, #1A0606 100%);
  text-align: center;
  position: relative;
}

.foot__badge {
  width: 220px;
  margin: 0 auto 32px;
}

.foot__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--gw-orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.foot__meta {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav  { padding: 20px 32px; }
  .hero { padding: 32px 32px 0; }
  .ritual, .apps { padding-left: 32px; padding-right: 32px; }
  .waitlist { padding: 48px 32px; margin: 80px 24px; }
  .waitlist__inner { grid-template-columns: 1fr; gap: 32px; }
  .ransom__pill { font-size: 44px; }
  .step__num { font-size: 96px; }
  .app-pill { padding: 32px 40px; font-size: 26px; }
}

@media (max-width: 768px) {
  .smoke { display: none; }

  /* Stack the ritual cards and delivery-app pills at tablet sizes —
     three-across gets too cramped once the viewport drops below ~768px. */
  .ritual__grid { grid-template-columns: 1fr; gap: 32px; }
  .step { min-height: 0; }

  .apps__row { flex-direction: column; align-items: center; gap: 12px; }
  .app-pill {
    width: 100%;
    max-width: 360px;
    margin: 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  /* Flatten rotations and shrink baked-in shadow offsets so the smaller
     phone-sized type stays legible. */
  :root {
    --rotate:    0;
    --shadow:    3px;
    --shadow-x2: 6px;
  }

  .nav { padding: 16px 20px; }
  .nav__logo { height: 32px; }
  .nav__wordmark { font-size: 18px; }
  .nav__pill { font-size: 9px; padding: 8px 12px; letter-spacing: 0.2em; }

  .hero { padding: 24px 20px 0; }
  .hero__art { margin-top: 24px; }
  .hero__lockup { width: 92vw; }
  .hero__subline {
    margin-top: 36px;
    font-size: 11px;
    letter-spacing: 0.18em;
    padding: 0 8px;
  }

  .waitlist {
    padding: 36px 20px;
    margin: 60px 16px;
    box-shadow: 0 0 0 5px #000, 0 0 0 6px var(--gw-orange);
  }
  .ransom__pill { font-size: 36px; padding: 6px 10px; box-shadow: 3px 3px 0 #000; }
  .waitlist__promo { font-size: 15px; }
  .waitlist__row { flex-direction: column; gap: 12px; }
  .field { padding: 16px 18px; }
  .field--zip { width: 100%; }
  .btn-summon { width: 100%; box-shadow: 4px 4px 0 var(--gw-red); }

  .ritual { padding: 60px 20px; }
  .ritual__heading { margin-bottom: 48px; }
  .ritual__title {
    font-size: clamp(54px, 14vw, 96px);
    text-shadow: 3px 3px 0 var(--gw-red);
  }
  .step { padding: 32px 24px; }
  .step__num { font-size: 84px; }
  .step__title { font-size: 24px; }

  .apps { padding: 56px 20px; }
  .app-pill { padding: 22px 28px; font-size: 22px; max-width: 320px; }

  .foot { padding: 56px 20px; }
  .foot__badge { width: 150px; }
  .foot__tagline { font-size: 22px; letter-spacing: 0.12em; }
  .foot__meta { font-size: 10px; letter-spacing: 0.18em; }
}

@media (max-width: 400px) {
  /* Very narrow phones (≤400px). Drop the nav status pill and tighten
     headlines so nothing wraps awkwardly or overflows the viewport. */
  .nav__pill { display: none; }
  .nav__wordmark { font-size: 16px; }

  .hero__subline {
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 0 4px;
  }

  .ransom__pill { font-size: 30px; padding: 5px 8px; }
  .waitlist__promo { font-size: 14px; letter-spacing: 0.04em; }

  .ritual__title { font-size: clamp(48px, 13vw, 72px); }
  .step__num { font-size: 72px; }
  .step__title { font-size: 22px; }

  .foot__tagline { font-size: 18px; letter-spacing: 0.1em; }
}

/* =========================================================
   Reduced motion — respect user preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .smoke-puff { display: none; }
  .drip { display: none; }
  .flicker { animation: none; }
}
