:root {
  color-scheme: dark;
  --ink: #f5f7fb;
  --muted: #a8b0c2;
  --soft: #d7dde9;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(16, 22, 33, 0.78);
  --panel-strong: rgba(23, 31, 45, 0.94);
  --bg: #080b10;
  --green: #52d3a2;
  --cyan: #69c7ff;
  --amber: #f5b85d;
  --red: #ff7a86;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 8%, rgba(82, 211, 162, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(105, 199, 255, 0.13), transparent 30rem),
    linear-gradient(180deg, #080b10 0%, #10131b 46%, #090b10 100%);
  color: var(--ink);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.console-topbar,
.runtime-row,
.evidence-strip,
.limits,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(82, 211, 162, 0.54);
  background: rgba(82, 211, 162, 0.14);
  color: #c9ffeb;
  border-radius: 0.5rem;
}

.nav-links {
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-cta,
.button.primary {
  background: #f2f5ef;
  color: #0b1119;
}

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

.section-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.88fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 4.5rem 0 3rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.1rem, 7vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.lede {
  max-width: 42rem;
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.62;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.8rem;
  overflow: hidden;
  width: fit-content;
}

.hero-stats div {
  padding: 1rem 1.25rem;
  min-width: 9rem;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-stats dd {
  margin: 0.3rem 0 0;
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.console-frame {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(35, 47, 67, 0.96), rgba(12, 16, 24, 0.96)),
    var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-topbar {
  gap: 0.45rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.console-topbar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--red);
}

.console-topbar span:nth-child(2) {
  background: var(--amber);
}

.console-topbar span:nth-child(3) {
  background: var(--green);
  margin-right: 0.6rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 1rem;
}

.metric-card,
.runtime-row,
.evidence-grid article,
.fit-card,
.problem-grid article,
.flow-steps article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 0.75rem;
}

.metric-card {
  padding: 1rem;
}

.metric-card span,
.runtime-row span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.metric-card strong,
.runtime-row strong {
  display: block;
  margin: 0.45rem 0;
  font-size: 1.05rem;
}

.metric-card em {
  color: var(--green);
  font-style: normal;
  font-size: 0.82rem;
}

.metric-card.accent em {
  color: var(--cyan);
}

.runtime-row {
  justify-content: space-between;
  gap: 1rem;
  margin: 0 1rem 1rem;
  padding: 1rem;
}

.status-pill {
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(82, 211, 162, 0.14);
  color: #c8ffe9;
  font-size: 0.8rem;
  font-weight: 800;
}

.chart {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  height: 13rem;
  margin: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(105, 199, 255, 0.08), rgba(82, 211, 162, 0.04));
}

.chart i {
  flex: 1;
  display: block;
  border-radius: 0.35rem 0.35rem 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  opacity: 0.88;
}

.evidence-strip {
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.evidence-strip span,
.limits span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.48rem 0.68rem;
  color: var(--soft);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
}

.market,
#flow,
.evidence,
.fit,
.final-cta {
  padding: 5.5rem 0;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.65fr);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.split-heading p,
.positioning-inner p,
.fit-layout p,
.final-cta p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.problem-grid,
.flow-steps,
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.problem-grid article,
.flow-steps article,
.evidence-grid article,
.fit-card {
  padding: 1.25rem;
}

.problem-grid p,
.flow-steps p,
.evidence-grid li,
.fit-card li {
  color: var(--muted);
  line-height: 1.6;
}

.positioning {
  padding: 5rem 0;
  background:
    linear-gradient(90deg, rgba(82, 211, 162, 0.16), rgba(105, 199, 255, 0.08)),
    #111823;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.positioning-inner {
  max-width: 980px;
}

.positioning-inner h2 {
  max-width: 12ch;
}

.flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-steps span {
  display: inline-flex;
  margin-bottom: 1.8rem;
  color: var(--green);
  font-weight: 900;
}

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 2rem;
}

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

ul {
  margin: 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.5rem;
}

.fit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 0.55fr);
  gap: 2rem;
  align-items: start;
}

.limits {
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.final-cta {
  text-align: center;
  max-width: 850px;
}

.final-cta h2,
.final-cta p {
  margin-left: auto;
  margin-right: auto;
}

.final-cta .button {
  margin-top: 1rem;
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero,
  .split-heading,
  .evidence,
  .fit-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  h1 {
    max-width: 11ch;
  }

  .problem-grid,
  .flow-steps,
  .evidence-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-cta {
    min-height: 2.35rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-stats,
  .hero-stats div,
  .metric-grid,
  .problem-grid,
  .flow-steps,
  .evidence-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .console-frame {
    border-radius: 0.75rem;
  }

  .chart {
    height: 10rem;
    gap: 0.45rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
