@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/syne-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/syne-latin-800.woff2") format("woff2");
}

:root {
  --bg: #07090c;
  --bg-2: #0d1218;
  --ink: #e9eef4;
  --muted: #8b98a8;
  --line: rgba(233, 238, 244, 0.1);
  --cyan: #3dffd1;
  --amber: #ffb547;
  --magenta: #ff4d8d;
  --glow: 0 0 40px rgba(61, 255, 209, 0.35);
  --font-display: "Syne", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(61, 255, 209, 0.08), transparent 55%),
    radial-gradient(900px 500px at 10% 110%, rgba(255, 77, 141, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 78% 64%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 4px);
}

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(61, 255, 209, 0.12), transparent 62%);
  transform: translate(-100vw, -100vh);
  transition: transform 80ms linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 6vw;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 12, 0.55);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow);
  font-size: 13px;
}

.brand-name { font-size: 14px; text-transform: uppercase; }

.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover { color: var(--cyan); }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: blink 1.6s infinite;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 8vh 6vw 10vh;
  gap: 40px;
  scroll-margin-top: 84px;
}

.hero-copy,
.section-head,
.cards,
.card,
.signal-copy {
  min-width: 0;
}

.eyebrow {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 28px;
}

.sep { opacity: 0.4; }

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 10vw, 128px);
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.word {
  display: block;
  position: relative;
}

.word.accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  text-shadow: 0 0 28px rgba(61, 255, 209, 0.25);
}

.lead {
  max-width: 46ch;
  margin: 28px 0 36px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: var(--cyan);
  color: #06221c;
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.btn.primary:hover,
.btn.ghost:hover {
  transform: translateY(-2px);
}

.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.reactor {
  position: relative;
  width: min(440px, 90%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.orbit {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(61, 255, 209, 0.28);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.o2 { inset: 18%; animation-duration: 12s; animation-direction: reverse; border-color: rgba(255, 181, 71, 0.28); }
.o3 { inset: 28%; animation-duration: 8s; }

.core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
}

.plasma {
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff, var(--cyan) 38%, #0a3a32 72%, #04110e);
  box-shadow:
    0 0 40px rgba(61, 255, 209, 0.7),
    0 0 120px rgba(61, 255, 209, 0.35);
  animation: pulse 2.4s ease-in-out infinite;
}

.core-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: var(--glow);
}

.tick {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  border-radius: 50%;
}

.t1 { top: 6%; left: 50%; animation: orbit-dot 10s linear infinite; }
.t2 { bottom: 10%; left: 18%; animation: orbit-dot 14s linear infinite reverse; background: var(--magenta); }
.t3 { top: 28%; right: 8%; animation: orbit-dot 9s linear infinite; }
.t4 { bottom: 22%; right: 22%; animation: orbit-dot 16s linear infinite reverse; background: var(--cyan); }

.systems, .signal-block {
  position: relative;
  z-index: 2;
  padding: 8vh 6vw;
  scroll-margin-top: 84px;
}

.section-head, .signal-copy { margin-bottom: 36px; }

.kicker {
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  min-height: 240px;
}

.idx { color: var(--muted); font-size: 12px; }
.card h3 { font-family: var(--font-display); font-size: 28px; margin: 18px 0 12px; }
.card p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.card code { color: var(--cyan); }

.meter {
  margin-top: auto;
  padding-top: 28px;
  background:
    linear-gradient(var(--line), var(--line)) left bottom / 100% 3px no-repeat;
}

.meter i {
  display: block;
  width: var(--fill);
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.meter.cool i { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.meter.signal i { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }

.signal-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.terminal {
  background: #05070a;
  border: 1px solid var(--line);
  min-height: 280px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.dots {
  width: 42px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #ff5f57 4px, transparent 5px),
    radial-gradient(circle at 21px 5px, #febc2e 4px, transparent 5px),
    radial-gradient(circle at 37px 5px, #28c840 4px, transparent 5px);
}

#log {
  padding: 20px;
  min-height: 220px;
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.signal-copy p:not(.kicker) {
  color: var(--muted);
  margin: 18px 0 28px;
  max-width: 42ch;
  line-height: 1.7;
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 24px 6vw 40px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line);
}

body.pulsing .plasma {
  animation: boom 0.7s ease;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.25); }
}
@keyframes boom {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); filter: brightness(1.8); }
  100% { transform: scale(1); }
}
@keyframes orbit-dot {
  from { transform: rotate(0deg) translateX(170px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(170px) rotate(-360deg); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .hero, .signal-block, .cards { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 48px; }
  .reactor { order: -1; width: min(280px, 70%); }
  .headline { font-size: clamp(40px, 13vw, 64px); }
  .word { padding-inline: 4px; }
  .word.accent { -webkit-text-stroke-width: 1.2px; }
  h2 { font-size: clamp(26px, 8vw, 40px); }
}
