/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark:          #0D001A;
  --dark-mid:      #17002E;
  --teal:          #3DDCAD;
  --teal-light:    #AEFFD3;
  --teal-dark:     #27B890;
  --purple:        #9803A8;
  --purple-light:  #C84DD3;
  --white:         #FFFFFF;
  --off-white:     #F8F7FF;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-400:      #767B87;
  --gray-500:      #6B7280;
  --gray-600:      #4B5563;
  --gray-700:      #374151;
  --text:          #150D26;
  --text-mid:      #3D3356;
  --text-light:    #4E4868;

  --font:          'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:         1200px;
  --nav-h:         76px;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ============================================================
   SECTION COMMON
============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-label-bar {
  width: 28px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.section-label-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.section-label--light .section-label-text { color: var(--teal); }

.section-h {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-h--white { color: var(--white); }

.section-body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-light);
}

.section-body p + p { margin-top: 14px; }

@media (max-width: 768px) {
  .section-body { font-size: 15px; line-height: 1.7; }
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

.btn-teal {
  background: var(--teal);
  color: var(--dark);
}
.btn-teal:hover {
  background: var(--teal-light);
  box-shadow: 0 8px 28px rgba(61,220,173,0.35);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--dark-mid);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--gray-200);
}
.btn-ghost-dark:hover {
  border-color: var(--gray-400);
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  transition: gap 0.2s, color 0.2s;
}
.text-link:hover { gap: 10px; color: var(--text); }
.text-link svg { width: 14px; height: 14px; flex-shrink: 0; }

.text-link--purple { color: var(--purple-light); }
.text-link--purple:hover { color: var(--white); }

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 90px;
  display: flex;
  align-items: center;
  transition: height 0.35s ease, background 0.35s, box-shadow 0.35s;
}

.nav > .container { width: 100%; }

.nav.scrolled {
  height: var(--nav-h);
  background: rgba(13, 0, 26, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* Always-dark nav variant (solutions pages, who-we-help, how-we-work) */
.nav--dark {
  background: rgba(13, 0, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav--dark.scrolled {
  background: rgba(13, 0, 26, 0.96);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: height 0.35s ease;
}

.nav.scrolled .logo-img { height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--teal);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--r-full);
  transition: all 0.2s;
}
.nav-cta-btn:hover { background: var(--teal-light); transform: translateY(-1px); color: #000; }
.nav-cta-btn svg { width: 13px; height: 13px; }
.nav-links a.nav-cta-btn,
.nav.scrolled .nav-links a.nav-cta-btn { color: #000; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: color 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99;
  padding: calc(var(--nav-h) + 40px) 32px 40px;
  flex-direction: column;
  gap: 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--teal); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

.nav-dropdown-item { position: relative; }

.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-dropdown-trigger svg { transition: transform 0.2s; }
.nav-dropdown-item:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,0,26,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  padding: 14px 0 8px;
  min-width: 240px;
  list-style: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  z-index: 101;
}

.nav-dropdown-item:hover .nav-dropdown { display: block; }

.nav-dropdown li a {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  color: var(--teal);
  background: rgba(255,255,255,0.04);
}

.nav-dropdown li:first-child a {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 4px;
  padding-bottom: 14px;
}

.nav-mobile-sub {
  font-size: 16px !important;
  padding-left: 20px;
  color: rgba(255,255,255,0.55) !important;
  margin-top: -18px;
}

/* ============================================================
   PAGE HERO (inner pages)
============================================================ */
.page-hero {
  background: var(--dark) url('assets/TopDarkBackground.jpg') center/cover no-repeat;
  padding: 172px 0 96px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-hero { background-image: url('assets/TopDarkBackground-mobile.jpg'); }
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(152,3,168,0.20) 0%, rgba(13,0,26,0.58) 55%, rgba(61,220,173,0.06) 100%);
}

.page-hero-inner { position: relative; z-index: 1; max-width: 780px; }

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.page-hero-eyebrow-bar {
  width: 28px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.page-hero-eyebrow-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 26px;
}

.page-hero h1 em { font-style: italic; color: var(--teal); }

.page-hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

@media (max-width: 600px) {
  .page-hero { padding: 130px 0 72px; }
  .page-hero-sub { font-size: 16px; }
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--dark);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 36px;
}

.footer-brand .logo { margin-bottom: 18px; }

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  max-width: 240px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0; }

.footer-col ul li a { display: block; padding: 6px 0; }

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.footer-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  font-style: italic;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
              transform 0.75s cubic-bezier(0.4,0,0.2,1);
}

.reveal.in { opacity: 1; transform: translateY(0); }

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ============================================================
   UTILITIES
============================================================ */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

.arrow-icon {
  display: inline-block;
  width: 15px; height: 15px;
}

/* ============================================================
   FOCUS STATES
============================================================ */
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  .hero-scroll-hint {
    animation: none;
  }
  .stat-fill {
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
