/* ══════════════════════════════════════════
   LEADGEND — Shared Design System
══════════════════════════════════════════ */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --bg:       #070707;
  --surface:  #0f0f0f;
  --surface2: #151515;
  --gold:     #C9A227;
  --gold-lt:  #F0C040;
  --gold-dk:  #8B6914;
  --gold-glow:rgba(201,162,39,0.35);
  --border:   rgba(201,162,39,0.14);
  --text:     #F0EDE8;
  --muted:    #7a7570;
  --radius:   14px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scanlines overlay — subtle CRT texture */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  mix-blend-mode: multiply;
}

/* Central ambient glow that pulses */
body::before {
  content: '';
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(201,162,39,0.06) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: ambientPulse 8s ease-in-out infinite;
}
@keyframes ambientPulse {
  0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.15); }
}

/* ─── STAR FIELDS ─────────────────────── */
[data-stars] { position: relative; z-index: 0; overflow: hidden; }
.star-dot {
  position: absolute; border-radius: 50%;
  background: rgba(255,248,220,0.9);
  pointer-events: none; z-index: -1;
  animation: sTwinkle linear infinite;
}
@keyframes sTwinkle {
  0%, 100% { opacity: 0.06; }
  50%       { opacity: 0.88; }
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dk); border-radius: 3px; }

/* ─── PARTICLE CANVAS ─────────────────── */
#particle-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.85;
}

/* ─── NAV ─────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 52px;
  background: rgba(7,7,7,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
nav.shrunk { padding: 13px 52px; }

.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Times New Roman', serif;
  font-weight: 700; font-size: 1.35rem; letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold), var(--gold-dk));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links {
  display: flex; gap: 38px; list-style: none; align-items: center;
}
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-lt); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #000; padding: 11px 26px; border-radius: 50px;
  text-decoration: none; font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 0 22px var(--gold-glow);
  transition: box-shadow 0.25s, transform 0.25s;
  flex-shrink: 0;
}
.nav-cta:hover { box-shadow: 0 0 38px rgba(201,162,39,0.6); transform: translateY(-1px); }

/* ─── NAV DROPDOWN ────────────────────── */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-chevron { flex-shrink: 0; transition: transform 0.22s; }
.nav-has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* Invisible bridge covering the gap so hover doesn't break */
.nav-has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -14px; left: -12px; right: -12px;
  height: 14px;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  width: 540px;
  background: rgba(9,9,9,0.97);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s;
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 72px rgba(0,0,0,0.65), 0 0 48px rgba(201,162,39,0.05);
  z-index: 200;
}
.nav-has-dropdown:hover .dropdown-panel {
  opacity: 1; pointer-events: all;
}
.dp-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  text-decoration: none; color: var(--text);
  /* Reset nav-links cascade */
  text-transform: none; letter-spacing: 0; font-size: 1rem;
  transition: background 0.16s;
}
.dp-item:hover { background: rgba(201,162,39,0.07); }
.dp-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px;
  background: rgba(201,162,39,0.07);
  border: 1px solid rgba(201,162,39,0.14);
  display: flex; align-items: center; justify-content: center;
}
.dp-icon svg { stroke: var(--gold); }
.dp-title {
  font-size: 0.78rem; font-weight: 700; margin-bottom: 1px; color: var(--text);
  text-transform: none; letter-spacing: 0;
}
.dp-desc {
  font-size: 0.68rem; color: var(--muted);
  text-transform: none; letter-spacing: 0;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px; transition: 0.3s;
}

.mobile-menu {
  position: fixed; top: 0; right: -100%; bottom: 0;
  width: 72%; max-width: 300px;
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 99; display: flex; flex-direction: column;
  padding: 88px 32px 40px; gap: 4px;
  transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  text-decoration: none; color: var(--muted);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 13px 0; border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold-lt); }
.mobile-menu .mob-cta {
  margin-top: 24px; text-align: center;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #000; border-radius: 50px; font-weight: 800; font-size: 0.88rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 14px;
  border-bottom: none;
}

/* ─── SHARED LAYOUT ───────────────────── */
.container { max-width: 1200px; margin: 0 auto; }
.page-wrap { position: relative; z-index: 2; }

/* ─── TYPOGRAPHY HELPERS ─────────────── */
.section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; display: block; width: 26px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: 'Times New Roman', serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.01em;
}
.gold-text {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold), var(--gold-dk));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gold-line {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--gold-lt), var(--gold-dk));
  border-radius: 2px; margin: 20px 0 36px;
}
.section-sub {
  font-size: 0.98rem; color: var(--muted); line-height: 1.75; max-width: 540px;
}

/* ─── BUTTONS ─────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #000; padding: 16px 38px; border-radius: 50px;
  text-decoration: none; font-weight: 800; font-size: 0.88rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 0 32px var(--gold-glow), 0 4px 18px rgba(0,0,0,0.4);
  transition: all 0.25s; border: none; cursor: pointer;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 0 52px rgba(201,162,39,0.55), 0 8px 26px rgba(0,0,0,0.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--gold);
  padding: 16px 38px; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(201,162,39,0.42); transition: all 0.25s;
}
.btn-outline:hover { background: rgba(201,162,39,0.08); border-color: var(--gold); transform: translateY(-2px); }

/* ─── SCROLL REVEAL ───────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ─── MARQUEE ─────────────────────────── */
.marquee-wrap {
  overflow: hidden; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(201,162,39,0.02); padding: 15px 0;
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; animation: marquee 30s linear infinite; white-space: nowrap;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0 30px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  flex-shrink: 0;
}
.marquee-dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── FOOTER ──────────────────────────── */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 44px 52px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo-text {
  font-family: 'Times New Roman', serif; font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-lt); }
.footer-copy { font-size: 0.73rem; color: var(--muted); }
.footer-glow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 500px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
}

/* ─── SHARED LOGO SVG ─────────────────── */
.logo-svg { height: 40px; width: auto; }
.logo-svg-sm { height: 32px; width: auto; }

/* ─── MOBILE ──────────────────────────── */
@media (max-width: 860px) {
  nav { padding: 16px 24px; }
  nav.shrunk { padding: 13px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  footer { padding: 36px 24px 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-title { letter-spacing: -0.02em; }
}
@media (max-width: 480px) {
  nav { padding: 14px 18px; }
  .nav-logo-text { font-size: 1.1rem; }
  .btn-gold, .btn-outline { padding: 14px 28px; font-size: 0.82rem; }
  .footer-links { gap: 16px; flex-wrap: wrap; }
  .mobile-menu { padding: 80px 24px 40px; }
}
