/* ==========================================================
   Counter-UAS & Soldier Safety
   ========================================================== */

:root {
  --bg: #050b17;
  --bg-2: #08132a;
  --panel: #0c1a35;
  --panel-2: #10224a;
  --line: rgba(120, 160, 230, 0.16);
  --line-2: rgba(120, 160, 230, 0.3);
  --text: #e6edf8;
  --muted: #8ea0bf;
  --blue: #3fa9ff;
  --blue-2: #1f6fe0;
  --green: #35d39a;
  --amber: #f5b53d;
  --red: #ff5a5f;
  --radius: 10px;
  --head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--blue); }
.center { text-align: center; }

.eyebrow {
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--amber);
  padding-left: 12px;
  margin-top: 1.5rem;
}
.note.center { border: 0; padding: 0; }

.credit { font-size: 0.75rem; color: var(--muted); margin-top: 0.6rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--blue-2); color: #fff; }
.btn--primary:hover { background: var(--blue); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--blue); }

/* Status tags */
.tag {
  display: inline-block;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 9px;
  line-height: 1.35;
  border-radius: 4px;
  border: 1px solid;
}
.tag--doc { color: var(--green); border-color: rgba(53, 211, 154, 0.45); background: rgba(53, 211, 154, 0.08); }
.tag--prop { color: var(--blue); border-color: rgba(63, 169, 255, 0.45); background: rgba(63, 169, 255, 0.08); }
.tag--val { color: var(--amber); border: 1px dashed rgba(245, 181, 61, 0.6); background: rgba(245, 181, 61, 0.08); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(5, 11, 23, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(5, 11, 23, 0.92); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 0.95rem var(--head); letter-spacing: 0.04em; }
.brand:hover { text-decoration: none; }
.brand em { color: var(--blue); font-style: normal; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--blue);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--blue);
  animation: pulse 2s infinite;
}

.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a { color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); text-decoration: none; }
.nav__cta { color: var(--text) !important; border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 5px; }

.nav__toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: 0.3s; }

.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 60px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(31, 111, 224, 0.35), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(31, 111, 224, 0.2), transparent 60%),
    linear-gradient(180deg, #050b17, #07112a);
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  opacity: 0.5;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: #b9c6dd; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0; }

.pipeline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pipeline li {
  font: 500 0.75rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--muted);
  position: relative;
  transition: 0.3s;
}
.pipeline li.is-lit { color: #fff; border-color: var(--blue); background: rgba(63, 169, 255, 0.15); }

.hero__frame {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.hero__frame img { width: 100%; }
.hero__frame::before, .hero__frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--blue); z-index: 2;
}
.hero__frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hero__frame::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.scanline {
  position: absolute; left: 0; right: 0; height: 80px; top: -80px;
  background: linear-gradient(180deg, transparent, rgba(63, 169, 255, 0.18), transparent);
  animation: scan 4.5s linear infinite;
}

.callout {
  position: absolute; z-index: 3;
  font: 500 0.72rem var(--mono);
  background: rgba(5, 11, 23, 0.85);
  border: 1px solid var(--blue);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 4px;
  display: flex; align-items: center; gap: 8px;
}
.callout i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 1.6s infinite; }
.callout--a { top: 46%; left: 50%; }
.callout--b { top: 70%; left: 6%; }

.legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line);
}
.legend__note { color: var(--muted); font-size: 0.85rem; margin-left: auto; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 3rem; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; gap: 18px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), rgba(12, 26, 53, 0.5));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: 0.3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__num { font: 500 0.8rem var(--mono); color: var(--blue); display: block; margin-bottom: 1.4rem; }
.card__kicker { font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber) !important; }

.risk { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--text) !important; font-weight: 500; }
.risk span { font: 500 0.7rem var(--mono); color: var(--red); margin-right: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

.mini { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.mini h4 { color: var(--text); }
.mini p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.mini::before { content: ""; display: block; width: 26px; height: 2px; background: var(--blue); margin-bottom: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ---------- Architecture ---------- */
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.arch__stack { display: flex; flex-direction: column; gap: 10px; }
.layer {
  text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 18px 20px;
  font: 500 0.98rem var(--head);
  letter-spacing: 0.02em;
  transition: 0.25s;
}
.layer span {
  font: 500 0.8rem var(--mono);
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--blue);
}
.layer:hover { border-color: var(--line-2); }
.layer.is-active { background: var(--panel-2); border-color: var(--blue); transform: translateX(8px); }
.layer.is-active span { background: var(--blue); color: var(--bg); border-color: var(--blue); }

.arch__panel {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.arch__panel h3 { font-size: 1.5rem; }
.arch__panel .list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 10px; }
.arch__panel .list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(5, 11, 23, 0.5); border: 1px solid var(--line); border-radius: 6px; }
.arch__panel .fade { animation: fadeUp 0.4s ease both; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 52px;
  color: var(--muted);
  font-size: 0.95rem;
}
.steps li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font: 500 0.75rem var(--mono);
  color: var(--blue);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 1px; background: var(--line-2);
}

/* ---------- Radar ---------- */
.radar-wrap { display: flex; flex-direction: column; align-items: center; }
.radar { width: 100%; max-width: 520px; aspect-ratio: 1; border-radius: 50%; position: relative; }
.radar canvas { width: 100%; height: 100%; display: block; }
.radar__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 18px; font-size: 0.85rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot--threat { background: var(--red); }
.dot--friend { background: var(--green); }

/* ---------- Sensor flow ---------- */
.flow { display: grid; grid-template-columns: 1.1fr 60px 1fr 60px 0.9fr; align-items: center; }
.flow__inputs { display: grid; gap: 10px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: 0.88rem; color: var(--muted); }
.chip b { display: block; color: var(--text); font-weight: 600; }
.flow__arrow { height: 2px; background: linear-gradient(90deg, var(--line-2), var(--blue)); position: relative; margin: 0 8px; overflow: hidden; }
.flow__arrow::after {
  content: ""; position: absolute; top: -1px; height: 4px; width: 20px; background: var(--blue); box-shadow: 0 0 12px var(--blue);
  animation: flowDot 1.8s linear infinite;
}
.flow__core { background: var(--panel-2); border: 1px solid var(--blue); border-radius: var(--radius); padding: 26px; box-shadow: 0 0 40px rgba(63, 169, 255, 0.15); }
.flow__core ul { margin: 0; padding-left: 18px; color: var(--muted); }
.flow__core li { margin: 6px 0; }
.flow__out { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; }
.flow__out p { color: var(--muted); margin: 0; }

/* ---------- Body map ---------- */
.body-map__img { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--amber); color: #1a1100;
  font: 600 0.8rem var(--mono);
  border: 0; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(245, 181, 61, 0.6);
  animation: ring 2.2s infinite;
}
.hotspot.is-active { background: #fff; }
.indicators { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.indicators li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; transition: 0.2s; cursor: default; }
.indicators li span { font: 600 0.72rem var(--mono); color: var(--amber); }
.indicators li.is-active { color: var(--text); border-color: var(--amber); background: rgba(245, 181, 61, 0.08); }

/* ---------- ENGS ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 1.5rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 22px; margin: 8px 0; font-size: 0.92rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border: 2px solid var(--green); border-radius: 2px; }
.ticks--prop li::before { border-color: var(--blue); border-style: dashed; }

.photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.photo figcaption { font-size: 0.78rem; color: var(--muted); padding: 10px 14px; }
.photo--small { max-width: 360px; justify-self: center; }

/* ---------- Countermeasure chain ---------- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chain__step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; position: relative; display: flex; flex-direction: column; }
.chain__step p { color: var(--muted); font-size: 0.88rem; flex: 1; }
.chain__step .tag { align-self: flex-start; }
.chain__n { font: 600 1.6rem var(--head); color: var(--blue); opacity: 0.5; display: block; margin-bottom: 0.4rem; }
.chain__step:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 38px; width: 8px; height: 8px;
  border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg);
}

.decision { margin-top: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.decision__flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.decision__flow > div { flex: 1 1 140px; padding: 14px; border-radius: 6px; font-size: 0.9rem; font-weight: 500; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.decision__flow small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.node { background: var(--bg); border: 1px solid var(--line-2); }
.node--ok { border-color: var(--green); color: var(--green); }
.q { border: 1px dashed var(--amber); color: var(--amber); }
.decision__hold { margin-top: 14px; padding: 12px 16px; border-radius: 6px; background: rgba(255, 90, 95, 0.08); border: 1px solid rgba(255, 90, 95, 0.35); font-size: 0.9rem; }
.decision__hold b { color: var(--red); }
.decision__log { margin-top: 10px; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 10px; border-top: 1px solid var(--line); }

/* ---------- Console ---------- */
.console { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #040915; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.console__bar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: var(--panel); border-bottom: 1px solid var(--line); font: 500 0.75rem var(--mono); color: var(--muted); letter-spacing: 0.08em; }
.console__bar .clock { margin-left: auto; color: var(--green); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.console__body { display: grid; grid-template-columns: 170px 1fr; }
.console__side { border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; }
.console__side a { color: var(--muted); font-size: 0.85rem; padding: 9px 18px; border-left: 2px solid transparent; }
.console__side a:hover { text-decoration: none; color: var(--text); }
.console__side a.is-active { color: var(--text); border-left-color: var(--blue); background: rgba(63, 169, 255, 0.07); }
.console__main { padding: 18px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.kpi small { display: block; color: var(--muted); font-size: 0.75rem; }
.kpi b { font: 600 1.5rem var(--head); }
.kpi--warn b { color: var(--amber); }
.kpi--ok b { color: var(--green); }

.panels { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; min-width: 0; }
.panel h5 { font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.panel--map canvas { width: 100%; height: auto; display: block; border-radius: 6px; background: #030812; }

.tbl { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.75rem; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 4px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.8rem; }
.tbl .hi { color: var(--red); }
.await { margin: 14px 0 0; font-size: 0.82rem; color: var(--amber); display: flex; align-items: center; gap: 8px; }
.blink { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: blink 1s steps(2) infinite; }

.pill { font: 500 0.68rem var(--mono); padding: 3px 8px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill--ok { color: var(--green); border-color: rgba(53, 211, 154, 0.4); }
.pill--warn { color: var(--amber); border-color: rgba(245, 181, 61, 0.45); }
.pill--bad { color: var(--red); border-color: rgba(255, 90, 95, 0.45); }

.units { list-style: none; padding: 0; margin: 0; }
.units li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.events { list-style: none; padding: 0; margin: 0; font: 400 0.78rem var(--mono); max-height: 170px; overflow: hidden; }
.events li { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); animation: fadeUp 0.4s ease both; }
.events li time { color: var(--blue); margin-right: 10px; }

/* ---------- ARBEL ---------- */
.spec { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: 0.86rem; color: var(--muted); }
.spec li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

.arbel-int {
  margin-top: 64px;
  border: 1px dashed rgba(245, 181, 61, 0.55);
  border-radius: 14px;
  padding: 40px;
  background: linear-gradient(180deg, rgba(245, 181, 61, 0.05), transparent);
}
.arbel-int__head { max-width: 760px; }
.arbel-int__head h3 { font-size: 1.6rem; margin-top: 1rem; }
.arbel-int__head p { color: var(--muted); }
.hstep { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.hstep li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; font-size: 0.9rem; font-weight: 500; }
.hstep li span { display: block; font: 500 0.75rem var(--mono); color: var(--amber); margin-bottom: 6px; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cases div { padding: 16px 18px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.cases b { display: block; color: var(--amber); font: 500 0.75rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.req { margin: 1.5rem 0 0; font-size: 0.88rem; color: var(--muted); }
.req b { color: var(--text); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.5rem 0 2rem; }
.stat { border-top: 2px solid var(--line-2); padding-top: 14px; }
.stat b { display: block; font: 700 2.8rem/1.1 var(--head); }
.stat span { font-size: 0.85rem; color: var(--muted); }
.stat--hl { border-top-color: var(--red); }
.stat--hl b { color: var(--red); }

.figures { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; }
.figures i {
  aspect-ratio: 1 / 2;
  background: var(--line-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20'%3E%3Ccircle cx='5' cy='3' r='2.6'/%3E%3Cpath d='M2 7h6l1 7H7l-.5 6h-3L3 14H1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20'%3E%3Ccircle cx='5' cy='3' r='2.6'/%3E%3Cpath d='M2 7h6l1 7H7l-.5 6h-3L3 14H1z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.figures.is-in i { opacity: 1; transform: none; }
.figures i.acc { background: var(--amber); }
.figures i.ff { background: var(--red); }

/* ---------- Tabs / scenarios ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 28px; background: var(--panel); flex-wrap: wrap; }
.tab { background: none; border: 0; color: var(--muted); font: 500 0.9rem var(--body); padding: 10px 18px; border-radius: 6px; cursor: pointer; }
.tab.is-active { background: var(--blue-2); color: #fff; }
.scenario { display: none; list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: sc; }
.scenario.is-active { display: grid; }
.scenario li { counter-increment: sc; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; color: var(--muted); font-size: 0.88rem; position: relative; animation: fadeUp 0.45s ease both; }
.scenario li:nth-child(2) { animation-delay: 0.06s; }
.scenario li:nth-child(3) { animation-delay: 0.12s; }
.scenario li:nth-child(4) { animation-delay: 0.18s; }
.scenario li:nth-child(5) { animation-delay: 0.24s; }
.scenario li::before { content: "0" counter(sc); display: block; font: 500 0.75rem var(--mono); color: var(--blue); margin-bottom: 12px; }
.scenario li b { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--line-2); }
.roadmap li { position: relative; padding-top: 52px; font-size: 0.88rem; font-weight: 500; }
.roadmap li span {
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 0.85rem var(--mono);
  background: var(--bg-2); border: 1px solid var(--blue); color: var(--blue);
}
.roadmap li:first-child span { background: var(--blue); color: var(--bg); }

.next { margin-top: 64px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
.next__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; counter-reset: n; }
.next__list li { counter-increment: n; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #c3cee2; font-size: 0.95rem; }
.next__list li::before { content: counter(n, decimal-leading-zero); font: 500 0.78rem var(--mono); color: var(--blue); padding-top: 3px; }

/* ---------- CTA / footer ---------- */
.cta { text-align: center; background: radial-gradient(700px 300px at 50% 100%, rgba(31, 111, 224, 0.3), transparent 70%), var(--bg); }
.cta__inner { max-width: 780px; }
.cta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }


/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes blink { to { visibility: hidden; } }
@keyframes scan { to { top: 100%; } }
@keyframes flowDot { from { left: -20px; } to { left: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 181, 61, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(245, 181, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 181, 61, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards--4, .cards--grid { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain__step::after { display: none; }
  .hstep, .scenario { grid-template-columns: repeat(3, 1fr); }
  .roadmap { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .roadmap::before { display: none; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__arrow { width: 2px; height: 36px; margin: 0 auto; background: linear-gradient(180deg, var(--line-2), var(--blue)); }
  .flow__arrow::after { display: none; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 64px); overflow-y: auto;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(5, 11, 23, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .nav__links a { padding: 12px 0; width: 100%; font-size: 1rem; }
  .nav__cta { border: 0; padding: 12px 0 !important; }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding-top: 110px; }
  .hero__inner, .split, .arch { grid-template-columns: 1fr; gap: 40px; }
  .split--rev > :first-child { order: 2; }
  .cards--3 { grid-template-columns: 1fr; }
  .console__body { grid-template-columns: 1fr; }
  .console__side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .console__side a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .console__side a.is-active { border-bottom-color: var(--blue); }
  .panels { grid-template-columns: 1fr; }
  .legend__note { margin-left: 0; width: 100%; }
  .layer.is-active { transform: none; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .cards--4, .cards--grid, .chain, .hstep, .scenario, .two-col, .cases, .spec, .next__list { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat b { font-size: 1.9rem; }
  .stat span { font-size: 0.75rem; line-height: 1.45; display: block; }
  .figures { grid-template-columns: repeat(12, 1fr); gap: 4px; }
  .indicators { grid-template-columns: 1fr; }
  .arbel-int, .next { padding: 24px 18px; }
  .callout { font-size: 0.62rem; }
  .callout--a { left: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ---------- Legal pages ---------- */
.page-head {
  padding: 140px 0 56px;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(31, 111, 224, 0.3), transparent 60%),
    linear-gradient(180deg, #050b17, #07112a);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.4rem; }
.page-head p { color: var(--muted); margin: 0; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

.legal { padding: 64px 0 100px; }
.legal__wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal__toc { position: sticky; top: 96px; border-left: 1px solid var(--line); padding-left: 18px; }
.legal__toc p { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.8rem; }
.legal__toc ol { list-style: none; padding: 0; margin: 0; }
.legal__toc a { display: block; color: var(--muted); font-size: 0.86rem; padding: 5px 0; }
.legal__toc a:hover { color: var(--text); text-decoration: none; }

.legal__body { max-width: 760px; color: #c3cee2; font-size: 0.97rem; }
.legal__body h2 { font-size: 1.35rem; color: var(--text); margin: 2.6rem 0 0.8rem; padding-top: 0.4rem; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body ul { padding-left: 20px; margin: 0 0 1em; }
.legal__body li { margin: 6px 0; }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__callout {
  background: rgba(245, 181, 61, 0.07);
  border: 1px dashed rgba(245, 181, 61, 0.5);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 2rem;
  color: var(--text);
}

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.notfound b { display: block; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--blue); font-weight: 700; }
.notfound p { color: var(--muted); margin-bottom: 2rem; }

@media (max-width: 900px) {
  .legal__wrap { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc { position: static; }
  .page-head { padding-top: 110px; }
}

/* hotspot positions (kept out of inline styles for the CSP) */
.hs1 { top: 17%; left: 51%; }
.hs2 { top: 30%; left: 51%; }
.hs3 { top: 40%; left: 58%; }
.hs4 { top: 22%; left: 44%; }
.hs5 { top: 44%; left: 32%; }
.hs6 { top: 80%; left: 44%; }

/* ---------- Inner page header ---------- */
.page-head { position: relative; overflow: hidden; }
.page-head__inner { position: relative; }
.page-head__inner > * { max-width: 860px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; margin-bottom: 1rem; }
.page-head .page-head__lead { font-size: 1.1rem; color: #b9c6dd; max-width: 40em; }
.page-head__jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.8rem; }
.page-head__jump a {
  font-size: 0.82rem; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 30px;
  transition: 0.2s;
}
.page-head__jump a:hover { color: var(--text); border-color: var(--blue); text-decoration: none; }

/* ---------- Explore cards (home) ---------- */
.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.explore__card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), rgba(12, 26, 53, 0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--text);
  position: relative; overflow: hidden;
  transition: 0.3s;
}
.explore__card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.explore__card:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-4px); }
.explore__card:hover::after { transform: scaleX(1); }
.explore__card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.explore__num { font-size: 2.2rem; font-weight: 600; color: var(--blue); opacity: 0.35; line-height: 1; margin-bottom: 1.2rem; }
.explore__go { font-size: 0.88rem; font-weight: 500; color: var(--blue); }
.explore__go i { font-style: normal; display: inline-block; transition: transform 0.2s; }
.explore__card:hover .explore__go i { transform: translateX(4px); }
.cta__actions { justify-content: center; margin-bottom: 0; }

/* ---------- Next page link ---------- */
.next-page { border-top: 1px solid var(--line); }
.next-page__link {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 44px 0; color: var(--text);
}
.next-page__link:hover { text-decoration: none; }
.next-page__link span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.next-page__link b { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
.next-page__link i { font-style: normal; color: var(--blue); display: inline-block; transition: transform 0.25s; }
.next-page__link:hover i { transform: translateX(8px); }

/* ---------- Vision diagram (overview) ---------- */
.vision { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 20px; align-items: center; margin-top: 48px; }
.vision__side { display: grid; gap: 10px; }
.vision__core {
  text-align: center; padding: 40px 28px; border-radius: 50%;
  aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(circle, rgba(31, 111, 224, 0.28), rgba(12, 26, 53, 0.6) 70%);
  border: 1px solid var(--blue);
  box-shadow: 0 0 60px rgba(63, 169, 255, 0.18);
}
.vision__core h3 { margin: 0; font-size: 1.15rem; }
.chip--val { border-style: dashed; border-color: rgba(245, 181, 61, 0.55); }
.card .tag { margin-top: 0.4rem; }

/* ---------- Data streams (command) ---------- */
.streams { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stream { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stream__label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.stream ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.stream li { font-size: 0.86rem; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); position: relative; }
.stream li:not(:last-child)::after { content: "\2192"; color: var(--blue); position: absolute; right: -19px; top: 50%; transform: translateY(-50%); }
.stream li.is-val { border: 1px dashed rgba(245, 181, 61, 0.6); color: var(--amber); }
.streams__join { margin-top: 18px; display: grid; gap: 10px; }
.streams__core {
  text-align: center; padding: 22px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--blue); box-shadow: 0 0 40px rgba(63, 169, 255, 0.15);
  color: var(--muted); font-size: 0.9rem;
}
.streams__core b { display: block; font-size: 1.2rem; color: var(--text); font-weight: 600; }
.streams__log { text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Data protection card ---------- */
.protect { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 30px; }
.protect__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.protect__grid div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.protect__grid p { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* ---------- Timeline (roadmap) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.timeline li { display: flex; gap: 24px; position: relative; padding-bottom: 18px; }
.timeline li > span {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 0.9rem;
  background: var(--bg); border: 1px solid var(--blue); color: var(--blue); position: relative; z-index: 1;
}
.timeline li > div { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; transition: 0.25s; }
.timeline li > div:hover { border-color: var(--line-2); }
.timeline h4 { margin-bottom: 0.3rem; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.timeline li.is-now > span { background: var(--blue); color: var(--bg); box-shadow: 0 0 0 6px rgba(63, 169, 255, 0.15); }
.timeline li.is-now > div { border-color: var(--blue); }

/* ---------- Site footer ---------- */
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.site-footer { background: #030812; border-top: 1px solid var(--line); padding-top: 72px; font-size: 0.9rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.site-footer__brand p { color: var(--muted); margin: 1.2rem 0 1.4rem; max-width: 26em; }
.site-footer h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.7rem; }
.site-footer__col a:not(.btn) { color: var(--muted); transition: color 0.2s; }
.site-footer__col a:not(.btn):hover { color: var(--text); text-decoration: none; }
.site-footer__col p { color: var(--muted); margin-bottom: 0.6rem; }
.site-footer .site-footer__mail { display: block; color: var(--blue); font-weight: 500; margin-bottom: 1.2rem; word-break: break-all; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  border-top: 1px solid var(--line); padding: 22px 0 28px; color: var(--muted); font-size: 0.8rem;
}

/* ---------- Responsive (new components) ---------- */
@media (max-width: 1080px) {
  .explore { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .vision { grid-template-columns: 1fr; }
  .vision__core { aspect-ratio: auto; border-radius: var(--radius); padding: 28px; }
  .streams { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .explore, .protect__grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 56px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-footer__brand, .site-footer__col:last-child { grid-column: 1 / -1; }
  .timeline li { gap: 14px; }
  .timeline li > div { padding: 14px 16px; }
  .protect { padding: 20px; }
}

/* page-head spacing (overrides the generic .page-head p rule) */
.page-head .breadcrumb { margin-bottom: 1.6rem; }
.page-head .eyebrow { margin-bottom: 0.9rem; }
.page-head .page-head__lead { margin-top: 0.2rem; }
