/* TrueNorthArena - Main Design System */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Inter:wght@400;500;600&family=Oswald:wght@500;600;700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  /* Primary - Deep Arctic Teal */
  --primary-100: #e0f4f4;
  --primary-200: #b3e6e6;
  --primary-300: #7dd3d3;
  --primary-400: #3fbfbf;
  --primary-500: #0fa8a8;
  --primary-600: #088a8a;
  --primary-700: #056a6a;
  --primary-800: #034f4f;

  /* Secondary - Boreal Amber */
  --secondary-100: #fff3e0;
  --secondary-200: #ffe0b2;
  --secondary-300: #ffcc80;
  --secondary-400: #ffb347;
  --secondary-500: #ff9800;
  --secondary-600: #e68200;
  --secondary-700: #c46e00;

  /* Accent - Aurora Green */
  --accent-100: #e8f8e8;
  --accent-200: #c5eec5;
  --accent-300: #8fdb8f;
  --accent-400: #4ec94e;
  --accent-500: #22b522;
  --accent-600: #199819;

  /* Neutrals */
  --neutral-0:   #ffffff;
  --neutral-50:  #f8f9fa;
  --neutral-100: #f0f2f4;
  --neutral-200: #e2e6ea;
  --neutral-300: #c8cfd8;
  --neutral-400: #9aa3af;
  --neutral-500: #6b7684;
  --neutral-600: #4a5260;
  --neutral-700: #2e3540;
  --neutral-800: #1a2030;
  --neutral-900: #0d1117;

  /* Dark Surface */
  --surface-900: #07101a;
  --surface-800: #0d1a27;
  --surface-700: #122033;
  --surface-600: #1a2d43;
  --surface-500: #213550;

  /* Semantic */
  --success: #22b522;
  --warning: #ff9800;
  --error: #e53935;
  --info: #0fa8a8;

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow-teal: 0 0 24px rgba(15,168,168,0.35);
  --shadow-glow-amber: 0 0 24px rgba(255,152,0,0.35);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--surface-900);
  color: var(--neutral-100);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-400); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-300); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { line-height: 1.7; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--neutral-400); }
.text-center { text-align: center; }
.text-small { font-size: 0.875rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: var(--neutral-0);
  box-shadow: var(--shadow-glow-teal);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(15,168,168,0.5);
  color: var(--neutral-0);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-500));
  color: var(--neutral-900);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-amber);
  color: var(--neutral-900);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-500);
  color: var(--primary-400);
}
.btn-outline:hover {
  background: var(--primary-600);
  color: var(--neutral-0);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--neutral-200);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--neutral-0);
}

.btn-lg { padding: 16px 40px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ===== CARDS ===== */
.card {
  background: var(--surface-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}
.card:hover {
  border-color: rgba(15,168,168,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
}
.card-dark {
  background: var(--surface-800);
  border-color: rgba(255,255,255,0.04);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-teal { background: rgba(15,168,168,0.15); color: var(--primary-300); border: 1px solid rgba(15,168,168,0.3); }
.badge-amber { background: rgba(255,152,0,0.15); color: var(--secondary-300); border: 1px solid rgba(255,152,0,0.3); }
.badge-green { background: rgba(34,181,34,0.15); color: var(--accent-300); border: 1px solid rgba(34,181,34,0.3); }

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: var(--space-12); }
.section-header .eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-400);
  margin-bottom: var(--space-3);
  display: block;
}
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { color: var(--neutral-400); max-width: 560px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
}
.site-nav.scrolled {
  background: rgba(7,16,26,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-3) 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neutral-0);
  letter-spacing: 0.04em;
}
.nav-logo-text span { color: var(--secondary-400); }
.nav-links { display: flex; align-items: center; gap: var(--space-8); }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--neutral-300);
  letter-spacing: 0.02em;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary-400);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.nav-links a:hover { color: var(--neutral-0); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: var(--space-2);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--neutral-200);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface-900);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--neutral-200);
  letter-spacing: 0.05em;
}
.mobile-menu a:hover { color: var(--primary-400); }
.mobile-menu-close {
  position: absolute;
  top: var(--space-6); right: var(--space-6);
  background: none;
  color: var(--neutral-300);
  font-size: 1.5rem;
  padding: var(--space-2);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--surface-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-16) 0 0;
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-12); margin-bottom: var(--space-12); }
.footer-brand p { color: var(--neutral-400); font-size: 0.9rem; line-height: 1.7; margin-top: var(--space-4); max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-300);
  margin-bottom: var(--space-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col ul li a { color: var(--neutral-400); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-col ul li a:hover { color: var(--primary-300); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.88rem;
  color: var(--neutral-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a.footer-contact-item:hover { color: var(--primary-300); }
.footer-contact-icon { font-size: 0.95rem; flex-shrink: 0; }

.footer-disclaimer {
  background: var(--surface-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.footer-disclaimer p { font-size: 0.82rem; color: var(--neutral-400); line-height: 1.7; }
.footer-disclaimer strong { color: var(--neutral-300); }
.disclaimer-links { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-4); }
.disclaimer-links a { font-size: 0.82rem; color: var(--primary-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.85rem; color: var(--neutral-500); }
.footer-age-badge {
  background: rgba(229,57,53,0.15);
  border: 1px solid rgba(229,57,53,0.3);
  color: #ef9a9a;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== AGE GATE ===== */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,16,26,0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.age-gate-box {
  background: var(--surface-700);
  border: 1px solid rgba(15,168,168,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
}
.age-gate-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: 2rem;
}
.age-gate-box h2 { margin-bottom: var(--space-4); font-size: 1.8rem; }
.age-gate-box p { color: var(--neutral-400); margin-bottom: var(--space-8); font-size: 0.95rem; }
.age-gate-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.age-gate-check:hover { border-color: rgba(15,168,168,0.3); }
.age-gate-check input[type="checkbox"] { display: none; }
.age-gate-check .custom-checkbox {
  width: 20px; height: 20px;
  min-width: 20px;
  border: 2px solid var(--neutral-500);
  border-radius: var(--radius-sm);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: transparent;
}
.age-gate-check.checked .custom-checkbox {
  background: var(--primary-500);
  border-color: var(--primary-500);
}
.age-gate-check.checked .custom-checkbox::after {
  content: '';
  display: block;
  width: 6px; height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.age-gate-check span { font-size: 0.9rem; color: var(--neutral-300); line-height: 1.5; }
.age-gate-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}
.age-gate-btn:disabled {
  background: var(--neutral-700);
  color: var(--neutral-500);
  cursor: not-allowed;
  box-shadow: none;
}
.age-gate-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: white;
  box-shadow: var(--shadow-glow-teal);
}
.age-gate-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(15,168,168,0.55);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  max-width: 640px;
  background: var(--surface-600);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  z-index: 9000;
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  transform: translateY(120%);
  transition: transform var(--transition-slow);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-text h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: var(--space-2); color: var(--neutral-100); }
.cookie-text p { font-size: 0.85rem; color: var(--neutral-400); line-height: 1.6; }
.cookie-text a { color: var(--primary-400); }
.cookie-actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--surface-800) 0%, var(--surface-900) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(15,168,168,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero p { color: var(--neutral-400); font-size: 1.1rem; max-width: 600px; }
.page-hero.centered { text-align: center; }
.page-hero.centered p { margin: 0 auto; }

/* ===== CONTENT PAGE ===== */
.content-section { padding: var(--space-16) 0; }
.content-block { margin-bottom: var(--space-10); }
.content-block h2 { font-size: 1.5rem; margin-bottom: var(--space-4); color: var(--neutral-100); }
.content-block h3 { font-size: 1.15rem; margin-bottom: var(--space-3); color: var(--neutral-200); margin-top: var(--space-6); }
.content-block p { color: var(--neutral-400); margin-bottom: var(--space-4); }
.content-block ul { margin-left: var(--space-6); margin-bottom: var(--space-4); }
.content-block ul li { color: var(--neutral-400); margin-bottom: var(--space-2); list-style: disc; }
.content-block a { color: var(--primary-400); }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,168,168,0.3), transparent);
  margin: var(--space-8) 0;
}

/* ===== PULSE DOTS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(15,168,168,0.3); }
  50% { box-shadow: 0 0 40px rgba(15,168,168,0.6); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes aurora {
  0%, 100% { transform: translateX(0) translateY(0) scale(1); }
  33% { transform: translateX(30px) translateY(-20px) scale(1.1); }
  66% { transform: translateX(-20px) translateY(10px) scale(0.95); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-900); }
::-webkit-scrollbar-thumb { background: var(--neutral-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-600); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
  .cookie-banner { flex-direction: column; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .card { padding: var(--space-6); }
}
