/* ── TOKENS ── */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface2: #f0ede6;
  --text: #0f172a;
  --text2: #64748b;
  --text3: #94a3b8;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-dim: rgba(29,78,216,.07);
  --accent-dim2: rgba(29,78,216,.13);
  --border: rgba(15,23,42,.08);
  --border2: rgba(15,23,42,.15);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 2px 6px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.13), 0 4px 16px rgba(0,0,0,.07);
  --cta-bg: #0c1322;
  --nav-h: 64px;
  --r: 12px;
  --r-lg: 20px;
  --ease: 200ms cubic-bezier(0.25, 0, 0, 1);
  --ease-out: 300ms cubic-bezier(0, 0, 0.2, 1);
  --fd: 'Cormorant Garamond', Georgia, serif;
  --fb: 'Inter', system-ui, sans-serif;
}
[data-theme="dark"] {
  --bg: #090c18;
  --surface: #0f1629;
  --surface2: #1a2236;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-dim: rgba(96,165,250,.08);
  --accent-dim2: rgba(96,165,250,.14);
  --border: rgba(255,255,255,.07);
  --border2: rgba(255,255,255,.13);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  --cta-bg: #0a0f1e;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  transition: background var(--ease), color var(--ease);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  background: rgba(247,246,242,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 100;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
[data-theme="dark"] nav { background: rgba(9,12,24,0.9); }
nav.scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--border), var(--shadow-md);
}
.nav-logo {
  font-family: var(--fd);
  font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text); margin-right: auto;
  transition: opacity var(--ease);
}
.nav-logo:hover { opacity: .7; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: .82rem; font-weight: 500;
  color: var(--text2);
  transition: color var(--ease);
  position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform 220ms cubic-bezier(0.25, 0, 0, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-controls { display: flex; gap: .5rem; margin-left: 2rem; align-items: center; }
.btn-ico {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text2);
  cursor: pointer; display: grid; place-items: center;
  font-size: .72rem; font-weight: 600;
  font-family: var(--fb);
  transition: all var(--ease); letter-spacing: .04em;
}
.btn-ico:hover { color: var(--text); border-color: var(--accent); background: var(--accent-dim); }
.btn-ico:active { transform: scale(0.92); }
.mob-btn { display: none; }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.25rem, 5vw, 4rem) 2rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}
.foot-logo { font-family: var(--fd); font-size: 1.2rem; font-weight: 600; color: var(--text); }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { font-size: .8rem; color: var(--text2); transition: color var(--ease); }
.foot-links a:hover { color: var(--accent); }
.foot-copy { font-size: .78rem; color: var(--text3); }

/* ── PAGE HERO ── */
.page-hero {
  min-height: 100svh;
  position: relative;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 5vw, 4rem) 5rem;
  overflow: hidden;
}
.page-hero-img { position: absolute; inset: 0; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(9,12,24,.12) 0%, rgba(9,12,24,.5) 45%, rgba(9,12,24,.92) 100%);
}
.page-hero-content {
  position: relative; z-index: 1; max-width: 780px;
  opacity: 0; transform: translateY(32px);
  animation: fadeUp .9s cubic-bezier(0, 0, 0.2, 1) forwards .1s;
}
.eyebrow {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.page-hero h1 {
  font-family: var(--fd);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300; line-height: 1.04;
  letter-spacing: -.035em; color: #fff;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,.72);
  line-height: 1.8; max-width: 500px;
  font-weight: 300; margin-bottom: 2.5rem;
}

/* ── INLINE HERO (no full-height) ── */
.sub-hero {
  padding: calc(var(--nav-h) + 5rem) clamp(1.25rem, 5vw, 4rem) 5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.sub-hero-inner { max-width: 680px; opacity: 0; transform: translateY(20px); animation: fadeUp .7s cubic-bezier(0, 0, 0.2, 1) forwards .1s; }
.sub-hero h1 {
  font-family: var(--fd);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300; line-height: 1.06;
  letter-spacing: -.03em; color: var(--text);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.sub-hero h1 em { font-style: italic; color: var(--accent); }
.sub-hero p { font-size: 1.05rem; color: var(--text2); line-height: 1.8; font-weight: 300; }

/* ── SECTION COMMON ── */
section { padding: 7rem clamp(1.25rem, 5vw, 4rem); }
.s-tag {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: flex;
  align-items: center; gap: .55rem; margin-bottom: 1rem;
}
.s-tag::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
h2 {
  font-family: var(--fd);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 300; line-height: 1.08;
  letter-spacing: -.025em; color: var(--text);
  text-wrap: balance;
}
h2 em { font-style: italic; color: var(--accent); }
h3 { font-family: var(--fd); font-size: 1.6rem; font-weight: 500; line-height: 1.2; color: var(--text); letter-spacing: -.01em; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .92rem 2rem;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--r);
  font-size: .9rem; font-weight: 500;
  font-family: var(--fb); cursor: pointer;
  transition: transform .2s cubic-bezier(0.25,0,0,1), box-shadow .2s cubic-bezier(0.25,0,0,1), background .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(29,78,216,.3); background: var(--accent-hover); }
.btn-primary:active { transform: translateY(0) scale(.97); box-shadow: none; }
[data-theme="dark"] .btn-primary:hover { box-shadow: 0 10px 28px rgba(96,165,250,.2); }
.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .88rem 1.75rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--border2); border-radius: var(--r);
  font-size: .9rem; font-weight: 500;
  font-family: var(--fb); cursor: pointer;
  transition: all var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-ghost:active { transform: scale(.97); }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; padding: .95rem 1.75rem;
  background: #25D366; color: #fff;
  border: none; border-radius: var(--r);
  font-size: .95rem; font-weight: 500;
  font-family: var(--fb); cursor: pointer;
  transition: all .2s; width: 100%;
}
.btn-wa:hover { background: #1ebe59; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.3); }
.btn-wa:active { transform: translateY(0) scale(.97); box-shadow: none; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem clamp(1.25rem, 5vw, 4rem);
  display: flex; gap: 0; flex-wrap: wrap;
}
.stat-item { flex: 1; min-width: 140px; padding: 1rem 2rem; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-n {
  font-family: var(--fd);
  font-size: 3.5rem; font-weight: 500;
  color: var(--accent); line-height: 1;
  letter-spacing: -.02em;
}
.stat-l { font-size: .8rem; color: var(--text2); margin-top: .45rem; letter-spacing: .01em; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--cta-bg);
  padding: 5.5rem clamp(1.25rem, 5vw, 4rem);
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 90% at 95% 50%, rgba(29,78,216,.18) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .cta-band::before {
  background: radial-gradient(ellipse 65% 90% at 95% 50%, rgba(96,165,250,.1) 0%, transparent 70%);
}
.cta-band .s-tag { color: var(--accent); }
.cta-band h2 { max-width: 520px; color: #f1f5f9; }
.cta-band h2 em { color: var(--accent); }
.cta-band-btns { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(0, 0, 0.2, 1), transform .6s cubic-bezier(0, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
.reveal:nth-child(5) { transition-delay: .28s; }
.reveal:nth-child(6) { transition-delay: .35s; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── MOBILE NAV ── */
@media(max-width:768px) {
  .nav-links {
    display: none; position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--bg); flex-direction: column;
    padding: 2.5rem 1.5rem; gap: 1.5rem; z-index: 99;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.15rem; }
  .mob-btn { display: grid; }
  .nav-controls { margin-left: .5rem; }
}
