/* Geysier Design System v2 — shared across all pages */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fafafa;
  --bg-warm: #f5f4f1;
  --bg-primary: #fafafa;
  --bg-secondary: #f5f4f1;
  --bg-dark: #0a0f1e;
  --bg-dark-card: #141a2e;
  --bg-card: #ffffff;
  --border-subtle: rgba(0,0,0,0.06);
  --border-hover: rgba(0,0,0,0.12);
  --text-primary: #0a0a0a;
  --text-secondary: #52525b;
  --text-tertiary: #52525b;
  --text-on-dark: #f4f4f5;
  --text-muted-dark: rgba(255,255,255,0.55);
  --accent-blue: #0044fe;
  --accent-blue-glow: rgba(0,68,254,0.10);
  --accent-green: #00B67A;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 1200px;
  --container-wide: 1400px;
}

/* App / export compatibility tokens (headings & body) */
:root {
  --_typography---font-styles--heading: 'Manrope', sans-serif;
  --_typography---font-styles--body: 'Inter', sans-serif;
  --_apps---typography--heading-font: 'Manrope', sans-serif;
  --_apps---typography--body-font: 'Inter', sans-serif;
  --_apps---typography--button-font: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
body.geysier-design { font-family: var(--font-body) !important; background: var(--bg) !important; }
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.route-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.route-loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  display: none;
  pointer-events: none;
}
.route-loading-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.route-loading-logo {
  position: relative;
  width: 156px;
  height: 156px;
  overflow: visible;
}
.route-loading-logo-inner {
  position: absolute;
  inset: 0;
  overflow: visible;
}
.route-loading-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.route-loading-led-glow {
  filter: blur(2px) drop-shadow(0 0 20px rgba(29, 78, 216, 0.8));
  transform-box: fill-box;
  transition: filter 500ms ease;
}
.route-loading-led-ring {
  fill: rgb(29, 78, 216);
  transition: fill 500ms ease;
}
.route-loading-dot {
  animation: route-loading-pulse 3s linear infinite;
  animation-delay: var(--route-loading-idle-delay);
}
.route-loading-overlay.is-spraying .route-loading-led-glow {
  filter: blur(2px) drop-shadow(0 0 20px rgba(34, 197, 94, 0.8));
}
.route-loading-overlay.is-spraying .route-loading-led-ring {
  fill: rgb(34, 197, 94);
}
.route-loading-overlay.is-spraying .route-loading-dot {
  animation-duration: 0.6s;
  animation-delay: var(--route-loading-spray-delay);
}
@keyframes route-loading-pulse {
  0% { opacity: 1; }
  60%, 100% { opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .route-loading-overlay,
  .route-loading-led-glow,
  .route-loading-led-ring {
    transition: none;
  }
  .route-loading-dot {
    animation: none;
  }
}

.main-wrapper .container,
.geysier-footer .container {
  max-width: var(--container-max) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: block !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  background-color: transparent !important;
  grid-column-gap: 0 !important;
}
.main-wrapper .container-wide {
  max-width: var(--container-wide) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: block !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* ═══ FULL-WIDTH NAV ═══ */
.geysier-nav,
body.geysier-design .nav[data-menu-status] {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 1000 !important;
  padding: 0 24px !important;
  background: rgba(255,255,255,0.86) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.geysier-nav.scrolled {
  background: rgba(255,255,255,0.94) !important;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05) !important;
}
.geysier-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0;
}
.geysier-nav-logo img { height: 18px; width: auto; }
.geysier-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.geysier-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 980px;
  transition: color 0.2s ease, background 0.2s ease;
}
.geysier-nav-links a:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.geysier-nav-right { display: flex; align-items: center; gap: 6px; }
.geysier-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  height: 36px;
  background: var(--text-primary);
  color: #fff;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.geysier-nav-cta:hover { opacity: 0.85; }
.geysier-nav-cta svg { width: 12px; height: 12px; }

.lang-selector { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  padding: 6px 10px; border-radius: 980px;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  padding-top: 8px; min-width: 120px; z-index: 100;
}
.lang-dropdown-inner {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}
.lang-selector:hover .lang-dropdown { display: block; }
.lang-option {
  display: block; padding: 10px 16px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-option:hover { background: rgba(0,0,0,0.03); color: var(--text-primary); }
.lang-option.active { color: var(--text-primary); font-weight: 600; }

.geysier-mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.geysier-mobile-menu-btn span {
  display: block; width: 18px; height: 1.5px; background: var(--text-primary);
  position: absolute; left: 7px; transition: all 0.3s ease;
}
.geysier-mobile-menu-btn span:nth-child(1) { top: 10px; }
.geysier-mobile-menu-btn span:nth-child(2) { top: 16px; }
.geysier-mobile-menu-btn span:nth-child(3) { top: 22px; }

body.geysier-design .main-wrapper { padding-top: 80px !important; }

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 980px;
  background: var(--text-primary); color: #fff;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; }

.btn-secondary,
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 980px;
  background: transparent; color: var(--text-primary);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-hover); cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover,
.btn-ghost:hover { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.18); }

/* ═══ SHARED TYPOGRAPHY ═══ */
.section-label,
.section-eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-tertiary);
  margin-bottom: 16px; text-align: center;
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center; max-width: 520px; margin: 0 auto 64px;
  font-size: 16px; color: var(--text-secondary); line-height: 1.6;
}

/* ═══ FOOTER ═══ */
.geysier-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg) !important;
}
.geysier-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
.geysier-footer-brand p { font-size: 13px; color: var(--text-tertiary); margin-top: 16px; line-height: 1.6; max-width: 280px; }
.geysier-footer-brand img { height: 18px; width: auto; }
.geysier-footer-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-tertiary); margin-bottom: 16px; }
.geysier-footer-links { list-style: none; }
.geysier-footer-links li { margin-bottom: 8px; }
.geysier-footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.2s ease; }
.geysier-footer-links a:hover { color: var(--text-primary); }
.geysier-footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.geysier-footer-copy { font-size: 12px; color: var(--text-tertiary); }

/* Nunjucks partials (nav.njk / footer.njk) on geysier-design — same look as .geysier-nav / .geysier-footer */
body.geysier-design .nav#mainNav {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 1000 !important;
  padding: 0 24px !important;
  background: rgba(255,255,255,0.86) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
body.geysier-design .nav.scrolled {
  background: rgba(255,255,255,0.94) !important;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05) !important;
}
body.geysier-design .nav-pill {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0;
}
body.geysier-design .nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
body.geysier-design .nav-logo img {
  height: 18px;
  width: auto;
  display: block;
}
/* Match home.css nav row layout: without these, .nav-right stacks vertically and overflows the 52px pill */
body.geysier-design .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
body.geysier-design .nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 980px;
  transition: color 0.2s ease, background 0.2s ease;
}
body.geysier-design .nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.04);
}
body.geysier-design .nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
body.geysier-design .lang-selector {
  flex-shrink: 0;
}
body.geysier-design .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  height: 36px;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--text-primary);
  color: #fff;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
body.geysier-design .nav-cta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
body.geysier-design .nav-cta:hover { opacity: 0.85; }
body.geysier-design .lang-toggle {
  color: var(--text-secondary);
}
body.geysier-design .lang-toggle:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.04);
}
body.geysier-design .lang-option {
  color: var(--text-secondary);
}
body.geysier-design .lang-option:hover {
  color: var(--text-primary);
}
body.geysier-design .lang-option.active {
  color: var(--text-primary);
  font-weight: 600;
}
body.geysier-design .lang-dropdown-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
/* Partial uses .mobile-menu-btn (not .geysier-mobile-menu-btn); hide on desktop */
body.geysier-design .mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}
body.geysier-design .mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  position: absolute;
  left: 7px;
  transition: all 0.3s ease;
}
body.geysier-design .mobile-menu-btn span:nth-child(1) { top: 10px; }
body.geysier-design .mobile-menu-btn span:nth-child(2) { top: 16px; }
body.geysier-design .mobile-menu-btn span:nth-child(3) { top: 22px; }
body.geysier-design .footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg) !important;
}
body.geysier-design .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
body.geysier-design .footer-brand p { font-size: 13px; color: var(--text-tertiary); margin-top: 16px; line-height: 1.6; max-width: 280px; }
body.geysier-design .footer-brand img { height: 18px; width: auto; }
body.geysier-design .footer-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-tertiary); margin-bottom: 16px; }
body.geysier-design .footer-links { list-style: none; }
body.geysier-design .footer-links li { margin-bottom: 8px; }
body.geysier-design .footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.2s ease; }
body.geysier-design .footer-links a:hover { color: var(--text-primary); }
body.geysier-design .footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
body.geysier-design .footer-copy { font-size: 12px; color: var(--text-tertiary); }
body.geysier-design .footer-legal { display: flex; gap: 20px; }
body.geysier-design .footer-legal a { font-size: 13px; color: var(--text-tertiary); }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none !important; transition: none !important; opacity: 1; transform: none; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .main-wrapper .container,
  .geysier-footer .container,
  .main-wrapper .container-wide,
  .geysier-footer-grid,
  body.geysier-design .footer-grid {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .section-heading {
    font-size: clamp(30px, 9vw, 42px);
  }
  .section-sub {
    margin-bottom: 40px;
    font-size: 15px;
  }
  .geysier-nav,
  body.geysier-design .nav#mainNav {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .geysier-nav-links { display: none; }
  .geysier-nav-cta { display: none; }
  .geysier-mobile-menu-btn { display: block; }
  .geysier-nav-inner { height: 64px; }
  body.geysier-design .nav-links { display: none; }
  body.geysier-design .nav-links.is-open {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 32px 18px max(32px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    overflow-y: auto;
  }
  body.geysier-design .nav-links.is-open a {
    width: 100%;
    padding: 14px 18px;
    text-align: center;
    font-size: 18px;
    color: var(--text-primary);
    background: rgba(0,0,0,0.03);
  }
  body.geysier-design .nav-cta { display: none; }
  body.geysier-design .mobile-menu-btn { display: block; }
  body.geysier-design .nav-pill { height: 64px; }
  body.geysier-design .mobile-menu-btn.is-open span:nth-child(1) { transform: translate(0, 6px) rotate(45deg); }
  body.geysier-design .mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
  body.geysier-design .mobile-menu-btn.is-open span:nth-child(3) { transform: translate(0, -6px) rotate(-45deg); }
  /* When the mobile menu is open, drop backdrop-filter on the nav so the
     fixed .nav-links.is-open is positioned against the viewport, not the
     nav element. backdrop-filter creates a containing block for fixed
     descendants, which would otherwise clip the menu to the nav strip. */
  .geysier-nav.menu-open,
  body.geysier-design .nav#mainNav.menu-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,0.97) !important;
  }
  body.menu-open {
    overflow: hidden;
  }
  .geysier-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .geysier-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  body.geysier-design .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  body.geysier-design .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .section-label,
  .section-eyebrow {
    font-size: 11px;
  }
}
