/* ===========================================================================
   Buffalo Hustle — marketing landing page
   Recreated from design_handoff_buffalo_hustle_landing (high-fidelity).
   All hex / size / spacing values are authoritative per the handoff.
   =========================================================================== */

/* ---- Theme tokens ------------------------------------------------------- */
:root,
:root[data-theme="dark"] {
  --bg: #17140E;        /* warm ink */
  --surface: #211C13;
  --surface2: #2A2418;
  --text: #F4EEE1;
  --muted: #B4AB98;
  --ember: #DC4E24;     /* single bold accent */
  --clay: #C29A6B;
  --steel: #7C918C;
  --line: rgba(244, 238, 225, 0.13);
  --grit: rgba(244, 238, 225, 0.05);
}

:root[data-theme="light"] {
  --bg: #F4EEE1;        /* bone / warm paper */
  --surface: #ECE4D3;
  --surface2: #E2D8C3;
  --text: #17140E;
  --muted: #5C5442;
  --ember: #DC4E24;
  --clay: #9C7440;
  --steel: #4A5A57;
  --line: rgba(23, 20, 14, 0.14);
  --grit: rgba(23, 20, 14, 0.04);
}

/* ---- Reset -------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease;
}

a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--clay); }
::selection { background: #DC4E24; color: #F4EEE1; }
img { display: block; }

/* ---- Keyframes ---------------------------------------------------------- */
@keyframes bh-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bh-glow {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ---- Shared atoms ------------------------------------------------------- */
.wrap { max-width: 1200px; margin: 0 auto; width: 100%; }

section { position: relative; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
}

.section-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0.03em;
  margin: 0;
}

/* Overlays: diagonal grit + ember radial glow (dark-section atmosphere) */
.overlay { position: absolute; inset: 0; pointer-events: none; }
.overlay--grit {
  background-image: repeating-linear-gradient(45deg, var(--grit) 0 1px, transparent 1px 6px);
}
.overlay--glow {
  background: radial-gradient(ellipse 75% 55% at 50% 22%, rgba(220, 78, 36, 0.30), transparent 68%);
  animation: bh-glow 7s ease-in-out infinite;
}

/* Buttons */
.btn {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  display: inline-block;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.btn--primary { background: var(--ember); color: #F4EEE1; }
.btn--primary:hover { color: #F4EEE1; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }

/* Phone frame device (the only heavily-rounded shape) */
.phone {
  aspect-ratio: 1008 / 2089;
  border: 9px solid #0b0b0b;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 44px 90px -40px rgba(0, 0, 0, 0.7);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   1. NAV
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 56px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.nav__brand img { height: 40px; width: auto; }
.wordmark {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__brand .wordmark { font-size: 19px; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.theme-toggle:hover { border-color: var(--ember); color: var(--text); }
.theme-toggle .dot { width: 9px; height: 9px; background: var(--ember); display: inline-block; }

.nav .btn--primary {
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 11px 18px;
}
.nav .btn--primary:hover { transform: none; filter: brightness(1.08); }

/* =========================================================================
   2. HERO
   ========================================================================= */
.hero {
  overflow: hidden;
  padding: clamp(56px, 10vw, 140px) clamp(16px, 5vw, 56px) clamp(64px, 9vw, 120px);
}
.hero__inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__emblem {
  height: clamp(230px, 36vw, 480px);
  width: auto;
  margin-bottom: clamp(28px, 4vw, 44px);
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.5));
  animation: bh-rise 0.7s both;
}
.hero__kicker {
  font-family: 'Space Mono', monospace;
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: clamp(20px, 3vw, 34px);
  animation: bh-rise 0.7s 0.06s both;
}
.hero__wordmark {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  line-height: 0.86;
  margin: 0;
  letter-spacing: 0.03em;
}
.hero__wordmark span { display: block; }
.hero__wordmark .line-1 {
  font-size: clamp(58px, 16.5vw, 300px);
  color: var(--text);
  animation: bh-rise 0.8s 0.05s both;
}
.hero__wordmark .line-2 {
  font-size: clamp(66px, 18.5vw, 340px);
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.42vw, 5px) var(--ember);
  animation: bh-rise 0.8s 0.13s both;
}
.hero__bar {
  width: clamp(120px, 26vw, 300px);
  height: 5px;
  background: var(--ember);
  margin: clamp(28px, 4vw, 46px) 0 clamp(24px, 3.5vw, 34px);
  animation: bh-rise 0.8s 0.22s both;
}
.hero__tagline {
  max-width: 720px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 clamp(30px, 4vw, 42px);
  text-wrap: pretty;
  animation: bh-rise 0.8s 0.3s both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: bh-rise 0.8s 0.38s both;
}
.hero__cta .btn {
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 17px 34px;
}
.hero__cta .btn--primary { box-shadow: 0 14px 40px -14px rgba(220, 78, 36, 0.8); }

/* =========================================================================
   3. THESIS
   ========================================================================= */
.thesis { padding: clamp(64px, 9vw, 130px) clamp(16px, 5vw, 56px); border-top: 1px solid var(--line); }
.thesis__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.thesis .eyebrow { margin-bottom: 20px; }
.thesis h2 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(34px, 5.5vw, 74px);
  line-height: 1.02;
  letter-spacing: 0.03em;
  margin: 0 0 24px;
}
.thesis__body {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  text-wrap: pretty;
  margin: 0 0 34px;
}
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-family: 'Space Mono', monospace;
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat-strip__item { display: flex; align-items: center; gap: 9px; }
.stat-strip__item .sq { width: 9px; height: 9px; background: var(--ember); }
.stat-strip__div { width: 1px; height: 20px; background: var(--line); }
.thesis .phone { justify-self: center; width: min(300px, 82vw); }

/* =========================================================================
   4. PILLARS
   ========================================================================= */
.pillars {
  padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 56px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars .eyebrow { display: block; margin-bottom: clamp(32px, 5vw, 56px); }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.pillar { border-top: 3px solid var(--ember); padding-top: 22px; }
.pillar__idx { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pillar h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: 0.045em;
  margin: 0 0 16px;
}
.pillar p { font-size: 16px; line-height: 1.58; color: var(--muted); margin: 0; text-wrap: pretty; }

/* =========================================================================
   5. FEATURE GRID + "IN THE APP"
   ========================================================================= */
.features { padding: clamp(64px, 9vw, 130px) clamp(16px, 5vw, 56px); }
.features__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.features__head .eyebrow { display: block; margin-bottom: 16px; }

/* Hairline grid: cells separated by filled --line gaps on a --line background */
.hairline-grid {
  display: grid;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.features__grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.feature {
  background: var(--bg);
  padding: clamp(26px, 3.5vw, 40px);
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: background 0.18s ease;
}
.feature:hover { background: var(--surface); }
.feature__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.feature__tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}
.feature__idx { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--muted); }
.feature h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.02;
  letter-spacing: 0.045em;
  margin: 36px 0 14px;
}
.feature p { font-size: 15px; line-height: 1.56; color: var(--muted); margin: 0; text-wrap: pretty; }

.showcase { margin-top: clamp(52px, 7vw, 96px); }
.showcase .eyebrow { display: block; margin-bottom: clamp(28px, 4vw, 46px); }
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  justify-items: center;
}
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 280px;
  width: 100%;
}
.shot .phone {
  width: 100%;
  border-width: 8px;
  border-radius: 36px;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.6);
}
.shot__label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* =========================================================================
   6. WHO IT'S FOR (always-dark band)
   ========================================================================= */
.audience {
  overflow: hidden;
  padding: clamp(64px, 9vw, 130px) clamp(16px, 5vw, 56px);
  background: #17140E;
  color: #F4EEE1;
}
.audience .overlay--grit {
  background-image: repeating-linear-gradient(45deg, rgba(244, 238, 225, 0.05) 0 1px, transparent 1px 6px);
}
.audience .overlay--glow-tr {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(220, 78, 36, 0.22), transparent 65%);
  pointer-events: none;
  animation: none;
}
.audience__inner { position: relative; max-width: 1200px; margin: 0 auto; }
.audience .eyebrow { display: block; color: #DC4E24; margin-bottom: 16px; }
.audience h2 { color: #F4EEE1; margin: 0 0 clamp(40px, 5vw, 64px); max-width: 900px; }
.audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.aud-item { border-left: 3px solid #DC4E24; padding: 6px 0 6px 24px; }
.aud-item h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.02;
  margin: 0 0 14px;
  color: #F4EEE1;
}
.aud-item p { font-size: 16px; line-height: 1.58; color: #B4AB98; margin: 0; text-wrap: pretty; }

/* =========================================================================
   7. HOW IT WORKS
   ========================================================================= */
.how { padding: clamp(64px, 9vw, 130px) clamp(16px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.how .eyebrow { display: block; margin-bottom: 16px; }
.how h2 { margin: 0 0 clamp(40px, 5vw, 64px); }
.how__grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  background: var(--bg);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 230px;
}
.step__n { font-family: 'Anton', sans-serif; font-size: clamp(48px, 6vw, 84px); line-height: 0.8; color: var(--ember); }
.step h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.045em;
}
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; text-wrap: pretty; }

/* =========================================================================
   8. FINAL CTA
   ========================================================================= */
.final {
  overflow: hidden;
  padding: clamp(80px, 12vw, 180px) clamp(16px, 5vw, 56px);
  text-align: center;
}
.final .overlay--glow {
  background: radial-gradient(ellipse 70% 90% at 50% 60%, rgba(220, 78, 36, 0.28), transparent 70%);
}
.final__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final .eyebrow { color: var(--ember); letter-spacing: 0.3em; margin-bottom: 24px; }
.final h2 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(52px, 13vw, 180px);
  line-height: 0.92;
  letter-spacing: 0.03em;
  margin: 0 0 28px;
}
.final__sub {
  max-width: 600px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 38px;
  text-wrap: pretty;
}
.final .btn--primary {
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 20px 46px;
  box-shadow: 0 18px 50px -16px rgba(220, 78, 36, 0.85);
}

/* =========================================================================
   9. FOOTER
   ========================================================================= */
.footer {
  padding: clamp(32px, 5vw, 56px) clamp(16px, 5vw, 56px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { height: 38px; width: auto; }
.footer__brand .wordmark { font-size: 18px; }
.footer__meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================================
   2b. QUICK ANSWER / TL;DR  (GEO answer-nugget block)
   ========================================================================= */
.tldr { padding: 0 clamp(16px, 5vw, 56px) clamp(48px, 7vw, 96px); }
.tldr__card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ember);
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 4vw, 48px);
}
.tldr__card .eyebrow { display: block; margin-bottom: 14px; }
.tldr__title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.03;
  letter-spacing: 0.035em;
  margin: 0 0 16px;
}
.tldr__body {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================================
   7b. FAQ  (mirrors How-It-Works hairline grid; powers FAQPage schema)
   ========================================================================= */
.faq { padding: clamp(64px, 9vw, 130px) clamp(16px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.faq .eyebrow { display: block; margin-bottom: 16px; }
.faq h2 { margin: 0 0 clamp(40px, 5vw, 64px); }
.faq__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.faq__item {
  background: var(--bg);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
}
.faq__item h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.04em;
}
.faq__item p { font-size: 15px; line-height: 1.58; color: var(--muted); margin: 0; text-wrap: pretty; }
