:root {
  --bg: #111111;
  --bg-soft: #181818;
  --panel: #1f1f1f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3efe6;
  --muted: #b9b2a3;
  --accent: #d77a43;
  --accent-2: #7c9a6d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(215, 122, 67, 0.12), transparent 32%),
    linear-gradient(180deg, #121212 0%, #101010 100%);
  color: var(--text);
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(17, 17, 17, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #efb36f);
  color: #161616;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.92rem;
  margin: 0 0 16px;
}

.hero h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.94;
  max-width: 12ch;
}

.hero p,
.page-head p {
  margin: 22px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-panel,
.panel,
.message-item,
.lab-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

.hero-panel strong,
.stat strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero-meta,
.stats-grid,
.lab-list,
.message-list,
.section-grid {
  display: grid;
  gap: 16px;
}

.hero-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.stat {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section {
  padding: 36px 0 72px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.section-head p,
.tiny {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.panel {
  padding: 22px;
}

.panel h3,
.lab-item h3,
.message-item h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.panel p,
.lab-item p,
.message-item p,
.timeline li,
.list-plain li {
  color: var(--muted);
  line-height: 1.7;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(215, 122, 67, 0.35);
  color: #f2c2a6;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.page-head {
  padding: 72px 0 24px;
}

.timeline,
.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.timeline li,
.list-plain li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline li:first-child,
.list-plain li:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline strong,
.list-plain strong,
.message-item strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

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

.lab-item,
.message-item {
  padding: 22px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.pill.live {
  border-color: rgba(124, 154, 109, 0.4);
  color: #cddbbf;
}

.pill.demo {
  border-color: rgba(215, 122, 67, 0.35);
  color: #efc1a7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 160ms ease;
}

.button.primary {
  background: var(--text);
  color: #111111;
}

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

.button:hover {
  transform: translateY(-1px);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 10px;
}

.field label {
  color: var(--muted);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(215, 122, 67, 0.52);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.feedback {
  min-height: 24px;
  color: var(--muted);
}

.feedback.error {
  color: #ffb1a1;
}

.feedback.success {
  color: #c7e2b9;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.empty-state {
  padding: 28px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.site-footer {
  padding: 22px 0 48px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .section-grid,
  .lab-list,
  .message-list {
    grid-template-columns: 1fr;
  }

  .page-head h1,
  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .nav-inner,
  .site-shell {
    width: min(100% - 28px, var(--max));
  }

  .nav-inner {
    min-height: 64px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 0;
  }

  .hero {
    padding-top: 52px;
  }

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