/* ============================================================
   FanSeat: Design tokens & base styles
   Theme direction: professional "recruiting" palette:
   deep navy + electric blue + teal. NOT a betting theme.
   ============================================================ */

:root {
  /* brand */
  --navy-950: #071527;
  --navy-900: #0b1f3a;
  --navy-800: #10294d;
  --navy-700: #16335f;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;

  /* surfaces */
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e3e9f2;
  --line-strong: #d3dceb;

  /* text */
  --text-900: #0d1b2e;
  --text-700: #3a4b63;
  --text-500: #5f708a;
  --text-400: #8b9bb0;

  /* accents */
  --success: #0ea47a;
  --success-bg: #e6f7f1;
  --danger: #e11d48;
  --danger-bg: #fdeaf0;
  --warn: #d97706;

  /* gradients */
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #0ea5b7 55%, #14b8a6 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.08));
  --grad-navy: linear-gradient(160deg, #0b1f3a 0%, #0e2a55 60%, #0f3b63 100%);

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 6px 18px -6px rgba(11, 31, 58, 0.16), 0 2px 6px rgba(11, 31, 58, 0.06);
  --shadow-lg: 0 24px 60px -18px rgba(11, 31, 58, 0.28), 0 8px 20px -8px rgba(11, 31, 58, 0.12);
  --shadow-glow: 0 10px 34px -8px rgba(37, 99, 235, 0.45);

  /* radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;

  /* layout */
  --container: 1180px;
  --nav-h: 74px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-900);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
svg { display: inline-block; vertical-align: middle; width: 1em; height: 1em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--navy-900); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-full);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -8px rgba(37, 99, 235, 0.55); }
.btn-ghost {
  color: var(--navy-700);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: #fff; border-color: var(--blue-500); color: var(--blue-600); }
.btn-light {
  color: var(--navy-900);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-light {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255,255,255,0.8); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn .spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chip / badge ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 7px 14px;
  border-radius: var(--r-full);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,184,166,.25); }
.badge-dot {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: var(--r-full);
  border: 2px solid #fff;
  font-variant-numeric: tabular-nums;
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; text-align: left; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-700); }
.field .hint { font-size: 12.5px; color: var(--text-400); }
.input, .textarea {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font: inherit;
  color: var(--text-900);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.input:focus, .textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}
.textarea { resize: vertical; min-height: 96px; }

/* ---------- section shells ---------- */
.section { padding: 96px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--text-500); font-size: 17px; max-width: 640px; margin-top: 14px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- toasts (global host) ---------- */
#toastHost { position: fixed; z-index: 3000; top: 84px; right: 18px; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 36px)); }
.toast {
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 13px 16px;
  font-size: 14px; color: var(--text-700);
  border-left: 4px solid var(--blue-500);
  display: flex; align-items: flex-start; gap: 10px;
  transform: translateX(120%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast b { color: var(--navy-900); }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c3cfdf; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a9bad1; background-clip: content-box; border: 2px solid transparent; }

/* ---------- generic reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
}
