/* ═══════════════════════════════════════════════════════
   WACKOWAVE — main.css
   Global design tokens, nav, footer, utilities
   Version: 3.0
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  --cobalt:   #0B2D6E;
  --cobalt2:  #1240A0;
  --cobalt3:  #1E56C8;
  --sky:      #4A90D9;
  --sky2:     #7BB3E8;
  --white:    #FFFFFF;
  --off:      #F7F8FA;
  --grey:     #EEF0F4;
  --border:   #DDE1EA;
  --mid:      #6B7280;
  --dark:     #111827;
  --ink:      #1F2937;
  --accent:   #E8F0FE;
  --fd: 'DM Serif Display', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --nav-h:    80px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fb);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  /* Safari: force GPU layer — prevents blank images */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--fb); }
ul { list-style: none; }

/* ─── UTILITIES ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cobalt3);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cobalt3);
  flex-shrink: 0;
}
.eyebrow.on-dark { color: var(--sky2); }
.eyebrow.on-dark::before { background: var(--sky2); }

.section-h2 {
  font-family: var(--fd);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-h2 em { color: var(--cobalt); font-style: italic; }
.section-h2.on-dark { color: white; }
.section-h2.on-dark em { color: var(--sky2); }

.section-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 32px;
}
.section-body.on-dark { color: rgba(255,255,255,0.5); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--fb);
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary   { background: var(--cobalt); color: white; }
.btn-primary:hover   { background: var(--cobalt2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(11,45,110,0.3); }
.btn-secondary { background: white; color: var(--cobalt); }
.btn-secondary:hover { background: var(--sky2); color: white; }
.btn-outline   { background: transparent; color: var(--cobalt); border: 2px solid var(--cobalt); }
.btn-outline:hover   { background: var(--cobalt); color: white; }
.btn-ghost-white { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost-white:hover { color: white; border-color: rgba(255,255,255,0.6); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  -webkit-transform: translateY(24px);
  transform: translateY(24px);
  transition: opacity 0.65s ease, -webkit-transform 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; -webkit-transform: none; transform: none; }
.reveal-left {
  opacity: 0;
  -webkit-transform: translateX(-24px);
  transform: translateX(-24px);
  transition: opacity 0.65s ease, -webkit-transform 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible { opacity: 1; -webkit-transform: none; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════
   MOBILE MENU
════════════════════════════════════════ */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9000;
  -webkit-tap-highlight-color: transparent;
}
.mob-overlay.open { display: block; }

.mob-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 88%;
  max-width: 360px;
  height: 100%;
  height: -webkit-fill-available;
  background: var(--cobalt);
  z-index: 9001;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 100px 40px 48px;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-menu.open { right: 0; }

.mob-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 32px;
  line-height: 1;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mob-close:hover { color: white; }

.mob-menu a {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mob-menu a:hover,
.mob-menu a:active { color: var(--sky2); }

.mob-menu .mob-cta {
  margin-top: 28px;
  background: var(--cobalt3);
  color: white !important;
  padding: 15px 28px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-bottom: none;
  border-radius: 2px;
}
.mob-menu .mob-cta:hover { background: var(--sky); }

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Scrolled state */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.07);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: var(--nav-h);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
  -webkit-transform: none;
  transform: none;
}
.logo-dark { display: none; }
.nav.scrolled .logo-light { display: none; }
.nav.scrolled .logo-dark  { display: block; }

/* Desktop nav links */
.nav-links {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { position: relative; }

.nav-btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}
.nav-btn:hover,
.nav-btn:focus { color: white; background: rgba(255,255,255,0.09); outline: none; }
.nav-btn.is-link { text-decoration: none; }

.nav.scrolled .nav-btn         { color: var(--ink); }
.nav.scrolled .nav-btn:hover   { color: var(--cobalt); background: var(--accent); }

.nav-chevron {
  display: inline-block;
  font-size: 9px;
  opacity: 0.55;
  transition: -webkit-transform 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.nav-item.open .nav-chevron { -webkit-transform: rotate(180deg); transform: rotate(180deg); }

/* ─── DROPDOWN ─── */
.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(8px);
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 10px 48px rgba(0, 0, 0, 0.13);
  padding: 8px;
  z-index: 600;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease,
              -webkit-transform 0.2s ease, transform 0.2s ease;
}

/* Open state — toggled by JS */
.nav-item.open .nav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-transform: translateX(-50%) translateY(0);
  transform: translateX(-50%) translateY(0);
}

/* Simple dropdown link */
.nav-drop a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-drop a:hover { background: var(--accent); color: var(--cobalt); }

/* Wide 2-column mega drop */
.nav-drop.wide {
  min-width: 580px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  left: 0;
  -webkit-transform: translateY(8px);
  transform: translateY(8px);
}
.nav-item.open .nav-drop.wide {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.drop-card {
  display: block;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.drop-card:hover { background: var(--accent); border-color: rgba(30,86,200,0.15); }
.drop-card-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--cobalt3); margin-bottom: 4px;
}
.drop-card-title { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.drop-card-desc  { font-size: 12px; color: var(--mid); line-height: 1.4; }

/* CTA button in nav */
.nav-cta {
  display: inline-block;
  background: var(--cobalt);
  color: white !important;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  margin-left: 10px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--cobalt2); }

/* Hamburger */
.nav-hamburger {
  display: none;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.85);
  transition: background 0.3s;
}
.nav.scrolled .nav-hamburger span { background: var(--ink); }

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1024px) {
  .nav-links { gap: 0; }
  .nav-btn   { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none !important; }
  .nav-hamburger        { display: -webkit-flex; display: flex; }
  .nav-inner            { padding: 0 20px; }
  .nav-logo img         { height: 42px; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 36px; }
}

/* ════════════════════════════════════════
   TICKER
════════════════════════════════════════ */
.ticker {
  background: var(--cobalt3);
  overflow: hidden;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.ticker-wrap {
  display: -webkit-inline-flex;
  display: inline-flex;
  white-space: nowrap;
  -webkit-animation: ticker-scroll 35s linear infinite;
  animation: ticker-scroll 35s linear infinite;
}
@-webkit-keyframes ticker-scroll {
  from { -webkit-transform: translateX(0); transform: translateX(0); }
  to   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  margin-right: 56px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.ticker-sep { margin-left: 56px; color: rgba(255,255,255,0.25); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: #060e1f;
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-wordmark {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 400;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
}
.footer-wordmark-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--sky);
  border-radius: 50%;
  margin-left: 3px;
  position: relative;
  top: -10px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.6;
}
.footer-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  max-width: 320px;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  display: block;
}
.footer-links {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  padding: 0;
}
.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sky2); }

.footer-bottom {
  padding: 24px 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-legal {
  display: -webkit-flex;
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
}
.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--sky2); }

/* Footer responsive */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-top  { grid-template-columns: 1fr; }
  footer       { padding: 56px 0 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── CONTAINER RESPONSIVE ─── */
@media (max-width: 768px) { .container { padding: 0 20px; } }
