:root {
  color-scheme: dark;
  --bg: #06100f;
  --bg-2: #081716;
  --panel: #0b1f1d;
  --panel-2: #0f2926;
  --ink: #f4f7f1;
  --muted: #93aaa1;
  --muted-2: #5f7770;
  --line: rgba(168, 196, 184, .18);
  --line-strong: rgba(194, 164, 91, .38);
  --cyan: #23d7b3;
  --gold: #d6b15e;
  --red: #cf5d59;
  --company: #41d1a1;
  --retail: #d6b15e;
  --wealth: #cf5d59;
  --shadow: 0 28px 80px rgba(0, 0, 0, .36);
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(35, 215, 179, .12), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(214, 177, 94, .11), transparent 30%),
    linear-gradient(180deg, #030807 0%, var(--bg) 42%, #04110f 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,.28));
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 15, .86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}

.brand strong {
  font-size: 17px;
  letter-spacing: .02em;
}

.brand span,
.eyebrow,
.phase small,
.slice span,
.signal-row span,
.status-strip span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 6px;
  color: #c9d8d1;
  font-size: 14px;
  padding: 8px 10px;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: rgba(35, 215, 179, .36);
  color: var(--cyan);
  outline: none;
}

.radar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(24px, 4vw, 52px);
  min-height: 680px;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px) 28px;
  align-items: center;
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

h3 {
  font-size: 21px;
  line-height: 1.28;
}

.lead {
  max-width: 780px;
  margin-top: 22px;
  color: #c8d8d2;
  font-size: clamp(17px, 1.65vw, 22px);
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 860px;
}

.signal-row div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(11,31,29,.86), rgba(6,16,15,.62));
}

.signal-row b {
  display: block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.signal-row span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.radar-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(15,41,38,.78), rgba(6,16,15,.76)),
    radial-gradient(circle at 50% 44%, rgba(35,215,179,.14), transparent 58%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.radar-panel::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(35, 215, 179, .14);
}

.radar {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(72%, 370px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(35,215,179,.48);
  border-radius: 50%;
  background:
    conic-gradient(from 20deg, rgba(35,215,179,.30), transparent 70deg, transparent 360deg),
    radial-gradient(circle, rgba(214,177,94,.12), transparent 64%);
}

.radar::before,
.radar::after,
.radar i {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(168,196,184,.18);
  border-radius: 50%;
}

.radar::after {
  inset: 33%;
}

.radar i:nth-child(1) {
  inset: 50% 0 auto;
  height: 1px;
  border: 0;
  border-top: 1px solid rgba(168,196,184,.22);
  border-radius: 0;
}

.radar i:nth-child(2) {
  inset: 0 auto 0 50%;
  width: 1px;
  border: 0;
  border-left: 1px solid rgba(168,196,184,.22);
  border-radius: 0;
}

.radar i:nth-child(3),
.radar i:nth-child(4) {
  display: none;
}

.pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(35,215,179,.8);
}

.p1 { left: 62%; top: 28%; }
.p2 { left: 34%; top: 64%; background: var(--gold); box-shadow: 0 0 22px rgba(214,177,94,.8); }
.p3 { left: 72%; top: 72%; background: var(--red); box-shadow: 0 0 22px rgba(207,93,89,.8); }

.panel-status {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.panel-status p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.panel-status strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 32px;
  line-height: 1.15;
}

.panel-status span {
  display: block;
  margin-top: 8px;
  color: #c3d4ce;
}

.section {
  padding: 44px clamp(18px, 5vw, 72px);
}

.section.compact {
  padding-top: 12px;
}

.section-header {
  max-width: 880px;
  margin-bottom: 22px;
}

.section-header.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: 32px;
  max-width: none;
  align-items: end;
}

.section-header p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
  max-width: 780px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(11, 31, 29, .74);
}

.status-strip div {
  min-height: 92px;
  padding: 18px;
  border-left: 1px solid var(--line);
}

.status-strip div:first-child {
  border-left: 0;
}

.status-strip b {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.phase,
.slice,
.demo-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15,41,38,.82), rgba(8,23,22,.78));
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

.phase {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 18px;
  border-top-color: rgba(168,196,184,.26);
}

.phase.done {
  border-top-color: rgba(35,215,179,.76);
}

.phase.active {
  border-top-color: rgba(214,177,94,.82);
  background:
    linear-gradient(180deg, rgba(37,48,31,.88), rgba(8,23,22,.78));
}

.phase small {
  color: var(--gold);
  font-weight: 800;
}

.phase h3 {
  margin-top: 16px;
}

.phase p {
  margin-top: 12px;
  color: #bdd0c9;
}

.phase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.phase-meta span {
  border: 1px solid rgba(168,196,184,.22);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 8px;
}

.slice-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.slice {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 22px;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.slice::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 96px;
  height: 96px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .18;
}

.slice.company { color: var(--company); }
.slice.retail { color: var(--retail); }
.slice.wealth { color: var(--wealth); }

.slice h3 {
  margin-top: 18px;
  color: var(--ink);
  font-size: 28px;
}

.slice p {
  margin-top: 12px;
  color: #bdd0c9;
}

.slice b {
  margin-top: auto;
  color: currentColor;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.slice:hover,
.slice:focus-visible,
.demo-card:hover,
.demo-card:focus-visible {
  border-color: currentColor;
  outline: none;
  animation: signalFlicker .42s steps(2, end);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 16px 44px rgba(0,0,0,.24),
    0 0 34px rgba(35,215,179,.14);
}

.slice:hover::after,
.slice:focus-visible::after {
  opacity: .34;
}

.demo-card:hover,
.demo-card:focus-visible {
  color: var(--cyan);
}

.ops-links a:hover,
.ops-links a:focus-visible {
  border-color: currentColor;
  outline: none;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.demo-card {
  display: flex;
  min-height: 104px;
  align-items: center;
  padding: 18px;
  color: #d6e5df;
  font-weight: 700;
  cursor: default;
}

.ops-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(11,31,29,.88), rgba(15,41,38,.74));
}

.ops-panel p:not(.eyebrow) {
  margin-top: 14px;
  max-width: 760px;
  color: #bdd0c9;
}

.ops-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ops-links a {
  display: flex;
  min-height: 76px;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--gold);
  font-weight: 800;
  padding: 14px;
}

.risk-band {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(207,93,89,.42);
  border-bottom: 1px solid rgba(207,93,89,.28);
}

.risk-band strong {
  color: var(--red);
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.risk-band p {
  color: #cdbfbb;
}

.archive-panel {
  display: grid;
  grid-template-columns: minmax(260px, .5fr) minmax(0, 1fr);
  gap: 26px;
  padding: 24px;
  border: 1px solid rgba(214, 177, 94, .34);
  background:
    linear-gradient(135deg, rgba(37,48,31,.62), rgba(6,16,15,.82));
}

.archive-panel p:not(.eyebrow) {
  align-self: end;
  color: #cbbf9f;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px) 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
}

@media (max-width: 1120px) {
  .phase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-grid,
  .slice-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar,
  .footer,
  .risk-band,
  .archive-panel,
  .section-header.split,
  .ops-panel,
  .radar-hero {
    grid-template-columns: 1fr;
  }

  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .radar-hero {
    min-height: auto;
    padding-top: 36px;
  }

  .radar-panel {
    min-height: 420px;
  }

  .status-strip,
  .signal-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-strip div:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
  }

  .phase-grid,
  .status-strip,
  .signal-row,
  .ops-links {
    grid-template-columns: 1fr;
  }

  .status-strip div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .status-strip div:first-child {
    border-top: 0;
  }

  .phase,
  .slice {
    min-height: auto;
  }
}

@keyframes signalFlicker {
  0% {
    filter: brightness(1);
  }
  22% {
    filter: brightness(1.34);
  }
  44% {
    filter: brightness(.88);
  }
  70% {
    filter: brightness(1.18);
  }
  100% {
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slice:hover,
  .slice:focus-visible,
  .demo-card:hover,
  .demo-card:focus-visible {
    animation: none;
  }
}
