/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap');

/* ── Base reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; } /* on html not body — body overflow breaks position:fixed in Safari */
body {
  font-family: 'Manrope', sans-serif;
  color: #1a1f3a;
  background: #000423;
  -webkit-font-smoothing: antialiased;
}

/* ── Fluid typography ─────────────────────────────────────── */
.display  { font-size: clamp(32px, 4vw,  56px); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
.headline { font-size: clamp(32px, 4.5vw,52px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.title    { font-size: clamp(20px, 2.5vw,28px); font-weight: 700; line-height: 1.3;  letter-spacing: -0.01em; }
.eyebrow  { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #00AEEF; }

/* ── Section backgrounds ──────────────────────────────────── */
.section-warm  { background: #FAF8F4; }
.section-white { background: #ffffff; }
.section-navy  { background: #000423; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-cyan {
  background: #00AEEF; color: #000423; font-weight: 800; font-size: 14px;
  letter-spacing: 0.02em; padding: 14px 32px; border-radius: 3rem;
  display: inline-block; text-decoration: none;
  transition: all 300ms ease-in-out; position: relative; overflow: hidden;
}
.btn-cyan:hover { opacity: 0.88; }

.btn-navy {
  background: #000423; color: #fff; font-weight: 800; font-size: 14px;
  letter-spacing: 0.02em; padding: 14px 32px; border-radius: 3rem;
  display: inline-block; text-decoration: none;
  transition: all 300ms ease-in-out; position: relative; overflow: hidden;
}
.btn-navy:hover { background: #0a1040; }

.btn-primary {
  background: #000423; color: #fff; font-weight: 800; font-size: 14px;
  letter-spacing: 0.02em; padding: 14px 32px; border-radius: 3rem;
  display: inline-block; text-decoration: none;
  transition: all 300ms ease-in-out; position: relative; overflow: hidden;
}
.btn-primary:hover { background: #00AEEF; color: #000423; }

.btn-ghost {
  color: #000423; font-weight: 700; font-size: 14px; padding: 14px 32px;
  border-radius: 3rem; display: inline-block; text-decoration: none;
  background: rgba(0,4,35,0.06);
  transition: all 300ms ease-in-out; position: relative; overflow: hidden;
}
.btn-ghost:hover { background: rgba(0,4,35,0.12); }

.btn-white {
  background: #fff; color: #000423; font-weight: 800; font-size: 14px;
  padding: 14px 32px; border-radius: 3rem; display: inline-block;
  text-decoration: none; transition: all 300ms ease-in-out;
}
.btn-white:hover { background: #FAF8F4; }

/* Semi-transparent glass button (CTA band secondary action) */
.btn-glass {
  color: #000423; font-weight: 700; font-size: 14px; padding: 14px 32px;
  border-radius: 3rem; display: inline-block; text-decoration: none;
  background: rgba(255,255,255,0.45); backdrop-filter: blur(8px);
  transition: all 300ms;
}

/* Full-width button modifier */
.btn-block { display: block; text-align: center; width: 100%; }

/* ── Cards ────────────────────────────────────────────────── */
.card      { background: #fff; border-radius: 1.5rem; padding: 32px; box-shadow: 0 8px 48px 0 rgba(0,4,35,0.06); }
.card-warm { background: #FAF8F4; border-radius: 1.5rem; padding: 32px; }
.glass     {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 1.5rem; box-shadow: 0 16px 64px 0 rgba(0,4,35,0.08);
}

/* Founder profile card (translucent on navy) */
.founder-card {
  background: rgba(255,255,255,0.04);
  border-radius: 1.5rem;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav-link       { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); text-decoration: none; letter-spacing: 0.02em; transition: color 200ms; }
.nav-link:hover { color: #fff; }

#main-nav .nav-pill { transition: background 300ms ease, box-shadow 300ms ease; }
#main-nav.nav-scrolled .nav-pill {
  background: rgba(0,4,35,0.92) !important;
  box-shadow: 0 8px 40px rgba(0,4,35,0.35) !important;
}

/* Default hidden states — overridden by media queries below */
.desktop-nav { display: none; }
.hamburger   { display: none; }
.mobile-menu { display: none; }

/* ── Ripple animation ─────────────────────────────────────── */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn .ripple {
  position: absolute; border-radius: 50%;
  transform: scale(0); animation: ripple-anim 550ms ease-out forwards;
  pointer-events: none;
}
.btn-navy .ripple, .btn-primary .ripple { background: rgba(255,255,255,0.25); }
.btn-cyan .ripple  { background: rgba(0,4,35,0.15); }
.btn-ghost .ripple { background: rgba(0,4,35,0.08); }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ── Flagship card fade-in ────────────────────────────────── */
.flagship-card { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms ease; }
.flagship-card.visible { opacity: 1; transform: translateY(0); }

/* ── Program card spotlight ───────────────────────────────── */
.programs-grid:has(.program-card:hover) .program-card        { opacity: 0.45; transform: scale(0.98); filter: saturate(0.4); }
.programs-grid:has(.program-card:hover) .program-card:hover  { opacity: 1; transform: translateY(-6px) scale(1.01); filter: saturate(1); box-shadow: 0 20px 60px rgba(0,4,35,0.14); }
.program-card {
  transition: opacity 320ms ease, transform 320ms ease, box-shadow 320ms ease, filter 320ms ease;
  position: relative; overflow: hidden;
}
.program-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: #00AEEF; border-radius: 1.5rem 1.5rem 0 0;
  transform: scaleX(0); transform-origin: left center; transition: transform 320ms ease;
}
.program-card:hover::before { transform: scaleX(1); }

/* Dark variant — double-class specificity beats .card { background:#fff } */
.card.program-card-dark { background: #000423; }

/* ── Reusable micro-patterns ──────────────────────────────── */

/* Cyan horizontal rule */
.cyan-rule { height: 3px; width: 48px; background: #00AEEF; border-radius: 2px; }

/* Ghost ordinal (01 / 02 / 03) in pillar cards */
.feat-num { font-size: 64px; font-weight: 900; color: #f0f4fa; line-height: 1; }

/* Cyan dot bullet */
.bullet-dot { width: 6px; height: 6px; background: #00AEEF; border-radius: 50%; flex-shrink: 0; margin-top: 7px; }

/* Inline cyan text link */
.link-cyan { color: #00AEEF; font-size: 13px; font-weight: 700; text-decoration: none; display: block; margin-top: 20px; }
.link-cyan:hover { opacity: 0.75; }

/* ── Tag / badge system ───────────────────────────────────── */
.tag-cyan-ghost { background: rgba(0,174,239,0.12); color: #00AEEF;  font-size: 10px; font-weight: 700; padding: 3px 10px;  border-radius: 3rem; letter-spacing: 0.04em; display: inline-block; }
.tag-dark       { background: #000423;               color: #fff;     font-size: 11px; font-weight: 700; padding: 4px 14px;  border-radius: 3rem; display: inline-block; }
.tag-cyan       { background: #00AEEF;               color: #000423;  font-size: 11px; font-weight: 700; padding: 4px 14px;  border-radius: 3rem; display: inline-block; }
.tag-white      { background: #fff;                  color: #334155;  font-size: 12px; font-weight: 600; padding: 5px 12px;  border-radius: 3rem; display: inline-block; }
.tag-warm       { background: #FAF8F4;               color: #000423;  font-size: 11px; font-weight: 600; padding: 3px 10px;  border-radius: 3rem; display: inline-block; }
.tag-navy-ghost { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 3rem; display: inline-block; }
.tag-featured   { background: rgba(0,174,239,0.15); color: #00AEEF; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 3rem; display: inline-block; align-self: flex-start; }
.tag-pill       { background: #fff; border-radius: 3rem; padding: 8px 18px; font-size: 12px; font-weight: 700; color: #000423; box-shadow: 0 2px 12px rgba(0,4,35,0.06); display: inline-block; }

/* ── Community spotlight pattern ─────────────────────────── */
.spotlight-wrap  { border-radius: 2rem; overflow: visible; position: relative; }
.spotlight-photo { width: 100%; border-radius: 2rem 2rem 0 0; overflow: hidden; height: 280px; }
.spotlight-card  { margin-top: -40px; margin-left: 16px; margin-right: 16px; position: relative; z-index: 10; }

/* ── Founder section patterns ─────────────────────────────── */
.mini-stat   { background: rgba(255,255,255,0.06); border-radius: 1rem; padding: 12px 16px; text-align: center; }
.quote-mark  { font-size: 120px; font-weight: 900; color: rgba(0,174,239,0.15); line-height: 0.8; margin-bottom: -20px; }
.quote-body  { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; color: white; line-height: 1.6; font-style: italic; }

/* ── Track record stat value ──────────────────────────────── */
.stat-value { font-size: clamp(42px, 5vw, 64px); font-weight: 900; color: #00AEEF; line-height: 1; }

/* ── Hero gradients ───────────────────────────────────────── */
.hero-gradient-overlay { background: linear-gradient(105deg, rgba(0,4,35,0.92) 0%, rgba(0,4,35,0.75) 45%, rgba(0,4,35,0.30) 100%); }
.hero-gradient-bottom  { background: linear-gradient(to bottom, transparent, #000423); }

/* ── Grid layouts (non-standard column ratios) ────────────── */
.grid-gap-we-close  { grid-template-columns: 45% 1fr; }
.grid-three-even    { grid-template-columns: repeat(3, 1fr); }
.grid-two-even      { grid-template-columns: repeat(2, 1fr); }
.grid-four-even     { grid-template-columns: repeat(4, 1fr); }
.grid-founder       { grid-template-columns: 40% 1fr; }

/* Bottom-row centered pair in a 3-col grid */
.card-third { width: calc(33.333% - 10px); min-width: 260px; }

/* ── Spotlight card padding override ─────────────────────── */
.spotlight-card-inner { padding: 20px 24px; }

/* ── Partner tier: gold eyebrow & sub-label ──────────────── */
.text-white-40 { color: rgba(255,255,255,0.40); }

/* ── CTA text colors ──────────────────────────────────────── */
.text-navy-65 { color: rgba(0,4,35,0.65); }
.text-navy-45 { color: rgba(0,4,35,0.45); }
.text-white-12 { color: rgba(255,255,255,0.12); }

/* ── Footer tertiary text ─────────────────────────────────── */
.text-white-35 { color: rgba(255,255,255,0.35); }
.text-white-30 { color: rgba(255,255,255,0.30); }

/* ── Credential scroll bar (trust bar) ───────────────────── */
.credential-scroll { scrollbar-width: none; } /* Firefox */
.credential-scroll::-webkit-scrollbar { display: none; } /* Chrome, Safari */

/* ── Focus ring ───────────────────────────────────────────── */
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,174,239,0.25); }

/* ── Responsive overrides ─────────────────────────────────── */

/* ── Tab switcher — compact on mobile ────────────────────── */
@media (max-width: 768px) {
  .tab-btn  { padding: 8px 16px !important; font-size: 12px !important; }
  .tab-note { display: none; }
}

/* Stats stack earlier than the general 768px breakpoint */
@media (max-width: 540px) {
  .stats-row     { flex-direction: column !important; align-items: center !important; gap: 28px !important; }
  .stats-divider { display: none !important; }
}

@media (max-width: 768px) {
  .mobile-menu {
    flex-direction: column; gap: 20px;
    background: rgba(0,4,35,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 28px 24px; position: fixed; top: 80px; left: 0; right: 0; z-index: 49;
  }
  .mobile-menu.open { display: flex; }
  .desktop-nav   { display: none !important; }
  .hamburger     { display: flex !important; }
  .stats-row     { flex-direction: column !important; align-items: center !important; gap: 32px !important; }
  .stats-divider { display: none !important; }
  .two-col-grid   { grid-template-columns: 1fr !important; }
  .three-col-grid { grid-template-columns: 1fr !important; }
  .four-col-grid  { grid-template-columns: 1fr 1fr !important; }
  .founder-grid   { grid-template-columns: 1fr !important; }

  /* Hide absolutely-positioned hero overlay card on mobile */
  .flagship-card-hide-mobile { display: none !important; }

  /* Section 4 grid: tighter gap and no right padding when stacked */
  .gap-we-close-grid { gap: 2.5rem !important; padding-right: 0 !important; }

  /* Glass stat card: revert to static flow on mobile */
  .gap-we-close-stat { position: static !important; width: 100% !important; margin-top: 20px; border-radius: 1rem; }

  /* Section 4 image: don't sticky on mobile */
  .gap-we-close-img-col { position: static !important; }

  /* CTA band inner padding */
  .cta-band-inner { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}
@media (min-width: 769px) {
  .hamburger   { display: none !important; }
  .desktop-nav { display: flex !important; }
  .mobile-menu { display: none; }
}
