/* =====================================================
   NORTHERN EDGE — Impera-language design system
   One grotesk face at one weight (400): hierarchy comes from
   size and space, never bold. Near-black navy bands alternate
   with pure white; a single ice-blue accent used like ink.
   Sharp corners everywhere except pill CTAs and card images.

   Class-name + custom-property API matches the previous
   design system so verbatim markup (incl. inline var() refs
   and the audit engines' injected classes) restyles cleanly.
===================================================== */
:root {
  /* remapped legacy names */
  --bg:            #FFFFFF;
  --bg-warm:       #F3F6FA;            /* subtle ice tint: hovers + alt surfaces on light bands */
  --ink:           #010518;
  --ink-muted:     rgba(1, 5, 24, 0.66);
  --ink-faint:     rgba(1, 5, 24, 0.42);
  --border:        rgba(1, 5, 24, 0.12);
  --white:         #FFFFFF;
  --navy:          #010518;
  --accent:        #9DDDFF;            /* ice blue — dark bands only */
  --accent-dim:    #266B90;            /* accent on white (AA) */

  --font:          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display:  "Helvetica Neue", Helvetica, Arial, sans-serif;

  --sz-hero:       clamp(52px, 7.5vw, 80px);
  --sz-h2:         clamp(32px, 4.2vw, 48px);
  --sz-h3:         22px;
  --sz-title:      24px;
  --sz-eyebrow:    13px;
  --sz-lede:       clamp(17px, 1.6vw, 20px);
  --sz-body:       16px;
  --sz-small:      15px;
  --sz-meta:       13px;
  --sz-stat-inline: 32px;
  --sz-mobile-nav: 28px;

  --nav-h:         110px;
  --section-v:     clamp(88px, 10vw, 128px);
  --section-v-top: calc(var(--nav-h) + clamp(64px, 8vw, 100px));
  --section-h:     max(clamp(24px, 5vw, 72px), calc((100vw - 1296px) / 2));
  --gap-sm:        12px;
  --gap-md:        24px;
  --gap-lg:        40px;

  --radius:        0;

  /* Impera tokens */
  --bg-dark:       #010518;
  --bg-deep:       #010D18;
  --surface:       #101320;
  --t-inv:         rgba(255, 255, 255, 0.68);
  --t-inv-faint:   rgba(255, 255, 255, 0.45);
  --border-inv:    rgba(255, 255, 255, 0.14);
  --radius-pill:   32px;
  --radius-img:    16px;
  --track-tight:   -0.03em;
  --t:             all 0.3s ease;

  /* band-scoped (light defaults; .band-dark overrides) */
  --hairline:      var(--border);
  --tx-muted:      var(--ink-muted);
  --tx-faint:      var(--ink-faint);
  --ax:            var(--accent-dim);
}
@media (max-width: 860px) { :root { --nav-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body { background: var(--bg-dark); color: #fff; font-family: var(--font); font-weight: 400; font-size: var(--sz-body); line-height: 1.5; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: inherit; }
h1, h2 { letter-spacing: var(--track-tight); }
h1 { line-height: 1.02; }
h2 { line-height: 1.15; }
h3, h4 { letter-spacing: -0.02em; line-height: 1.3; }
p { color: var(--tx-muted); }
strong { font-weight: 400; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1296px; margin: 0 auto; padding: 0 var(--section-h); }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ax); outline-offset: 3px; }

/* BANDS — sections declare their surface; scoped vars re-key
   hairlines, muted text and the accent for that surface. */
.band-dark { background: var(--bg-dark); color: #fff;
  --hairline: var(--border-inv); --tx-muted: var(--t-inv); --tx-faint: var(--t-inv-faint); --ax: var(--accent); }
.band-deep { background: var(--bg-deep); color: #fff;
  --hairline: var(--border-inv); --tx-muted: var(--t-inv); --tx-faint: var(--t-inv-faint); --ax: var(--accent); }
.band-light { background: var(--bg); color: var(--ink);
  --hairline: var(--border); --tx-muted: var(--ink-muted); --tx-faint: var(--ink-faint); --ax: var(--accent-dim); }

.eyebrow {
  font-size: var(--sz-eyebrow); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ax);
  display: inline-block; margin-bottom: 20px;
}

/* BUTTONS — the pill + accent arrow-disc is the one rounded
   gesture in the system. Ghost .btn keeps a hairline pill. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 26px;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.1;
  color: inherit; background: transparent; cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
.btn:hover { border-color: currentColor; }
.btn-primary {
  border: none;
  padding: 12px 13px 12px 26px;
  background: var(--ink); color: #fff;
}
.btn-primary::after {
  content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background-color: var(--accent);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%23010518" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 8h11M9.5 3.5 14 8l-4.5 4.5"/></svg>');
  background-repeat: no-repeat; background-position: center; background-size: 13px auto;
  transition: transform 0.3s ease;
}
.btn-primary:hover::after { transform: translateX(4px); }
.btn-primary:hover { background: var(--accent-dim); color: #fff; }
.band-dark .btn-primary, .band-deep .btn-primary, .site-nav .btn-primary { background: #fff; color: var(--ink); }
.band-dark .btn-primary:hover, .band-deep .btn-primary:hover, .site-nav .btn-primary:hover { background: var(--accent); color: var(--ink); }

.btn-link { border: none; padding: 0; display: inline-flex; align-items: center; gap: 8px; color: inherit; font-size: 16px; }
.btn-link::after { content: '→'; color: var(--ax); transition: transform 0.3s ease; }
.btn-link:hover::after { transform: translateX(4px); }

.section-label { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-label h2 { font-size: var(--sz-h2); }
.section-label p { font-size: var(--sz-lede); line-height: 1.6; max-width: 54ch; margin-top: 22px; }

/* Shared two-column split */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg) clamp(40px, 6vw, 96px); }
@media (max-width: 820px) { .two-col-grid { grid-template-columns: 1fr; } }

/* Row-based list — the numbered-row idiom: hairline dividers,
   oversized index, hierarchy from scale. */
.row-list { border-top: 1px solid var(--hairline); margin-top: clamp(48px, 6vw, 72px); }
.row-list-item { display: grid; grid-template-columns: 180px 1fr; gap: var(--gap-lg) clamp(32px, 5vw, 80px); padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--hairline); }
@media (max-width: 700px) { .row-list-item { grid-template-columns: 1fr; gap: 14px; } }
.row-list-tagline { font-size: var(--sz-small); color: var(--tx-muted); margin-top: 8px; }
.row-list-title { font-size: var(--sz-title); margin-bottom: 14px; }
.row-list-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--gap-md); }
.row-list-feature { font-size: var(--sz-small); color: var(--tx-muted); padding-left: 20px; position: relative; line-height: 1.55; }
.row-list-feature::before { content: '—'; position: absolute; left: 0; color: var(--ax); }

/* Glowing line-icon (inline SVG helper) */
.gi { width: 42px; height: 42px; flex: none; color: var(--accent); filter: drop-shadow(0 0 9px rgba(157, 221, 255, 0.45)); }

/* SKIP LINK */
.skip-link {
  position: absolute; left: 8px; top: -64px; z-index: 200;
  background: var(--accent); color: var(--ink);
  padding: 12px 18px;
  font-size: var(--sz-small);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* SCROLL REVEAL — additive only: content is fully visible
   without JS or under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .js .reveal.in-view { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: 0.08s; }
  .js .reveal-d2 { transition-delay: 0.16s; }
  .js .reveal-d3 { transition-delay: 0.24s; }
}

/* =====================================================
   NAV — fixed, transparent over the dark opening band,
   solid navy once scrolled. Always light-on-dark.
===================================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--section-h);
  background: transparent; border-bottom: 1px solid transparent;
  color: #fff;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-nav.scrolled {
  background: rgba(1, 5, 24, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--border-inv);
}
.nav-wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.nav-mark { width: 21px; height: 21px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-mark { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; opacity: 0.9; }
.nav-links { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); }
.nav-links a { font-size: 16px; color: rgba(255, 255, 255, 0.72); transition: color 0.3s ease; display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.site-nav .btn-primary { padding: 10px 11px 10px 22px; font-size: 15px; }
.site-nav .btn-primary::after { width: 26px; height: 26px; background-size: 12px auto; }
.hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; width: 44px; height: 44px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: #fff; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .site-nav .btn-primary { display: none; }
  .hamburger { display: flex; }
}

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 101; background: var(--bg-dark);
  flex-direction: column; align-items: center; justify-content: center; gap: var(--gap-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: var(--sz-mobile-nav); letter-spacing: -0.02em; color: #fff; }
.mobile-menu-close { position: absolute; top: 16px; right: calc(var(--section-h) - 6px); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: none; font-size: 24px; cursor: pointer; color: #fff; }

/* =====================================================
   PAGE HEADER — interior pages open on a dark band with a
   faint deep-blue bloom, so the transparent nav always sits
   on navy.
===================================================== */
.page-header {
  position: relative; overflow: hidden;
  padding: var(--section-v-top) var(--section-h) var(--section-v);
  background: var(--bg-dark);
  color: #fff;
  --hairline: var(--border-inv); --tx-muted: var(--t-inv); --tx-faint: var(--t-inv-faint); --ax: var(--accent);
  border-bottom: 1px solid var(--border-inv);
}
.page-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 480px at 85% -12%, rgba(38, 107, 144, 0.32), transparent 70%);
}
.page-header > * { position: relative; }
.page-header h1 { font-size: clamp(40px, 6vw, 64px); max-width: 17ch; }
.page-header p { font-size: 18px; color: var(--t-inv); max-width: 56ch; margin-top: 26px; line-height: 1.6; }

/* =====================================================
   FOOTER — two-panel: brand panel with a hairline seam,
   then link columns; legal strip beneath.
===================================================== */
.site-footer { background: var(--bg-deep); color: #fff; border-top: 1px solid var(--border-inv);
  --hairline: var(--border-inv); --tx-muted: var(--t-inv); --tx-faint: var(--t-inv-faint); --ax: var(--accent); }
.footer-top { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 0; padding: 0; }
.footer-top > div { padding: clamp(64px, 8vw, 104px) 48px; }
.footer-top > div:first-child { padding-left: var(--section-h); border-right: 1px solid var(--border-inv); }
.footer-top > div:last-child { padding-right: var(--section-h); }
.footer-tagline { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: var(--track-tight); line-height: 1.12; margin-bottom: 26px; text-shadow: 0 0 34px rgba(157, 221, 255, 0.35); }
.footer-body { font-size: var(--sz-small); color: var(--t-inv); line-height: 1.7; max-width: 36ch; }
.footer-col-title { font-size: var(--sz-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-inv-faint); margin-bottom: 26px; }
.footer-col-links { display: flex; flex-direction: column; gap: 2px; }
.footer-col-links a, .footer-col-links span { font-size: var(--sz-small); color: rgba(255, 255, 255, 0.72); transition: color 0.3s ease; }
.footer-col-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col-links span { padding: 10px 0; }
.footer-col-links a:hover { color: var(--accent); }
.footer-bottom { padding: 26px var(--section-h); border-top: 1px solid var(--border-inv); display: flex; justify-content: space-between; align-items: center; font-size: var(--sz-meta); color: var(--t-inv-faint); }
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div, .footer-top > div:first-child, .footer-top > div:last-child { padding: 48px var(--section-h); border-right: none; border-bottom: 1px solid var(--border-inv); }
  .footer-top > div:last-child { border-bottom: none; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* MOTION SAFETY — every animation and transition collapses
   for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
