:root {
  --bg: #030503;
  --panel: rgba(4, 12, 4, 0.82);
  --panel-line: rgba(153, 245, 82, 0.28);
  --green: #78df3e;
  --green-bright: #9bff55;
  --gold: #d7b35c;
  --text: #f7f8ef;
  --muted: #d8dfcf;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  width: 100vw;
  max-width: 100vw;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(180deg, rgba(3, 5, 3, 0.08), #030503 78%),
    url("assets/hero-bg.svg?v=4") top center / cover no-repeat,
    #030503;
}

a {
  color: inherit;
}

.page-shell {
  width: 100vw;
  max-width: 100vw;
  min-height: 100svh;
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(3, 5, 3, 0.02), rgba(3, 5, 3, 0.24) 48%, rgba(3, 5, 3, 0.68)),
    radial-gradient(circle at 25% 25%, rgba(215, 179, 92, 0.14), transparent 30%),
    radial-gradient(circle at 80% 62%, rgba(120, 223, 62, 0.16), transparent 34%),
    url("assets/hero-bg.svg?v=4") top center / cover no-repeat;
  animation: field-drift 14s ease-in-out infinite alternate;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(153, 245, 82, 0.1) 43%, transparent 52%),
    radial-gradient(circle at 50% 12%, rgba(153, 245, 82, 0.28), transparent 36%),
    linear-gradient(90deg, rgba(3, 5, 3, 0.42), transparent 48%, rgba(3, 5, 3, 0.42));
  animation: light-sweep 5.8s ease-in-out infinite;
}

.hero__content {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: calc(50% - 40px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: min(calc(100dvw - 32px), 320px);
  max-width: 320px;
  min-height: 0;
  margin-inline: auto;
  gap: 12px;
}

.eyebrow {
  width: 100%;
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  animation: fade-up 520ms ease both;
}

h1 {
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.7rem, 7.6vw, 2.15rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.58);
  animation: fade-up 620ms ease 80ms both;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.max-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.08em;
  white-space: nowrap;
}

.max-inline img {
  width: 0.7em;
  height: 0.7em;
  border-radius: 0.18em;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.22));
}

.hero__lead {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 3.9vw, 1.02rem);
  font-weight: 500;
  line-height: 1.34;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
  animation: fade-up 620ms ease 160ms both;
}

.hero__lead span {
  display: block;
}

.hero__pointers {
  margin-top: 6px;
  font-size: clamp(1.45rem, 6vw, 1.9rem);
  line-height: 1;
}

.cta-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 300px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 247, 237, 0.22);
  border-radius: 8px;
  color: #061006;
  overflow: hidden;
  font-size: clamp(0.84rem, 3.6vw, 0.96rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(135deg, var(--green-bright), var(--green) 58%, #3f9a23);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.52),
    0 0 34px rgba(153, 245, 82, 0.38);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
  animation: fade-up 620ms ease 240ms both, cta-pulse 2.6s ease-in-out 1.1s infinite;
}

.cta-button::after {
  position: absolute;
  inset: -40% auto -40% -40%;
  width: 34%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: skewX(-18deg);
  animation: button-shine 3.8s ease-in-out infinite;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.08);
  outline: none;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.54),
    0 0 46px rgba(153, 245, 82, 0.46);
}

.cta-button:active {
  transform: translateY(0);
}

.signal-strip {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(153, 245, 82, 0.16);
  animation: fade-up 620ms ease 320ms both;
}

.signal-strip__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 8px;
  min-height: 58px;
  padding: 10px 14px;
  align-content: center;
  align-items: center;
  justify-items: start;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(114, 214, 58, 0.14), transparent 34%),
    var(--panel);
  backdrop-filter: blur(6px);
}

.signal-strip__item + .signal-strip__item {
  border-top: 1px solid rgba(153, 245, 82, 0.16);
}

.signal-strip__value {
  color: var(--green-bright);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.signal-strip__label {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(0.8rem, 3.25vw, 0.92rem);
  font-weight: 850;
  line-height: 1.26;
}

.footer {
  padding: 18px 24px 24px;
  color: rgba(245, 247, 237, 0.56);
  font-size: 0.78rem;
  text-align: center;
}

.footer a {
  text-decoration-color: rgba(245, 247, 237, 0.28);
  text-underline-offset: 4px;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
  outline: none;
}

.policy-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.policy-page h1 {
  display: block;
  max-width: none;
  margin: 0 0 24px;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
  text-align: left;
}

.policy-page p,
.policy-page li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.policy-page a {
  color: var(--green-bright);
}

@keyframes button-shine {
  0%,
  54% {
    transform: translateX(0) skewX(-18deg);
  }

  74%,
  100% {
    transform: translateX(560%) skewX(-18deg);
  }
}

@keyframes field-drift {
  from {
    transform: scale(1.02) translate3d(-8px, -8px, 0);
    filter: saturate(1.04);
  }

  to {
    transform: scale(1.06) translate3d(8px, 10px, 0);
    filter: saturate(1.2);
  }
}

@keyframes light-sweep {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-8%);
  }

  50% {
    opacity: 1;
    transform: translateX(8%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow:
      0 18px 46px rgba(0, 0, 0, 0.52),
      0 0 34px rgba(153, 245, 82, 0.38);
  }

  50% {
    box-shadow:
      0 22px 52px rgba(0, 0, 0, 0.56),
      0 0 52px rgba(153, 245, 82, 0.56);
  }
}

@media (max-width: 370px) {
  .hero {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero__content {
    max-width: 296px;
    width: min(calc(100dvw - 24px), 296px);
    gap: 8px;
  }

  h1 {
    font-size: clamp(1.52rem, 7.2vw, 1.82rem);
  }

  .hero__lead {
    font-size: 0.88rem;
  }

  .cta-button {
    min-height: 52px;
    font-size: 0.8rem;
  }

  .signal-strip__item {
    min-height: 50px;
    padding: 8px 12px;
    grid-template-columns: 22px minmax(0, 1fr);
  }
}

@media (max-height: 700px) and (max-width: 720px) {
  .hero__content {
    gap: 7px;
  }

  h1 {
    font-size: clamp(1.45rem, 7vw, 1.78rem);
  }

  .hero__lead {
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .hero__pointers {
    margin-top: 3px;
    font-size: 1.28rem;
  }

  .cta-button {
    min-height: 50px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .signal-strip__item {
    min-height: 48px;
  }
}

@media (min-width: 721px) {
  .hero {
    padding: clamp(28px, 5vw, 64px);
  }

  .hero__content {
    position: static;
    width: 100%;
    max-width: 900px;
    transform: none;
    min-height: calc(100vh - 96px);
    min-height: calc(100svh - 96px);
    gap: 18px;
  }

  .eyebrow {
    font-size: 0.92rem;
  }

  h1 {
    max-width: 920px;
    font-size: clamp(3rem, 6vw, 5.35rem);
  }

  .hero__lead {
    max-width: 620px;
    font-size: clamp(1.06rem, 2.2vw, 1.25rem);
  }

  .cta-button {
    max-width: 430px;
    min-height: 64px;
    font-size: 1.04rem;
  }

  .signal-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1040px;
  }

  .signal-strip__item {
    min-height: 92px;
    padding: 18px 20px;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .signal-strip__item + .signal-strip__item {
    border-top: 0;
    border-left: 1px solid rgba(153, 245, 82, 0.16);
  }

  .signal-strip__label {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
