/* ============================================================
   SUPER COWARDS — Pre-launch landing page
   Palette:  red #E5241B · gold #FFC91C · charcoal #262322
             cream #FFF7E8 · cow-brown #8B5A2B
   ============================================================ */

:root {
  --red: #e5241b;
  --red-dark: #b3160f;
  --gold: #ffc91c;
  --charcoal: #262322;
  --charcoal-2: #34302e;
  --cream: #fff7e8;
  --brown: #8b5a2b;
  --white: #ffffff;

  --shadow-comic: 4px 4px 0 var(--charcoal);
  --shadow-comic-lg: 8px 8px 0 var(--charcoal);
  --radius: 18px;

  --font-display: "Luckiest Guy", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: #0f1430; /* night navy — matches the hero's top so the transparent nav blends in */
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---------- Typography helpers ---------- */
.t-red   { color: var(--red); }
.t-gold  { color: var(--gold); }
.t-white { color: var(--white); }
.hl {
  color: var(--charcoal);
  background: var(--gold);
  padding: 0.12em 0.3em;
  border-radius: 6px;
  line-height: 1.5;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .5px;
  text-decoration: none;
  padding: .8em 1.5em;
  border-radius: 50px;
  border: 3px solid var(--charcoal);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: var(--shadow-comic);
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--charcoal); }
.btn:active { transform: translate(2px, 2px);   box-shadow: 2px 2px 0 var(--charcoal); }

.btn--primary { background: var(--red); color: var(--white); }
.btn--ghost   { background: var(--white); color: var(--charcoal); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent; /* float the logo + button on the night sky, no bar/line */
}
.nav__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
}
.nav__brand { display: flex; align-items: center; text-decoration: none; }
.nav__logo { height: 42px; width: auto; }
.nav__logo-text {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.4rem;
  -webkit-text-stroke: 1px var(--gold);
}
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  background: var(--red);
  color: var(--white) !important;
  padding: .5em 1.1em;
  border-radius: 50px;
  border: 2px solid var(--gold);
}
.nav__cta:hover { background: var(--red-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 50% 40%, rgba(92, 86, 84, .35) 0%, rgba(38, 35, 34, 0) 55%),
    linear-gradient(180deg, #0f1430 0%, #161a2e 38%, #20202c 72%, var(--charcoal) 100%);
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  overflow: hidden;
  min-height: calc(100dvh - 70px); /* fill the screen minus the sticky navbar */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 201, 28, .14) 2px, transparent 2px);
  background-size: 26px 26px;
  opacity: .6;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .5px;
  padding: .45em 1.1em;
  border-radius: 50px;
  border: 2px solid var(--charcoal);
  margin-bottom: 1rem;
  transform: rotate(-2deg);
}

.hero__logo {
  width: min(340px, 66vw);
  max-height: 32vh;          /* keep the whole page on one screen */
  object-fit: contain;
  margin: 0 auto 0.8rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.45));
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero__title-fallback {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  line-height: .9;
}
.hero__title-fallback .t-red   { display: block; color: var(--red); -webkit-text-stroke: 2px var(--gold); }
.hero__title-fallback .t-white { display: block; color: var(--white); -webkit-text-stroke: 2px var(--charcoal); }

.hero__tagline {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  margin-top: .5rem;
}
.hero__sub {
  color: #d9d4cf;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 620px;
  margin: 0.7rem auto 1.2rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__note { color: #b8b3ad; font-size: .85rem; margin-top: 1.2rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }

/* cartoon city skyline along the bottom — softly blurred so the logo stays in focus */
.hero__city {
  position: absolute;
  left: -8px; right: -8px; bottom: -8px;
  height: clamp(120px, 21vh, 210px);
  background: url("assets/city-skyline.svg") repeat-x left bottom;
  background-size: auto 100%;
  filter: blur(4px);
  opacity: .9;
  z-index: 1;
  pointer-events: none;
}

/* email signup, now living inside the hero */
.hero__signup { margin-top: 1.2rem; }
.hero__signup .signup__form { margin-top: 0; }
.hero__signup .signup__msg { color: var(--gold); }

/* slim copyright pinned to the bottom of the hero screen */
.hero__copy {
  position: absolute;
  bottom: 1rem; left: 0; right: 0;
  z-index: 2;
  text-align: center;
  color: #cbc6c0;
  font-size: .82rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: 4.5rem 0; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  line-height: 1;
  margin-bottom: 1rem;
}
.section__lead {
  text-align: center;
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 1.2rem;
}
.section__lead--light { color: #e8e3dd; }

/* ---------- Story ---------- */
.story { background: var(--cream); }
.story__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.story__card {
  background: var(--white);
  border: 3px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-comic);
  transition: transform .15s ease;
}
.story__card:hover { transform: translateY(-6px) rotate(-1deg); }
.story__icon { font-size: 3rem; margin-bottom: .6rem; }
.story__card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .4rem; }

/* ---------- The Fears ---------- */
.fears { background: var(--red); position: relative; }
.fears::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.12) 2px, transparent 2px);
  background-size: 22px 22px;
  pointer-events: none;
}
.fears .container { position: relative; z-index: 2; }
.fears__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.fear-card {
  background: var(--cream);
  border: 3px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 1.8rem 1.3rem;
  text-align: center;
  box-shadow: var(--shadow-comic);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.fear-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-comic-lg);
}
.fear-card__emoji { font-size: 3.2rem; display: block; margin-bottom: .5rem; }
.fear-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .3rem; }
.fear-card p { font-size: .95rem; color: #5a5550; }

.fear-card--boss {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--gold);
}
.fear-card--boss p { color: #c9c4be; }
.fear-card--boss h3 { color: var(--gold); }
.fear-card__tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: .75rem;
  padding: .25em .8em;
  border-radius: 50px;
  border: 2px solid var(--charcoal);
  white-space: nowrap;
}

/* ---------- Burrito / Courage meter ---------- */
.burrito { background: var(--cream); }
.burrito__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.burrito__text .section__title,
.burrito__text .section__lead { text-align: left; margin-left: 0; }
.burrito__eat { margin-top: .5rem; }
.burrito__reset {
  background: none; border: none; cursor: pointer;
  color: #9c9792; text-decoration: underline; margin-left: 1rem; font-family: var(--font-body);
}

.meter {
  background: var(--white);
  border: 3px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-comic-lg);
}
.meter__face { font-size: 4.5rem; transition: transform .2s ease; }
.meter__face.pop { transform: scale(1.25); }
.meter__label {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: .3rem 0 1rem;
  color: var(--red);
}
.meter__bar {
  height: 28px;
  background: #efe7d6;
  border: 3px solid var(--charcoal);
  border-radius: 50px;
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width .4s cubic-bezier(.34,1.56,.64,1);
}
.meter__percent { font-weight: 800; margin-top: .7rem; }

/* ---------- Signup ---------- */
.signup { background: var(--charcoal); }
.signup__inner { text-align: center; }
.signup .section__title { color: var(--white); }
.signup__form {
  display: flex;
  gap: .8rem;
  justify-content: center;
  max-width: 540px;
  margin: 2rem auto 0;
  flex-wrap: wrap;
}
.signup__input {
  flex: 1 1 260px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: .9em 1.2em;
  border-radius: 50px;
  border: 3px solid var(--gold);
  background: var(--cream);
  color: var(--charcoal);
  outline: none;
}
.signup__input:focus { border-color: var(--white); }
.signup__input.shake { animation: shake .4s; border-color: var(--red); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.signup__submit { flex: 0 0 auto; }
.signup__msg { min-height: 1.4em; margin-top: 1.2rem; font-weight: 800; color: var(--gold); }
.signup__count { color: #8f8a85; font-size: .85rem; margin-top: .3rem; }

/* honeypot — hidden from humans, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #1b1917; color: var(--cream); padding: 2.5rem 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer__brand strong { font-family: var(--font-display); color: var(--red); font-size: 1.3rem; display: block; }
.footer__brand span { font-size: .9rem; color: #b7b2ac; }
.footer__social { display: flex; gap: 1.2rem; font-size: 1.4rem; }
.footer__social a { text-decoration: none; transition: transform .15s ease; }
.footer__social a:hover { transform: scale(1.25); }
.footer__copy { font-size: .85rem; color: #8f8a85; }

/* ============================================================
   SCROLL-REVEAL + RESPONSIVE
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .nav__links { gap: .9rem; }
  .nav__links a:not(.nav__cta) { display: none; }
  .burrito__inner { grid-template-columns: 1fr; }
  .burrito__text .section__title,
  .burrito__text .section__lead { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
