/* =========================================================
   SurfTheWeb.ai — Shared Design System
   Oceanic Premium · Navy, Teal, Gold
   Fonts: Cabinet Grotesk (display) + Satoshi (body)
   ========================================================= */

/* ── Font Imports ───────────────────────────────────────── */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800,900&f[]=satoshi@400,500,700&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  /* Type */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --sp-1:  0.25rem; --sp-2:  0.5rem;  --sp-3:  0.75rem;
  --sp-4:  1rem;    --sp-5:  1.25rem; --sp-6:  1.5rem;
  --sp-8:  2rem;    --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;    --sp-24: 6rem;

  /* Brand palette — Oceanic Premium */
  --ocean-abyss:  #03080F;
  --ocean-deep:   #060F1E;
  --ocean-mid:    #0B2545;
  --ocean-upper:  #134E7A;
  --wave:         #2196A8;
  --wave-light:   #4BB8C8;
  --teal:         #00C8D4;
  --teal-dim:     rgba(0,200,212,0.15);
  --gold:         #D4A017;
  --gold-light:   #F0C040;
  --gold-dim:     rgba(212,160,23,0.15);

  /* Surfaces */
  --bg:         #050E1A;
  --surface:    #0A1929;
  --surface-2:  #0F2338;
  --surface-3:  #152B48;
  --border:     #1A3455;
  --divider:    #0F2338;

  /* Text */
  --text:       #D4E8F5;
  --text-muted: #6E9BB5;
  --text-faint: #2F4A65;

  /* Semantic */
  --green:  #22C55E;
  --red:    #EF4444;

  /* Radius */
  --r-sm:   0.375rem;
  --r-md:   0.5rem;
  --r-lg:   0.875rem;
  --r-xl:   1.25rem;
  --r-2xl:  1.75rem;
  --r-full: 9999px;

  /* Transitions */
  --ease: 180ms cubic-bezier(0.16,1,0.3,1);

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(0,0,0,0.4);
  --sh-md: 0 4px 20px rgba(0,0,0,0.5);
  --sh-lg: 0 12px 48px rgba(0,0,0,0.6);
  --sh-glow: 0 0 32px rgba(0,200,212,0.15);

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 780px;

  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg:         #F0F5FA;
  --surface:    #FFFFFF;
  --surface-2:  #EAF2FA;
  --surface-3:  #DDE9F5;
  --border:     #C0D4E8;
  --divider:    #DDE9F5;
  --text:       #0D1F35;
  --text-muted: #4A6680;
  --text-faint: #9BB8CC;
  --sh-sm: 0 1px 4px rgba(11,37,69,0.08);
  --sh-md: 0 4px 20px rgba(11,37,69,0.12);
  --sh-lg: 0 12px 48px rgba(11,37,69,0.18);
  --sh-glow: 0 0 32px rgba(0,160,181,0.1);
}

/* ── Base Reset ─────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background 0.3s ease, color 0.3s ease;
}
img,svg { display: block; max-width: 100%; height: auto; }
ul[role="list"],ol[role="list"] { list-style: none; }
input,button,select,textarea { font: inherit; color: inherit; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.12; }
p,li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
a,button,[role="button"],input { transition: color var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease), opacity var(--ease); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: var(--r-sm); }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ── Layout Utilities ───────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: clamp(var(--sp-6), 5vw, var(--sp-16));
}
.wrap--narrow { max-width: var(--max-w-narrow); }
.section { padding-block: clamp(var(--sp-16), 10vw, var(--sp-24)); }
.section--sm { padding-block: clamp(var(--sp-10), 6vw, var(--sp-16)); }

/* ── Typography Helpers ─────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  animation: blink 2.2s ease-in-out infinite;
}
.eyebrow-dot--gold { background: var(--gold); }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.65)} }

.section-head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-16); }
.section-head h2 {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 800; color: var(--text); margin-block: var(--sp-4) var(--sp-5);
}
.section-head p { font-size: var(--text-base); color: var(--text-muted); line-height: 1.7; }

.grad-text {
  background: linear-gradient(120deg, var(--teal) 0%, var(--wave-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gold-text { color: var(--gold); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.78rem 1.6rem; border-radius: var(--r-full);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
}
.btn-lg  { padding: 0.95rem 2.1rem; font-size: var(--text-base); }
.btn-sm  { padding: 0.45rem 1rem;   font-size: var(--text-xs); }
.btn-xs  { padding: 0.35rem 0.75rem; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }

.btn-primary   { background: var(--teal); color: #000; border-color: var(--teal); font-weight: 700; }
.btn-primary:hover { background: var(--wave-light); border-color: var(--wave-light); }
.btn-gold      { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost     { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-muted); }
.btn-outline   { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-dim); }
.btn-dark      { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-dark:hover { background: var(--surface-3); }
.btn-white-ghost { background: transparent; color: rgba(212,232,245,0.85); border-color: rgba(212,232,245,0.25); }
.btn-white-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(212,232,245,0.5); }

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-nav.scrolled { box-shadow: var(--sh-md); }
.nav-wrap {
  display: flex; align-items: center; gap: var(--sp-6);
  max-width: var(--max-w); margin: 0 auto;
  padding: var(--sp-4) clamp(var(--sp-6), 5vw, var(--sp-16));
}

/* Logo SVG */
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo-svg { width: 188px; height: 42px; overflow: visible; }

.nav-links {
  display: flex; align-items: center; gap: var(--sp-1);
  list-style: none; margin-left: auto;
}
.nav-link {
  font-size: var(--text-sm); font-weight: 500; color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--teal); }
.nav-link--gold { color: var(--gold); font-weight: 600; }
.nav-link--gold:hover { color: var(--gold-light); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: var(--sp-4); }
.theme-toggle {
  width: 34px; height: 34px; border-radius: var(--r-md);
  border: 1px solid var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }

.nav-hamburger {
  display: none; width: 34px; height: 34px;
  align-items: center; justify-content: center;
  color: var(--text-muted);
}
.mobile-menu {
  display: none; flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--surface); padding: var(--sp-4) clamp(var(--sp-6),5vw,var(--sp-16));
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: var(--sp-3) 0;
  font-size: var(--text-base); font-weight: 500; color: var(--text-muted);
  border-bottom: 1px solid var(--divider);
}
.mobile-menu a:hover { color: var(--teal); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── TICKER ──────────────────────────────────────────────── */
.ticker {
  height: 36px; display: flex; align-items: center;
  background: var(--ocean-mid); overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.ticker-badge {
  flex-shrink: 0; background: var(--teal); color: #000;
  font-size: 10px; font-weight: 800; letter-spacing: 0.15em;
  padding: 0 var(--sp-4); height: 100%; display: flex; align-items: center;
}
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-track::before,.ticker-track::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 50px; z-index: 1; pointer-events: none;
}
.ticker-track::before { left: 0; background: linear-gradient(to right, var(--ocean-mid), transparent); }
.ticker-track::after  { right: 0; background: linear-gradient(to left, var(--ocean-mid), transparent); }
.ticker-scroll {
  display: flex; align-items: center; white-space: nowrap;
  animation: tick 60s linear infinite;
  will-change: transform;
}
.ticker-scroll:hover { animation-play-state: paused; }
@keyframes tick { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.t-item { display: inline-flex; align-items: center; gap: var(--sp-2); padding-inline: var(--sp-6); font-size: var(--text-xs); color: rgba(180,218,238,0.8); }
a.t-item:hover { color: #fff; }
a.t-item:hover span:last-child { text-decoration: underline; text-underline-offset: 2px; }
.t-sep { color: rgba(255,255,255,0.18); padding-inline: var(--sp-1); }
.t-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--teal); background: rgba(0,200,212,0.12);
  border: 1px solid rgba(0,200,212,0.3); padding: 2px 6px; border-radius: 3px;
}
.t-tag--gold { color: var(--gold); background: rgba(212,160,23,0.12); border-color: rgba(212,160,23,0.3); }
/* Source-specific tag colours */
.t-tag--tc { color: #00C8D4; background: rgba(0,200,212,0.12); border-color: rgba(0,200,212,0.3); }
.t-tag--vb { color: #a78bfa; background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.3); }
.t-tag--tv { color: #fb923c; background: rgba(251,146,60,0.12); border-color: rgba(251,146,60,0.3); }
.t-sep { color: var(--teal); opacity: 0.35; font-size: 1.1em; padding-inline: var(--sp-3); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: clamp(var(--sp-12), 8vw, var(--sp-20));
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-12);
  padding-bottom: var(--sp-12);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); }
.footer-tagline { font-size: var(--text-sm); color: var(--text-muted); }
.footer-contact { font-size: var(--text-xs); color: var(--text-faint); line-height: 1.8; }
.footer-col h5 {
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
  color: var(--text); margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { font-size: var(--text-sm); color: var(--text-muted); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--sp-5) 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-4);
}
.footer-bottom p { font-size: var(--text-xs); color: var(--text-faint); max-width: none; }
.footer-bottom a { color: var(--teal); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(3,8,15,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: clamp(var(--sp-8), 5vw, var(--sp-12));
  max-width: 480px; width: 100%; position: relative;
  box-shadow: var(--sh-lg);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border: 1px solid var(--border);
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.modal-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--gold-dim); border: 1px solid rgba(212,160,23,0.3);
  border-radius: var(--r-full); padding: var(--sp-1) var(--sp-4);
  font-size: var(--text-xs); font-weight: 700; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.modal-box h2 {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 800; color: var(--text); margin-bottom: var(--sp-3);
}
.modal-box p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; margin-bottom: var(--sp-6); }
.modal-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.modal-form input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); font-size: var(--text-sm); color: var(--text);
}
.modal-form input:focus { outline: none; border-color: var(--teal); }
.modal-form input::placeholder { color: var(--text-faint); }
.modal-success {
  display: none; flex-direction: column; align-items: center;
  gap: var(--sp-4); text-align: center;
}
.modal-success .check-ring {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(34,197,94,0.1); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 1.6rem;
}
.modal-success h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.modal-success p { font-size: var(--text-sm); color: var(--text-muted); }
.modal-perks { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.modal-perk {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface-2); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); font-size: var(--text-xs); color: var(--text-muted);
}
.perk-check { color: var(--teal); font-weight: 700; flex-shrink: 0; }
