:root {
  --bg: #060606;
  --text-muted: #a3a3a3;
  --border-input: rgba(255, 255, 255, 0.18);
  --input-bg: rgba(10, 10, 10, 0.65);
  --accent: #f14621;
  --accent-hover: #ff5c32;
  --radius: 10px;
  --safe-inline: max(1.25rem, env(safe-area-inset-left, 0));
  --safe-inline-end: max(1.25rem, env(safe-area-inset-right, 0));
  --hero-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-reveal-duration: 0.76s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-hex {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.bg-hex__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.bg-hex__mesh {
  pointer-events: none;
}

.bg-hex__tracers {
  opacity: 0.94;
}

/* Legacy wrapper (unused); kept for reduced-motion rules if reintroduced. */
.hex-tracer-node {
  transition: none;
}

/* pathLength="100", dash 18+82=100 → offset -100 loops without a visible seam */
.hex-tracer {
  opacity: 0.9;
  stroke-dasharray: 18 82;
  stroke-dashoffset: 0;
  animation-name: hex-run;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 28s;
  animation-delay: 0s;
}

@keyframes hex-run {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -100;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hex-tracer-node {
    transition: none !important;
  }

  .hex-tracer {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.42;
  }

  .hero__logo,
  .hero__divider,
  .hero__tagline,
  .cta,
  .site-footer__copyright {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem) var(--safe-inline) clamp(1.5rem, 4vh, 2.5rem) var(--safe-inline-end);
}

.hero__inner {
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 3vw, 1.35rem);
}

.hero__logo {
  width: min(92vw, 32rem);
  height: auto;
  max-height: min(18vh, 140px);
  object-fit: contain;
  object-position: center;
  animation: logo-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  transform-origin: center center;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    filter: brightness(1.35);
  }

  55% {
    filter: brightness(1.08);
  }

  to {
    opacity: 1;
    transform: none;
    filter: brightness(1);
  }
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 480px) {
  .hero__logo {
    max-height: min(22vh, 180px);
  }
}

@media (min-width: 768px) {
  .hero__inner {
    max-width: 40rem;
    gap: 1.5rem;
  }

  .hero__logo {
    width: min(90vw, 36rem);
    max-height: min(24vh, 200px);
  }

  .hero__tagline {
    max-width: min(90vw, 36rem);
  }
}

.hero__divider {
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  animation: hero-reveal var(--hero-reveal-duration) var(--hero-reveal-ease) 0.3s both;
}

.hero__tagline {
  margin: 0;
  max-width: min(92vw, 32rem);
  margin-inline: auto;
  font-size: clamp(1.3rem, 4.25vw, 1.9rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  animation: hero-reveal var(--hero-reveal-duration) var(--hero-reveal-ease) 0.44s both;
}

.hero__tagline-accent {
  color: var(--accent);
  font-weight: 600;
}

.cta {
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
  animation: hero-reveal calc(var(--hero-reveal-duration) + 0.04s) var(--hero-reveal-ease) 0.58s both;
}

.cta__row {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta__row {
    flex-direction: row;
    align-items: stretch;
    max-width: 36rem;
    gap: 0.65rem;
  }
}

.cta__input {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: #f5f5f5;
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta__input::placeholder {
  color: #737373;
}

.cta__input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.cta__input:focus-visible {
  border-color: rgba(241, 70, 33, 0.55);
  box-shadow: 0 0 0 3px rgba(241, 70, 33, 0.2);
}

.cta__button {
  flex-shrink: 0;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

@media (min-width: 640px) {
  .cta__button {
    width: auto;
    min-width: 11rem;
  }
}

.cta__button:hover {
  background: var(--accent-hover);
}

.cta__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cta__button:active {
  transform: scale(0.98);
}

.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0.65rem var(--safe-inline) calc(0.85rem + env(safe-area-inset-bottom, 0)) var(--safe-inline-end);
  text-align: center;
}

.site-footer__copyright {
  margin: 0;
  font-size: clamp(0.6875rem, 2vw, 0.75rem);
  color: #5c5c5c;
  line-height: 1.4;
  animation: hero-reveal var(--hero-reveal-duration) var(--hero-reveal-ease) 0.86s both;
}

.bg-hex--simple .bg-hex__svg {
  overflow: hidden;
}

.cta__error {
  width: 100%;
  max-width: 36rem;
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.8125rem;
  color: #fca5a5;
  text-align: center;
  line-height: 1.4;
}

.cta__button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.cta__button--loading {
  position: relative;
  color: transparent !important;
}

.cta__button--loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin: -0.575rem 0 0 -0.575rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cta-spin 0.65s linear infinite;
}

@keyframes cta-spin {
  to {
    transform: rotate(360deg);
  }
}

.thank-you.hero {
  align-items: center;
}

.thank-you__card {
  width: 100%;
  max-width: 28rem;
  padding: clamp(2rem, 6vw, 2.75rem) clamp(1.5rem, 5vw, 2.25rem);
  text-align: center;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.92) 0%, rgba(10, 10, 10, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(241, 70, 33, 0.06),
    0 24px 48px -12px rgba(0, 0, 0, 0.65),
    0 0 80px -20px rgba(241, 70, 33, 0.12);
  animation: thank-you-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes thank-you-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.thank-you__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  animation: thank-you-icon 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.thank-you__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes thank-you-icon {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  60% {
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.thank-you__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.thank-you__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.thank-you__message {
  margin: 0 0 1.75rem;
  font-size: clamp(0.95rem, 2.8vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.thank-you__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 20px -4px rgba(241, 70, 33, 0.45);
}

.thank-you__cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 28px -6px rgba(241, 70, 33, 0.55);
}

.thank-you__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.thank-you__cta:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .thank-you__card,
  .thank-you__icon {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .cta__button--loading::after {
    animation: none;
    border-color: rgba(255, 255, 255, 0.5);
    border-top-color: transparent;
  }
}
