:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-deep: #04070f;
  --panel: rgba(13, 27, 48, 0.72);
  --text: #f5f8ff;
  --muted: #a9b7cf;
  --line: rgba(158, 190, 255, 0.18);
  --cyan: #62e9ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 24% 8%, rgba(98, 233, 255, 0.14), transparent 36rem),
    linear-gradient(160deg, var(--bg-deep), var(--bg) 52%, #0b1628);
}

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

.site-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 48px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 13, 25, 0.64);
  backdrop-filter: blur(20px);
}

.site-header.is-elevated {
  background: rgba(5, 13, 25, 0.86);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(98, 233, 255, 0.5);
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(98, 233, 255, 0.07);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.brand strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid rgba(98, 233, 255, 0.32);
  border-radius: 999px;
  color: var(--text);
  background: rgba(98, 233, 255, 0.06);
}

.section,
.section-grid {
  margin-bottom: 112px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 60px;
  align-items: center;
}

.hero {
  min-height: 620px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 830px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4vw, 4.1rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 34px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: opacity 180ms ease, transform 180ms ease;
}

.button:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid rgba(98, 233, 255, 0.45);
  color: #03111a;
  background: var(--cyan);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* Stats row — lives below the hero as its own section */
.stats-section {
  margin-top: -56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
}

.hero-stats div {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats dt {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Hero visual — centered single card */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 42px;
  background: radial-gradient(circle at center, rgba(98, 233, 255, 0.08), transparent 20rem);
}

.system-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(5, 13, 25, 0.72);
  backdrop-filter: blur(18px);
}

.card-label {
  display: block;
  margin-bottom: 14px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-card code {
  display: block;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.06rem;
  line-height: 1.9;
}

/* Section headings */
.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

/* Feature cards */
.cards {
  display: grid;
  gap: 18px;
}

.three-column {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.workflow-list article,
.process-list li {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.feature-card {
  padding: 28px;
  border-radius: 30px;
}

.feature-card p,
.workflow-list p,
.process-list p {
  margin-bottom: 0;
}

/* Workflows split layout */
.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px;
  align-items: start;
}

.split-section > div:first-child {
  position: sticky;
  top: 128px;
}

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-list article {
  padding: 24px;
  border-radius: 26px;
}

/* Process list */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 230px;
  padding: 26px;
  border-radius: 28px;
  counter-increment: process;
}

.process-list li::before {
  display: block;
  margin-bottom: 44px;
  color: var(--cyan);
  content: "0" counter(process);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.process-list span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.14rem;
  font-weight: 800;
}

/* CTA section */
.cta-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(98, 233, 255, 0.05);
}

.cta-section > div {
  max-width: 760px;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--cyan);
  font-weight: 600;
}

/* Responsive — tablet */
@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 320px;
    padding: 40px 28px;
  }

  .three-column,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section > div:first-child {
    position: static;
  }
}

/* Responsive — mobile */
@media (max-width: 700px) {
  .site-shell {
    width: min(100% - 22px, var(--max-width));
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .section,
  .section-grid {
    margin-bottom: 74px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.8rem);
  }

  .hero-stats,
  .three-column,
  .process-list {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    border-radius: 30px;
  }

  .stats-section {
    margin-top: -28px;
  }
}
