:root{
  --navy-950: #071B33;
  --navy-900: #0B2A4A;
  --navy-800: #123A63;
  --navy-100: #E7EEF6;
  --emerald-600: #0E9F6E;
  --emerald-700-text: #0A7752;
  --emerald-500: #14B981;
  --emerald-100: #E3F8EF;
  --white: #FFFFFF;
  --gray-50: #F6F8FA;
  --gray-100: #EEF1F4;
  --gray-400: #8A94A3;
  --gray-600: #5A6373;
  --ink: #1B2430;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }

.container{ max-width: 1180px; margin: 0 auto; padding: 0 32px; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy-950);
}

:focus-visible{ outline: 2px solid var(--emerald-600); outline-offset: 3px; }
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
  background:var(--navy-950); color:var(--white); padding:12px 20px; border-radius:8px;
  font-family:var(--font-mono); font-size:13px; z-index:1000; text-decoration:none;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto; overflow:visible;
}

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

/* ---------- Eyebrow ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-700-text);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 18px;
}
.eyebrow::before{ content:''; width:16px; height:1px; background: var(--emerald-600); }
.eyebrow.on-dark{ color: var(--emerald-500); }
.eyebrow.on-dark::before{ background: var(--emerald-500); }

/* ---------- Nav ---------- */
header{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(11,42,74,0.07);
  transition: box-shadow 0.3s var(--ease);
}
nav{ max-width:1180px; margin:0 auto; padding: 18px 32px; display:flex; align-items:center; justify-content: space-between; }
.logo{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); color: var(--navy-950); }
.logo-text{ display:flex; flex-direction:column; line-height:1.05; }
.logo-line1{ font-weight:700; font-size:17px; }
.logo-line2{ font-weight:500; font-size:10px; letter-spacing:0.08em; text-transform:uppercase; color: var(--gray-600); margin-top:2px; }
.logo-mark{ width:30px; height:30px; border-radius:8px; background: linear-gradient(135deg, var(--navy-900), var(--navy-950)); position:relative; flex-shrink:0; }
.logo-mark::before, .logo-mark::after{ content:''; position:absolute; border-radius:2px; background: var(--emerald-500); }
.logo-mark::before{ width:12px; height:3px; top:9px; left:9px; }
.logo-mark::after{ width:3px; height:12px; top:9px; left:18px; border-radius: 0 2px 2px 0; }
.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{ font-size: 14.5px; font-weight:500; color: var(--navy-800); position: relative; padding: 4px 0; }
.nav-links a.active{ color: var(--navy-950); }
.nav-links a::after{ content:''; position:absolute; bottom:-2px; left:0; width:0; height:1.5px; background: var(--emerald-600); transition: width 0.25s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-cta{ display:flex; gap:14px; align-items:center; }
.nav-toggle{ display:none; }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding: 13px 26px; border-radius: 999px; font-size: 14.5px; font-weight:600; letter-spacing: -0.005em; transition: all 0.3s var(--ease); white-space:nowrap; }
.btn-primary{ background: var(--navy-950); color: var(--white); box-shadow: 0 1px 2px rgba(7,27,51,0.1); }
.btn-primary:hover{ background: var(--emerald-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,159,110,0.28); }
.btn-ghost{ background: transparent; color: var(--navy-950); border: 1.5px solid rgba(11,42,74,0.16); }
.btn-ghost:hover{ border-color: var(--navy-950); background: var(--navy-100); }
.btn-on-dark.btn-primary{ background: var(--emerald-500); }
.btn-on-dark.btn-primary:hover{ background: var(--white); color: var(--navy-950); }
.btn-sm{ padding: 10px 20px; font-size: 13.5px; }

/* ---------- Section shells ---------- */
section{ padding: 108px 0; }
.section-alt{ background: var(--gray-50); }
.section-head{ max-width: 620px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }
.section-head h2{ font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 16px; }
.section-head p{ color: var(--gray-600); font-size: 16px; }

/* ---------- Page header (interior pages) ---------- */
.page-hero{
  position:relative;
  padding: 168px 0 84px;
  background: radial-gradient(1000px 500px at 85% -20%, rgba(14,159,110,0.09), transparent 60%), var(--white);
}
.page-hero h1{ font-size: clamp(2.1rem, 3.6vw, 3rem); line-height:1.1; margin-bottom: 20px; max-width: 700px; }
.page-hero p{ font-size: 17px; color: var(--gray-600); max-width: 560px; }
.breadcrumb{ font-family: var(--font-mono); font-size: 12.5px; color: var(--gray-400); margin-bottom: 24px; display:flex; gap:8px; align-items:center; }
.breadcrumb a{ color: var(--gray-400); }
.breadcrumb a:hover{ color: var(--navy-950); }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- Footer ---------- */
footer{ background: var(--gray-50); border-top:1px solid var(--gray-100); padding: 72px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; margin-bottom: 56px; }
.footer-brand p{ font-size:13.5px; color:var(--gray-600); margin: 18px 0 22px; max-width:260px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{ width:34px; height:34px; border-radius:9px; background: var(--white); border:1px solid var(--gray-100); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; transition: all 0.25s var(--ease); }
.footer-social a:hover{ background: var(--navy-950); border-color:var(--navy-950); color:var(--white); }
.footer-col h4{ font-size: 12.5px; text-transform:uppercase; letter-spacing:0.06em; color: var(--gray-400); margin-bottom:18px; font-family: var(--font-mono); font-weight:500; }
.footer-col a{ display:block; font-size:14px; color: var(--navy-800); margin-bottom:12px; transition: color 0.2s; }
.footer-col a:hover{ color: var(--emerald-700-text); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top: 28px; border-top: 1px solid var(--gray-100); font-size: 13px; color: var(--gray-400); flex-wrap:wrap; gap:12px; }
.footer-bottom-links{ display:flex; gap:20px; }
.footer-bottom-links a{ color:var(--gray-400); }
.footer-bottom-links a:hover{ color: var(--navy-950); }

/* ---------- Newsletter (shared component, used across many pages) ---------- */
.newsletter{ background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); border-radius: var(--radius-lg); padding: 64px; text-align:center; position:relative; overflow:hidden; }
.newsletter::before{ content:''; position:absolute; inset:0; background: radial-gradient(600px 300px at 50% 0%, rgba(14,185,129,0.18), transparent 60%); }
.newsletter h2{ color:var(--white); font-size: clamp(1.5rem,2.4vw,2rem); margin-bottom:14px; position:relative; }
.newsletter p{ color: rgba(255,255,255,0.65); max-width:440px; margin: 0 auto 32px; position:relative; }
.newsletter-form{ display:flex; gap:10px; max-width: 440px; margin: 0 auto; position:relative; }
.newsletter-form input{ flex:1; padding: 14px 20px; border-radius: 999px; border:1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: var(--white); font-size:14px; font-family: inherit; }
.newsletter-form input::placeholder{ color: rgba(255,255,255,0.4); }
.newsletter-form input:focus{ outline:2px solid var(--emerald-500); outline-offset:2px; }
.newsletter-note{ font-size:12px; color: rgba(255,255,255,0.4); margin-top:16px; position:relative; }
@media (max-width: 680px){
  .newsletter{ padding:32px 22px; }
  .newsletter-form{ flex-direction:column; }
}

/* ---------- Responsive shell ---------- */
@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px){
  .nav-links{
    position:fixed; top:66px; left:0; right:0; background: var(--white);
    flex-direction:column; align-items:flex-start; padding: 24px 32px; gap:20px;
    border-bottom:1px solid var(--gray-100);
    transform: translateY(-130%); transition: transform 0.3s var(--ease);
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-toggle{ display:flex; flex-direction:column; gap:5px; width:22px; }
  .nav-toggle span{ height:2px; background:var(--navy-950); border-radius:2px; }
  .nav-toggle span{ transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); transform-origin:center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .nav-cta .btn-ghost{ display:none; }
  section{ padding:72px 0; }
  .page-hero{ padding: 140px 0 56px; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:900;
  max-width:640px; margin:0 auto;
  background:var(--navy-950); color:var(--white);
  border-radius:var(--radius-md);
  padding:20px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  box-shadow:0 20px 44px rgba(7,27,51,0.28);
  transform:translateY(140%); transition:transform 0.4s var(--ease);
}
.cookie-banner.show{ transform:translateY(0); }
.cookie-banner p{ font-size:13.5px; line-height:1.6; color:rgba(255,255,255,0.85); margin:0; }
.cookie-banner p a{ color:var(--emerald-400,#3FD9A4); text-decoration:underline; }
.cookie-banner button{ flex-shrink:0; }
@media (max-width:600px){
  .cookie-banner{ flex-direction:column; align-items:flex-start; left:12px; right:12px; bottom:12px; }
  .cookie-banner button{ width:100%; }
}
