/* =============================================================
   SHARED NAVBAR · FOOTER · TOKENS · UTILITIES
   Single source of truth — loaded by every page.
   ============================================================= */

/* ----- DESIGN TOKENS ----- */
:root {
  --ink: #0B0E1A;
  --ink-soft: #3A3F55;
  --ink-muted: #6B7080;
  --paper: #F7F8FB;
  --paper-raised: #FFFFFF;
  --line: rgba(11, 14, 26, 0.08);
  --line-strong: rgba(11, 14, 26, 0.14);
  --cyan: #00B7C8;
  --cyan-deep: #048A97;
  --cyan-glow: rgba(0, 183, 200, 0.15);
  --violet: #5B3E8E;
  --violet-deep: #3E2A63;
  --violet-glow: rgba(91, 62, 142, 0.12);
  --gradient: linear-gradient(120deg, var(--cyan), var(--violet));
  --gradient-soft: linear-gradient(120deg, rgba(0,183,200,0.08), rgba(91,62,142,0.08));
  --shadow-sm: 0 1px 3px rgba(11, 14, 26, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(11, 14, 26, 0.18);
  --shadow-lg: 0 24px 48px -16px rgba(11, 14, 26, 0.22);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 68px;
}

/* ----- BASE RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

p {
  color: var(--ink-soft);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: inline-block;
}

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
::selection { background: var(--cyan); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================
   NAVBAR — Premium Glassmorphic
   ============================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(247, 248, 251, 0.65);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid transparent;
  border-radius: 0;
  transition: all .5s cubic-bezier(.22, 1, .36, 1);
}

.navbar.scrolled {
  top: 15px;
  width: calc(100% - 32px);
  max-width: 1180px;
  border-radius: 100px;
  background: rgba(246, 243, 237, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow:
    0 4px 14px rgba(11, 14, 26, 0.04),
    0 12px 36px rgba(11, 14, 26, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  transition: opacity .25s var(--ease);
  flex-shrink: 0;
}
.logo:hover { opacity: 0.75; }
.logo span { color: var(--cyan-deep); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition:
    color .25s var(--ease),
    background .25s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(11, 14, 26, 0.04);
}

.nav-links a.active {
  color: var(--cyan-deep);
  background: var(--cyan-glow);
  font-weight: 600;
}

/* Contact CTA — refined, not a chunky pill */
.nav-cta {
  color: var(--cyan-deep) !important;
  font-weight: 600 !important;
  font-size: 0.9rem;
  padding: 0.45rem 1.15rem !important;
  border: 1.5px solid var(--cyan-deep);
  border-radius: 8px;
  background: transparent;
  transition:
    color .3s var(--ease),
    background .3s var(--ease),
    border-color .3s var(--ease),
    transform .25s var(--ease),
    box-shadow .3s var(--ease);
}
.nav-cta:hover {
  color: #fff !important;
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(4, 138, 151, 0.3);
}
.nav-cta.active {
  color: #fff !important;
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: none;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
  transition:
    transform .35s var(--ease),
    opacity .25s var(--ease),
    width .3s var(--ease);
  transform-origin: center;
}
.hamburger span:nth-child(2) { width: 16px; }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop Scrolled: Hide links, show hamburger */
@media (min-width: 861px) {
  .navbar.scrolled .nav-links:not(.active) {
    display: none;
  }
  .navbar.scrolled .hamburger {
    display: flex;
  }
}

/* ----- MOBILE & FULL-SCREEN MENU ----- */
/* 1. Mobile overrides for navbar */
@media (max-width: 860px) {
  .navbar {
    height: 60px;
    --nav-h: 60px;
  }
}

/* Mobile full-screen menu base (hidden by default via transform) */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    width: 100%;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 1050;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5rem 2rem 3rem;
  }
  .hamburger { display: flex; }
}

/* Desktop active full-screen menu (shown when body.nav-open) */
body.nav-open .nav-links {
  position: fixed !important;
  inset: 0 !important;
  height: 100dvh !important;
  width: 100% !important;
  background: var(--paper) !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.35rem !important;
  transform: translateX(0) !important;
  transition: transform .45s var(--ease) !important;
  z-index: 1050 !important;
  overflow-y: auto !important;
  padding: 5rem 2rem 3rem !important;
  display: flex !important;
}

/* Desktop active link styles */
body.nav-open .nav-links a {
  font-size: 1.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--ink);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 320px;
  text-align: center;
  background: transparent;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s var(--ease), transform .35s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
body.nav-open .nav-links a:hover {
  background: var(--gradient-soft);
}
body.nav-open .nav-links a.active {
  color: var(--cyan-deep);
  background: var(--cyan-glow);
}
body.nav-open .nav-links .nav-cta {
  margin-top: 0.8rem;
  padding: 0.9rem 1.5rem !important;
  font-size: 1.1rem;
  background: var(--gradient) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 100px;
  box-shadow: 0 8px 20px -8px rgba(91, 62, 142, 0.45);
  max-width: 280px;
}

/* Mobile specific link styles (includes the staggered animation) */
@media (max-width: 860px) {
  .nav-links a {
    font-size: 1.35rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--ink);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 320px;
    text-align: center;
    background: transparent;
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity .35s var(--ease),
      transform .35s var(--ease),
      color .2s var(--ease),
      background .2s var(--ease);
  }
  .nav-links a:hover {
    background: var(--gradient-soft);
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.active a:nth-child(1) { transition-delay: .06s; }
  .nav-links.active a:nth-child(2) { transition-delay: .10s; }
  .nav-links.active a:nth-child(3) { transition-delay: .14s; }
  .nav-links.active a:nth-child(4) { transition-delay: .18s; }
  .nav-links.active a:nth-child(5) { transition-delay: .22s; }

  .nav-links a.active {
    color: var(--cyan-deep);
    background: var(--cyan-glow);
  }
  .nav-cta {
    margin-top: 0.8rem;
    padding: 0.9rem 1.5rem !important;
    font-size: 1.1rem;
    background: var(--gradient) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 100px;
    box-shadow: 0 8px 20px -8px rgba(91, 62, 142, 0.45);
    max-width: 280px;
  }
  .nav-cta.active {
    background: var(--gradient) !important;
    color: #fff !important;
  }
}

/* Lock body scroll when menu open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Extra small screens */
@media (max-width: 400px) {
  .nav-links a {
    font-size: 1.2rem;
    padding: 0.8rem 1.2rem;
  }
  .nav-cta {
    font-size: 1rem !important;
  }
}

/* =============================================================
   REVEAL ON SCROLL
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   SHARED PAGE HERO PATTERN — consistent glow across all pages
   ============================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -25%;
  left: 40%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 35%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 0.7rem;
}
.page-hero p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 36rem;
  margin-inline: auto;
  color: var(--ink-soft);
}

/* =============================================================
   BUTTONS (shared)
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition:
    transform .25s var(--ease),
    box-shadow .25s var(--ease),
    background .25s var(--ease);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(91, 62, 142, 0.5);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(91, 62, 142, 0.55);
}

.btn-ghost {
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--cyan-deep);
  color: var(--cyan-deep);
  transform: translateY(-3px);
}

/* =============================================================
   SECTION HEAD — reusable centered section header
   ============================================================= */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { margin-top: 0.5rem; font-size: 1.02rem; }

/* =============================================================
   CTA BAND
   ============================================================= */
.cta-band {
  border-radius: 20px;
  background: linear-gradient(120deg, var(--ink), var(--violet-deep));
  padding: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,183,200,0.15), transparent 70%);
  pointer-events: none;
}
.cta-band h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 1.3rem;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.cta-band .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
}

/* =============================================================
   CARD — shared card base style for consistent theme
   ============================================================= */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform .3s var(--ease),
    box-shadow .3s var(--ease),
    border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 183, 200, 0.3);
}

/* =============================================================
   FOOTER — Unified
   ============================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
}
.footer-brand h3 span { color: var(--cyan); }
.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.55);
}

.social-row {
  display: flex;
  gap: 0.7rem;
}
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition:
    background .25s var(--ease),
    border-color .25s var(--ease),
    color .25s var(--ease),
    transform .25s var(--ease);
}
.social-row a:hover {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-col a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}
.footer-col a i {
  font-size: 0.8rem;
  width: 14px;
  text-align: center;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color .2s;
}
.footer-bottom a:hover { color: var(--cyan); }

.legal-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.legal-links span {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-row { justify-content: center; }
  .footer-col a { justify-content: center; }
}

/* =============================================================
   GLOBAL SMOOTH POLISH
   ============================================================= */
body {
  transition: background .3s var(--ease);
}

/* Accessible focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth image loading */
img {
  transition: opacity .3s var(--ease);
}
