/* ===========================================================================
   GRATZ — Block 01: site header + hero
   Editorial two-column hero (copy left, kinetic monogram right), a strong
   single conversion path (ticker → analysis), and a trust strip.
   =========================================================================== */

/* ---------------------------------------------------------------- HEADER --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    backdrop-filter var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 7, .72);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom-color: var(--line);
}

.nav {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .005em;
  color: var(--white);
}

.nav__links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #D3D6DB;
}

.nav__links a {
  transition: color var(--dur-fast) var(--ease);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  margin-left: 6px;
  font-size: 17px;
  padding: 13px 24px;
}

/* --------------------------------------------------------------- HERO ------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 72px));
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}

/* ambient background: starfield canvas + radial glow + vignette */
/* ---- global cosmic background: fixed, spans the whole page -------------- */
/* The starfield + monolith are pinned to the viewport; every block scrolls
   over them, so only the central content moves. */
.bg-cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#bgStars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 46% at 74% 34%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(95% 80% at 50% 120%, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, 0) 55%);
}

.bg-monolith {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(8px, 5vw, 96px);
}

.bg-monolith svg {
  width: min(42vw, 540px);
  height: auto;
  transform-origin: center;
  will-change: transform;
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, .6));
}

.bg-monolith .float {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroFloat 9s var(--ease) infinite;
}

/* page content rides above the cosmos */
main {
  position: relative;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- left: copy + conversion ---- */
.hero__lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(40px, 5vw, 96px);
  align-items: end;
  margin-top: clamp(32px, 3vw, 50px);
}

.hero__intro {
  max-width: 660px;
}

.hero__eyebrow {
  margin-bottom: 28px;
  font-size: 16px;
  letter-spacing: .2em;
  color: #E0E3E6;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--white);
}

.hero__lead {
  margin-top: 0;
  max-width: 640px;
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.5;
  color: #EDEFF1;
}

/* ticker form — the primary conversion element */
.tf {
  margin-top: 38px;
  max-width: 600px;
}

.tf__label {
  font-family: var(--font-mono);
  font-size: 15.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #D3D6DB;
  margin-bottom: 14px;
}

.tf__row {
  display: flex;
  align-items: stretch;
  background: rgba(10, 11, 14, .66);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.tf__row:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}

.tf__prefix {
  display: flex;
  align-items: center;
  padding-inline: 22px;
  font-family: var(--font-mono);
  font-size: 23px;
  color: #C2C5CA;
}

.tf__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  padding: 23px 14px;
}

.tf__input::placeholder {
  color: #B6BABF;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.tf__btn {
  margin: 6px;
  padding-inline: 28px;
  border-radius: var(--r-xs);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.tf__btn:hover {
  background: #E6E7E9;
}

.tf__btn:active {
  transform: scale(.985);
}

.tf__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: #CACDD2;
}

.tf__price {
  color: var(--white);
  font-weight: 600;
}

.tf__error {
  display: none;
  margin-top: 10px;
  color: var(--bear);
  font-size: 13px;
}

.tf__error.is-visible {
  display: block;
}

/* trust strip (reuses existing stats) */
.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  justify-self: end;
  align-self: end;
  width: 100%;
  max-width: 440px;
}

.hero__trust .trust__num,
.hero__trust .trust__lbl {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}

.trust__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--white);
  line-height: 1;
}

.trust__lbl {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C4C7CC;
}

/* ---- right: kinetic monogram ---- */
/* hero visual moved to the global .bg-monolith (cosmos layer) */

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(-.6deg);
  }
}

/* scroll cue */
.hero__cue {
  position: absolute;
  left: var(--gutter);
  bottom: 26px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero__cue .tick {
  width: 24px;
  height: 1px;
  background: var(--line-2);
}

/* ===========================================================================
   MOTION-OFF (phones / touch / reduced-motion): drop canvas + float
   =========================================================================== */
html.motion-off #bgStars {
  display: none;
}

html.motion-off .bg-monolith .float {
  animation: none;
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 980px) {
  .bg-monolith {
    padding-right: 0;
  }

  .bg-monolith svg {
    width: min(56vw, 280px);
    margin-right: -4%;
    opacity: .5;
  }

  .hero__lower {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__trust {
    justify-self: start;
    max-width: 480px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }

  .hero__cue {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .hero__trust {
    gap: 14px 24px;
  }
}
