/* =========================================================
   SITEWRIGHT — style system
   One consistent dark theme, hero → footer. Orange accent,
   used sparingly. Geometric wide display + light body.
   ========================================================= */

:root {
  /* Surfaces — charcoal, not pure black (avoids halation) */
  --bg:        #0d0d0f;
  --bg-2:      #111114;
  --surface:   #17171b;
  --surface-2: #1e1e23;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  /* Text */
  --text:      #f3f2ef;
  --text-dim:  #9a9aa2;
  --text-mute: #6c6c74;

  /* Accent — ember orange, matched to the hero particles */
  --accent:      #ff5c22;
  --accent-soft: #ff7a45;
  --accent-glow: rgba(255, 92, 34, 0.35);
  --accent-ink:  #0d0d0f; /* text sitting on top of accent fills */

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 72px;
  --hero-scroll: 240vh;   /* total scroll the pinned hero owns (scrub mode) */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

/* Visible keyboard focus (never removed) — accent ring, offset off dark */
:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.display { font-family: var(--display); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* =========================================================
   Accent-block treatment — solid orange block behind/beside
   one word of a headline. Reused site-wide.
   ========================================================= */
.accent-word {
  position: relative;
  display: inline-block;
  color: var(--text);
  z-index: 0;
}
.accent-block {
  position: absolute;
  left: -0.12em;
  right: -0.12em;
  top: 0.14em;
  bottom: 0.12em;
  background: var(--accent);
  z-index: -1;
  transform: skewX(-4deg);
  box-shadow: 0 0 40px -6px var(--accent-glow);
}
/* headline word riding the block reads on ink */
.accent-word { color: var(--accent-ink); }

/* =========================================================
   Buttons — outlined by default (restrained/premium)
   ========================================================= */
.btn {
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--btn-fg);
  padding: 0.85em 1.4em;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease),
              background .35s var(--ease), box-shadow .35s var(--ease),
              transform .35s var(--ease);
}
.btn--lg { font-size: 0.88rem; padding: 1em 1.8em; }

.btn--outline { border-color: var(--accent); color: var(--accent-soft); }
.btn--outline:hover {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 34px -8px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--fill {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--fill:hover {
  box-shadow: 0 0 40px -6px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--ghost { border-color: var(--border-2); color: var(--text-dim); }
.btn--ghost:hover { color: var(--text); border-color: var(--text-dim); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: var(--border);
}
.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-left: auto;
  margin-right: 1.5rem;
}
.nav__links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 400;
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* =========================================================
   HERO — scroll-scrubbed video (see hero.js)
   Base rules below are the STATIC fallback (mobile + reduced-motion).
   Scrub mode (tall container + sticky pin) is opted-in by the media
   query — same conditions hero.js uses, so layout & behavior can't
   disagree (no tall dead-scroll without a scrubber, and vice-versa).
   ========================================================= */
.hero { position: relative; }
.hero__pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) 12vh;
  overflow: hidden;
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero { height: var(--hero-scroll); }        /* owns ~240vh of scroll */
  .hero__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    padding-block: 0;                           /* content vertically centered */
  }
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
/* ambient ember bed — sits under the video and shows before it decodes */
.hero__media::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 68% 42%, var(--accent-glow), transparent 60%),
    radial-gradient(80% 80% at 50% 120%, #241108 0%, transparent 55%),
    var(--bg);
  z-index: -1;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 45%, transparent 75%),
    linear-gradient(0deg, var(--bg) 2%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  will-change: opacity, transform;
}
.kicker {
  font-family: var(--display);
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero__sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--text-dim);
  margin-bottom: 2.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- scrubbed beat overlays ----
   Each beat is an absolutely-centred layer. Only one shows at a time,
   so they can overlap. All start hidden; hero.js drives opacity/transform
   off scroll progress. In the static fallback they simply stay hidden. */
.hero__beats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__beats > * {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 900px);
  text-align: center;
  opacity: 0;
  will-change: opacity, transform;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.55);
}
.beat-line {
  font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 2.4rem);
  letter-spacing: 0.01em;
  color: var(--text);
}
.beat-line__b { opacity: 0; }   /* second half joins later */

.beat-brand {
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 9rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 70px var(--accent-glow), 0 2px 34px rgba(0, 0, 0, 0.5);
}

.beat-words {
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  justify-content: center;
  flex-wrap: wrap;
}
.beat-words .beat-word {
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  opacity: 0;                    /* each word staggers in individually */
}

.beat-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}
.beat-final__line {
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.beat-final .btn { pointer-events: none; }  /* hero.js flips to auto when live */

.hero__scrollcue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  z-index: 3;
}
.hero__scrollcue span {
  position: absolute; top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  background: var(--accent);
  border-radius: 2px;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hero__scrollcue span { animation: none; } }

/* =========================================================
   Section scaffolding
   ========================================================= */
.section-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.eyebrow, .footer__label {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}
.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-lede {
  margin-top: 1.2rem;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.how, .pricing { padding-block: clamp(4.5rem, 10vw, 8rem); }
.how { background: var(--bg-2); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.step { padding: clamp(1.6rem, 3vw, 2.4rem); position: relative; }
.step__num {
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--accent);
  opacity: 0.85;
  display: block;
  margin-bottom: 1.4rem;
}
.step__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.28rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.005em;
}
.step__body { color: var(--text-dim); font-size: 0.98rem; }

/* =========================================================
   INFO BAR — two-column benefit call-out
   ========================================================= */
.infobar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.infobar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.infobar__title {
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.infobar__right p { color: var(--text-dim); font-size: 1.1rem; }
.infobar__right p + p { margin-top: 1.1rem; }

/* =========================================================
   PRICING
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  align-items: stretch;
}
.card {
  padding: clamp(1.8rem, 3.2vw, 2.8rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card--accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card--accent::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.card__tier {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.9rem;
}
.card__name {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.9rem;
}
.card__desc { color: var(--text-dim); margin-bottom: 1.6rem; }
.card__feats { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; flex: 1; }
.card__feats li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 0.98rem;
}
.card__feats li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.card__note {
  color: var(--text-mute);
  font-size: 0.9rem;
  font-style: italic;
}
.card__note::before { display: none; }
.card__cta { align-self: flex-start; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__tag { color: var(--text-dim); margin: 1rem 0 1.8rem; max-width: 34ch; }
.footer__cols { display: flex; gap: clamp(2rem, 6vw, 5rem); }
.footer__nav, .footer__social { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a, .footer__social a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color .25s var(--ease);
}
.footer__nav a:hover, .footer__social a:hover { color: var(--accent-soft); }
.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* =========================================================
   Scroll reveal (progressive enhancement; JS adds .in)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__links a { padding: 1rem var(--gutter); border-top: 1px solid var(--border); }
  .nav.is-open .nav__cta { display: inline-flex; margin: 1rem var(--gutter) 1.4rem; }

  .steps { grid-template-columns: 1fr; }
  .infobar__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
