@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── TOKENS ─────────────────────────────── */
:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-subtle: #F7F7F5;
  --color-bg-dark: #0B1733;
  --color-green-primary: #159A9C;
  --color-green-dark: #0F6F78;
  --color-green-light: #E6F7F8;
  --color-gold: #E8961E;
  --color-text-primary: #102347;
  --color-text-secondary: #50627F;
  --color-text-muted: #8290A9;
  --color-border: #D9E3EE;
  --color-border-subtle: #EEF3F8;

  /* Semantic color tokens */
  --color-teal-50: #E6F7F8;
  --color-teal-100: #B3EAEC;
  --color-teal-400: #57D7DA;
  --color-teal-500: #159A9C;
  --color-teal-600: #0F6F78;
  --color-teal-700: #0E5D65;
  --color-navy-900: #0B1733;
  --color-navy-800: #0D2140;
  --color-navy-700: #102347;
  --color-gold-500: #E8961E;
  --color-gold-400: #F0A33B;
  --color-text-on-dark: rgba(255, 255, 255, 0.92);
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.82);
  --color-bg-white: #FFFFFF;

  /* Gradients */
  --gradient-teal: linear-gradient(135deg, #179ea1 0%, #0e6f78 100%);
  --gradient-gold: linear-gradient(135deg, #F0A33B 0%, #E8961E 100%);
  --gradient-dark: linear-gradient(180deg, #0b1733, #0d2140);

  /* Typography */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 52px;
  --text-6xl: 64px;
  --text-hero: 72px;

  /* Spacing (4px base) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px; --space-40: 160px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-green: 0 8px 24px rgba(21,154,156,0.24);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ── RESET ───────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-behavior: smooth removed — conflicts with native trackpad momentum */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  opacity: 0;
  animation: bodyFadeIn 350ms cubic-bezier(0.16,1,0.3,1) forwards;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.04em;
}
h1 {
  line-height: 0.95;
}
@keyframes bodyFadeIn { to { opacity: 1; } }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── NAV ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 64px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10,22,40,0.1);
  display: grid; align-items: center; grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr);
  gap: 24px;
  padding: 0 40px;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.nav.scrolled { box-shadow: 0 10px 30px rgba(16,35,71,0.08); }
.nav-logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--color-text-primary); display: flex; align-items: center; gap: 1px;
  justify-self: start;
}
.nav-logo-o {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: var(--color-green-primary);
  border-radius: 50%; color: white; font-size: 13px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 32px; justify-self: center; }
.nav-links a {
  font-size: 15px; color: var(--color-text-secondary); font-weight: 600;
  position: relative; transition: color 150ms;
  letter-spacing: -0.01em;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1.5px; background: var(--color-green-primary);
  transition: right 200ms cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color: var(--color-green-primary); }
.nav-links a:hover::after { right: 0; }
.nav-actions {
  display: flex; align-items: center; gap: 10px; justify-self: end;
  justify-content: flex-end; min-width: 180px;
}
.nav-actions .nav-cta-link { display: none; }
.nav-active-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-green-primary);
  animation: dotPulse 2.5s ease-in-out infinite;
  margin-right: 4px;
}
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: 14px;
  font-size: 15px; font-weight: 700; border: none;
  transition: background-color 200ms cubic-bezier(0.4,0,0.2,1), box-shadow 200ms cubic-bezier(0.4,0,0.2,1), transform 200ms cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #179ea1 0%, #0e6f78 100%);
  color: white;
  box-shadow: 0 16px 36px rgba(21,154,156,0.26), 0 8px 20px rgba(11,23,51,0.12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(21,154,156,0.34), 0 10px 24px rgba(11,23,51,0.14); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-green); }
.btn-secondary {
  background: white; color: var(--color-text-primary);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-green-primary); color: var(--color-green-primary); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(16,35,71,0.08); }
.btn-gold {
  background: linear-gradient(135deg, #F0A33B 0%, #E8961E 100%);
  color: #102347; font-weight: 700;
  box-shadow: 0 12px 28px rgba(232,150,30,0.28), 0 8px 20px rgba(11,23,51,0.14);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(232,150,30,0.34), 0 10px 24px rgba(11,23,51,0.18); filter: brightness(1.03); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }

/* ── BUTTON LOADING STATE ───────────────── */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  right: 16px;
  top: 50%;
  margin-top: -9px;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ── FORM FIELDS ────────────────────────── */
.form-field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md, 10px);
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--color-text-primary, #102347);
  background: var(--color-bg-white, #fff);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field:focus {
  outline: none;
  border-color: var(--color-teal-500, #159A9C);
  box-shadow: 0 0 0 3px rgba(21, 154, 156, 0.12);
}
.form-field::placeholder {
  color: var(--color-text-muted, #8290A9);
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary, #50627F);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-error {
  font-size: 13px;
  color: #C2410C;
  margin-top: 4px;
}

/* ── CARD ────────────────────────────────── */
.card {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  padding: 32px; transition: box-shadow 250ms cubic-bezier(0.4,0,0.2,1), transform 250ms cubic-bezier(0.4,0,0.2,1);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-dark {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 32px;
  transition: box-shadow 250ms cubic-bezier(0.4,0,0.2,1), transform 250ms cubic-bezier(0.4,0,0.2,1), border-color 250ms cubic-bezier(0.4,0,0.2,1);
}
.card-dark:hover { background: rgba(255,255,255,0.06); box-shadow: 0 0 32px rgba(87,215,218,0.16); border-color: rgba(87,215,218,0.34); }

/* ── SECTION LABEL ───────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-green-primary); margin-bottom: 12px;
}
.section-label::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-green-primary); opacity: 0.7; flex-shrink: 0;
}

/* ── BADGE ───────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-green-light); color: var(--color-green-primary);
  font-size: 12px; font-weight: 600; padding: 5px 12px;
  border-radius: var(--radius-full); border: 1px solid rgba(21,154,156,0.22);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-green-primary);
  animation: dotPulse 2.5s ease-in-out infinite;
}

/* ── STAT ────────────────────────────────── */
.stat-num {
  font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: var(--color-text-primary);
}
.stat-num .unit { color: var(--color-green-primary); }
.stat-label { font-size: 14px; color: var(--color-text-muted); margin-top: 6px; }

/* ── TESTIMONIAL ─────────────────────────── */
.testimonial-card {
  background: white; border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-green-primary);
  border-radius: var(--radius-lg); padding: 28px 28px 28px 32px;
  box-shadow: var(--shadow-xs);
}
.testimonial-quote { font-size: 48px; line-height: 1; color: var(--color-green-primary); opacity: 0.25; font-family: Georgia, serif; margin-bottom: -8px; }
.testimonial-text { font-size: 15.5px; color: var(--color-text-secondary); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testimonial-stars { color: #F59E0B; font-size: 14px; margin-bottom: 10px; letter-spacing: 1px; }
.testimonial-author { font-size: 14px; font-weight: 700; color: var(--color-text-primary); }
.testimonial-meta { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }
.testimonial-pill {
  display: inline-block; font-size: 11px; font-weight: 600;
  background: var(--color-green-light); color: var(--color-green-primary);
  padding: 2px 8px; border-radius: var(--radius-full); margin-top: 6px;
}

/* ── INDUSTRY PILL ───────────────────────── */
.industry-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--color-border); background: white;
  font-size: 14px; font-weight: 500; color: var(--color-text-secondary);
  padding: 8px 16px; border-radius: var(--radius-full);
  transition: background-color 200ms ease, color 200ms ease;
}
.industry-pill:hover { background: var(--color-green-light); border-color: var(--color-green-primary); color: var(--color-green-primary); }

/* ── SCROLL ANIMATIONS ───────────────────── */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 500ms cubic-bezier(0.4,0,0.2,1), transform 500ms cubic-bezier(0.4,0,0.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 75ms; }
.stagger > *:nth-child(3) { transition-delay: 150ms; }
.stagger > *:nth-child(4) { transition-delay: 225ms; }
.stagger > *:nth-child(5) { transition-delay: 300ms; }
.stagger > *:nth-child(6) { transition-delay: 375ms; }

/* ── LAYOUT UTILITIES ────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 40px; }
.container-md { max-width: 920px; margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── GRADIENT TEXT ───────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #159A9C 0%, #57D7DA 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FOOTER ──────────────────────────────── */
.footer { background: #09142d; padding: 48px 0 32px; }
.footer-top {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; margin-bottom: 32px; text-align: center;
}
.footer-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: rgba(255,255,255,0.88); display: flex; align-items: center; gap: 1px; }
.footer-logo-o { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--color-green-primary); border-radius: 50%; color: white; font-size: 12px; font-weight: 800; }
.footer-links { display: flex; gap: 14px 24px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.82); transition: color 150ms; }
.footer-links a:hover { color: #57D7DA; }
.footer-social { display: flex; gap: 16px; margin-bottom: 20px; justify-content: center; }
.footer-social a { color: rgba(255,255,255,0.7); transition: color 0.15s; }
.footer-social a:hover { color: #57D7DA; }
.footer-trust { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; justify-content: center; }
.footer-badge { font-size: 11px; color: rgba(255,255,255,0.92); background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 10px 24px; text-align: center;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.72); }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.72); }

/* ── DARK SECTION OVERRIDES ──────────────── */
.section-dark { background: var(--color-bg-dark); }
.section-dark .section-label { color: #57D7DA; }
.section-dark .section-label::before { background: #57D7DA; box-shadow: 0 0 12px #57D7DA, 0 0 24px rgba(87,215,218,0.55); opacity: 1; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-dark p, .section-dark .body-text { color: rgba(255,255,255,0.92); }

/* ── DARK SECTION UTILITIES ─────────────── */
.dark-section { background: var(--color-navy-900, #0B1733); color: var(--color-text-on-dark); }
.dark-section .text-muted { color: var(--color-text-on-dark-muted); }

@media (max-width: 1100px) {
  .nav {
    grid-template-columns: minmax(132px,1fr) auto minmax(132px,1fr);
    gap: 16px;
    padding: 0 24px;
  }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 14px; }
  .nav-cta-link { display: none; }
  .footer-top { align-items: flex-start; text-align: left; }
  .footer-links,
  .footer-social,
  .footer-trust,
  .footer-bottom { justify-content: flex-start; }
  .footer-bottom { align-items: flex-start; }
}

/* ── TABLET ──────────────────────────────── */
@media (max-width: 768px) {
  .container, .container-sm, .container-md { padding: 0 20px; }
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
  }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .stat-num { font-size: 40px; }
  .hamburger { display: flex; }
  .hero-btns { flex-wrap: wrap; }
  .footer-top { align-items: flex-start; text-align: left; }
  .footer-links,
  .footer-social,
  .footer-trust,
  .footer-bottom { justify-content: flex-start; }
  .footer-links { gap: 8px 16px; }
}
/* ── MOBILE (375px) ─────────────────────── */
@media (max-width: 428px) {
  .container, .container-sm, .container-md { padding: 0 16px; }
  .section { padding: 48px 0; }
  h1 { font-size: clamp(28px, 7vw, 40px); }
  h2 { font-size: clamp(22px, 5.5vw, 32px); }
  .btn-lg { padding: 14px 24px; font-size: 15px; min-height: 48px; }
  .btn { min-height: 44px; }
  .footer-links { font-size: 13px; }
  .footer-links a { padding: 4px 0; }
}
.hamburger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: none; padding: 8px; min-width: 44px; min-height: 44px;
  justify-self: end; margin-left: auto; cursor: pointer;
}
.hamburger span { width: 22px; height: 2px; background: var(--color-text-primary); border-radius: 2px; transition: all 200ms; }
.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: white; border-bottom: 1px solid var(--color-border);
  padding: 20px; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 16px; font-weight: 500; color: var(--color-text-primary); padding: 8px 0; border-bottom: 1px solid var(--color-border-subtle); }

/* ── Accessibility: Skip to Content ── */
.skip-to-content {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--color-green-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transform: translateY(calc(-100% - 12px));
  opacity: 0;
  pointer-events: none;
  transition: transform 150ms ease, opacity 150ms ease;
}
.skip-to-content:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#main-content {
  scroll-margin-top: 96px;
}

/* ── Accessibility: Keyboard Focus Styles ── */
:focus-visible {
  outline: 2px solid var(--color-green-primary);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  box-shadow: 0 0 0 3px rgba(21, 154, 156, 0.16);
}
