:root {
  color-scheme: dark;
  --bg: #0c0f14;
  --bg-strong: #090b0f;
  --surface: #121820;
  --surface-raised: #18212c;
  --surface-soft: #202a36;
  --text: #eef3f7;
  --text-muted: #a5b0bb;
  --text-subtle: #6d7985;
  --line: #2a3542;
  --line-strong: #3b4a5a;
  --brand: #35d0a1;
  --brand-strong: #72f2c8;
  --amber: #f5b85b;
  --red: #ef6b62;
  --blue: #7fb5ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-display: "Aptos Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 10%, rgba(53, 208, 161, 0.12), transparent 30rem),
    linear-gradient(115deg, rgba(127, 181, 255, 0.08), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(12, 15, 20, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #1d8e78);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(53, 208, 161, 0.2);
}

.brand-mark span {
  width: 15px;
  height: 15px;
  border: 2px solid #07100d;
  border-right-color: transparent;
  border-radius: 5px;
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

.header-action,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-action {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.button {
  min-width: 132px;
  padding: 0 18px;
}

.button:active,
.header-action:active {
  transform: scale(0.98);
}

.button.primary {
  border-color: transparent;
  background: var(--brand);
  color: #07100d;
}

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

.button:hover,
.header-action:hover {
  border-color: var(--brand);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100dvh - 78px);
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: 0;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 0;
}

.hero-metrics div {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.hero-metrics dt {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--text-subtle);
  font-size: 13px;
}

.product-stage {
  position: relative;
}

.product-stage::before {
  position: absolute;
  top: 9%;
  right: 10%;
  bottom: 2%;
  left: -4%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(53, 208, 161, 0.16);
  transform: rotate(-3deg);
}

.console-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #111822;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.console-topbar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #0d1219;
}

.console-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.console-topbar span:nth-child(1) {
  background: var(--red);
}

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

.console-topbar span:nth-child(3) {
  background: var(--brand);
}

.console-topbar strong {
  margin-left: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

.console-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: #0f151d;
}

.console-rail button,
.choice-row button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  text-align: left;
}

.console-rail button {
  padding: 10px;
}

.console-rail button.active {
  border-color: rgba(53, 208, 161, 0.28);
  background: rgba(53, 208, 161, 0.1);
  color: var(--brand-strong);
}

.console-main {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
}

.agent-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13px;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(53, 208, 161, 0.08);
}

.question-card {
  padding: 24px;
  border: 1px solid rgba(53, 208, 161, 0.24);
  background: linear-gradient(145deg, rgba(53, 208, 161, 0.12), rgba(255, 255, 255, 0.035));
  border-radius: var(--radius-lg);
}

.card-kicker {
  margin-bottom: 12px;
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.question-card h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.question-card p {
  color: var(--text-muted);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.choice-row button {
  padding: 10px 12px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: default;
}

.trace-panel {
  display: grid;
  gap: 10px;
}

.trace-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
}

.trace-item span {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 999px;
}

.trace-item.good span {
  background: var(--brand);
}

.trace-item.warn span {
  background: var(--amber);
}

.trace-item p {
  margin: 0;
}

.problem-band {
  margin: 0 0 96px;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 44px;
  padding: 44px 0;
}

.problem-grid h2,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
}

.problem-grid p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
}

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

.workflow-section,
.capability-section,
.audience-section,
.cta-section {
  padding: 22px 0 104px;
}

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

.workflow-grid article {
  min-height: 270px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.workflow-grid article:last-child {
  border-right: 0;
}

.workflow-grid span {
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-weight: 900;
}

.workflow-grid h3,
.capability-list h3,
.audience-grid h3 {
  margin: 56px 0 12px;
  font-size: 24px;
}

.workflow-grid p,
.capability-list p,
.audience-grid p,
.cta-panel p {
  color: var(--text-muted);
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 28px;
}

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

.capability-list article,
.audience-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.capability-list h3,
.audience-grid h3 {
  margin-top: 0;
}

.quality-board {
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #101720;
  border-radius: var(--radius-lg);
}

.board-row {
  display: grid;
  grid-template-columns: 1fr 92px 92px;
  gap: 16px;
  min-height: 68px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row.head {
  min-height: 48px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cta-panel {
  max-width: 900px;
  padding: 42px;
  border: 1px solid rgba(53, 208, 161, 0.22);
  background:
    linear-gradient(135deg, rgba(53, 208, 161, 0.14), rgba(255, 255, 255, 0.03)),
    #101720;
  border-radius: var(--radius-lg);
}

.cta-panel p {
  max-width: 700px;
  margin-top: 18px;
  font-size: 17px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font-size: 14px;
}

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

.reveal {
  animation: fade-up 420ms ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .site-nav {
    display: none;
  }

  .hero,
  .problem-grid,
  .section-heading,
  .capability-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    min-height: auto;
    padding-top: 48px;
  }

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

  .workflow-grid article:nth-child(2) {
    border-right: 0;
  }

  .workflow-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 680px) {
  .section-shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    padding-inline: 16px;
  }

  .header-action {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .hero-metrics,
  .workflow-grid,
  .console-body {
    grid-template-columns: 1fr;
  }

  .console-rail {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-strip,
  .board-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .workflow-grid article,
  .workflow-grid article:nth-child(2),
  .workflow-grid article:nth-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-grid article:last-child {
    border-bottom: 0;
  }

  .workflow-grid h3 {
    margin-top: 36px;
  }

  .cta-panel {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    animation: none;
  }
}
