:root {
  color-scheme: dark;
  --bg: #07090b;
  --bg-soft: #0d1215;
  --surface: rgba(17, 22, 25, 0.82);
  --surface-2: rgba(23, 29, 32, 0.74);
  --line: rgba(224, 238, 235, 0.13);
  --line-strong: rgba(224, 238, 235, 0.24);
  --text: #f5f7f4;
  --muted: #aab4ae;
  --soft: #d7ded8;
  --accent: #b6ff53;
  --cyan: #67e8f9;
  --red: #ff6d7a;
  --amber: #f4b761;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18rem),
    radial-gradient(circle at 84% 8%, rgba(182, 255, 83, 0.1), transparent 28rem),
    radial-gradient(circle at 8% 18%, rgba(103, 232, 249, 0.1), transparent 30rem),
    var(--bg);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

#signal-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.045;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 5px;
  mix-blend-mode: overlay;
}

[data-glass] {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(1160px, calc(100% - 32px));
  min-height: 66px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px;
  border-radius: var(--radius);
}

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

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(182, 255, 83, 0.48);
  color: var(--accent);
  background: rgba(182, 255, 83, 0.08);
  font-weight: 900;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.24), transparent 80%);
  transform: translateX(-120%);
  animation: mark-sheen 5.4s ease-in-out infinite;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #d6ded9;
  font-size: 0.9rem;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--soft);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  align-items: end;
  padding: 132px max(24px, calc((100vw - 1160px) / 2)) 58px;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.97) 0%, rgba(7, 9, 11, 0.78) 40%, rgba(7, 9, 11, 0.24) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 11, 0.52) 18%, transparent 64%, rgba(7, 9, 11, 0.72) 100%);
}

.hero-content {
  width: min(800px, 100%);
}

.status-pill {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e8f4df;
  background: rgba(255, 255, 255, 0.065);
  font-size: 0.85rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(182, 255, 83, 0.09);
  animation: breathe 2.8s ease-in-out infinite;
}

.hero h1 {
  max-width: 860px;
  margin: 22px 0 20px;
  overflow-wrap: break-word;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.93;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero p {
  max-width: 690px;
  margin: 0;
  color: #dbe3dd;
  font-size: clamp(1.05rem, 1.8vw, 1.26rem);
  line-height: 1.6;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.22), transparent 82%);
  transform: translateX(-125%);
  transition: transform 520ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.button:hover::after {
  transform: translateX(125%);
}

.button.primary {
  border-color: rgba(182, 255, 83, 0.72);
  color: #101410;
  background: var(--accent);
}

.button.ghost {
  color: #e9f0eb;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(780px, 100%);
  gap: 1px;
  margin: 42px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-metrics div {
  min-width: 0;
  padding: 16px;
  background: rgba(7, 9, 11, 0.67);
}

.hero-metrics dt {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: #e6ebe7;
  font-size: 0.92rem;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(12, 16, 18, 0.82);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker span {
  position: relative;
  padding: 14px 24px;
  color: #cbd5cf;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0.7;
}

.section,
.service-board,
.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.section {
  padding: 104px 0 0;
}

.intro-grid,
.systems,
.classes,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 26px;
  align-items: stretch;
}

.section-copy h2,
.class-panel h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-copy p:not(.eyebrow),
.class-panel p,
.contact-copy p,
.radar-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.radar-panel,
.class-panel,
.lab-feed,
.contact-console,
.system-display {
  padding: 24px;
  border-radius: var(--radius);
}

.radar-panel {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 20px;
  align-items: center;
}

.radar {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 26%, rgba(255, 255, 255, 0.055) 27% 28%, transparent 29%),
    radial-gradient(circle, transparent 0 52%, rgba(255, 255, 255, 0.045) 53% 54%, transparent 55%);
  overflow: hidden;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(182, 255, 83, 0.14);
  border-radius: 50%;
}

.radar::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 45%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(182, 255, 83, 0.9), transparent);
  animation: sweep 7s linear infinite;
}

.radar span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 4.6s ease-in-out infinite;
}

.radar span:nth-child(1) {
  top: 28%;
  left: 60%;
}

.radar span:nth-child(2) {
  top: 64%;
  left: 31%;
  animation-delay: 1.1s;
}

.radar span:nth-child(3) {
  top: 45%;
  left: 78%;
  animation-delay: 2s;
}

.service-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 38px;
}

.service-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  min-height: 350px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(182, 255, 83, 0.13), transparent 18rem),
    linear-gradient(180deg, rgba(27, 33, 35, 0.82), rgba(14, 18, 20, 0.92));
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(182, 255, 83, 0.86), transparent);
  transform: translateX(-100%);
  opacity: 0;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
  animation: edge-run 1.4s ease;
}

.service-card.hot {
  border-color: rgba(182, 255, 83, 0.24);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 900;
}

.chip {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dfe9e1;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 24px 0 12px;
  font-size: 1.42rem;
  line-height: 1.12;
}

.service-card p,
.service-card li {
  color: var(--muted);
  line-height: 1.62;
}

.service-card ul {
  position: relative;
  z-index: 1;
  padding-left: 18px;
}

.mode-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px;
  align-self: end;
  background: var(--line);
}

.mode {
  min-height: 46px;
  border: 0;
  color: var(--muted);
  background: rgba(17, 22, 25, 0.9);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.mode.active,
.mode:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.system-display {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
}

.terminal-window {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 10, 11, 0.62);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--accent);
}

#mode-output {
  min-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 18px;
  color: #def2e3;
  font: 0.94rem/1.58 "Cascadia Code", "Consolas", monospace;
  white-space: pre-wrap;
}

.workflow {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.workflow div {
  display: grid;
  align-content: center;
  min-height: 96px;
  padding: 18px;
  background: rgba(17, 22, 25, 0.88);
}

.workflow span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow strong {
  margin-top: 5px;
  font-size: 1.13rem;
}

.classes {
  align-items: start;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.class-grid span,
.lab-feed li {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.class-grid span {
  padding: 13px;
}

.lab-feed {
  position: sticky;
  top: 110px;
}

.lab-feed h3 {
  margin-top: 0;
}

.lab-feed ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-feed li {
  padding: 13px;
  color: var(--muted);
}

.lab-feed span {
  margin-right: 8px;
  color: var(--accent);
  font-weight: 900;
}

.contact {
  padding-bottom: 84px;
}

.contact-console {
  display: grid;
  gap: 16px;
}

.contact-console label {
  display: grid;
  gap: 7px;
  color: #e4ebe6;
  font-weight: 800;
}

.contact-console select,
.contact-console input,
.contact-console textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: white;
  background: rgba(7, 10, 11, 0.52);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-console select {
  min-height: 44px;
  padding: 0 10px;
}

.contact-console input {
  min-height: 44px;
  padding: 0 12px;
}

.contact-console textarea {
  resize: vertical;
  padding: 12px;
}

.contact-console select:focus,
.contact-console input:focus,
.contact-console textarea:focus {
  border-color: rgba(182, 255, 83, 0.56);
  background: rgba(7, 10, 11, 0.7);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.form-status.error {
  color: var(--red);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: white;
}

@keyframes hero-drift {
  from {
    transform: scale(1.035) translate3d(-0.4%, -0.3%, 0);
  }
  to {
    transform: scale(1.07) translate3d(0.8%, 0.6%, 0);
  }
}

@keyframes breathe {
  50% {
    transform: scale(0.72);
    box-shadow: 0 0 0 9px rgba(182, 255, 83, 0.06);
  }
}

@keyframes mark-sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ping {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  45% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes edge-run {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 900px) {
  .site-header {
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
  }

  .nav-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: block;
    transform: translateY(-50%);
  }

  .nav-links {
    position: fixed;
    inset: 78px 14px auto;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 9, 11, 0.96);
  }

  body.menu-open .nav-links {
    display: grid;
  }

  .nav-links a {
    min-height: 46px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 9, 11, 0.98) 0%, rgba(7, 9, 11, 0.84) 58%, rgba(7, 9, 11, 0.54) 100%),
      linear-gradient(0deg, var(--bg) 0%, transparent 32%, transparent 80%, rgba(7, 9, 11, 0.72) 100%);
  }

  .intro-grid,
  .systems,
  .classes,
  .contact,
  .system-display,
  .service-board {
    grid-template-columns: 1fr;
  }

  .mode-selector,
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-feed {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: auto;
  }

  .hero {
    min-height: 830px;
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11.2vw, 3.35rem);
    line-height: 0.96;
  }

  .hero-metrics,
  .mode-selector,
  .class-grid,
  .radar-panel {
    grid-template-columns: 1fr;
  }

  .radar {
    width: 136px;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}

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