/* ════════════════════════════════════════════════════════════
   VOYAGER AI — Global Stylesheet
   Brand: IJ Brand System (Warm White / Gold / Anthrazit)
   To change brand: edit :root variables only
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ══ RESET ══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ══ BRAND TOKENS ══ */
:root {
  --warm-white:  #FDFAF5;
  --gold:        #E8C97E;
  --gold-deep:   #C9A84C;
  --gold-pale:   rgba(201,168,76,.18);
  --blue:        #7BAFD4;
  --sand:        #EDE3D6;
  --sand-mid:    #D4B896;
  --anthrazit:   #3D3D3D;
  --stone:       #7a7265;
  --stone-light: #a89d94;

  --bg:          var(--warm-white);
  --bg-alt:      #F5F0E8;
  --border:      rgba(61,61,61,.10);
  --border-mid:  rgba(61,61,61,.15);
  --shadow:      0 1px 4px rgba(61,61,61,.06);
  --shadow-lg:   0 8px 32px rgba(61,61,61,.10);

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
  --mono:   'DM Mono', monospace;

  --mw: 1120px;
  --nav-h: 64px;
}

/* ══ BASE ══ */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--anthrazit);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ══ TYPOGRAPHY ══ */
h1, h2, h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  color: var(--anthrazit);
}
h1 { font-size: clamp(38px, 5.5vw, 68px); letter-spacing: -0.5px; }
h2 { font-size: clamp(28px, 3.5vw, 46px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--anthrazit);
}
p { color: var(--stone); line-height: 1.75; }
a { text-decoration: none; }

/* ══ LAYOUT ══ */
.w { max-width: var(--mw); margin: 0 auto; padding: 0 32px; }
section { padding: 64px 0; }
.bg-alt  { background: var(--bg-alt); }
.bg-dark { background: var(--anthrazit); }

/* ══ LABEL (MONO EYEBROW) ══ */
.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.label-light { color: var(--gold); }

/* ══ GOLD DIVIDER ══ */
.gold-rule {
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: 24px;
}

/* ══ UNIFIED NUMBER SYSTEM ══
   All large data figures → Cormorant Garamond Italic, gold-deep on light bg
   On dark backgrounds → use .num-light for gold (#E8C97E)
*/
.num-value {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-deep);
  line-height: 1;
}
.num-light { color: var(--gold); }

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all .28s ease;
  border: none;
}
.btn-primary { background: var(--anthrazit); color: var(--warm-white); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--anthrazit); border: 1.5px solid var(--border-mid); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--warm-white); border: 1.5px solid rgba(253,250,245,.3); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ══ NAV ALWAYS VISIBLE ══ */
nav, .nav-drawer { opacity: 1 !important; transform: none !important; }

/* ══ NAV ══ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(253,250,245,.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--anthrazit);
  text-decoration: none;
}
.nav-logo span { color: var(--gold-deep); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--anthrazit); }
.nav-cta {
  padding: 9px 22px !important;
  background: var(--anthrazit);
  color: var(--warm-white) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: background .25s !important;
}
.nav-cta:hover { background: var(--gold-deep) !important; color: var(--warm-white) !important; }

/* ══ HAMBURGER ══ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--anthrazit);
  transition: all .3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══ MOBILE NAV DRAWER ══ */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(253,250,245,.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px 32px;
  z-index: 199;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 32px rgba(61,61,61,.08);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 15px;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.nav-drawer a:hover { color: var(--anthrazit); }
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer .nav-cta {
  margin-top: 16px;
  text-align: center;
  padding: 14px 22px !important;
  font-size: 13px !important;
}

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

/* ══ FOOTER ══ */
footer {
  background: var(--anthrazit);
  color: rgba(253,250,245,.45);
  padding: 56px 0 40px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(253,250,245,.08);
}
.footer-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--warm-white);
  margin-bottom: 12px;
  display: block;
}
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 13px; color: rgba(253,250,245,.45); line-height: 1.6; max-width: 240px; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(253,250,245,.45);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--warm-white); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ══ CARDS — BASE VARIANTS ══ */
/* Top-border card (light sections) */
.card {
  padding: 32px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow);
}
/* Left-border card */
.card-left {
  padding: 28px 32px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  box-shadow: var(--shadow);
}
/* Dark card (for dark sections) */
.card-dark {
  padding: 32px;
  background: rgba(253,250,245,.04);
  border: 1px solid rgba(253,250,245,.08);
}

/* ══ GRIDS ══ */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 32px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 32px; }

/* ══ VIDEO SLOT ══ */
.video-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--anthrazit);
  overflow: hidden;
}
.video-slot iframe,
.video-slot video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--anthrazit);
  color: rgba(253,250,245,.35);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  gap: 12px;
}
.video-placeholder::before {
  content: '';
  display: block;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(232,201,126,.4);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E8C97E'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/24px no-repeat;
}

/* ══ SOURCE TAG ══ */
.src-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  margin-top: 12px;
  display: block;
}

/* ══ FADE-UP ANIMATION ══
   Default: visible. JS adds the animation class only when observer is ready.
   This prevents blank sections if JS loads slowly or observer fails.
*/
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(20px);
}
.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══ HERO — BASE ══ */
.hero {
  padding: 100px 0 64px;
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,201,126,.10) 0%, transparent 68%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 6px 16px;
  background: rgba(232,201,126,.10);
  border: 1px solid rgba(232,201,126,.28);
  color: var(--gold-deep);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 17px;
  max-width: 640px;
  line-height: 1.8;
  margin: 16px 0 28px;
  color: var(--stone);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

/* ══ KPI STRIP ══ */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.kpi-item {
  padding: 28px 24px;
  background: var(--warm-white);
  border-top: 2px solid var(--gold);
  text-align: center;
}
.kpi-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  font-weight: 300;
  color: var(--gold-deep);
  line-height: 1;
}
.kpi-label {
  font-size: 12px;
  color: var(--stone);
  margin-top: 8px;
  line-height: 1.4;
}
.kpi-label small { font-size: 10px; color: var(--stone-light); }

/* ══ SECTION INTRO ══ */
.section-intro { max-width: 680px; margin-top: 14px; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .kpi-strip, .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .w { padding: 0 20px; }
  .g2, .g3, .g4, .kpi-strip, .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .nav-links { gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
