:root {
  color-scheme: dark;
  --navy-950: #031022;
  --navy-900: #071b35;
  --navy-800: #0b294d;
  --blue: #1d73ea;
  --orange: #9be541;
  --orange-2: #b9f36f;
  --white: #f8fbff;
  --muted: #aebcd0;
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgba(9, 30, 56, 0.9);
  font-family: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(29, 115, 234, 0.28), transparent 40rem),
    linear-gradient(160deg, #020a17 0%, var(--navy-950) 55%, #061c33 100%);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 500px;
  padding: 32px clamp(20px, 6vw, 72px) 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 16, 34, 0.98) 0%, rgba(3, 16, 34, 0.83) 52%, rgba(3, 16, 34, 0.34) 100%),
    url("/assets/basketball-hero.png") center right / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: -4rem;
  bottom: 0;
  z-index: -1;
  width: 75%;
  height: 7px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--orange));
  transform: skewX(-28deg);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d7e4f6;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.hero-copy {
  width: min(660px, 100%);
  margin-top: 72px;
}

.eyebrow,
.step-label {
  margin: 0 0 8px;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4.6rem, 11vw, 8rem);
  font-weight: 800;
  line-height: 0.76;
  letter-spacing: -0.035em;
}

h1 span {
  display: inline-block;
  margin-top: 0.15em;
  color: var(--orange);
}

.hero-lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: #d5dfec;
  font-size: clamp(1.02rem, 2.4vw, 1.25rem);
  line-height: 1.6;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.quick-facts span,
.badge {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 10, 23, 0.52);
  color: #e5edf7;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

main {
  position: relative;
  z-index: 1;
  margin-top: -48px;
  padding: 0 clamp(14px, 5vw, 56px) 56px;
}

.form-card {
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(12, 39, 72, 0.96), rgba(4, 18, 36, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
}

.badge {
  border-color: rgba(155, 229, 65, 0.5);
  color: #dcffb4;
  white-space: nowrap;
}

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

.team-field {
  max-width: 700px;
  margin-bottom: 26px;
}

label,
legend {
  color: #d8e2ef;
  font-size: 0.88rem;
  font-weight: 700;
}

input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  outline: none;
  color: var(--white);
  background: rgba(0, 8, 20, 0.5);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input[type="text"]::placeholder {
  color: #718199;
}

input[type="text"]:focus {
  border-color: var(--orange);
  background: rgba(0, 8, 20, 0.74);
  box-shadow: 0 0 0 3px rgba(155, 229, 65, 0.17);
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.player-card {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.player-card legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 8px;
  font-size: 0.94rem;
}

.player-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #17100b;
  background: var(--orange);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.consent input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.form-status {
  min-height: 24px;
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.error {
  color: #ff9f9f;
}

button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  color: #130b04;
  background: linear-gradient(135deg, var(--orange), #c5f77f);
  box-shadow: 0 14px 32px rgba(155, 229, 65, 0.22);
  cursor: pointer;
  font-weight: 800;
  transition: transform 150ms ease, filter 150ms ease;
}

button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  filter: grayscale(0.45);
  opacity: 0.7;
}

button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.success-panel {
  padding: 38px 12px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  color: #0b1d15;
  background: #55d890;
  font-size: 2.2rem;
  font-weight: 900;
}

.success-panel p:not(.step-label) {
  color: var(--muted);
}

.success-panel strong {
  display: block;
  margin: 16px auto 26px;
  color: var(--orange-2);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.secondary-button {
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.privacy-note {
  max-width: 780px;
  margin: 22px auto 0;
  color: #8797ac;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .hero {
    min-height: 520px;
    padding-top: 22px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(3, 16, 34, 0.42) 0%, rgba(3, 16, 34, 0.9) 58%, rgba(3, 16, 34, 1) 100%),
      url("/assets/basketball-hero.png") 66% center / cover no-repeat;
  }

  .hero-copy {
    margin-top: 76px;
  }

  .players-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  button {
    width: 100%;
  }
}

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