:root {
  color-scheme: dark;
  --ink: #f2f7ea;
  --muted: #aebbb7;
  --soft: #74827f;
  --line: rgba(185, 217, 206, 0.14);
  --paper: #07111f;
  --panel: #0b1829;
  --panel-high: #10243a;
  --panel-higher: #173048;
  --black: #030810;
  --white: #ffffff;
  --lime: #9fe870;
  --cyan: #5bdaf4;
  --blue: #7ea5ff;
  --coral: #ff8b72;
  --radius: 8px;
  --container: 1180px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(91, 218, 244, 0.14),
      transparent 32rem
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(159, 232, 112, 0.1),
      transparent 28rem
    ),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 40;
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--lime);
  color: var(--black);
  font-weight: 800;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 32px), var(--container));
  height: var(--header-height);
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--white);
  font-weight: 820;
  letter-spacing: 0;
}

.brand-word span:last-child {
  color: var(--lime);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  grid-area: 1 / 1;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-button span:first-child {
  transform: translateY(-4px);
}

.menu-button span:last-child {
  transform: translateY(4px);
}

.site-header.menu-open .menu-button span:first-child {
  transform: rotate(45deg);
}

.site-header.menu-open .menu-button span:last-child {
  transform: rotate(-45deg);
}

.menu-button:focus-visible,
.scenario-tab:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

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

.nav-links a {
  border-radius: var(--radius);
  padding: 10px 11px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  outline: none;
}

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

.hero {
  position: relative;
  min-height: calc(90svh - var(--header-height));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

#system-map,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#system-map {
  opacity: 0.42;
}

.hero-grid {
  pointer-events: none;
  background:
    linear-gradient(rgba(185, 217, 206, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 217, 206, 0.045) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(7, 17, 31, 0.94),
      rgba(7, 17, 31, 0.64) 46%,
      rgba(7, 17, 31, 0.9)
    );
  background-size:
    44px 44px,
    44px 44px,
    auto;
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: calc(90svh - var(--header-height));
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: center;
  padding-block: 62px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 22px;
  color: var(--white);
  font-size: 5.3rem;
  line-height: 0.92;
  font-weight: 860;
}

h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: 3rem;
  line-height: 1;
  font-weight: 820;
}

h3 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.28rem;
  line-height: 1.12;
  font-weight: 780;
}

.hero-copy p {
  max-width: 580px;
  margin-bottom: 30px;
  color: #d7e3df;
  font-size: 1.18rem;
  line-height: 1.48;
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--black);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #b3f08a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(159, 232, 112, 0.72);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.signal-row li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  color: #d4dfdb;
  font-size: 0.84rem;
  font-weight: 760;
}

.console {
  border: 1px solid rgba(185, 217, 206, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(6, 17, 31, 0.84);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.console-topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-topbar div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(159, 232, 112, 0.9);
}

.console-body {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) 168px;
  min-height: 474px;
}

.console-sidebar,
.console-inspector {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}

.console-inspector {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.scenario-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 11px 9px;
  text-align: left;
  cursor: pointer;
}

.scenario-tab span {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 820;
}

.scenario-tab.active,
.scenario-tab:hover {
  border-color: rgba(159, 232, 112, 0.35);
  background: rgba(159, 232, 112, 0.08);
  color: var(--white);
}

.console-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 14px;
}

.prompt-bar,
.run-panel,
.command-line,
.insight-card,
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 8, 16, 0.46);
}

.prompt-bar {
  padding: 14px;
}

.prompt-bar span,
.run-header span,
.command-line span,
.metric span,
.insight-card span {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prompt-bar p {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.45;
}

.run-panel {
  padding: 14px;
}

.run-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.run-header strong {
  color: var(--lime);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.run-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.run-steps li {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.run-steps li span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: rgba(185, 217, 206, 0.22);
}

.run-steps li.complete span,
.run-steps li.active span {
  background: var(--lime);
}

.run-steps li.active span {
  box-shadow: 0 0 22px rgba(159, 232, 112, 0.8);
}

.run-steps p {
  margin: 0;
}

.command-line {
  display: grid;
  gap: 8px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.command-line p {
  margin: 0;
  color: var(--cyan);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.console-inspector {
  display: grid;
  gap: 12px;
  align-content: start;
}

.metric {
  padding: 12px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
}

.insight-card {
  padding: 12px;
}

.insight-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.system-band {
  border-bottom: 1px solid var(--line);
  background: var(--black);
}

.system-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding-block: 34px;
}

.system-band p {
  max-width: 840px;
  margin: 0;
  color: #dbe7e2;
  font-size: 1.06rem;
}

.system-band ul,
.card-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-band li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
  white-space: nowrap;
}

.section {
  padding-block: 104px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.38fr minmax(0, 0.82fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 0;
}

.section-heading.compact p:last-child {
  margin-top: 22px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.services-section,
.work-section,
.standard-section {
  background: var(--paper);
}

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

.service-card,
.work-item {
  min-height: 335px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.service-card:hover,
.work-item:hover {
  transform: translateY(-3px);
  border-color: rgba(159, 232, 112, 0.34);
  background: var(--panel-high);
}

.service-index,
.work-item span {
  width: fit-content;
  min-width: 42px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding-inline: 9px;
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.service-card:nth-child(1) .service-index {
  border-color: rgba(159, 232, 112, 0.9);
  background: rgba(159, 232, 112, 0.12);
}

.service-card:nth-child(2) .service-index {
  border-color: rgba(91, 218, 244, 0.46);
  background: rgba(91, 218, 244, 0.08);
}

.service-card:nth-child(3) .service-index {
  border-color: rgba(126, 165, 255, 0.44);
  background: rgba(126, 165, 255, 0.08);
}

.service-card p,
.work-item p {
  margin-bottom: 22px;
  color: var(--muted);
}

.card-points {
  margin-top: auto;
}

.card-points li {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #dfe9e3;
  font-size: 0.86rem;
  font-weight: 730;
}

.card-points li::before {
  width: 7px;
  height: 7px;
  content: "";
  flex: 0 0 auto;
  background: var(--lime);
}

.systems-section {
  border-block: 1px solid var(--line);
  background: #0a1524;
}

.systems-layout,
.standard-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 64px;
  align-items: start;
}

.stack-panel,
.standard-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.stack-row,
.standard-list p {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.stack-row span {
  color: var(--white);
  font-weight: 820;
}

.stack-row p {
  margin: 0;
}

.work-item {
  justify-content: space-between;
}

.work-item span {
  min-width: 0;
  height: auto;
  padding-block: 7px;
  color: var(--lime);
}

.work-item h3 {
  max-width: 230px;
}

.standard-list p {
  display: block;
  color: #d7e4df;
  font-size: 1.02rem;
}

.group-section {
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.group-layout {
  display: grid;
  grid-template-columns: 116px minmax(0, 720px);
  gap: 42px;
  align-items: center;
}

.group-mark {
  width: 112px;
  height: 112px;
}

.group-layout p:last-child {
  margin-top: 22px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.footer {
  padding-block: 78px;
  background: var(--black);
  color: var(--white);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.footer h2 {
  max-width: 680px;
}

.footer-actions span {
  color: var(--soft);
  font-weight: 760;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-layout,
  .system-band-grid,
  .systems-layout,
  .standard-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .console-body {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .console-inspector {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-band ul {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-height: 760px) and (min-width: 721px) {
  .hero-layout {
    padding-block: 18px;
  }

  .console-body {
    min-height: 410px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .nav-shell {
    width: min(calc(100% - 24px), var(--container));
    min-height: var(--header-height);
    height: auto;
    flex-wrap: wrap;
    padding-block: 11px;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.9rem;
  }

  .site-header.nav-enhanced .nav-shell {
    height: var(--header-height);
    min-height: 0;
    flex-wrap: nowrap;
    padding-block: 0;
  }

  .site-header.nav-enhanced .menu-button {
    display: inline-grid;
  }

  .site-header.nav-enhanced .nav-links {
    display: none;
    position: absolute;
    inset: calc(100% + 1px) 0 auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, 0.98);
    padding: 8px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.35);
  }

  .site-header.nav-enhanced.menu-open .nav-links {
    display: flex;
  }

  .site-header.nav-enhanced .nav-links a {
    padding: 12px;
  }

  .hero-layout {
    width: min(calc(100% - 28px), var(--container));
    min-height: auto;
    padding-block: 52px 42px;
    gap: 28px;
  }

  .hero-grid {
    background:
      linear-gradient(rgba(185, 217, 206, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(185, 217, 206, 0.04) 1px, transparent 1px),
      linear-gradient(
        180deg,
        rgba(7, 17, 31, 0.94),
        rgba(7, 17, 31, 0.68),
        rgba(7, 17, 31, 0.95)
      );
    background-size:
      36px 36px,
      36px 36px,
      auto;
  }

  #system-map {
    opacity: 0.32;
  }

  h1 {
    font-size: 3.2rem;
    line-height: 0.96;
  }

  h2 {
    font-size: 2.05rem;
    line-height: 1.06;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .signal-row {
    margin-top: 24px;
  }

  .console-body {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .console-inspector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading,
  .service-grid,
  .work-grid,
  .systems-layout,
  .standard-layout,
  .group-layout,
  .footer-layout,
  .system-band-grid {
    width: min(calc(100% - 28px), var(--container));
  }

  .section-heading,
  .service-grid,
  .work-grid,
  .systems-layout,
  .standard-layout,
  .group-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .work-grid {
    gap: 10px;
  }

  .service-card,
  .work-item {
    min-height: 260px;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .group-mark {
    width: 78px;
    height: 78px;
  }
}

@media (max-height: 660px) and (max-width: 720px) {
  .hero-layout {
    padding-block: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
