:root {
  color-scheme: dark;
  --black: #020604;
  --panel: #040a06;
  --panel-strong: #071109;
  --phosphor: #65ff9a;
  --phosphor-bright: #b8ffcf;
  --phosphor-dim: #239653;
  --text: #e5f5e9;
  --muted: #718178;
  --line: rgba(101, 255, 154, 0.2);
  --line-soft: rgba(101, 255, 154, 0.09);
  --shell: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--black);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

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

::selection { color: var(--black); background: var(--phosphor); }

#matrix-field {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.grid-field,
.screen-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grid-field {
  z-index: -3;
  opacity: 0.44;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, transparent 76%);
}

.screen-vignette {
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 50%, rgba(0, 0, 0, 0.025) 50%),
    linear-gradient(90deg, rgba(2, 6, 4, 0.92), rgba(2, 6, 4, 0.74) 42%, rgba(2, 6, 4, 0.2) 78%, rgba(2, 6, 4, 0.08)),
    radial-gradient(circle at 75% 22%, rgba(44, 255, 113, 0.055), transparent 30rem),
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.64) 125%);
  background-size: 100% 4px, auto, auto, auto;
}

.shell {
  width: min(calc(100% - 56px), var(--shell));
  margin-inline: auto;
}

.wordmark,
.site-header,
.system-label,
.eyebrow,
.section-index,
.resolver,
.status-rail,
.operation-command,
.machine-table,
.launch,
.site-footer {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: relative;
  display: grid;
  height: 76px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 64px;
  height: 1px;
  content: "";
  background: var(--phosphor);
  box-shadow: 0 0 10px var(--phosphor);
}

.wordmark {
  width: max-content;
  color: var(--phosphor-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.wordmark span { color: var(--phosphor-dim); }

.system-path { color: #3e5145; }

.site-header nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 28px;
  color: var(--muted);
}

.site-header nav a { transition: color 160ms ease, text-shadow 160ms ease; }

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--phosphor);
  text-shadow: 0 0 12px rgba(101, 255, 154, 0.6);
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--phosphor);
}

.live-state i,
.resolver-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 12px var(--phosphor);
  animation: pulse 2s steps(2, end) infinite;
}

.hero {
  display: grid;
  min-height: min(800px, calc(100vh - 76px));
  grid-template-columns: minmax(0, 1.03fr) minmax(460px, 0.97fr);
  align-items: center;
  gap: clamp(56px, 7vw, 110px);
  padding-block: 72px 92px;
}

.system-label {
  display: flex;
  max-width: 620px;
  justify-content: space-between;
  margin-bottom: 34px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--phosphor);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
}

.system-label span:last-child { color: var(--muted); }

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(4.2rem, 7.5vw, 8.1rem);
  font-weight: 610;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.hero h1 em {
  color: var(--phosphor);
  font-style: normal;
  text-shadow: 0 0 32px rgba(101, 255, 154, 0.12);
}

.hero-intro {
  max-width: 610px;
  margin: 38px 0 0;
  color: #87998e;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--phosphor);
  padding: 0 19px;
  color: var(--black);
  background: var(--phosphor);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(101, 255, 154, 0);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--phosphor-bright);
  box-shadow: 0 0 24px rgba(101, 255, 154, 0.2);
  transform: translateY(-2px);
}

.text-link {
  color: var(--muted);
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible { color: var(--phosphor); }

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  color: #435248;
  font-family: monospace;
  font-size: 0.57rem;
  letter-spacing: 0.12em;
}

.hero-footnote i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--phosphor-dim);
}

.resolver {
  position: relative;
  width: 100%;
  min-height: 590px;
  overflow: hidden;
  align-self: center;
  border: 1px solid var(--line);
  background: rgba(2, 8, 4, 0.86);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 40px 120px rgba(0, 0, 0, 0.4), inset 0 0 70px rgba(101, 255, 154, 0.025);
  backdrop-filter: blur(14px);
}

.resolver::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(101, 255, 154, 0.015) 3px 4px);
}

.corner {
  position: absolute;
  z-index: 3;
  width: 15px;
  height: 15px;
  border-color: var(--phosphor);
  pointer-events: none;
}

.corner-tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-br { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }

.resolver-header,
.resolver-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
}

.resolver-header {
  height: 50px;
  border-bottom: 1px solid var(--line);
  padding: 0 17px;
}

.resolver-status { display: inline-flex; align-items: center; gap: 8px; color: var(--phosphor); }

.resolver-body {
  position: relative;
  z-index: 1;
  min-height: 492px;
  padding: 19px 21px;
}

.command-line {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 26px;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
}

.prompt { color: var(--phosphor); }
.command-line > span:nth-child(2) { color: #98a99e; }

.cursor {
  width: 6px;
  height: 12px;
  background: var(--phosphor);
  animation: cursor-blink 1s steps(1, end) infinite;
}

.identity-output {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(1, 7, 3, 0.78);
  box-shadow: inset 0 0 46px rgba(101, 255, 154, 0.018);
}

.identity-output.is-refreshing {
  animation: record-refresh 340ms steps(2, end);
}

.output-note {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 11px;
  color: #526259;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.output-note span:last-child { color: var(--phosphor-dim); }

.json-output {
  display: grid;
  gap: 4px;
  padding: 14px 13px 15px;
  color: #7d8f84;
  font-size: 0.56rem;
  line-height: 1.45;
}

.json-line {
  min-width: 0;
  overflow-wrap: anywhere;
}

.json-line.depth-1 { padding-left: 14px; }
.json-line.depth-2 { padding-left: 28px; }
.json-line .key { color: #68c889; }
.json-line .string { color: #d7fbe2; }
.json-line .number { color: #9cffbd; }
.json-line .array { color: #a8b9ae; }
.json-line .safe { color: var(--phosphor); text-shadow: 0 0 8px rgba(101, 255, 154, 0.35); }
.json-line .brace { color: var(--phosphor); }

.resolver-footer {
  height: 48px;
  border-top: 1px solid var(--line);
  padding: 0 17px;
  color: #415047;
}

.scan-line {
  position: absolute;
  top: -20%;
  right: 0;
  left: 0;
  z-index: 5;
  height: 80px;
  opacity: 0.28;
  background: linear-gradient(to bottom, transparent, rgba(101, 255, 154, 0.13), transparent);
  pointer-events: none;
  animation: terminal-scan 7s linear infinite;
}

.status-rail {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: rgba(2, 7, 4, 0.92);
}

.status-track {
  display: flex;
  width: max-content;
  height: 52px;
  align-items: center;
  gap: 26px;
  color: #536159;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  animation: rail-scroll 36s linear infinite;
}

.status-track i { color: var(--phosphor-dim); font-style: normal; }

.section { padding-block: 150px; }

.section-header {
  display: grid;
  grid-template-columns: 0.45fr 1.05fr 0.7fr;
  align-items: end;
  gap: 60px;
  padding-bottom: 68px;
  border-bottom: 1px solid var(--line);
}

.section-index {
  display: block;
  margin-bottom: 22px;
  color: var(--phosphor);
  font-size: 0.65rem;
}

.eyebrow {
  margin: 0;
  color: #65766c;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.25rem);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-header > p,
.machine-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.operation-list { display: grid; grid-template-columns: repeat(3, 1fr); }

.operation {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  padding: 42px 34px 38px 0;
}

.operation + .operation { padding-left: 34px; }
.operation:last-child { border-right: 0; }

.operation-command {
  color: var(--phosphor);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.operation h3 {
  margin: 92px 0 16px;
  font-size: 1.35rem;
  font-weight: 570;
  letter-spacing: -0.035em;
}

.operation p { max-width: 320px; margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

.operation > b {
  position: absolute;
  right: 24px;
  bottom: -24px;
  color: rgba(101, 255, 154, 0.035);
  font-family: monospace;
  font-size: 8rem;
  line-height: 1;
}

.infrastructure { padding-top: 30px; }

.machine-panel {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 100px;
  border: 1px solid var(--line);
  padding: clamp(38px, 6vw, 78px);
  background: rgba(3, 10, 5, 0.86);
  box-shadow: inset 0 0 80px rgba(101, 255, 154, 0.02), 0 34px 90px rgba(0, 0, 0, 0.28);
}

.machine-heading h2 { margin-top: 26px; }
.machine-heading > p:last-child { max-width: 580px; margin-top: 32px; }

.machine-table { align-self: end; border-top: 1px solid var(--line); }

.machine-table > div {
  display: grid;
  min-height: 68px;
  grid-template-columns: 30px 1fr 70px 54px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
}

.machine-table span { color: #39483e; }
.machine-table strong { color: #9cad9f; font-weight: 500; }
.machine-table i { color: #4d5e53; font-style: normal; }
.machine-table b { color: var(--phosphor); font-size: 0.49rem; font-weight: 500; }

.product { padding-top: 10px; }

.product-link {
  display: grid;
  min-height: 360px;
  grid-template-columns: 0.45fr 1.3fr auto;
  align-items: end;
  gap: 60px;
  border-block: 1px solid var(--line);
  padding-block: 55px;
  transition: border-color 180ms ease, background 180ms ease;
}

.product-link:hover,
.product-link:focus-visible {
  border-color: var(--phosphor);
  background: rgba(101, 255, 154, 0.018);
}

.product-link h2 { color: var(--phosphor-bright); }
.product-link p { margin: 22px 0 0; color: var(--muted); }

.launch {
  align-self: center;
  border: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--phosphor);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  transition: color 180ms ease, background 180ms ease;
}

.product-link:hover .launch,
.product-link:focus-visible .launch { color: var(--black); background: var(--phosphor); }

.site-footer {
  display: grid;
  min-height: 120px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line-soft);
  color: #465349;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

.site-footer .live-state { justify-self: end; font-size: 0.54rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1), transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes cursor-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes record-refresh {
  0% { opacity: 0.42; transform: translateY(2px); }
  55% { opacity: 0.78; }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes terminal-scan { from { transform: translateY(0); } to { transform: translateY(760px); } }
@keyframes rail-scroll { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 70px; padding-block: 90px; }
  .resolver { width: min(100%, 650px); justify-self: center; }
  .section-header { grid-template-columns: 1fr 1.5fr; }
  .section-header > p { grid-column: 2; }
  .machine-panel { grid-template-columns: 1fr; gap: 70px; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .site-header { height: 66px; grid-template-columns: 1fr auto; }
  .system-path, .site-header nav a:first-child { display: none; }
  .site-header nav { gap: 17px; }
  .hero { min-height: auto; padding-block: 72px 84px; }
  .system-label { margin-bottom: 28px; }
  .hero h1 { font-size: clamp(3.55rem, 17vw, 5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-footnote { margin-top: 38px; }
  .resolver { min-height: 540px; }
  .resolver-body { min-height: 442px; padding-inline: 14px; }
  .resolver-footer { font-size: 0.48rem; }
  .resolver-footer span:nth-child(2) { display: none; }
  .output-note { font-size: 0.45rem; }
  .json-output { gap: 3px; padding-inline: 10px; font-size: 0.5rem; }
  .json-line.depth-1 { padding-left: 10px; }
  .json-line.depth-2 { padding-left: 20px; }
  .section { padding-block: 105px; }
  .section-header { grid-template-columns: 1fr; gap: 25px; padding-bottom: 48px; }
  .section-header > p { grid-column: auto; }
  .operation-list { grid-template-columns: 1fr; }
  .operation, .operation + .operation { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .operation h3 { margin-top: 52px; }
  .machine-panel { padding: 31px 20px; }
  .machine-table > div { grid-template-columns: 24px 1fr 48px; }
  .machine-table i { display: none; }
  .product-link { min-height: 420px; grid-template-columns: 1fr; align-items: start; gap: 38px; }
  .launch { width: max-content; align-self: end; justify-self: end; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-state i,
  .resolver-status i,
  .cursor,
  .scan-line,
  .status-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
