:root {
  color-scheme: dark;
  --ink: #06100f;
  --ink-2: #0b1d1b;
  --panel: rgba(9, 22, 20, 0.82);
  --line: rgba(129, 216, 203, 0.26);
  --paper: #ded0af;
  --paper-dark: #b79966;
  --teal: #69d5c8;
  --gold: #c88d37;
  --text: #f2ead7;
  --muted: #b9c3b9;
  --danger: #d46f36;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 5%, rgba(105, 213, 200, 0.14), transparent 30rem),
    linear-gradient(135deg, rgba(200, 141, 55, 0.09), transparent 32rem),
    var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(105, 213, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 213, 200, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(4, 13, 12, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(105, 213, 200, 0.55);
  border-radius: 50%;
  color: var(--teal);
  background: rgba(105, 213, 200, 0.08);
  font-weight: 800;
}

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

.brand small {
  color: var(--teal);
  font-size: 12px;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 38px);
  color: #d9cfb8;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  padding-block: 8px;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.public-badge,
.eyebrow,
.stamp {
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-badge {
  padding: 9px 13px;
  border: 1px solid rgba(200, 141, 55, 0.55);
  color: #efc47d;
  background: rgba(200, 141, 55, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.section-band {
  position: relative;
  padding-inline: clamp(20px, 5vw, 76px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding-top: 48px;
  padding-bottom: 34px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(to bottom, transparent, rgba(6, 16, 15, 0.96));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.58;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.95;
  color: #f1e6cd;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 30px;
  color: #efe7d2;
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid rgba(239, 224, 194, 0.42);
  font-weight: 900;
}

.button.primary {
  color: #15110a;
  background: var(--gold);
  border-color: var(--gold);
}

.button.ghost {
  color: var(--teal);
  background: rgba(7, 20, 19, 0.62);
  border-color: rgba(105, 213, 200, 0.58);
}

.dossier {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding: 26px 26px 24px;
  color: #1b1f1d;
  background:
    linear-gradient(90deg, rgba(54, 41, 25, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(54, 41, 25, 0.14) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  border: 4px solid rgba(63, 49, 34, 0.8);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.stamp {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 10px;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-weight: 900;
  transform: rotate(-5deg);
}

.dossier h2,
.dossier p {
  margin: 0;
}

.dossier h2 {
  font-size: 30px;
}

.dossier dl {
  margin: 20px 0;
}

.dossier dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(45, 42, 35, 0.42);
}

.dossier dt {
  font-weight: 900;
}

.dossier dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
  background: rgba(105, 213, 200, 0.24);
  box-shadow: var(--shadow);
}

.metrics div {
  min-height: 84px;
  padding: 18px 20px;
  background: var(--paper);
  color: #171c1a;
  text-align: center;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: #634421;
  font-size: 13px;
}

.metrics span {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 900;
}

.section-title {
  max-width: 840px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
}

.start-here,
.demo-section,
.workflow-section,
.boundary-section,
.deploy-section {
  padding-top: clamp(72px, 9vw, 116px);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.capability-card {
  min-height: 286px;
  padding: 24px 22px;
  color: #191c19;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
    var(--paper);
  border: 2px solid rgba(53, 42, 30, 0.86);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.capability-card span {
  display: block;
  color: #a45b20;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
}

.capability-card h3 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.capability-card p {
  margin: 0;
  color: #32332d;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 24px;
  align-items: stretch;
}

.chat-panel,
.source-board,
.timeline article,
.boundary-grid article,
.deploy-panel {
  background: rgba(8, 24, 22, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chat-panel {
  min-height: 620px;
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.chat-top span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 22px var(--teal);
}

.chat-top strong {
  flex: 1;
}

.chat-top em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.chat-body {
  display: grid;
  gap: 16px;
  min-height: 462px;
  padding: 22px;
}

.message {
  max-width: 82%;
  padding: 16px 18px;
  border: 1px solid rgba(239, 230, 205, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.message.user {
  justify-self: end;
  color: #141513;
  background: var(--paper);
}

.message.agent {
  justify-self: start;
  border-color: rgba(105, 213, 200, 0.34);
}

.message strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
}

.message.user strong {
  color: #7f4c18;
}

.message p {
  margin: 0;
}

.demo-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  background: rgba(105, 213, 200, 0.22);
}

.demo-tab {
  min-height: 58px;
  border: 0;
  color: var(--text);
  background: #0a1d1b;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.demo-tab:hover,
.demo-tab.active {
  color: #111510;
  background: var(--gold);
}

.source-board {
  padding: 26px;
}

.source-board h3 {
  margin: 0 0 18px;
  font-size: 26px;
}

.source-board ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.source-board li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(105, 213, 200, 0.2);
  color: var(--muted);
}

.source-board span {
  color: var(--teal);
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.timeline article {
  min-height: 220px;
  padding: 22px;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #111510;
  background: var(--teal);
  font-weight: 900;
}

.timeline h3,
.boundary-grid h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.timeline p,
.boundary-grid p {
  margin: 0;
  color: var(--muted);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.boundary-grid article {
  min-height: 210px;
  padding: 24px;
  border-top: 4px solid var(--gold);
}

.deploy-section {
  padding-bottom: 90px;
}

.deploy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px;
}

.deploy-panel p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

code {
  padding: 12px 14px;
  color: #141513;
  background: var(--paper);
  white-space: nowrap;
}

footer {
  padding: 28px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #040c0b;
}

footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .hero,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .dossier {
    max-width: 620px;
    transform: none;
  }

  .metrics,
  .capability-grid,
  .timeline,
  .boundary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 52px);
    line-height: 1.05;
  }

  .hero-lede {
    font-size: 17px;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.78);
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    min-height: 48px;
    padding: 10px 16px;
  }

  .dossier {
    width: 100%;
    padding: 22px 18px;
    overflow: hidden;
  }

  .dossier dl div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dossier dd {
    text-align: left;
    font-size: 15px;
  }

  .metrics,
  .capability-grid,
  .timeline,
  .boundary-grid,
  .demo-controls {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-top: 0;
    width: 100%;
  }

  .message {
    max-width: 100%;
  }

  .deploy-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  code {
    max-width: 100%;
    white-space: normal;
  }
}
