:root {
  color-scheme: dark;
  --black: #050506;
  --panel: #0a0a0c;
  --red: #ff1c23;
  --red-hot: #ff4b4f;
  --white: #f0eeee;
  --muted: #858184;
  --line: rgba(255, 255, 255, 0.13);
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 18%, rgba(130, 0, 0, 0.12), transparent 33rem),
    var(--black);
  font-family: var(--display);
  letter-spacing: 0.02em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.scanline {
  position: fixed;
  inset: -20% 0 auto;
  z-index: 19;
  height: 10vh;
  pointer-events: none;
  opacity: 0.12;
  background: linear-gradient(transparent, rgba(255, 28, 35, 0.15), transparent);
  animation: scan 9s linear infinite;
}

@keyframes scan {
  to { transform: translateY(140vh); }
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 clamp(24px, 5vw, 84px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.brand b { color: var(--red); }

.brand-mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--red);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 7%, var(--red) 9% 22%, transparent 24%);
  box-shadow: 0 0 20px rgba(255, 28, 35, 0.65);
}

.system-state {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #aaa5a7;
  font: 10px var(--mono);
  letter-spacing: 0.16em;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  min-height: 100vh;
  padding: 112px clamp(24px, 5vw, 84px) 70px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 30px;
  color: #999497;
  font: 10px var(--mono);
  letter-spacing: 0.2em;
}

.eyebrow span {
  margin-right: 16px;
  color: var(--red);
}

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

h1 {
  margin-bottom: 4px;
  font-size: clamp(72px, 9.5vw, 166px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.skynet-title {
  position: relative;
  display: inline-flex;
  padding: 0.08em 0.1em 0.08em 0;
  color: transparent;
  background: linear-gradient(180deg, #fff 0 34%, #888 46%, #fff 53%, #777 75%, #e8e8e8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.07));
}

.skynet-title::before,
.skynet-title::after {
  position: absolute;
  content: "";
}

.skynet-title::before {
  right: -0.04em;
  bottom: -0.03em;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(255, 28, 35, 0.05));
  box-shadow: 0 0 12px rgba(255, 28, 35, 0.6);
}

.skynet-title::after {
  top: -0.08em;
  right: -0.04em;
  width: 0.16em;
  height: 0.16em;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
}

.skynet-title span:last-child {
  color: var(--red);
  background: linear-gradient(180deg, #ff676b, var(--red) 46%, #840006);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: none;
}

.tagline {
  margin: 17px 0 29px;
  color: #aaa5a7;
  font: clamp(15px, 1.35vw, 22px) var(--mono);
  letter-spacing: 0.42em;
}

.tagline strong {
  color: var(--white);
  font-weight: 400;
}

.lead {
  max-width: 540px;
  margin-bottom: 34px;
  color: #a9a4a6;
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.65;
}

.core-link {
  display: inline-flex;
  align-items: center;
  min-width: 230px;
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font: 11px var(--mono);
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background 180ms ease, padding 180ms ease;
}

.core-link span:first-child { padding: 18px 22px; }

.core-link .arrow {
  margin-left: auto;
  padding: 16px 20px;
  border-left: 1px solid var(--line);
  color: var(--red);
  font-size: 18px;
}

.core-link:hover { background: rgba(255, 28, 35, 0.09); }

.core-visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(48vw, 760px);
  justify-self: end;
}

.core-visual img {
  position: relative;
  z-index: 3;
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(255, 0, 0, 0.17));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-8px) scale(1.006); }
}

.emblem-halo {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.18);
  filter: blur(60px);
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {
  50% { opacity: 0.4; transform: scale(1.16); }
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.orbit::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 16px var(--red);
  content: "";
}

.orbit-a { width: 92%; aspect-ratio: 1; animation: rotate 25s linear infinite; }
.orbit-b { width: 106%; height: 54%; transform: rotate(28deg); animation: wobble 18s linear infinite; }
.orbit-c { width: 106%; height: 54%; transform: rotate(-28deg); animation: wobble-back 21s linear infinite; }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes wobble { to { transform: rotate(388deg); } }
@keyframes wobble-back { to { transform: rotate(-388deg); } }

.target-label {
  position: absolute;
  z-index: 5;
  padding: 8px 12px;
  border-left: 1px solid var(--red);
  color: #8b8789;
  background: rgba(5, 5, 6, 0.72);
  font: 9px var(--mono);
  letter-spacing: 0.12em;
  backdrop-filter: blur(5px);
}

.target-label-a { top: 18%; right: -1%; }
.target-label-b { bottom: 15%; left: 1%; }

.hero-index {
  position: absolute;
  inset: auto clamp(24px, 5vw, 84px) 24px;
  display: flex;
  justify-content: space-between;
  color: #575356;
  font: 8px var(--mono);
  letter-spacing: 0.14em;
}

.world-grid {
  position: absolute;
  top: 50%;
  right: 2%;
  z-index: -1;
  width: min(57vw, 900px);
  aspect-ratio: 2 / 1;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  opacity: 0.8;
}

.latitude, .longitude {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.lat-1 { inset: 18% 0; }
.lat-2 { inset: 36% 0; }
.lat-3 { inset: 45% 0; }
.long-1 { inset: 0 22%; }
.long-2 { inset: 0 42%; }
.long-3 { inset: 0 48%; }

.network {
  padding: 120px clamp(24px, 5vw, 84px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.75fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 70px;
}

.section-heading .eyebrow { align-self: start; }

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 5vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.nodes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.node-card {
  position: relative;
  min-height: 360px;
  padding: 30px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 60%);
  transition: background 250ms ease;
}

.node-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--red);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 300ms ease;
}

.node-card:hover { background: rgba(255, 28, 35, 0.035); }
.node-card:hover::before { transform: scaleY(1); }

.node-id {
  color: #615d5f;
  font: 9px var(--mono);
  letter-spacing: 0.16em;
}

.node-icon {
  position: absolute;
  top: 24px;
  right: 30px;
  color: var(--red);
  font-size: 28px;
}

.node-card h3 {
  margin: 100px 0 16px;
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -0.045em;
}

.node-card > p {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.node-footer {
  position: absolute;
  inset: auto 30px 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #696568;
  font: 9px var(--mono);
}

.node-footer code,
.node-footer a {
  color: #a7a2a4;
  font: inherit;
  text-decoration: none;
}
.node-footer a:hover { color: var(--white); }
.node-footer span { color: var(--red); }

.manifesto {
  position: relative;
  display: grid;
  grid-template-columns: 0.55fr 1.2fr 0.55fr;
  gap: 30px;
  align-items: center;
  min-height: 520px;
  padding: 90px clamp(24px, 7vw, 120px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 0, 0, 0.09), transparent 32%),
    repeating-linear-gradient(90deg, transparent 0 9.95%, rgba(255, 255, 255, 0.025) 10%);
}

.manifesto p {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.manifesto p strong { color: var(--red); font-weight: inherit; }

.manifesto-sigil {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.manifesto-sigil::after {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 25px var(--red);
  content: "";
}

.manifesto-sigil span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transform-origin: center;
}

.manifesto-sigil span:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.manifesto-sigil span:nth-child(3) { transform: translate(-50%, -50%) rotate(-60deg); }
.manifesto-sigil span:first-child { transform: translate(-50%, -50%); }

.owner-lock {
  justify-self: end;
  padding-left: 18px;
  border-left: 1px solid var(--red);
  font: 9px var(--mono);
  letter-spacing: 0.15em;
}

.owner-lock span { display: block; margin-bottom: 8px; color: #696568; }
.owner-lock b { color: var(--white); font-weight: 400; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 28px clamp(24px, 5vw, 84px);
  border-top: 1px solid var(--line);
  color: #5f5b5d;
  font: 8px var(--mono);
  letter-spacing: 0.13em;
}

footer b { color: var(--red); font-weight: 400; }

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-copy { max-width: 820px; }
  .core-visual { width: min(90vw, 670px); justify-self: center; margin-top: 20px; }
  .world-grid { width: 100vw; right: -20%; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .eyebrow { margin-bottom: 0; }
  .manifesto { grid-template-columns: 1fr; justify-items: center; }
  .owner-lock { justify-self: center; }
}

@media (max-width: 680px) {
  .topbar { min-height: 70px; }
  .system-state { font-size: 8px; }
  .hero { padding-top: 120px; }
  h1 { font-size: clamp(50px, 16vw, 78px); }
  .hero-index span:nth-child(2) { display: none; }
  .core-visual { width: 106vw; margin-left: -9vw; }
  .target-label { display: none; }
  .network { padding-top: 90px; padding-bottom: 90px; }
  .nodes { grid-template-columns: 1fr; }
  .node-card { min-height: 330px; }
  .node-footer { flex-direction: column; gap: 7px; }
  .manifesto { min-height: 620px; }
  .manifesto-sigil { width: 110px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
