:root {
  --navy-900: #0a1020;
  --navy-800: #0d152b;
  --navy-700: #122046;
  --navy-600: #1a2c5a;
  --gold-300: #e7c878;
  --gold-400: #d4af6a;
  --gold-500: #cda44e;
  --bg: var(--navy-900);
  --bg-alt: var(--navy-800);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(231, 200, 120, 0.08);
  --border: rgba(231, 200, 120, 0.16);
  --accent: var(--gold-400);
  --accent-strong: var(--gold-300);
  --text: #eef1f8;
  --text-muted: #aab3c8;
  --text-faint: #7d8aa6;
  --maxw: 900px;
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 16, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: .5rem; }
.brand__text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.brand__accent { color: var(--accent); }
.nav__menu { display: flex; align-items: center; gap: 1rem; }
.nav__user { color: var(--text-muted); font-size: .875rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--navy-900);
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn--small { padding: .4rem 1rem; font-size: .8rem; }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-hover); }

/* Flash messages */
.flash {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.flash--error { background: rgba(220, 50, 50, 0.15); border: 1px solid rgba(220, 50, 50, 0.3); color: #ff8888; }
.flash--success { background: rgba(50, 180, 80, 0.15); border: 1px solid rgba(50, 180, 80, 0.3); color: #88ff99; }

/* Main */
.main { flex: 1; padding: 3rem 0; }

/* Auth card */
.auth-card {
  max-width: 420px;
  margin: 2rem auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.auth-card__sub { color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }
.auth-card form { display: flex; flex-direction: column; gap: .75rem; }
.auth-card label { font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.auth-card input {
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font-sans);
}
.auth-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.auth-card .btn { margin-top: .75rem; width: 100%; }

/* NDA card */
.nda-card {
  max-width: 700px;
  margin: 1rem auto;
}
.nda-card h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.nda-card__sub { color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }
.nda-card__document {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  max-height: 500px;
  overflow-y: auto;
  font-size: .9rem;
  line-height: 1.7;
}
.nda-card__document h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.nda-card__document h3 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: .5rem; color: var(--accent); }
.nda-card__document p { margin-bottom: .75rem; color: var(--text-muted); }
.nda-card__document em { color: var(--text); font-style: italic; }
.nda-card__form { display: flex; flex-direction: column; gap: .75rem; }
.nda-card__form label { font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.nda-card__form input[type="text"] {
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font-sans);
}
.nda-card__form input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.nda-card__agree {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: .5rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.nda-card__agree input[type="checkbox"] {
  margin-top: .15rem;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nda-card__agree label { font-size: .9rem; color: var(--text); cursor: pointer; }
.nda-card__form .btn { margin-top: .75rem; align-self: flex-start; }
.required { color: #ff6666; }

/* Content page */
.content-page h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.content-page__sub { color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }
.content-page__empty { color: var(--text-faint); font-style: italic; }
.content-grid { display: flex; flex-direction: column; gap: 1rem; }
.content-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.content-card__icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.content-card__info { flex: 1; min-width: 200px; }
.content-card__info h3 { font-size: 1rem; margin-bottom: .15rem; }
.content-card__meta { font-size: .8rem; color: var(--text-faint); }
.content-card__actions { display: flex; gap: .5rem; }
.content-card__player { width: 100%; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--text-faint);
}
.footer__brand { font-weight: 600; }
