:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #c9d5e1;
  --accent: #71c7ff;
  --panel: rgba(7, 19, 33, 0.78);
  --field: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.2);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: #0a1625;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: url("assets/hero.webp") center / cover no-repeat;
  isolation: isolate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 10, 19, 0.84) 0%, rgba(3, 10, 19, 0.52) 52%, rgba(3, 10, 19, 0.28) 100%),
    linear-gradient(0deg, rgba(3, 10, 19, 0.48), rgba(3, 10, 19, 0.1));
}

.panel {
  width: min(100%, 620px);
  margin-right: auto;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-block;
  color: var(--ink);
  font-size: 3.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.copy { margin: clamp(1.25rem, 7vh, 0.5rem) 0 1.75rem; }

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.intro {
  max-width: 52ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.form { display: grid; gap: 0.9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; }

label, legend {
  font-size: 0.82rem;
  font-weight: 700;
}

label span { color: #a9b5c1; font-weight: 500; }

.audience {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.audience legend { margin-bottom: 0.4rem; }
.audience__options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }

.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--field);
  color: var(--muted);
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.choice input:checked + span {
  border-color: var(--accent);
  background: rgba(113, 199, 255, 0.16);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(113, 199, 255, 0.12);
}

.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="text"], input[type="email"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--field);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input::placeholder { color: #9aa9b8; }

input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 3px rgba(113, 199, 255, 0.18);
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #071321;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { cursor: wait; opacity: 0.65; }

.form-status { min-height: 1.4em; margin: 0; font-size: 0.9rem; font-weight: 700; }
.form-status[data-state="success"] { color: #a9f5bf; }
.form-status[data-state="error"] { color: #ffb1b1; }

.privacy, footer { margin: 0; color: #a9b5c1; font-size: 0.75rem; }
footer { margin-top: 2rem; }
.honeypot { position: absolute; left: -9999px; }

@media (max-width: 640px) {
  .hero { align-items: end; padding: 0; background-position: 60% center; }
  .panel { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 24px 24px 0 0; }
  .copy { margin: 1.3rem 0 1.5rem; }
  h1 { max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Confirmation page */
.confirmation {
  min-height: min(620px, calc(100svh - 6rem));
  display: flex;
  flex-direction: column;
}

.confirmation__copy {
  margin: auto 0;
  padding: clamp(3rem, 10vh, 6rem) 0;
}

.confirmation__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(113, 199, 255, 0.45);
  border-radius: 50%;
  background: rgba(113, 199, 255, 0.14);
  color: var(--accent);
}

.confirmation__icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation h1 { max-width: 11ch; }

.button-link {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #071321;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button-link:hover { transform: translateY(-1px); }
.button-link:active { transform: translateY(0); }
.confirmation footer { margin-top: 2rem; }

@media (max-width: 640px) {
  .confirmation { min-height: 72svh; }
  .confirmation__copy { padding: 3.5rem 0; }
}
