:root {
  color-scheme: dark;

  /* Palette — edit these variables to swap the theme */
  --bg: #0B0F14;
  --bg-alt: #10161E;
  --surface: #141C26;
  --surface-hover: #192330;
  --border: #2B394A;
  --border-input: #5A6B82;

  --text: #F1F5F9;
  --text-muted: #A8B3C2;
  --accent: #00B1E2;
  --accent-hover: #26C6F3;
  --accent-ink: #05131A;

  --success-bg: #0B2922;
  --success-border: #22C55E;
  --success-text: #86EFAC;

  --error-bg: #2D1218;
  --error-border: #F87171;
  --error-text: #FCA5A5;

  /* Typography & Layout */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--accent);
}

.nav-list a.nav-external {
  color: var(--accent);
}

/* Hero */
.hero {
  padding-block: 3.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text);
  font-weight: 500;
}

.hero-sub {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-network-link {
  display: inline-block;
  border-radius: 50%;
}

.hero-network-logo {
  width: min(240px, 60vw);
  height: auto;
  border-radius: 50%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border-input);
}

.btn-secondary:hover {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--accent);
}

.btn-full {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.btn-arrow,
.inline-arrow {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding-block: 3.5rem;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
}

/* Club Cards */
.club-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.club-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.club-card:hover {
  border-color: var(--accent);
  background-color: var(--surface-hover);
}

.club-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 0.75rem;
  background-color: #05070A;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.club-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.club-card h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.card-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

/* Partner & Contact */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.partner-info p {
  color: var(--text-muted);
  max-width: 52ch;
}

.verify-list {
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.verify-list > div {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.verify-list dt {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.verify-list dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.form-card {
  padding: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-card h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background-color: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.form-status.is-error {
  display: block;
  background-color: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-block-end: 1.25rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

.req {
  color: var(--accent);
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  font-size: max(1rem, 1em);
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.875rem;
  min-height: 48px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:user-invalid,
textarea:user-invalid,
[aria-invalid="true"] {
  border-color: var(--error-border);
}

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-error {
  font-size: 0.875rem;
  color: var(--error-text);
  min-height: 1.25em;
}

/* Legal / Prose */
.legal-page .prose {
  max-width: 72ch;
  margin-inline: 0;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose p {
  color: var(--text-muted);
}

.prose p.lead {
  font-size: 1.125rem;
  color: var(--text);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

.back-link {
  margin-top: 2.5rem;
}

/* Footer */
.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-entity {
  margin: 0;
  font-weight: 700;
}

.footer-contact {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.trademark-notice {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (min-width: 768px) {
  .hero {
    padding-block: 4.5rem 4rem;
  }

  .hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .club-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .partner-grid {
    grid-template-columns: 1fr 1.1fr;
  }

  .form-card {
    padding: 2rem;
  }
}

@media (pointer: coarse) {
  input[type="text"],
  input[type="email"],
  textarea,
  .btn {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .club-card {
    transition: none;
  }
}

@media (forced-colors: active) {
  .club-card,
  .form-card,
  .btn {
    border: 1px solid CanvasText;
  }
  :where(a, button, input, textarea, [tabindex]):focus-visible {
    outline: 3px solid Highlight;
  }
}
