/* ══════════════════════════════════════════════
   Legato — Shared Global Stylesheet
   ══════════════════════════════════════════════ */

/* ── FONT ────────────────────────────────────── */
@font-face {
  font-family: 'Helony';
  src: url('Helony.otf') format('opentype');
  font-weight: normal; font-style: normal; font-display: swap;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #0A1C30;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── VARIABLES ───────────────────────────────── */
:root {
  --navy:   #0A1C30;
  --navy2:  #0f2540;
  --gold:   #0095A7;
  --goldlt: #00ADBF;
  --gold-accessible: #006F7D;
  --primary-light:   #33B8C8;
  --primary-dark:    #006B78;
  --primary-darker:  #003D45;
  --secondary:       #FAB3A9;
  --tertiary:        #CFFFB3;
  --tertiary-dark:   #8AC468;
  --cream:  #F5F2EB;
  --creamb: #E9E3D6;
  --white:  #FFFFFF;
  --t1: #0A1C30;
  --t2: #4A5A6A;
  --t3: #8B9BAB;
  --pad: clamp(28px, 5vw, 64px);
}

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  display: flex; align-items: center;
  padding: 0 var(--pad);
  gap: 32px;
}
.nav .logo { flex-shrink: 0; }
.nav-links { flex: 1; }
.nav-cta { margin-left: auto; flex-shrink: 0; }
.nav::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(10,28,48,0);
  backdrop-filter: blur(0px);
  transition: background .35s, backdrop-filter .35s;
}
.nav.scrolled::after {
  background: rgba(10,28,48,.72);
  backdrop-filter: blur(28px) saturate(160%);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-partners {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.6); text-decoration: none;
  transition: color .2s;
}
.nav-partners:hover { color: #fff; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.6); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-current { color: #fff !important; }
.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  background: var(--gold); color: #fff;
  padding: 9px 20px; border-radius: 12px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--goldlt); transform: translateY(-1px); }
.nav-cta sup { font-size: 9px; vertical-align: super; }

/* ── BUTTONS ─────────────────────────────────── */
.btn-gold {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  background: var(--gold); color: #fff;
  padding: 13px 28px; border-radius: 12px;
  border: none; cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-gold:hover { background: var(--goldlt); transform: translateY(-1px); }
.btn-ghost {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.78);
  padding: 13px 28px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.55); color: #fff; transform: translateY(-1px); }
.btn-navy {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  background: var(--navy); color: #fff;
  padding: 13px 28px; border-radius: 12px;
  border: none; cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-navy:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-gold-outline {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--goldlt); padding: 13px 30px; border-radius: 12px;
  border: 1px solid rgba(0,149,167,.45);
  text-decoration: none; display: inline-block; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.btn-gold-outline:hover { border-color: var(--goldlt); background: rgba(0,149,167,.09); transform: translateY(-1px); }

/* ── SECTION SHARED ──────────────────────────── */
.sec { padding: 96px var(--pad); border-top: 1px solid #EBEBEB; }
.sec.how, .sec.final { border-top: none; }
.sec-inner { max-width: 1400px; margin: 0 auto; }
.sec-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-accessible);
  margin-bottom: 18px;
}
.sec-eyebrow::before { display: none; }
.sec-eyebrow.lt { color: var(--goldlt); }
.sec-eyebrow.lt::before { background: var(--goldlt); }
.sec-h2 {
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: clamp(28px, 3.8vw, 50px);
  font-weight: 700; line-height: 1.14;
  letter-spacing: -.02em; color: var(--t1);
  text-wrap: pretty;
}
.sec-h2.lt { color: #fff; }
.sec-body { font-size: 18px; line-height: 28px; color: var(--t2); text-wrap: pretty; }
.sec-body.lt { color: rgba(255,255,255,.55); }

/* ── FADE ANIMATION ──────────────────────────── */
.fu {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.fu.in { opacity: 1; transform: none; }
.fu.d1 { transition-delay: .1s; }
.fu.d2 { transition-delay: .2s; }
.fu.d3 { transition-delay: .3s; }
.fu.d4 { transition-delay: .4s; }

/* ── FOOTER ──────────────────────────────────── */
footer { background: #060E18; padding: 64px var(--pad) 40px; }
.foot-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; max-width: 1400px; margin: 0 auto 48px;
}
.foot-logo { display: block; margin-bottom: 14px; text-decoration: none; }
.foot-logo img { display: block; height: 30px; width: auto; }
.foot-brand p { font-size: 13px; line-height: 1.72; color: rgba(255,255,255,.60); max-width: 280px; }
.foot-col h4 {
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 18px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.foot-col ul li a {
  font-size: 13px; color: rgba(255,255,255,.65);
  text-decoration: none; transition: color .2s;
}
.foot-col ul li a:hover { color: #fff; }
.foot-bottom {
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
}
.foot-bottom p { font-size: 11px; color: rgba(255,255,255,.55); }

/* ── HERO ENTRANCE ───────────────────────────── */
.hero-left > * { animation: hfade .75s ease both; }
.hero-left > *:nth-child(1) { animation-delay: .1s; }
.hero-left > *:nth-child(2) { animation-delay: .28s; }
.hero-left > *:nth-child(3) { animation-delay: .42s; }
@keyframes hfade {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HAMBURGER ───────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: auto; flex-shrink: 0;
  z-index: 10;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(10,28,48,.97);
  backdrop-filter: blur(28px) saturate(160%);
  padding: 20px 24px 28px;
  flex-direction: column; gap: 4px;
  z-index: 190;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,.7); text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .15s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: #fff; }
.nav-drawer .drawer-cta {
  margin-top: 12px;
  background: var(--gold); color: #fff;
  text-align: center; border-radius: 12px;
  padding: 13px 20px; font-weight: 600;
  border-bottom: none;
}
.nav-drawer .drawer-cta:hover { background: var(--goldlt); }

/* ── RESPONSIVE — NAV ONLY ───────────────────── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 600px) {
  .nav-cta { font-size: 11px; padding: 8px 12px; }
}
