/* ================================================
   Me2Leads — shared styles
   Brand: navy #0B3C5D, gold #D4AF37, Plus Jakarta Sans
   ================================================ */

:root {
  --primary: #0B3C5D;
  --primary-light: #134B73;
  --primary-dark: #072A42;
  --primary-deep: #04223a;
  --accent: #D4AF37;
  --accent-light: #E8CC6E;
  --accent-soft: #F4E5A8;
  --hot: #E74C3C;
  --hot-light: #FF6B6B;
  --warm: #F39C12;
  --cold: #95A5A6;
  --success: #27AE60;

  --bg: #FAFAF7;
  --bg-tint: #F4F2EC;
  --card: #FFFFFF;
  --ink: #1A1A2E;
  --ink-mid: #5A5A7A;
  --ink-soft: #9A9ABF;
  --line: #E8EAF0;
  --line-soft: #F0F0F5;

  --shadow-sm: 0 2px 8px rgba(11, 60, 93, 0.06), 0 1px 2px rgba(11, 60, 93, 0.04);
  --shadow: 0 8px 24px rgba(11, 60, 93, 0.08), 0 2px 6px rgba(11, 60, 93, 0.04);
  --shadow-lg: 0 24px 60px rgba(11, 60, 93, 0.14), 0 8px 20px rgba(11, 60, 93, 0.06);
  --shadow-gold: 0 18px 40px rgba(212, 175, 55, 0.32);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.eyebrow.no-line::before { display: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.5vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0; color: var(--ink-mid); line-height: 1.65; text-wrap: pretty; }
.lead { font-size: 19px; color: var(--ink-mid); }

.italic-serif { font-family: 'Fraunces', 'Plus Jakarta Sans', serif; font-style: italic; font-weight: 300; }

/* ── LAYOUT ── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 120px 0; }
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .container { padding: 0 20px; }
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: backdrop-filter .3s, background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(11, 60, 93, 0.08);
  padding: 12px 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.35);
  position: relative;
}
.nav-mark svg { width: 18px; height: 18px; color: white; }
.nav-mark::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); }
.nav-links a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
}
/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  flex-shrink: 0;
  z-index: 101;
}
.nav-toggle .bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.45);
  z-index: 98;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nav-overlay.show { display: block; }

@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-brand-name { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(300px, 80vw);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 28px 40px;
    box-shadow: -4px 0 40px rgba(11, 60, 93, 0.15);
    z-index: 99;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 16px;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.current::after { display: none; }
  .nav-cta { padding: 9px 16px !important; font-size: 13px !important; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary-dark);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(212, 175, 55, 0.42); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: white; border-color: var(--ink); }
.btn-dark {
  background: var(--primary);
  color: white;
}
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-light-ghost {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-light-ghost:hover { background: rgba(255,255,255,0.16); }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
.reveal[data-d="6"] { transition-delay: .48s; }

/* ── REVEAL VARIANTS ── */
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal-right.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal-scale.in { opacity: 1; transform: none; }

/* ── WORD-BY-WORD HEADING ── */
.split-words { display: inline; }
.split-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotateX(40deg);
  transform-origin: 50% 100%;
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  white-space: pre;
}
.split-words.in .word { opacity: 1; transform: none; }

/* ── MAGNETIC CTA ── */
.btn-magnetic { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background .2s; }
.btn-magnetic:hover { transform: translateY(-2px) scale(1.02); }

/* ── GRADIENT SHIMMER ON HEADINGS WITH .accent ── */
.accent-shimmer {
  background: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--accent-light) 30%,
    #fff7d8 45%,
    var(--accent-light) 60%,
    var(--accent) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
  animation: shimmer 5.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── SPARKLE LAYER ── */
.sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.sparkle {
  position: absolute;
  width: 4px; height: 4px;
  background: radial-gradient(circle, #fff7d8 0%, var(--accent) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(0.3px);
  opacity: 0;
  animation: sparkle-fly 8s linear infinite;
}
@keyframes sparkle-fly {
  0% { opacity: 0; transform: translate(0,0) scale(0.4); }
  10%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translate(60px, -180px) scale(1.2); }
}

/* ── DEVICE TILT ON HOVER ── */
.tilt {
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

/* ── COUNTER ── */
.counter { display: inline-block; }

/* ── ANIMATED UNDERLINE ── */
.eyebrow-anim {
  position: relative;
  display: inline-block;
}
.eyebrow-anim::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(.2,.7,.2,1) .3s;
}
.eyebrow-anim.in::after { width: 100%; }

/* ── TICKER ON HOT NUMBER ── */
.tick-roll {
  display: inline-flex;
  overflow: hidden;
  height: 1em;
  vertical-align: bottom;
  line-height: 1;
}
.tick-roll-inner {
  display: flex; flex-direction: column;
  animation: tick 1.6s steps(10) forwards;
}
@keyframes tick {
  from { transform: translateY(-90%); }
  to { transform: translateY(0); }
}

/* ── PROGRESS BAR (top of page) ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 200;
  transition: width .1s linear;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

/* ── FLOAT-CHIP entrance after hero loads ── */
.float-chip { opacity: 0; transform: translateY(20px) scale(.9); transition: opacity .8s, transform .8s; }
.hero.loaded .float-chip { opacity: 1; transform: none; }
.hero.loaded .float-chip-a { transition-delay: .8s; }
.hero.loaded .float-chip-b { transition-delay: 1.0s; }
.hero.loaded .float-chip-c { transition-delay: 1.2s; }

/* ── PARALLAX ── */
.parallax { will-change: transform; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .split-words .word { opacity: 1 !important; transform: none !important; }
  .accent-shimmer { animation: none; }
  .sparkle { animation: none; opacity: 0; }
  .float-chip-a, .float-chip-b, .float-chip-c { animation: none !important; }
}

/* ── DEVICE FRAME (used on landing + contact) ── */
.device {
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 0 1.5px #1a1a1a,
    0 30px 80px -20px rgba(11, 60, 93, 0.5),
    0 16px 40px -12px rgba(11, 60, 93, 0.3);
  position: relative;
  flex-shrink: 0;
}
.device::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #0a0a0a;
  border-radius: 100px;
  z-index: 3;
}
.device-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--primary-dark);
  position: relative;
}
.device-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── FOOTER (shared) ── */
.footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.7);
  padding: 80px 32px 36px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
.footer h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer a:hover { color: white; }
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.footer-brand .nav-mark { box-shadow: 0 8px 18px rgba(212, 175, 55, 0.5); }
.footer-brand strong { color: white; font-size: 18px; font-weight: 800; }
.footer-tag {
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
