:root {
  color-scheme: dark;
  --bg: #0e1216;
  --surface: #141a20;
  --surface-2: #182028;
  --text: #eef3ef;
  --muted: #9aa8a3;
  --line: #27323a;
  --accent: #7be0d2;
  --accent-2: #c5e94d;
  --warn: #f1b866;
  --radius: 8px;
  --topbar: 68px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(14, 18, 22, 0.82);
  border-bottom: 1px solid rgba(238, 243, 239, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: -4px;
  bottom: 0;
  background: var(--accent-2);
  border-radius: 50%;
}

.topnav a {
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  position: relative;
  min-height: min(820px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--topbar) + 52px) clamp(20px, 5vw, 72px) 64px;
}

.hero-visual,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual {
  z-index: 0;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 18, 22, 0.98) 0%, rgba(14, 18, 22, 0.82) 44%, rgba(14, 18, 22, 0.16) 100%),
    linear-gradient(0deg, rgba(14, 18, 22, 0.92) 0%, rgba(14, 18, 22, 0.08) 42%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  animation: rise 700ms ease-out both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 760;
}

.hero h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(42px, 6.8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #d6dfdb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.hero-actions,
.guide-head,
.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button,
.copy {
  min-height: 42px;
  border: 1px solid rgba(238, 243, 239, 0.14);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--text);
  background: rgba(238, 243, 239, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.copy:hover,
.choice:hover,
.step-check:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 224, 210, 0.56);
}

.button:focus-visible,
.copy:focus-visible,
.choice:focus-visible,
.step-check:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(123, 224, 210, 0.75);
  outline-offset: 3px;
}

.button.primary {
  color: #07231d;
  background: var(--accent-2);
  border-color: var(--accent-2);
  font-weight: 720;
}

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

.intro,
.steps-band,
.workspace,
.verify,
.band {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  background: #11171d;
}

.intro-copy h2,
.band-head h2,
.verify-copy h2,
.rail-intro h2,
.guide-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-copy p,
.verify-copy p,
.rail-intro p,
.guide-lead,
.band-inner p {
  margin: 18px 0 0;
  color: #c9d4cf;
  font-size: 17px;
  line-height: 1.68;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-grid article,
.timeline li,
.agent-option,
.verify-item,
.step {
  background: var(--surface);
}

.intro-grid article {
  min-height: 180px;
  padding: 24px;
}

.intro-grid span,
.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  background: rgba(123, 224, 210, 0.14);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.intro-grid h3,
.timeline h3,
.agent-option h3,
.verify-item h3,
.step h3 {
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.intro-grid p,
.timeline p,
.agent-option p,
.verify-item p,
.step p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps-band {
  background: #10161b;
}

.band-head {
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  min-height: 200px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(440px, 1fr) minmax(320px, 0.82fr);
  gap: clamp(20px, 4vw, 34px);
  background: #0f151a;
}

.rail {
  min-width: 0;
}

.rail-section {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rail-section label {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 14px;
}

.rail-section input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  background: #0d1317;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice {
  width: 100%;
  min-height: 70px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  background: #10161c;
  cursor: pointer;
}

.choice span,
.choice small {
  display: block;
}

.choice small {
  color: var(--muted);
  margin-top: 4px;
}

.choice.is-active {
  border-color: rgba(123, 224, 210, 0.56);
  background: rgba(123, 224, 210, 0.09);
}

.guide,
.inspector {
  min-width: 0;
}

.guide-head {
  align-items: end;
  margin-bottom: 22px;
}

.meter {
  min-width: 140px;
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
  font-size: 14px;
}

.meter-bar {
  width: 180px;
  height: 8px;
  overflow: hidden;
  background: #0d1317;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.meter-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.steps {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-check {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0d1317;
  cursor: pointer;
}

.step.is-done .step-check {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.step ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.panel,
.prompt-block {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel + .panel,
.prompt-block {
  margin-top: 16px;
}

.panel-help {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #0c1216;
}

code {
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.band {
  background: #11161b;
}

.band-inner {
  display: grid;
  gap: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 0.84fr);
  gap: 24px;
  align-items: start;
}

.agent-options {
  display: grid;
  gap: 12px;
}

.agent-option {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agent-option code {
  display: block;
  margin-top: 10px;
  padding: 12px;
  border-radius: calc(var(--radius) - 2px);
  background: #0d1317;
}

.verify {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(320px, 1fr);
  gap: 24px;
  background: #0f1519;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.verify-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 22, 27, 0.95);
  color: var(--text);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 1180px) {
  .workspace,
  .verify,
  .intro,
  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar {
    gap: 12px;
  }

  .topnav {
    display: none;
  }

  .hero,
  .intro,
  .steps-band,
  .workspace,
  .band,
  .verify {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 740px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .timeline,
  .intro-grid,
  .verify-grid {
    grid-template-columns: 1fr;
  }

  .guide-head {
    align-items: start;
    flex-direction: column;
  }

  .meter {
    justify-items: start;
  }
}
