/* ============================================
   APEXFUNDS — Global Stylesheet
   Premium Dark Navy + Gold Investment Platform
   ============================================ */

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

/* ── CSS Variables ── */
:root {
  --navy-950: #020818;
  --navy-900: #050e24;
  --navy-800: #0a1a38;
  --navy-700: #0f2454;
  --navy-600: #153070;
  --gold-400: #f0c040;
  --gold-500: #d4a017;
  --gold-600: #b8860b;
  --gold-glow: rgba(212, 160, 23, 0.18);
  --gold-glow-strong: rgba(212, 160, 23, 0.35);
  --white: #ffffff;
  --white-80: rgba(255,255,255,0.80);
  --white-50: rgba(255,255,255,0.50);
  --white-20: rgba(255,255,255,0.20);
  --white-08: rgba(255,255,255,0.08);
  --white-04: rgba(255,255,255,0.04);
  --success: #22c55e;
  --error: #ef4444;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-gold: 0 0 40px rgba(212, 160, 23, 0.15);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 3px; }

/* ── Noise Texture Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
p { color: var(--white-80); line-height: 1.75; }

.text-gold { color: var(--gold-400); }
.text-muted { color: var(--white-50); font-size: 0.9rem; }
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Section Header ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold-400);
}
.section-title { margin-bottom: 16px; }
.section-desc { color: var(--white-50); max-width: 560px; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950);
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(212, 160, 23, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 160, 23, 0.5);
}
.btn-outline {
  border: 1px solid var(--white-20);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}
.btn-ghost { color: var(--white-80); padding: 14px 20px; }
.btn-ghost:hover { color: var(--gold-400); }
.btn-lg { padding: 18px 44px; font-size: 0.95rem; }
.btn-sm { padding: 10px 22px; font-size: 0.8rem; }

/* ── Cards ── */
.card {
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: var(--gold-glow-strong);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

/* ── Gold Divider ── */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  margin: 20px 0;
}
.divider-center { margin: 20px auto; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.badge-gold {
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.3);
  color: var(--gold-400);
}
.badge-green {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--success);
}

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--gold-500);
  background: rgba(212, 160, 23, 0.04);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}
.form-input::placeholder { color: var(--white-20); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4a017' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* ── Nav ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(2, 8, 24, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-950);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-logo-text span { color: var(--gold-400); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-80);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active { color: var(--gold-400); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 76px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(15, 36, 84, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(212, 160, 23, 0.06) 0%, transparent 50%),
    var(--navy-950);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(15,36,84,0.6) 0%, transparent 70%);
  bottom: 0; left: 10%;
  animation-delay: -4s;
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--white-80);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--white-08);
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--white-50);
  letter-spacing: 0.05em;
}

/* ── Ticker ── */
.ticker-wrap {
  background: var(--white-04);
  border-top: 1px solid var(--white-08);
  border-bottom: 1px solid var(--white-08);
  padding: 14px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.ticker-symbol { color: var(--gold-400); font-weight: 500; }
.ticker-price { color: var(--white-80); }
.ticker-change { font-size: 0.75rem; }
.ticker-change.up { color: var(--success); }
.ticker-change.down { color: var(--error); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--white-08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 60px;
}
.step-item {
  background: var(--navy-900);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition);
}
.step-item:hover { background: var(--navy-800); }
.step-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--white-08);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.step-item:hover .step-number { color: var(--gold-glow-strong); }
.step-icon {
  width: 48px; height: 48px;
  background: var(--gold-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.step-desc { font-size: 0.88rem; color: var(--white-50); line-height: 1.7; }

/* ── Strategy Section ── */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--white-08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 60px;
}
.strategy-item {
  background: var(--navy-900);
  padding: 40px;
  display: flex;
  gap: 24px;
  transition: var(--transition);
}
.strategy-item:hover { background: var(--navy-800); }
.strategy-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(212,160,23,0.15), rgba(212,160,23,0.05));
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.strategy-body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.strategy-body p { font-size: 0.88rem; color: var(--white-50); line-height: 1.7; }

/* ── Stats Bar ── */
.stats-bar {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: var(--radius-xl);
  padding: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.82rem; color: var(--white-50); letter-spacing: 0.05em; }
.stat-divider {
  width: 1px;
  background: var(--white-08);
  align-self: stretch;
}

/* ── Testimonials ── */
.testimonials-grid { margin-top: 60px; }
.testimonial-card {
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(212,160,23,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.testimonial-stars { color: var(--gold-400); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 20px; }
.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white-80);
  line-height: 1.7;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-400);
  border: 2px solid rgba(212,160,23,0.2);
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.testimonial-role { font-size: 0.78rem; color: var(--white-50); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 50%, var(--navy-800) 100%);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(212,160,23,0.08), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { color: var(--white-50); margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: var(--navy-950);
  border-top: 1px solid var(--white-08);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p { color: var(--white-50); font-size: 0.9rem; line-height: 1.8; margin: 20px 0 24px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--white-08);
  border: 1px solid var(--white-08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--white-50);
}
.social-btn:hover {
  background: var(--gold-glow);
  border-color: rgba(212,160,23,0.3);
  color: var(--gold-400);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  font-size: 0.88rem;
  color: var(--white-50);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--white-08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--white-20); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-link { font-size: 0.82rem; color: var(--white-20); transition: color 0.2s; }
.footer-bottom-link:hover { color: var(--white-50); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(15,36,84,0.6) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: var(--white-50); max-width: 600px; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--white-30);
}
.breadcrumb a { color: var(--white-50); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb-sep { color: var(--white-20); }
.breadcrumb-current { color: var(--gold-400); }

/* ── Alert ── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: #4ade80; }
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #f87171; }
.alert-warning { background: rgba(212,160,23,0.08); border: 1px solid rgba(212,160,23,0.2); color: var(--gold-400); }

/* ── Loader ── */
.loader {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold-400);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in.visible { opacity: 1; }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: rgba(2, 8, 24, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-08);
  padding: 20px 24px 30px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--white-80);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-nav-link:hover { background: var(--white-04); color: var(--gold-400); }
.mobile-nav-divider { height: 1px; background: var(--white-08); margin: 10px 0; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strategy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 36px 24px; gap: 24px; }
  .stat-divider { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner { padding: 50px 30px; }
  .section { padding: 70px 0; }
  .page-hero { padding: 130px 0 60px; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
/* ── Animation Fix for Local/Mobile Viewing ── */
.fade-up, .fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
/* ── Navbar always has background on mobile ── */
@media (max-width: 768px) {
  .navbar {
    background: rgba(2, 8, 24, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}