:root {
  color-scheme: dark;
  --bg: #080b10;
  --surface: #10151d;
  --surface-strong: #151c27;
  --surface-soft: #0c1118;
  --line: rgba(159, 176, 200, 0.18);
  --text: #eef3f8;
  --muted: #9aa8b7;
  --dim: #687585;
  --blue: #65a6ff;
  --cyan: #48ddd5;
  --green: #66d885;
  --violet: #a78bfa;
  --amber: #f4b755;
  --red: #ff716d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(72, 221, 213, 0.11), transparent 28rem),
    radial-gradient(circle at 82% 14%, rgba(101, 166, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, #080b10 0%, #0b1017 42%, #090c11 100%);
  color: var(--text);
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(8, 11, 16, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(72, 221, 213, 0.45);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(72, 221, 213, 0.2), rgba(101, 166, 255, 0.12));
  color: var(--cyan);
}

.top-nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover,
.header-action:hover {
  color: var(--text);
}

.header-action,
.primary-button,
.secondary-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
}

.header-action {
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

main {
  overflow: hidden;
}

.pain-section,
.scenes-section,
.hub-section,
.foundation-section,
.pages-section {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  width: min(1440px, calc(100vw - 56px));
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(680px, 1.22fr);
  gap: 40px;
  align-items: center;
  padding: 56px 0 72px;
}

.eyebrow,
.panel-kicker,
.scene-topline {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 18px 0 20px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  padding: 0 18px;
}

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

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

.product-shell {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) 180px;
  min-height: 560px;
  border: 1px solid rgba(159, 176, 200, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18, 25, 36, 0.94), rgba(9, 13, 20, 0.96));
  box-shadow: var(--shadow);
}

.app-sidebar,
.app-main,
.status-panel {
  min-width: 0;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.traffic-lights {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dim);
}

.traffic-lights span:nth-child(1) {
  background: #ff6b61;
}

.traffic-lights span:nth-child(2) {
  background: #f4c35a;
}

.traffic-lights span:nth-child(3) {
  background: #57d87b;
}

.workspace-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.workspace-tab.active {
  color: var(--text);
  border-color: rgba(72, 221, 213, 0.26);
  background: rgba(72, 221, 213, 0.09);
}

.tab-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-note {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(244, 183, 85, 0.22);
  border-radius: 8px;
  color: #ddc99f;
  background: rgba(244, 183, 85, 0.08);
  font-size: 12px;
  line-height: 1.55;
}

.app-main {
  padding: 22px;
}

.app-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.app-toolbar h2 {
  max-width: 520px;
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.28;
}

.runtime-pill {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid rgba(102, 216, 133, 0.28);
  border-radius: 999px;
  color: #b8f4c7;
  background: rgba(102, 216, 133, 0.08);
  font-size: 12px;
  font-weight: 750;
}

.chat-canvas {
  min-height: 425px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(5, 8, 13, 0.46);
  background-size: 28px 28px;
}

.message {
  width: min(92%, 520px);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.045);
}

.user-message {
  align-self: flex-end;
  color: var(--text);
  background: rgba(101, 166, 255, 0.12);
  border-color: rgba(101, 166, 255, 0.25);
}

.ai-message {
  border-color: rgba(72, 221, 213, 0.2);
}

.evidence-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evidence-row span,
.agent-stack span,
.tech-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.evidence-row span {
  padding: 8px 10px;
  font-size: 12px;
}

.status-panel {
  padding: 22px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.status-item strong {
  color: var(--text);
}

.agent-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.agent-stack span {
  padding: 9px 10px;
  font-size: 12px;
}

.product-proof-section {
  width: min(1440px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 14px 0 96px;
}

.product-proof-content {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.product-proof-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.product-proof-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.product-proof-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.theme-toggle-button {
  min-height: 42px;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid rgba(72, 221, 213, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(72, 221, 213, 0.1);
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle-button:hover {
  border-color: rgba(72, 221, 213, 0.46);
  background: rgba(72, 221, 213, 0.15);
}

.interface-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.interface-feature-grid article {
  min-height: 158px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.interface-feature-grid span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.interface-feature-grid h3 {
  margin: 12px 0 9px;
  font-size: 20px;
}

.interface-feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-proof-frame {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(159, 176, 200, 0.24);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(18, 25, 36, 0.92), rgba(7, 10, 15, 0.96)),
    var(--surface);
  box-shadow: var(--shadow);
}

.product-proof-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  opacity: 1;
  transition: opacity 180ms ease;
}

.product-proof-frame img.is-switching {
  opacity: 0.18;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.pain-section,
.scenes-section,
.hub-section,
.foundation-section,
.pages-section {
  padding: 90px 0;
}

.pain-grid,
.scene-grid,
.agent-cards {
  display: grid;
  gap: 16px;
}

.pain-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pain-grid article,
.scene-card,
.agent-cards article,
.foundation-layout,
.page-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pain-grid article {
  padding: 22px;
}

.pain-grid span {
  color: var(--red);
  font-weight: 850;
}

.pain-grid h3,
.scene-card h3,
.agent-cards h3,
.foundation-copy h3 {
  margin: 16px 0 10px;
  font-size: 20px;
}

.pain-grid p,
.scene-card p,
.agent-cards p,
.foundation-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.scene-card {
  min-height: 260px;
  padding: 26px;
}

.scene-card.featured {
  border-color: rgba(72, 221, 213, 0.34);
  background: linear-gradient(180deg, rgba(72, 221, 213, 0.1), rgba(255, 255, 255, 0.035));
}

.hub-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 260px;
}

.hub-node {
  min-height: 210px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.hub-node p {
  margin: 0;
  color: var(--cyan);
  font-weight: 850;
  text-transform: uppercase;
}

.hub-node h3 {
  margin: 14px 0 12px;
  font-size: 30px;
}

.hub-node span {
  color: var(--muted);
}

.hub-lines {
  display: grid;
  gap: 18px;
}

.hub-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.agent-cards {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
}

.agent-cards article {
  padding: 20px;
}

.foundation-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(101, 166, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.tech-cloud {
  display: flex;
  align-content: start;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-cloud span {
  padding: 10px 12px;
  font-size: 13px;
}

.page-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.page-list a {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.page-list a:hover {
  color: var(--text);
  border-color: rgba(72, 221, 213, 0.32);
}

.site-footer {
  justify-content: space-between;
  min-height: 80px;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

@media (max-width: 1460px) {
  .hero,
  .product-proof-content,
  .foundation-layout {
    grid-template-columns: 1fr;
  }

  .product-shell {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .status-panel {
    display: none;
  }

  .pain-grid,
  .agent-cards,
  .interface-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-grid,
  .page-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0 18px;
  }

  .top-nav {
    display: none;
  }

  .hero,
  .product-proof-section,
  .pain-section,
  .scenes-section,
  .hub-section,
  .foundation-section,
  .pages-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 38px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .traffic-lights,
  .sidebar-note {
    display: none;
  }

  .app-toolbar {
    flex-direction: column;
  }

  .pain-grid,
  .scene-grid,
  .agent-cards,
  .interface-feature-grid,
  .page-list,
  .hub-map {
    grid-template-columns: 1fr;
  }

  .hub-lines {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
}
