:root {
  color-scheme: dark;
  --bg: #080807;
  --panel: #11110f;
  --panel-2: #181713;
  --text: #f4f0e6;
  --muted: #a6a094;
  --line: rgba(244, 240, 230, 0.16);
  --acid: #d8ff3e;
  --cyan: #4dd7ff;
  --rose: #ff6b6b;
  --green: #56f0a8;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 255, 62, 0.12), transparent 28rem),
    radial-gradient(circle at 95% 12%, rgba(77, 215, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #080807 0%, #10100d 45%, #080807 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  transform: translateX(-50%);
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 80px var(--shadow);
}

.brand,
.header-action,
.nav a,
.eyebrow,
.section-kicker,
.ticker,
.case-card span,
.step span,
.proof-list span,
.form-note {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--acid);
  color: #10100d;
  font-size: 13px;
}

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

.nav a,
.header-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.header-action:hover {
  color: var(--text);
  background: rgba(244, 240, 230, 0.08);
}

.header-action {
  justify-self: end;
  border: 1px solid var(--line);
  color: var(--text);
}

main {
  padding-top: 90px;
}

.section,
.section-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-copy,
.contact-copy {
  min-width: 0;
}

.hero {
  min-height: auto;
  padding: 34px 0 24px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--acid);
  font-size: 12px;
  text-transform: uppercase;
}

.eyebrow span,
.section-kicker {
  border: 1px solid var(--line);
  padding: 7px 9px;
  background: rgba(244, 240, 230, 0.04);
}

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

h1 {
  max-width: 920px;
  font-size: clamp(3rem, 6vw, 5.45rem);
  line-height: 0.93;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 5.2vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p,
.section-heading p,
.system-panel p,
.step p,
.case-card p,
.proof-list p,
.contact-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero-copy p {
  max-width: 690px;
  margin-top: 22px;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 240, 230, 0.36);
}

.button.primary {
  background: var(--acid);
  color: #10100d;
  border-color: var(--acid);
  font-weight: 800;
}

.button.ghost {
  color: var(--muted);
}

.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.orbital-stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(244, 240, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, 0.05) 1px, transparent 1px),
    radial-gradient(circle, rgba(216, 255, 62, 0.11), rgba(17, 17, 15, 0.78) 48%, rgba(8, 8, 7, 0.65));
  background-size: 42px 42px, 42px 42px, auto;
  overflow: hidden;
}

.code-window {
  position: relative;
  z-index: 2;
  width: min(82%, 390px);
  border: 1px solid rgba(244, 240, 230, 0.24);
  background: rgba(8, 8, 7, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  animation: float 5s ease-in-out infinite;
}

.window-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 9px;
  height: 9px;
  background: var(--muted);
}

.window-bar span:nth-child(1) {
  background: var(--rose);
}

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

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

pre {
  margin: 0;
  padding: 24px;
  white-space: pre-wrap;
  color: var(--green);
  font: 700 clamp(0.95rem, 2vw, 1.35rem) / 1.5 "JetBrains Mono", monospace;
}

.orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(244, 240, 230, 0.18);
  animation: rotate 18s linear infinite;
}

.orbit-two {
  inset: 24%;
  animation-duration: 11s;
  animation-direction: reverse;
  border-color: rgba(77, 215, 255, 0.32);
}

.signal {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 76px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(244, 240, 230, 0.22);
  background: rgba(24, 23, 19, 0.9);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.signal-a {
  top: 16%;
  right: 12%;
  color: var(--cyan);
}

.signal-b {
  bottom: 17%;
  left: 10%;
  color: var(--acid);
}

.signal-c {
  right: 20%;
  bottom: 12%;
  color: var(--green);
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.03);
  color: var(--muted);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 24px;
  padding: 18px 0;
  animation: marquee 22s linear infinite;
}

.ticker-track span {
  padding-left: 24px;
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  text-transform: uppercase;
}

.ticker-track span::after {
  content: "/";
  margin-left: 24px;
  color: var(--acid);
}

.section {
  padding: 110px 0;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--acid);
  font-size: 12px;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

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

.case-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.025);
  transition: background 220ms ease, transform 220ms ease;
}

.case-card:hover {
  background: rgba(216, 255, 62, 0.08);
  transform: translateY(-4px);
}

.case-card span,
.step span,
.proof-list span {
  color: var(--acid);
  font-size: 12px;
  text-transform: uppercase;
}

.case-card p {
  margin-top: auto;
}

.system-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 42px;
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.9;
}

.metric span {
  color: var(--muted);
  line-height: 1.5;
}

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 0.2fr 0.38fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 60px;
  align-items: start;
}

.proof-list {
  border-top: 1px solid var(--line);
}

.proof-list div {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact {
  align-items: start;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(17, 17, 15, 0.78);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #080807;
  color: var(--text);
  outline: none;
  padding: 15px 14px;
  resize: vertical;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--acid);
  background: #0d0d0a;
}

.contact-form button {
  width: 100%;
}

.form-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.site-header[data-reveal] {
  transform: translate(-50%, 26px);
}

.site-header[data-reveal].is-visible {
  transform: translate(-50%, 0);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

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

@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;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .section-grid,
  .section-heading,
  .system-panel,
  .proof {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    min-height: auto;
  }

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

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 54px;
  }

  .brand {
    font-size: 14px;
  }

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

  .header-action {
    padding: 0 10px;
    font-size: 10px;
  }

  main {
    padding-top: 76px;
  }

  .section,
  .section-grid,
  .footer {
    width: min(1180px, calc(100% - 20px));
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .hero-copy p,
  .section-heading p,
  .system-panel p,
  .step p,
  .case-card p,
  .proof-list p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .orbital-stage {
    width: 100%;
  }

  .signal {
    width: 58px;
    height: 36px;
  }

  .section {
    padding: 78px 0;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 260px;
  }

  .system-panel,
  .contact-form {
    padding: 20px;
  }

  .contact {
    padding: 82px 0;
  }

  .footer {
    min-height: 110px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}
