/* ============================================================
   ChargeCatalyst — Blueprint
   Design system / tokens  (cool light · electric blue)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* --- surfaces (cool light) --- */
  --ink:      #EBEFF4;   /* page */
  --ink-1:    #FFFFFF;   /* panel */
  --ink-2:    #F3F6FA;
  --ink-3:    #E5ECF3;
  --line:     #CBD7E3;
  --line-dim: #DCE4EC;

  /* --- wash for panels over hero --- */
  --glass:    rgba(255, 255, 255, 0.74);

  /* --- type --- */
  --fg:       #0F1B2A;   /* navy near-black */
  --fg-2:     #33455A;
  --fg-dim:   #5E6E80;
  --fg-faint: #8B98A7;

  /* --- accents --- */
  --volt:      #1B5FE0;  /* electric blue */
  --volt-deep: #1A50BE;
  --volt-glow: rgba(27, 95, 224, 0.18);
  --phantom:   #9AABBC;  /* ghost blue-gray */
  --alarm:     #C2541F;

  --font-disp: 'Schibsted Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Schibsted Grotesk', 'Helvetica Neue', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--volt); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* display weights */
.display {
  font-family: var(--font-disp);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --- shared layout --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(80px, 11vw, 160px); }
.section + .section { border-top: 1px solid var(--line-dim); }

/* section eyebrow:  03 / FIRMNESS ENGINE */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim);
}
.eyebrow .idx { color: var(--volt); }
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--volt);
  display: inline-block;
}

h2.head {
  font-family: var(--font-disp);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  margin-top: 22px; text-wrap: balance;
}
h2.head.head-sm {
  font-size: clamp(1.7rem, 3.1vw, 2.55rem);
  letter-spacing: -0.02em; line-height: 1.05;
}
.lede {
  color: var(--fg-2); font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.5; max-width: 62ch; margin-top: 22px;
  text-wrap: pretty;
}
.volt { color: var(--volt); }
.alarm-t { color: var(--alarm); }

/* ============================================================
   Panel + corner ticks (blueprint frame)
   ============================================================ */
.panel {
  position: relative;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15, 27, 42, 0.04);
}
.ticked { position: relative; }
.ticked > .tick {
  position: absolute; width: 9px; height: 9px; z-index: 2;
  border-color: var(--volt); border-style: solid; border-width: 0;
}
.ticked > .tick.tl { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.ticked > .tick.tr { top: -1px; right: -1px; border-top-width: 1.5px; border-right-width: 1.5px; }
.ticked > .tick.bl { bottom: -1px; left: -1px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.ticked > .tick.br { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 400; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn .ar { transition: transform 0.25s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn-volt {
  background: var(--volt); color: #fff;
  box-shadow: 0 0 0 0 var(--volt-glow);
}
.btn-volt:hover { box-shadow: 0 8px 28px -8px var(--volt-glow); transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost {
  background: transparent; color: var(--fg); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 250, 252, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(15, 27, 42, 0.03);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .glyph {
  width: 26px; height: 26px; flex: none; position: relative;
}
.brand .word {
  font-family: var(--font-disp); font-weight: 800;
  font-size: 16px; letter-spacing: -0.01em;
}
.brand .word b { color: var(--volt); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-dim); transition: color 0.2s;
  position: relative; padding: 4px 0; white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--volt); transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-status {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-dim);
}
.nav-status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--volt);
  box-shadow: 0 0 0 0 var(--volt); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(27, 95, 224, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(27, 95, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 95, 224, 0); }
}
.menu-btn { display: none; }

/* ============================================================
   reveal animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: transform 0.75s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"] { transition-delay: 0.06s; }
  .reveal[data-d="2"] { transition-delay: 0.13s; }
  .reveal[data-d="3"] { transition-delay: 0.20s; }
  .reveal[data-d="4"] { transition-delay: 0.27s; }
  .reveal[data-d="5"] { transition-delay: 0.34s; }
}

/* firm motif helpers */
.firmbar { display: flex; gap: 3px; height: 100%; }
.firmbar .seg { flex: 1; border-radius: 1px; }
.seg.solid { background: var(--volt); }
.seg.ghost {
  background: repeating-linear-gradient(135deg, var(--phantom) 0 2px, transparent 2px 5px);
  border: 1px dashed rgba(154, 171, 188, 0.7);
}
