:root {
  color-scheme: dark;
  --bg: #101a36;
  --surface: #1b294f;
  --surface-2: #24345f;
  --text: #f7f8ff;
  --muted: #b5bed8;
  --line: rgba(206, 216, 255, 0.17);
  --accent: #a8ff60;
  --accent-soft: rgba(168, 255, 96, 0.11);
  --content: min(1240px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent);
  color: #102000;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient-one {
  top: -18rem;
  right: -8rem;
  background: #6843cb;
}

.ambient-two {
  top: 80rem;
  left: -28rem;
  background: #138178;
}

.section-shell,
.site-header {
  width: var(--content);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 26, 54, 0.82);
  backdrop-filter: blur(18px);
  transition: min-height 200ms ease;
}

.site-header.compact {
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168, 255, 96, 0.45);
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav a,
.header-link {
  transition: color 180ms ease;
}

.nav a:hover,
.header-link:hover {
  color: var(--accent);
}

.header-link {
  justify-self: end;
  color: var(--text);
  font-size: 0.85rem;
}

.header-link span {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  min-height: calc(100svh - 84px);
  padding-block: 92px;
}

.eyebrow,
.section-index,
.step-code,
.map-topline,
.map-node small,
.map-note {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 0.76rem;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 32px;
  font-size: clamp(3.1rem, 5.65vw, 6.15rem);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 em,
h2 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 40px;
  color: #d3daf0;
  font-size: clamp(1.06rem, 1.4vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  min-height: 58px;
  padding: 0 22px;
  font-size: 0.88rem;
  font-weight: 650;
}

.button-primary {
  background: var(--accent);
  color: #102000;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(168, 255, 96, 0.15);
}

.hero-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: uppercase;
}

.system-map {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(42, 38, 91, 0.96), rgba(20, 74, 88, 0.88));
  overflow: hidden;
}

.map-topline {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.live-status {
  color: var(--accent);
}

.live-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.map-grid {
  position: absolute;
  inset: 55px 0 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.map-node {
  position: absolute;
  z-index: 3;
  width: 158px;
  padding: 16px 17px 18px;
  border: 1px solid rgba(206, 216, 255, 0.22);
  background: rgba(21, 33, 67, 0.9);
  backdrop-filter: blur(8px);
}

.map-node::before {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  background: #172342;
  content: "";
}

.map-node small {
  display: block;
  margin-bottom: 17px;
  color: var(--accent);
  font-size: 0.61rem;
}

.map-node strong {
  font-size: 0.88rem;
  font-weight: 560;
  line-height: 1.35;
}

.node-context {
  top: 96px;
  left: 24px;
}

.node-focus {
  top: 221px;
  left: 42%;
  border-color: rgba(168, 255, 96, 0.6);
  box-shadow: 0 0 50px rgba(168, 255, 96, 0.09);
}

.node-result {
  right: 24px;
  bottom: 70px;
}

.map-lines {
  position: absolute;
  inset: 50px 0 0;
  z-index: 2;
  width: 100%;
  height: calc(100% - 50px);
  overflow: visible;
}

.map-lines path {
  fill: none;
  stroke: rgba(168, 255, 96, 0.62);
  stroke-dasharray: 5 8;
  stroke-width: 1.5;
  animation: dash 18s linear infinite;
}

.map-note {
  position: absolute;
  bottom: 20px;
  left: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.63rem;
}

.signal {
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.signal-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 64px);
  min-width: max-content;
  min-height: 82px;
  padding-inline: 32px;
  color: #c2cae2;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.statement,
.principles {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 50px;
  padding-block: clamp(110px, 14vw, 200px);
}

.section-index {
  color: var(--muted);
  font-size: 0.67rem;
}

.statement-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: end;
}

.statement h2,
.process-heading h2,
.closing h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.statement-content > p {
  margin-bottom: 6px;
  color: #c8d0e8;
  font-size: 1.03rem;
  line-height: 1.8;
}

.process {
  padding-block: clamp(100px, 12vw, 170px);
  border-top: 1px solid var(--line);
}

.process-heading {
  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 50px;
  margin-bottom: clamp(70px, 9vw, 120px);
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 0.25fr 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-style: italic;
}

.process-list h3 {
  margin-bottom: 11px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 540;
  letter-spacing: -0.03em;
}

.process-list p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.step-code {
  padding-top: 8px;
  color: #8f9bbb;
  font-size: 0.62rem;
}

.principles {
  border-top: 1px solid var(--line);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle-card {
  min-height: 340px;
  padding: 30px;
  background: var(--surface);
  transition: background 200ms ease;
}

.principle-card:hover {
  background: var(--surface-2);
}

.principle-card > span {
  display: block;
  margin-bottom: 115px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.principle-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 540;
  letter-spacing: -0.03em;
}

.principle-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  min-height: 74vh;
  padding-block: 120px;
  border-top: 1px solid var(--line);
}

.closing h2 {
  font-size: clamp(3.5rem, 7.4vw, 8.3rem);
}

.closing-mark {
  display: grid;
  place-items: center;
  width: clamp(120px, 16vw, 220px);
  aspect-ratio: 1;
  border: 1px solid rgba(168, 255, 96, 0.5);
  color: var(--accent);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 730;
  box-shadow: 0 0 80px rgba(168, 255, 96, 0.08);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: end;
  padding-block: 45px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.copyright {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes dash {
  to { stroke-dashoffset: -260; }
}

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

@media (max-width: 1050px) {
  :root { --content: min(100% - 44px, 920px); }
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 110px; }
  .hero-copy { max-width: 830px; }
  .system-map { width: min(100%, 720px); min-height: 520px; margin-left: auto; }
  .statement-content { grid-template-columns: 1fr; }
  .statement-content > p { max-width: 650px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --content: calc(100vw - 34px); }
  .site-header { min-height: 70px; }
  .header-link { display: none; }
  .brand { font-size: 0.83rem; }
  .hero { gap: 62px; padding-block: 80px 70px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .system-map { min-height: 480px; }
  .map-node { width: 137px; padding: 13px; }
  .node-context { top: 88px; left: 15px; }
  .node-focus { top: 212px; left: 37%; }
  .node-result { right: 15px; bottom: 60px; }
  .map-lines { display: none; }
  .statement, .principles { grid-template-columns: 1fr; gap: 34px; }
  .process-heading { grid-template-columns: 1fr; gap: 34px; }
  .process-list li { grid-template-columns: 46px 1fr; gap: 12px; }
  .step-code { display: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 280px; }
  .principle-card > span { margin-bottom: 75px; }
  .closing { grid-template-columns: 1fr; min-height: auto; }
  .closing-mark { width: 120px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .copyright { grid-column: auto; text-align: left; }
}

@media (max-width: 420px) {
  .system-map { min-height: 510px; }
  .node-focus { top: 224px; left: auto; right: 16px; }
  .node-result { right: auto; left: 16px; }
  .button { width: 100%; }
}
