/* ==========================================================================
   Direwolf Space Systems — site stylesheet
   Palette: black / graphite / very dark navy, metallic silver, white,
   restrained cool-blue highlights.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted fonts (Google Fonts latin subsets, SIL Open Font License)
   Inter and Space Grotesk are variable fonts: one file covers every weight.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/michroma-latin.woff2") format("woff2");
}

:root {
  /* Surfaces */
  --bg: #06080d;
  --bg-2: #0b0f16;
  --bg-3: #10151e;
  --panel: #0e131b;
  --panel-2: #131923;
  --line: rgba(201, 206, 214, 0.10);
  --line-strong: rgba(201, 206, 214, 0.22);

  /* Silver & text */
  --white: #f4f6f9;
  --silver: #c9ced6;
  --silver-2: #98a1ae;
  --silver-3: #6b7482;
  --text: #d7dce4;
  --text-muted: #9aa3b0;

  /* Cool-blue highlight (restrained) */
  --blue: #6fb1ff;
  --blue-2: #3f86e0;
  --blue-dim: rgba(111, 177, 255, 0.14);
  --blue-glow: rgba(111, 177, 255, 0.35);
  --bracket: rgba(111, 177, 255, 0.45);

  /* Type */
  --font-display: "Michroma", "Orbitron", "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1160px;
  --gutter: 20px;
  --radius: 4px;
  --radius-lg: 4px;
  --header-h: 72px;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }
strong { color: var(--white); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code { font-family: var(--font-mono); font-size: 0.92em; color: var(--silver); }
.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;
}

/* Cross-document page transitions (progressive; ignored by older browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease-out both vt-out; }
::view-transition-new(root) { animation: 260ms ease-out both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(201,206,214,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,206,214,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 10%, transparent 80%);
}
.section--alt > .container { position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.text-muted { color: var(--text-muted); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--silver); line-height: 1.6; }
.measure { max-width: 68ch; }

/* --------------------------------------------------------------------------
   Typographic brand elements
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--blue); opacity: 0.8; }
.eyebrow--plain::before { display: none; }
.wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
  line-height: 1.2;
}
.wordmark .wm-1 { display: block; font-size: 1em; }
.wordmark .wm-2 { display: block; font-size: 0.56em; letter-spacing: 0.34em; color: var(--silver); margin-top: 0.15em; }
.tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--silver-2);
}
.metallic {
  background: linear-gradient(180deg, #ffffff 0%, #e2e6ec 40%, #aab2be 58%, #eef1f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--silver-2); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(6, 8, 13, 0.72);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(111,177,255,0.0) 30%, rgba(111,177,255,0.65) 50%, rgba(111,177,255,0.0) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: hairline 9s linear infinite;
  opacity: 0.8;
}
@keyframes hairline { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none !important; }
.brand__logo { width: 44px; height: 44px; flex: 0 0 auto; transition: filter 0.3s; }
.brand:hover .brand__logo { filter: drop-shadow(0 0 8px rgba(111,177,255,0.55)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.2em; color: var(--white); }
.brand__sub { font-family: var(--font-display); font-size: 0.5rem; letter-spacing: 0.36em; color: var(--silver-2); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__link {
  display: inline-block; padding: 10px 12px; color: var(--silver); position: relative;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; border-radius: var(--radius);
  text-decoration: none !important; transition: color 0.15s, background 0.15s;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--white); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--white);
  width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(6, 8, 13, 0.97); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { left: 8px; right: auto; width: 28px; bottom: 10px; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .brand__text { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: hidden;
  padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em; border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  font-family: var(--font-body); line-height: 1.2;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: linear-gradient(180deg, #f4f6f9 0%, #d3d8df 100%); color: #0a0d13; border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 8px 24px -12px rgba(255,255,255,0.35);
}
.btn--primary::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -30%; width: 30%;
  background: linear-gradient(105deg, transparent, rgba(111,177,255,0.35), transparent);
  transform: skewX(-20deg) translateX(-120%); transition: transform 0.6s ease;
}
.btn--primary:hover { background: #ffffff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 10px 30px -12px rgba(111,177,255,0.6); }
.btn--primary:hover::after { transform: skewX(-20deg) translateX(520%); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--silver); background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.btn--blue { background: var(--blue-dim); color: var(--white); border-color: rgba(111,177,255,0.35); }
.btn--blue:hover { background: rgba(111,177,255,0.22); border-color: var(--blue); box-shadow: 0 0 24px -8px var(--blue-glow); }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------------------------
   Hero: Earth-from-orbit backdrop, live star layer, orbit track
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(64px, 9vw, 120px) 0 clamp(120px, 16vw, 200px);
  border-bottom: 1px solid var(--line);
  min-height: min(92vh, 980px);
  display: flex; align-items: center;
  background: var(--bg);
}
.hero > .container { position: relative; z-index: 2; width: 100%; }
.hero--page { min-height: 0; display: block; padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__space {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
  will-change: transform;
}
.hero--page .hero__space { object-position: center 72%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,8,13,0.62) 0%, rgba(6,8,13,0.28) 38%, rgba(6,8,13,0.0) 62%, rgba(6,8,13,0.0) 88%, rgba(6,8,13,0.55) 100%);
}
.hero--page .hero__shade { background: linear-gradient(90deg, rgba(6,8,13,0.72) 0%, rgba(6,8,13,0.35) 55%, rgba(6,8,13,0.05) 100%), linear-gradient(180deg, rgba(6,8,13,0.35), rgba(6,8,13,0) 50%, rgba(6,8,13,0.5) 100%); }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; mix-blend-mode: screen; }
.hero__grid {
  position: absolute; inset: 0; opacity: 0.55;
  background-image:
    linear-gradient(rgba(201,206,214,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,206,214,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 10%, transparent 70%);
}
.hero__orbit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.75; }
.hero__orbit .orbit-path { fill: none; stroke: rgba(111,177,255,0.28); stroke-width: 0.15; stroke-dasharray: 0.8 1.2; vector-effect: non-scaling-stroke; }
.hero__orbit .orbit-sat { fill: #dbe9ff; }
.hero__orbit .orbit-sat-halo { fill: rgba(111,177,255,0.35); }
.hero__inner { position: relative; max-width: 860px; }
.hero__inner--center { text-align: center; margin: 0 auto; }
.hero__inner--center .eyebrow { justify-content: center; }
.hero__inner--center .btn-row { justify-content: center; }
.hero .lede { margin-top: 18px; max-width: 62ch; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.hero__inner--center .lede { margin-left: auto; margin-right: auto; }
.hero .btn-row { margin-top: 32px; }
.hero__lockup { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 30px; }
.hero__lockup .logo { width: clamp(240px, 32vw, 420px); height: auto; filter: drop-shadow(0 0 40px rgba(111,177,255,0.22)); }
.hero__lockup .wordmark { font-size: clamp(1.6rem, 4.2vw, 2.9rem); text-align: center; }
.hero__lockup .tagline { margin-top: 6px; }
.hero h1 { margin-top: 0; text-shadow: 0 2px 24px rgba(0,0,0,0.55); }
.hero--home h1 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
.hero--page h1 { margin-bottom: 0.3em; }
.hero__telemetry {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver-2);
}
.hero__telemetry span { display: inline-flex; align-items: center; gap: 8px; }
.hero__telemetry span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }

/* Capability bar (below the home hero): four numbered segments */
.capbar { position: relative; z-index: 3; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(11,15,22,0.98), rgba(8,11,17,0.98)); }
.capbar__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.capbar__list li { margin: 0; border-left: 1px solid var(--line); }
.capbar__list li:first-child { border-left: 0; }
.capbar__item {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: baseline;
  padding: 20px 22px 20px 20px; position: relative; color: inherit; text-decoration: none !important; min-height: 100%;
  transition: background 0.2s;
}
.capbar__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; box-shadow: 0 0 12px var(--blue-glow);
}
.capbar__item::after {
  content: "\2192"; position: absolute; right: 18px; top: 20px; color: var(--blue); opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.2s; font-size: 0.95rem;
}
.capbar__item:hover, .capbar__item:focus-visible { background: rgba(111,177,255,0.06); outline: none; }
.capbar__item:hover::before, .capbar__item:focus-visible::before { transform: scaleX(1); }
.capbar__item:hover::after, .capbar__item:focus-visible::after { opacity: 1; transform: none; }
.capbar__num { grid-row: 1 / span 2; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--blue); padding-top: 3px; }
.capbar__name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--white); letter-spacing: -0.005em; }
.capbar__desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 960px) {
  .capbar__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capbar__list li:nth-child(3) { border-left: 0; }
  .capbar__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .capbar__list { grid-template-columns: 1fr; }
  .capbar__list li { border-left: 0; border-top: 1px solid var(--line); }
  .capbar__list li:first-child { border-top: 0; }
  .capbar__item { padding: 16px 20px; }
}

/* --------------------------------------------------------------------------
   Cards & panels (HUD brackets + cursor spotlight)
   -------------------------------------------------------------------------- */
.card {
  --c: var(--bracket);
  --mx: 50%; --my: 50%;
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 14px no-repeat,
    linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, --c 0.25s;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,206,214,0.35), transparent);
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(111,177,255,0.13), transparent 45%);
}
.card:hover { border-color: rgba(111,177,255,0.35); --c: rgba(111,177,255,0.9); box-shadow: 0 18px 50px -30px rgba(111,177,255,0.35); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin-top: 0; }
.card p { color: var(--text-muted); }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--blue);
  margin-bottom: 14px; display: block;
}
.card__icon { width: 36px; height: 36px; color: var(--silver); margin-bottom: 16px; }
.card__icon svg { width: 100%; height: 100%; }
.card--link { display: block; color: inherit; text-decoration: none !important; }
.card--link:hover { transform: translateY(-3px); }
.card__more { margin-top: 18px; color: var(--blue); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 8px; }
.card__more::after { content: "\2192"; transition: transform 0.2s; }
.card--link:hover .card__more::after { transform: translateX(4px); }
.card--feature { padding: 34px 30px; }
.card ul { color: var(--text-muted); padding-left: 1.1em; }
.card ul li::marker { color: var(--blue); }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px); position: relative;
}
.panel--blue { border-color: rgba(111,177,255,0.28); background: linear-gradient(180deg, rgba(111,177,255,0.08), rgba(111,177,255,0.02)); }
.panel--blue::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(111,177,255,0.7), transparent 60%);
}

.callout {
  border-left: 2px solid var(--blue); padding: 6px 0 6px 22px; margin: 28px 0;
  color: var(--silver); font-size: 1.08rem;
}
.callout--quote { font-family: var(--font-head); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--white); }
.callout cite { display: block; font-style: normal; font-family: var(--font-body); font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; letter-spacing: 0.04em; }

/* "Beyond the dot" contrast block */
.contrast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 18px; }
@media (max-width: 820px) { .contrast { grid-template-columns: 1fr; } }
.contrast__label { font-family: var(--font-display); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-3); margin-bottom: 12px; display: block; }
.contrast__item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--panel); position: relative; overflow: hidden; }
.contrast__item--dim { color: var(--text-muted); }
.contrast__item--dim .contrast__text { font-family: var(--font-mono); font-size: 1.05rem; color: var(--silver-2); }
.contrast__item--lit { border-color: rgba(111,177,255,0.3); background: linear-gradient(180deg, rgba(111,177,255,0.07), var(--panel)); }
.contrast__item--lit .contrast__label { color: var(--blue); }
.contrast__text { margin: 0; color: var(--text); font-size: 1.05rem; }
.type-caret { display: inline-block; width: 0.55em; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--blue); animation: caret 1s steps(2, start) infinite; }
.type-caret.is-done { animation: none; opacity: 0; }
@keyframes caret { to { visibility: hidden; } }

/* Facts strip / badges */
.facts { display: flex; flex-wrap: wrap; gap: 10px 14px; list-style: none; margin: 0; padding: 0; }
.facts li {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.86rem; color: var(--silver); background: rgba(255,255,255,0.02); letter-spacing: 0.01em;
}
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); flex: 0 0 auto; }
.tag { display: inline-block; font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver-2); border: 1px solid var(--line-strong); padding: 5px 9px; border-radius: 3px; }
.tag--blue { color: var(--blue); border-color: rgba(111,177,255,0.4); }

/* Steps / process */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps > li { position: relative; padding: 22px 22px 22px 74px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); counter-increment: step; transition: border-color 0.25s; }
.steps > li:hover { border-color: var(--line-strong); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 22px;
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--blue);
}
.steps h3, .steps h4 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-muted); }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps--row > li { padding: 52px 22px 22px; }
.steps--row > li::before { top: 20px; }

/* Timeline / progression */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--blue), var(--line)); }
.timeline li { position: relative; padding: 0 0 22px 34px; color: var(--silver); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--blue); }
.timeline li:first-child::before { background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); animation: pulse 2.6s ease-in-out infinite; }
.timeline li strong { display: block; color: var(--white); }
.timeline li span { color: var(--text-muted); font-size: 0.95rem; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(111,177,255,0.45); } 50% { box-shadow: 0 0 0 7px rgba(111,177,255,0); } }

/* Feature list (icon + text rows) */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.feature-list li svg { width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list span { color: var(--text-muted); }

/* Check list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; color: var(--silver); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 1px; background: var(--blue); }

/* Definition-ish rows */
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 10px 24px; margin: 0; }
.kv dt { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver-3); padding-top: 5px; }
.kv dd { margin: 0; color: var(--silver); }
@media (max-width: 620px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 14px; } }

/* Mock "analyst view" panel (technology page, PIR panel on home) */
.mock { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: #090c12; overflow: hidden; font-size: 0.86rem; position: relative; }
.mock::after {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 34%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(111,177,255,0.06) 50%, rgba(111,177,255,0.14) 98%, transparent);
  animation: scan 7s linear infinite;
}
@keyframes scan { from { top: -40%; } to { top: 110%; } }
.mock__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--silver-3); font-family: var(--font-display); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; }
.mock__bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); animation: pulse 2.6s ease-in-out infinite; }
.mock__body { padding: 16px; display: grid; gap: 10px; }
.mock__row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mock__row:last-child { border-bottom: 0; }
.mock__key { color: var(--silver-3); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.mock__val { color: var(--silver); }
.mock__val--blue { color: var(--blue); }
@media (max-width: 480px) { .mock__row { grid-template-columns: 1fr; gap: 2px; } }

/* --------------------------------------------------------------------------
   Forms (contact)
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--silver); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; background: #090c12; border: 1px solid var(--line-strong); color: var(--white);
  padding: 12px 14px; border-radius: var(--radius); font: inherit; font-size: 0.98rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver-2) 50%), linear-gradient(135deg, var(--silver-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field__hint { font-size: 0.82rem; color: var(--text-muted); }
.form__note { font-size: 0.86rem; color: var(--text-muted); }
.form__status { font-size: 0.92rem; color: var(--silver); min-height: 1.4em; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 8vw, 96px) 0; }
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: 100%; width: 140vw; height: 60vw; transform: translate(-50%, -12%);
  border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, rgba(111,177,255,0.16), transparent 45%);
  box-shadow: 0 -1px 0 0 rgba(160,200,255,0.35); pointer-events: none;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(214,226,245,0.35) 0.6px, transparent 0.8px);
  background-size: 90px 90px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; text-align: center; max-width: 780px; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 56px 0 32px; font-size: 0.92rem; color: var(--text-muted); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand .tagline { margin-bottom: 14px; }
.footer__brand p { max-width: 42ch; }
.footer__col h2 { font-family: var(--font-display); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-3); margin: 0 0 14px; line-height: 1.4; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { color: var(--silver); }
.footer__col a:hover { color: var(--white); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--silver-3); }
.footer__bottom .facts li { font-size: 0.78rem; padding: 6px 11px; }

/* --------------------------------------------------------------------------
   Reveal on scroll (progressive enhancement, no-JS safe)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.09s; }
.js .reveal[data-delay="2"] { transition-delay: 0.18s; }
.js .reveal[data-delay="3"] { transition-delay: 0.27s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; filter: none; } }

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: #0a0d13; padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 14px; text-decoration: none; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 28px !important; }
.mt-4 { margin-top: 44px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 28px !important; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: clamp(32px, 5vw, 56px) 0; }
.small { font-size: 0.88rem; }
.nowrap { white-space: nowrap; }

/* Print: keep it readable on paper (capability-statement style) */
@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .cta-band, .hero__bg, .nav-toggle, .skip-link, .capbar { display: none !important; }
  a { color: #000; text-decoration: underline; }
  h1, h2, h3, h4, strong { color: #000; }
  .card, .panel, .steps > li, .contrast__item { border-color: #999; background: #fff; }
}
