/* ==========================================================================
   Fully Searchable — Shared (design tokens, reset, nav, footer)
   Loaded on every page so the header and footer stay in sync everywhere.
   Page-specific styles (styles.css for the homepage, or a page's own
   <style> block) load after this file and layer their own sections on top.
   ========================================================================== */
:root{
  /* color */
  --ink:        #0A0E1A;
  --navy:       #101A33;
  --navy-2:     #142145;
  --blue:       #2E6BFF;
  --blue-light: #6FA8FF;
  --paper:      #F6F8FC;
  --tint:       #EAF1FF;
  --white:      #FFFFFF;
  --slate:      #5B6478;
  --slate-dim:  #8A93AC;
  --line:       rgba(255,255,255,.10);
  --line-dark:  rgba(10,14,26,.08);

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

  /* scale */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1240px;

  --shadow-soft: 0 20px 50px -20px rgba(10,14,26,.25);
  --shadow-blue: 0 20px 60px -18px rgba(46,107,255,.45);

  --ease: cubic-bezier(.22,.9,.28,1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p,dl,dd,dt,figure{ margin:0; }
button{ font:inherit; background:none; border:none; cursor:pointer; color:inherit; }
.container{ max-width:var(--container); margin-inline:auto; padding-inline:24px; }

.skip-link a{
  position:absolute; left:-9999px; top:0; background:var(--ink); color:var(--white);
  padding:10px 16px; border-radius:0 0 8px 0; z-index:200;
}
.skip-link a:focus{ left:0; }

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

h1,h2,h3{ font-family:var(--font-display); font-weight:600; letter-spacing:-0.01em; }
h2{ font-size:clamp(2rem,3.4vw,2.9rem); line-height:1.12; }
h3{ font-size:1.2rem; line-height:1.3; }

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:var(--radius-pill);
  font-family:var(--font-body); font-weight:600; font-size:.95rem;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space:nowrap;
}
.btn--lg{ padding:16px 30px; font-size:1rem; }
.btn--sm{ padding:9px 18px; font-size:.85rem; }

.btn--primary{ background:var(--blue); color:var(--white); box-shadow:var(--shadow-blue); }
.btn--primary:hover{ background:var(--blue-light); transform:translateY(-2px); box-shadow:0 24px 60px -16px rgba(46,107,255,.6); }

.btn--ghost{ background:rgba(255,255,255,.06); color:var(--white); border:1px solid var(--line); }
.btn--ghost:hover{ background:rgba(255,255,255,.12); transform:translateY(-2px); }

.btn--outline-dark{ background:transparent; color:var(--ink); border:1.5px solid var(--line-dark); }
.btn--outline-dark:hover{ background:var(--ink); color:var(--white); border-color:var(--ink); }

.btn--white{ background:var(--white); color:var(--ink); box-shadow:0 20px 50px -18px rgba(0,0,0,.35); }
.btn--white:hover{ transform:translateY(-2px); box-shadow:0 26px 60px -16px rgba(0,0,0,.4); }

.btn--outline-light{ background:transparent; color:var(--white); border:1.5px solid rgba(255,255,255,.5); }
.btn--outline-light:hover{ background:rgba(255,255,255,.12); }

/* ==========================================================================
   Signature: search-pill eyebrows
   ========================================================================== */
.pill{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.78rem; letter-spacing:.02em;
  padding:8px 16px 8px 12px; border-radius:var(--radius-pill);
  margin-bottom:18px; text-transform:lowercase;
}
.pill__icon{ width:15px; height:15px; flex-shrink:0; }
.pill--dark{ background:rgba(255,255,255,.06); color:var(--blue-light); border:1px solid var(--line); }
.pill--light{ background:var(--tint); color:var(--blue); border:1px solid rgba(46,107,255,.15); }
.pill__cursor{
  width:2px; height:12px; background:currentColor; display:inline-block; margin-left:1px;
  animation:blink 1s step-end infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0; transition:padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav::before{
  content:''; position:absolute; inset:0; background:rgba(10,14,26,.0);
  backdrop-filter:blur(0px); transition:background .3s var(--ease), backdrop-filter .3s var(--ease);
  z-index:-1;
}
.nav.is-scrolled{ padding:12px 0; }
.nav.is-scrolled::before{ background:rgba(10,14,26,.72); backdrop-filter:blur(14px); box-shadow:0 1px 0 var(--line); }

.nav__inner{
  max-width:var(--container); margin-inline:auto; padding-inline:24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav__logo{ display:flex; align-items:center; gap:10px; color:var(--white); flex-shrink:0; }
.nav__logo-mark{ width:26px; height:26px; color:var(--blue-light); display:flex; }
.nav__logo-mark svg{ width:100%; height:100%; }
.nav__logo-text{ font-family:var(--font-display); font-size:1.05rem; font-weight:500; }
.nav__logo-text strong{ font-weight:700; }

.nav__links{ display:flex; align-items:center; gap:30px; font-size:.92rem; font-weight:500; color:rgba(255,255,255,.82); }
.nav__links a{ position:relative; padding:4px 0; transition:color .2s; }
.nav__links a:hover, .nav__links a[aria-current]{ color:var(--white); }
.nav__links a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:1.5px; background:var(--blue-light);
  transition:width .25s var(--ease);
}
.nav__links a:hover::after{ width:100%; }

.nav__actions{ display:flex; align-items:center; gap:14px; }
.nav__toggle{ display:none; flex-direction:column; gap:5px; width:26px; }
.nav__toggle span{ height:2px; background:var(--white); border-radius:2px; transition:transform .25s, opacity .25s; }

.mobile-menu{
  display:none; flex-direction:column; gap:4px;
  background:var(--ink); border-top:1px solid var(--line);
  padding:16px 24px 22px;
}
.mobile-menu a{ padding:12px 4px; color:rgba(255,255,255,.85); font-weight:500; border-bottom:1px solid var(--line); }
.mobile-menu .btn{ margin-top:12px; width:100%; }
.mobile-menu.is-open{ display:flex; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{ background:var(--ink); color:rgba(255,255,255,.7); padding:80px 0 28px; }
.footer__grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px; border-bottom:1px solid var(--line); }
.footer__grid > *{ min-width:0; }
.footer__brand p{ margin:18px 0 22px; font-size:.9rem; max-width:300px; color:rgba(255,255,255,.55); }
.nav__logo--footer{ color:var(--white); }
.footer__social{ display:flex; gap:12px; }
.footer__social a{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
  transition:background .25s, border-color .25s;
}
.footer__social svg{ width:16px; height:16px; }
.footer__social a:hover{ background:var(--blue); border-color:var(--blue); }

.footer__col h4{ font-family:var(--font-display); color:var(--white); font-size:.9rem; margin-bottom:16px; letter-spacing:.03em; text-transform:uppercase; }
.footer__col{ display:flex; flex-direction:column; gap:11px; font-size:.9rem; }
.footer__col a:hover{ color:var(--white); }

.footer__bottom{ display:flex; justify-content:space-between; padding-top:26px; font-size:.82rem; color:rgba(255,255,255,.4); flex-wrap:wrap; gap:10px; }

/* ==========================================================================
   Responsive (nav + footer only — page-specific breakpoints live in
   each page's own stylesheet)
   ========================================================================== */
@media(max-width:1080px){
  .footer__grid{ grid-template-columns:1fr 1fr 1fr; }
}
@media(max-width:860px){
  .nav__links{ display:none; }
  .nav__toggle{ display:flex; }
  .footer__grid{ grid-template-columns:1fr 1fr; }
}
@media(max-width:640px){
  .footer__grid{ grid-template-columns:1fr; }
}
