/* =========================================================
   Valocitee — Base design tokens & shared components
   ========================================================= */

:root{
  /* --- Brand color tokens (from logomark) --- */
  --navy-950: #060a17;
  --navy-900: #0b1229;
  --navy-800: #121a3a;
  --navy-700: #1c2650;
  --ink:      #0f1a3c;
  --slate:    #59627a;
  --slate-300:#aab2c8;
  --line:     #e3e6f0;
  --paper:    #f7f8fc;
  --paper-2:  #eef0f8;
  --white:    #ffffff;

  --blue-700: #17399e;
  --blue-600: #1e4fd6;
  --blue-500: #2f66f0;
  --cyan-400: #3fc5f0;
  --cyan-300: #7fdcfa;

  --grad-mark: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 45%, var(--cyan-400) 100%);

  /* --- Type --- */
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* --- Layout --- */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 8px;

  color-scheme: light;
}

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

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p{ margin: 0; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.wrap{
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Buttons --- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover{ background: var(--blue-700); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--ink); }
.btn-arrow::after{
  content: "→";
  transition: transform .15s ease;
}
.btn:hover .btn-arrow::after,
.btn.btn-arrow:hover::after{ transform: translateX(3px); }

/* --- Site header --- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,248,252,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}
.brand img{ height: 30px; width: auto; }
.brand .accent{ color: var(--blue-600); }

.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  transition: color .15s ease;
  position: relative;
}
.nav-links a:hover{ color: var(--ink); }

.nav-cta{ display: flex; align-items: center; gap: 18px; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg{ width: 18px; height: 18px; }

@media (max-width: 860px){
  .nav-links{
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    padding: 36px var(--pad);
    gap: 26px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links a{ font-size: 20px; color: var(--ink); }
  body.nav-open .nav-links{
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .nav-toggle{ display: inline-flex; }
  .nav-cta .btn-ghost{ display: none; }
}

/* --- Footer --- */
.site-footer{
  background: var(--navy-900);
  color: var(--slate-300);
  padding: 64px 0 28px;
}
.site-footer a{ color: var(--slate-300); }
.site-footer a:hover{ color: var(--white); }
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand{ color: var(--white); }
.footer-brand p{
  margin-top: 14px;
  max-width: 320px;
  font-size: 14.5px;
  color: var(--slate-300);
}
.footer-col h5{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  color: var(--slate-300);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px){
  .footer-top{ grid-template-columns: 1fr; }
}

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