:root {
  color-scheme: light;
  --bg: #f8faf9;
  --paper: #ffffff;
  --ink: #111816;
  --muted: #5b6864;
  --line: #dfe7e3;
  --teal: #00a896;
  --teal-dark: #067d72;
  --red: #e84d3d;
  --gold: #d99a22;
  --soft: #eef7f4;
  --shadow: 0 24px 80px rgba(17, 24, 22, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(0, 168, 150, 0.06), transparent 420px),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(17, 24, 22, 0.08);
  background: rgba(248, 250, 249, 0.94);
  box-shadow: 0 10px 34px rgba(17, 24, 22, 0.08);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 154px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 750;
  color: #31403c;
}

.nav-links a,
.header-action,
.button {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.nav-links a:hover {
  color: var(--teal-dark);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-action {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(17, 24, 22, 0.16);
}

.contact-label {
  position: relative;
  z-index: 1;
  color: #fff;
}

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

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 36px 0 84px;
}

.hero-content {
  position: relative;
  z-index: 2;
  order: 1;
}

.hero-scene {
  position: relative;
  order: 2;
  min-height: 560px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 168, 150, 0.22), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #eef8f6 55%, #fff8f4 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 640px;
  margin: 28px 0 0;
  color: #273330;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.58;
  font-weight: 520;
}

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

.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 168, 150, 0.24);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: rgba(0, 168, 150, 0.28);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 660px;
  margin: 48px 0 0;
}

.hero-stats div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.spectrum {
  position: absolute;
  inset: auto;
  opacity: 0.85;
}

.spectrum-a {
  right: -26px;
  top: 48px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(0, 168, 150, 0.22);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(0, 168, 150, 0.18) 0 2px, transparent 2px 17px);
}

.spectrum-b {
  left: 28px;
  bottom: 40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, rgba(232, 77, 61, 0.58), rgba(0, 168, 150, 0.12), rgba(217, 154, 34, 0.48), rgba(232, 77, 61, 0.58));
  filter: blur(0.2px);
}

.wave-lines {
  position: absolute;
  left: 54px;
  right: 54px;
  top: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}

.wave-lines span {
  width: 10px;
  height: var(--h);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), rgba(0, 168, 150, 0.15));
}

.console-mockup {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 64px;
  border: 1px solid rgba(17, 24, 22, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 60px rgba(17, 24, 22, 0.16);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: #66716e;
  font-size: 13px;
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.console-top span:nth-child(2) {
  background: var(--gold);
}

.console-top span:nth-child(3) {
  background: var(--teal);
  margin-right: 8px;
}

.console-body {
  padding: 24px;
}

.prompt-line {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #101716;
  color: #d9fff8;
  font: 600 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

.control-grid span {
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #394743;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline i {
  display: block;
  width: var(--w);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), rgba(232, 77, 61, 0.86));
}

section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.model-copy h2,
.community-section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  font-weight: 900;
}

.section-heading p,
.model-copy p,
.community-section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

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

.feature-grid article,
.deploy-grid article,
.dialect-panel,
.steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature-grid article {
  min-height: 260px;
  padding: 24px;
}

.icon-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--teal-dark);
}

.icon-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-grid h3,
.deploy-grid h3,
.dialect-panel h3 {
  margin: 28px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.feature-grid p,
.deploy-grid p,
.dialect-panel p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.language-band {
  width: 100%;
  max-width: none;
  padding: 96px max(20px, calc((100vw - 1180px) / 2));
  background: #111816;
  color: #f4fbf9;
}

.language-band .section-heading p {
  color: #b8c7c2;
}

.language-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.language-map {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  min-height: 280px;
}

.language-map span {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-size: clamp(18px, 3vw, 36px);
  font-weight: 850;
}

.language-map span:nth-child(3n) {
  color: #8ff3e4;
}

.language-map span:nth-child(4n) {
  color: #ffb1a8;
}

.dialect-panel {
  padding: 28px;
  background: #f7fbfa;
  color: var(--ink);
}

.dialect-wave {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 88px;
  margin-top: 26px;
}

.dialect-wave span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--red), var(--teal));
}

.dialect-wave span:nth-child(1) { height: 40%; }
.dialect-wave span:nth-child(2) { height: 78%; }
.dialect-wave span:nth-child(3) { height: 52%; }
.dialect-wave span:nth-child(4) { height: 92%; }
.dialect-wave span:nth-child(5) { height: 61%; }
.dialect-wave span:nth-child(6) { height: 84%; }

.workflow-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}

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

.tab {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #33413d;
  font: 800 14px/1 var(--font, inherit);
  cursor: pointer;
}

.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.code-window {
  min-height: 310px;
  margin: 0;
  padding: 26px;
  border-radius: 12px;
  background: #111816;
  color: #d9fff8;
  overflow: auto;
  font: 600 14px/1.72 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px;
}

.steps strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal-dark);
}

.model-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 42px;
  align-items: center;
}

.model-copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.model-copy li {
  padding: 14px 16px;
  border-left: 4px solid var(--teal);
  background: #fff;
  color: #34423e;
  line-height: 1.58;
}

.model-figure {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.model-figure img {
  border-radius: var(--radius);
}

.model-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.deploy-section {
  width: 100%;
  max-width: none;
  padding: 96px max(20px, calc((100vw - 1180px) / 2));
  background: #edf6f3;
}

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

.deploy-grid article {
  padding: 28px;
}

.deploy-grid a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--teal-dark);
  font-weight: 850;
}

.community-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

.footer-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.footer-logos img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.docs-body {
  background: #fbfdfc;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px max(20px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(223, 231, 227, 0.86);
  background: rgba(251, 253, 252, 0.88);
  backdrop-filter: blur(18px);
}

.docs-topnav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #33413d;
  font-size: 14px;
}

.docs-topnav a:hover,
.docs-sidebar a:hover,
.docs-toc a:hover {
  color: var(--teal-dark);
}

.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 196px;
  gap: 36px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 98px;
  align-self: start;
}

.docs-sidebar {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.docs-sidebar-title {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-sidebar nav,
.docs-toc {
  display: grid;
  gap: 6px;
}

.docs-sidebar a,
.docs-toc a {
  border-radius: var(--radius);
  color: #4d5c58;
  font-size: 14px;
  line-height: 1.4;
}

.docs-sidebar a {
  padding: 9px 11px;
}

.docs-sidebar a.is-current {
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 850;
}

.docs-toc {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.docs-toc strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
}

.docs-toc a {
  padding: 5px 0;
}

.docs-main {
  min-width: 0;
}

.docs-hero {
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--line);
}

.docs-kicker {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.docs-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 950;
}

.docs-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #34423e;
  font-size: 19px;
  line-height: 1.72;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 28px 0 12px;
}

.docs-card-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.docs-card-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.docs-card-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.docs-section {
  width: auto;
  margin: 0;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.docs-section h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
}

.docs-section h3 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.docs-section p,
.docs-section li {
  color: #3d4b47;
  font-size: 16px;
  line-height: 1.78;
}

.docs-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.docs-section p code,
.docs-section li code {
  padding: 0.15em 0.36em;
  border-radius: 5px;
  background: #eef7f4;
  color: #0a665e;
  font-size: 0.92em;
}

.docs-section pre {
  margin: 18px 0 22px;
  padding: 22px;
  border-radius: 12px;
  background: #111816;
  color: #d9fff8;
  overflow: auto;
  box-shadow: 0 18px 50px rgba(17, 24, 22, 0.12);
}

.docs-section pre code {
  font-size: 14px;
  line-height: 1.7;
}

.docs-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(0, 168, 150, 0.28);
  border-radius: var(--radius);
  background: #eef7f4;
}

.docs-callout strong {
  color: var(--teal-dark);
}

.docs-callout p {
  margin: 8px 0 0;
}

.docs-table-wrap {
  overflow-x: auto;
}

.docs-section table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #fff;
}

.docs-section th,
.docs-section td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-section th {
  background: #eef7f4;
  color: #23302c;
  font-size: 14px;
}

.docs-section td {
  color: #3d4b47;
  font-size: 15px;
  line-height: 1.65;
}

.docs-list {
  padding-left: 20px;
}

.docs-footer {
  padding-top: 28px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .model-section,
  .community-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-content,
  .hero-scene {
    order: initial;
  }

  .hero-content {
    order: 1;
  }

  .hero-scene {
    order: 2;
  }

  .hero-scene {
    min-height: 460px;
  }

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

  .language-layout,
  .workflow-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

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

  .docs-header {
    grid-template-columns: auto auto;
  }

  .docs-topnav {
    display: none;
  }

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

  .docs-sidebar,
  .docs-toc {
    position: static;
    padding: 0;
    border: 0;
  }

  .docs-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .docs-sidebar a {
    border: 1px solid var(--line);
    background: #fff;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero,
  section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand img {
    width: 136px;
  }

  .header-action {
    min-height: 40px;
    padding: 0 13px;
  }

  .hero {
    gap: 28px;
    padding-bottom: 58px;
  }

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

  .hero-lede {
    font-size: 17px;
  }

  .hero-stats,
  .feature-grid,
  .docs-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    min-height: 420px;
    border-radius: 12px;
  }

  .console-mockup {
    left: 18px;
    right: 18px;
    bottom: 30px;
  }

  .wave-lines {
    left: 22px;
    right: 22px;
  }

  .control-grid,
  .tabs {
    grid-template-columns: 1fr 1fr;
  }

  .language-map span {
    font-size: 20px;
  }

  .community-actions,
  .hero-actions {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }

  .docs-header {
    padding-inline: 14px;
  }

  .docs-shell {
    width: min(100% - 28px, 1180px);
    gap: 22px;
    padding-top: 22px;
  }

  .docs-hero {
    padding-top: 32px;
  }

  .docs-hero h1 {
    font-size: 48px;
  }

  .docs-section pre {
    padding: 16px;
  }
}
