/* ============================================
   OPPUR3NITY SITE — Global Styles
   Based on TPG.com layout scaffold
   ============================================ */

:root {
  --primary: #050443;
  --navy: #0a1628;
  --navy-2: #0d1f3c;
  --navy-3: #162847;
  --white: #ffffff;
  --gray-1: #f4f5f7;
  --gray-2: #e8eaed;
  --gray-text: #6b7280;
  --black: #0a0a0a;
  --gap-x: 3rem;
  --gap-y: 2rem;
  --max-width: 1280px;
  --nav-height: 72px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --transition: 0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(8, 14, 28, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 2rem;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  justify-self: start;
}
.nav-logo span { color: var(--white); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-self: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-secondary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-self: end;
}
.nav-secondary a {
  color: rgba(255,255,255,0.7);
  font-size: 0.825rem;
  font-weight: 400;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-secondary a:hover { color: var(--white); }
.nav-divider {
  display: block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.25);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  grid-column: 3;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Background photo + dark overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Replace the URL below with your own aerial/hero image */
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 22, 0.72);
}

/* Blue accent line at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  z-index: 3;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  padding-bottom: 5rem;
  max-width: 900px;
}

.hero-eyebrow {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(4.5rem, 10.5vw, 13rem);
  font-weight: 200;
  color: var(--white);
  line-height: 0.93;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.hero-footnote {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* Scroll indicator — bottom right */
.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  right: 2.25rem;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.hero-scroll:hover {
  background: rgba(0,85,255,0.25);
  transform: translateY(2px);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: #030230; border-color: #030230; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover { background: var(--navy-2); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--primary);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   OVERVIEW / INTRO SECTION
   ============================================ */
.overview {
  padding: 7rem 0;
  background: var(--white);
}
.overview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: 1.05rem;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.overview-visual {
  background: var(--navy);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.overview-visual-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-2) 0%, #1a3a6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   PLATFORMS / SERVICES
   ============================================ */
.platforms {
  padding: 7rem 0;
  background: var(--gray-1);
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-title { margin-bottom: 1rem; }
.section-header .section-body { max-width: 600px; margin: 0 auto; }
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.platform-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.platform-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.platform-card:hover::before { transform: scaleX(1); }
.platform-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,85,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}
.platform-aum {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.platform-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.platform-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}
.platform-card:hover .platform-link { gap: 0.7rem; }

/* ============================================
   NEWS & INSIGHTS
   ============================================ */
.news {
  padding: 7rem 0;
  background: var(--white);
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.news-card {
  border: 1px solid var(--gray-2);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.news-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.news-card-img {
  aspect-ratio: 16/9;
  background: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-card-body { padding: 1.75rem; }
.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.news-card-date {
  font-size: 0.8rem;
  color: var(--gray-text);
}
.news-actions {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   CTA / WEALTH SOLUTIONS
   ============================================ */
.cta-section {
  position: relative;
  background: var(--navy);
  padding: 8rem 0;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 60%, var(--navy-2) 100%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner .section-title { color: var(--white); margin-bottom: 1.25rem; }
.cta-inner .section-body { color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  padding: 5rem 0 2rem;
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand .nav-logo {
  margin-bottom: 1rem;
  display: block;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.social-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,85,255,0.1);
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .overview-inner { gap: 4rem; }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
  :root {
    --gap-x: 1.25rem;
    --nav-height: 64px;
  }

  /* Container */
  .container { padding: 0 1.25rem; }

  /* Nav */
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links, .nav-secondary { display: none; }
  .nav-toggle { display: flex; grid-column: 2; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(8, 14, 28, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem 1.25rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open a {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
  }

  /* Hero */
  .hero h1 {
    font-size: clamp(3rem, 12vw, 5.5rem);
    line-height: 0.92;
  }
  .hero-content { padding-bottom: 5rem; }
  .hero-sub { font-size: 0.95rem; max-width: 100%; }
  .hero-scroll { width: 40px; height: 40px; bottom: 1.5rem; right: 1.25rem; }

  /* Stats */
  .stats-bar { padding: 2.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }

  /* Overview */
  .overview { padding: 4rem 0; }
  .overview-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .overview-visual { aspect-ratio: 16/9; }

  /* Platforms */
  .platforms { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .platforms-grid { grid-template-columns: 1fr; gap: 1rem; }
  .platform-card { padding: 2rem; }

  /* News */
  .news { padding: 4rem 0; }
  .news-grid { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
  .news-actions { margin-top: 2rem; }
  .news-actions .btn { width: 100%; justify-content: center; }

  /* CTA */
  .cta-section { padding: 5rem 0; }
  .cta-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer { padding: 3.5rem 0 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    margin-bottom: 2.5rem;
  }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 0.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-legal { justify-content: center; flex-wrap: wrap; gap: 1rem; }

  /* Section titles */
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Inline buttons used as block links */
  a.btn[style*="inline-flex"] { display: block !important; width: 100%; text-align: center; }
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .hero-eyebrow { font-size: 0.8rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.85rem; }

  .platform-card { padding: 1.75rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:nth-child(5) { grid-column: 1 / -1; }

  .footer-legal { gap: 0.75rem; }
}
