:root {
  --bg: #090909;
  --bg-soft: #121212;
  --panel: rgba(17, 17, 17, 0.92);
  --panel-strong: rgba(10, 10, 10, 0.96);
  --panel-edge: rgba(255, 255, 255, 0.08);
  --panel-divider: rgba(255, 255, 255, 0.12);
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.74);
  --muted-soft: rgba(245, 241, 234, 0.54);
  --accent: #cc1f20;
  --accent-strong: #f0322f;
  --accent-dark: #6f0f10;
  --accent-glow: rgba(240, 50, 47, 0.3);
  --error: #ffaaa3;
  --success: #9ee0b1;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.52);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #060606;
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0.8px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

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

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  isolation: isolate;
}

.background-poster,
.background-grain,
.background-vignette,
.ambient-red {
  position: absolute;
  pointer-events: none;
}

.background-poster {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.6)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.02) 0 18%, transparent 18% 50%, rgba(255, 255, 255, 0.02) 50% 52%, transparent 52%),
    linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 44%, #070707 100%);
  opacity: 1;
}

.background-grain {
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
}

.background-vignette {
  inset: 0;
  background: radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.52) 100%);
}

.ambient-red {
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.18;
}

.ambient-red-top {
  top: -14rem;
  right: -7rem;
  background: rgba(240, 50, 47, 0.7);
}

.ambient-red-bottom {
  bottom: -16rem;
  left: -8rem;
  background: rgba(124, 16, 18, 0.72);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 24px;
  display: grid;
  gap: 14px;
}

.hero-panel,
.form-panel,
.thank-you-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow);
}

.hero-panel,
.form-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 28%),
    var(--panel);
}

.hero-panel::before,
.form-panel::before,
.thank-you-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 72% 46%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(130deg, transparent 0 60%, rgba(204, 31, 32, 0.12) 60% 66%, transparent 66%),
    linear-gradient(0deg, rgba(204, 31, 32, 0.14), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.hero-inner,
.form-header,
.signup-form,
.thank-you-wrap > * {
  position: relative;
  z-index: 1;
}

.hero-panel {
  padding: 22px 18px 24px;
}

.hero-topline {
  margin-bottom: 34px;
}

.brand-lockup,
.brand-stack {
  display: grid;
  gap: 10px;
}

.brand-stack-kicker,
.eyebrow,
.form-overline,
.hero-kicker,
.offer-band-label,
.thank-you-badge {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-stack-kicker,
.form-overline,
.hero-kicker,
.thank-you-badge {
  color: #f4beb6;
  font-size: 0.75rem;
  font-weight: 800;
}

.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-logo {
  max-height: 56px;
  width: auto;
}

.logo-fallback {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
}

.brand-logo:not([src]),
.brand-logo[src=""],
.brand-logo.is-hidden {
  display: none;
}

.eyebrow {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-copy {
  max-width: 38rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.4rem, 15vw, 7.25rem);
  text-wrap: balance;
}

h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.subheadline,
.form-header p,
.thank-you-wrap p {
  color: var(--muted);
  line-height: 1.6;
}

.subheadline {
  margin: 16px 0 0;
  max-width: 32rem;
  font-size: 1rem;
}

.offer-band {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240, 50, 47, 0.24);
  background:
    linear-gradient(135deg, rgba(204, 31, 32, 0.18), rgba(95, 12, 13, 0.6)),
    rgba(12, 12, 12, 0.65);
}

.offer-band-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
}

.offer-band strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.benefit-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-panel {
  padding: 22px 18px 20px;
}

.form-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-strong), var(--accent-dark));
}

.form-header {
  margin-bottom: 18px;
}

.form-header p {
  margin: 10px 0 0;
  font-size: 0.96rem;
}

.signup-form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

label {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.065);
}

input::placeholder {
  color: rgba(245, 241, 234, 0.38);
}

input:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(240, 50, 47, 0.22);
  outline-offset: 2px;
}

input:focus {
  border-color: rgba(240, 50, 47, 0.72);
  box-shadow: 0 0 0 4px rgba(240, 50, 47, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

input[aria-invalid="true"] {
  border-color: rgba(255, 170, 163, 0.8);
}

.consent-block {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.checkbox-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.58;
  text-transform: none;
  letter-spacing: normal;
}

.checkbox-row input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent-strong);
  border-radius: 5px;
}

.checkbox-row input[type="checkbox"][aria-invalid="true"] {
  outline: 2px solid rgba(255, 170, 163, 0.52);
  outline-offset: 2px;
}

.field-error {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.84rem;
  color: var(--error);
}

.consent-error {
  padding-left: 34px;
}

.form-status {
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: rgba(185, 58, 53, 0.14);
  border: 1px solid rgba(255, 180, 170, 0.18);
  color: var(--error);
}

.form-status.is-success {
  background: rgba(61, 123, 68, 0.16);
  border: 1px solid rgba(154, 221, 175, 0.2);
  color: var(--success);
}

.cta-button {
  position: relative;
  min-height: 60px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, #f0322f 0%, #cf1d1f 52%, #941113 100%);
  box-shadow: 0 18px 32px rgba(204, 31, 32, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.cta-button:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(204, 31, 32, 0.4);
  filter: saturate(1.06);
}

.cta-button:active:not([disabled]) {
  transform: translateY(1px) scale(0.99);
}

.cta-button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.cta-loading {
  display: none;
}

.cta-button.is-loading .cta-text {
  display: none;
}

.cta-button.is-loading .cta-loading {
  display: inline;
}

.thank-you-wrap {
  z-index: 1;
  width: min(760px, calc(100% - 24px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 22px;
  display: grid;
  align-content: center;
  gap: 14px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, rgba(204, 31, 32, 0.08), transparent 32%),
    var(--panel-strong);
}

.thank-you-badge {
  justify-self: center;
}

.thank-you-brand-stack {
  justify-items: center;
  margin-bottom: 2px;
}

.thank-you-logo-frame {
  margin: 0 auto;
}

.thank-you-wrap h1 {
  max-width: none;
}

.thank-you-note {
  color: #f4beb6;
}

.secondary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin: 10px auto 0;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.secondary-link:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 50, 47, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease forwards;
}

.reveal-delay {
  animation-delay: 0.12s;
}

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

@media (min-width: 940px) {
  .page {
    min-height: 100vh;
    align-items: stretch;
    grid-template-columns: minmax(0, 1.14fr) minmax(400px, 0.86fr);
    gap: 18px;
    padding: 18px 0;
  }

  .hero-panel,
  .form-panel {
    min-height: calc(100vh - 36px);
  }

  .hero-panel {
    display: flex;
    align-items: stretch;
    padding: 34px 32px 30px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
  }

  .hero-topline {
    margin-bottom: 48px;
  }

  .form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 26px 24px;
  }

  .thank-you-wrap {
    padding: 48px 36px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
