/* ── APEX CAPITAL — Shared Stylesheet ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #e85c1a;
  --orange-dark: #c44b10;
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --gray: #4a4a4a;
  --light-gray: #f5f5f5;
  --mid-gray: #d0d0d0;
  --white: #ffffff;
  --nav-height: 64px;
  --font: 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.6; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--mid-gray);
  height: var(--nav-height); display: flex; align-items: center;
  padding: 0 40px; justify-content: space-between;
}
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--black); text-decoration: none; }
.logo span { color: var(--orange); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--dark); text-decoration: none;
  letter-spacing: 0.3px; padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--orange); border-color: var(--orange); }

/* Dropdowns */
.nav-links li { position: relative; }
.has-dropdown > a::after {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 6px;
  transition: transform 0.2s; vertical-align: middle;
}
.has-dropdown:hover > a::after { transform: rotate(-135deg) translateY(1px); }
.nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 230px;
  background: var(--white); border-top: 2px solid var(--orange);
  box-shadow: 0 8px 28px rgba(0,0,0,0.11); list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 200;
}
.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown li a {
  display: block; padding: 11px 18px; font-size: 13px; font-weight: 400;
  color: var(--dark); border-bottom: none !important; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown li a:hover { background: var(--light-gray); color: var(--orange); }
.nav-dropdown li + li { border-top: 1px solid var(--mid-gray); }

.nav-actions { display: flex; gap: 16px; align-items: center; }

/* ── AUTH BUTTONS ────────────────────────────────────────── */
.btn-login {
  font-size: 13px; font-weight: 600; color: var(--dark); background: none;
  border: 1px solid var(--dark); padding: 8px 18px; cursor: pointer;
  letter-spacing: 0.5px; text-decoration: none; display: inline-flex;
  align-items: center; transition: background 0.2s, color 0.2s;
}
.btn-login:hover { background: var(--dark); color: var(--white); }
.btn-register {
  font-size: 13px; font-weight: 600; color: var(--white); background: var(--orange);
  border: 1px solid var(--orange); padding: 8px 18px; cursor: pointer;
  letter-spacing: 0.5px; text-decoration: none; display: inline-flex;
  align-items: center; transition: background 0.2s, border-color 0.2s;
}
.btn-register:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

/* Mobile drawer auth buttons */
.mobile-nav .btn-login,
.mobile-nav .btn-register {
  width: 100%; justify-content: center; padding: 14px;
  font-size: 14px; border-radius: 0; margin-top: 8px;
}

/* ── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 200;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; inset: 0; top: var(--nav-height);
  background: var(--white); z-index: 99; flex-direction: column;
  padding: 32px 24px; border-top: 1px solid var(--mid-gray); overflow-y: auto;
}
.mobile-nav a {
  font-size: 18px; font-weight: 600; color: var(--dark); text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--light-gray);
}
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .mobile-sub-label {
  font-size: 18px; font-weight: 600; color: var(--dark); background: none;
  border: none; border-bottom: 1px solid var(--light-gray); padding: 16px 0;
  width: 100%; text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; text-decoration: none;
}
.mobile-nav .mobile-sub-label:hover { color: var(--orange); }
.mobile-nav .mobile-sub-label .arrow {
  font-size: 16px; color: var(--orange); display: inline-block; transition: transform 0.25s;
}
.mobile-nav .mobile-sub-label.open .arrow { transform: rotate(180deg); }
.mobile-nav .mobile-sub-group { display: none; flex-direction: column; border-left: 2px solid var(--orange); margin-left: 8px; }
.mobile-nav .mobile-sub-group.open { display: flex; }
.mobile-nav .mobile-sub-item {
  font-size: 15px; font-weight: 500; padding: 12px 0 12px 16px;
  border-bottom: 1px solid var(--light-gray); color: var(--gray);
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
[data-animate] {
  opacity: 0; transform: translateY(44px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
[data-animate="fade-left"]  { transform: translateX(-48px); }
[data-animate="fade-right"] { transform: translateX(48px); }
[data-animate="fade-scale"] { transform: scale(0.94) translateY(24px); }
[data-animate].visible { opacity: 1; transform: none; }
.card[data-animate]:nth-child(2) { transition-delay: 0.13s; }
.card[data-animate]:nth-child(3) { transition-delay: 0.26s; }

/* ── PAGE HERO (sub-pages) ───────────────────────────────── */
.page-hero {
  background: var(--black);
  padding: 80px 80px 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 10% 80%, rgba(232,92,26,0.25) 0%, transparent 55%),
              radial-gradient(ellipse at 90% 20%, rgba(232,92,26,0.1) 0%, transparent 45%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.page-hero-eyebrow {
  display: inline-block; background: var(--orange); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 14px; margin-bottom: 24px;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 54px); font-weight: 800; color: var(--white);
  letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px;
}
.page-hero p {
  font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.75; max-width: 560px; margin-bottom: 32px;
}
.btn-hero {
  display: inline-flex; align-items: center; gap: 10px; background: var(--white);
  color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 14px 28px; text-decoration: none; transition: transform 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); }

/* ── SECTION LAYOUT ──────────────────────────────────────── */
.section { padding: 80px 80px; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: var(--black);
  letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 16px; max-width: 640px;
}
.section-subtitle {
  font-size: 16px; color: var(--gray); max-width: 560px; line-height: 1.7; margin-bottom: 48px;
}
.section-alt { background: var(--light-gray); }
.section-dark { background: var(--black); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ── CARD GRID ───────────────────────────────────────────── */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--mid-gray); border: 1px solid var(--mid-gray);
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); padding: 40px 36px; display: flex;
  flex-direction: column; gap: 16px; transition: box-shadow 0.2s; cursor: pointer;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 1; position: relative; }
.card-icon {
  width: 44px; height: 44px; background: var(--light-gray);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--orange); }
.card-tag { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); }
.card h3 { font-size: 19px; font-weight: 700; color: var(--black); letter-spacing: -0.3px; line-height: 1.3; }
.card p { font-size: 14px; color: var(--gray); line-height: 1.7; flex: 1; }
.card-link {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--black); text-decoration: none; display: inline-flex; align-items: center;
  gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--mid-gray);
}
.card-link:hover { color: var(--orange); }

/* ── ICON FEATURE LIST ───────────────────────────────────── */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0; width: 48px; height: 48px; background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--orange); }
.feature-item h4 { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── SPLIT LAYOUT ────────────────────────────────────────── */
.split-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.split-text {
  padding: 80px; display: flex; flex-direction: column;
  justify-content: center; background: var(--light-gray);
}
.split-visual {
  background: var(--black); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.split-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.split-visual-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,92,26,0.35) 0%, transparent 65%);
}
.split-stat { position: relative; z-index: 1; text-align: center; padding: 40px; }
.split-stat-num { font-size: 72px; font-weight: 900; color: var(--white); letter-spacing: -3px; line-height: 1; }
.split-stat-num span { color: var(--orange); }
.split-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-top: 12px; }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band {
  background: var(--orange); padding: 72px 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: var(--white);
  letter-spacing: -0.8px; max-width: 600px; line-height: 1.2;
}
.btn-cta {
  flex-shrink: 0; background: var(--white); color: var(--orange); font-size: 13px;
  font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 16px 32px; text-decoration: none; white-space: nowrap; transition: transform 0.2s;
}
.btn-cta:hover { transform: translateY(-2px); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--black); padding: 64px 80px 40px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); }
.footer-brand .logo span { color: var(--orange); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 16px; line-height: 1.7; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.social-links a:hover { border-color: var(--orange); color: var(--orange); }
.social-links svg { width: 16px; height: 16px; }

/* ── TABLET (≤1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 12px; }
  .section { padding: 60px 40px; }
  .split-text { padding: 60px 40px; }
  .page-hero { padding: 60px 40px 56px; }
  footer { padding: 56px 40px 32px; }
  .cta-band { padding: 56px 40px; }
  .feature-list { gap: 24px; }
}

/* ── MOBILE (≤768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none !important; }
  .hamburger { display: flex; }
  .navbar { padding: 0 20px; }
  .page-hero { padding: 48px 20px 40px; }
  .page-hero h1 { font-size: 28px; letter-spacing: -0.5px; }
  .section { padding: 48px 20px; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 15px; margin-bottom: 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; gap: 24px; }
  .split-section { grid-template-columns: 1fr; }
  .split-text { padding: 48px 20px; order: 2; }
  .split-visual { min-height: 220px; order: 1; }
  .split-stat-num { font-size: 52px; }
  .cta-band { flex-direction: column; padding: 48px 20px; text-align: center; }
  .cta-band h2 { font-size: 24px; }
  .btn-cta { width: 100%; text-align: center; }
  footer { padding: 48px 20px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ── SMALL MOBILE (≤480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── STATS GRID ──────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
}
