:root {
  color-scheme: light;
  --ink: #11282a;
  --muted: #637477;
  --brand: #147f82;
  --brand-deep: #0b6265;
  --brand-pale: #e6f4f3;
  --paper: #f4f8f8;
  --white: #fff;
  --line: #dce8e9;
  --warm: #f3a53a;
  --radius: 16px;
  font-family:
    "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  overflow: hidden;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
}

.site-nav::before {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 68px;
  border-bottom: 1px solid rgba(220, 232, 233, 0.88);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  content: "";
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 750;
}

.wordmark img {
  width: 34px;
  height: 34px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 9px;
  color: #55686b;
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--white);
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
}

.button.primary {
  background: var(--brand);
  box-shadow: 0 9px 22px rgba(20, 127, 130, 0.18);
  color: #fff;
}

.button.primary:hover {
  background: var(--brand-deep);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100dvh - 68px);
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 70px;
  margin: 0 auto;
  padding: 70px 0 84px;
}

.hero::after {
  position: absolute;
  top: 12%;
  right: -22%;
  z-index: -1;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 45%, rgba(77, 180, 177, 0.24), transparent 32%),
    radial-gradient(circle at 64% 35%, rgba(52, 124, 241, 0.14), transparent 28%);
  filter: blur(18px);
  content: "";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 21px;
  padding: 7px 10px;
  border: 1px solid #cfe5e4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(20, 127, 130, 0.1);
  content: "";
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.hero h1 span {
  color: var(--brand);
}

.hero-copy > p {
  max-width: 600px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 31px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 25px;
  color: #758689;
  font-size: 11px;
}

.hero-note span::before {
  margin-right: 6px;
  color: var(--brand);
  content: "✓";
}

.route-map {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(206, 225, 226, 0.9);
  border-radius: 28px;
  background:
    linear-gradient(rgba(20, 127, 130, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 127, 130, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.72);
  background-size: 28px 28px;
  box-shadow: 0 28px 80px rgba(25, 62, 67, 0.1);
}

.route-map::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 35%, rgba(255, 255, 255, 0.72));
  pointer-events: none;
  content: "";
}

.route-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border: 12px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background: var(--brand);
  box-shadow: 0 18px 40px rgba(20, 127, 130, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.route-core small {
  display: block;
  margin-top: 3px;
  opacity: 0.72;
  font-size: 9px;
}

.route-node {
  position: absolute;
  z-index: 4;
  min-width: 112px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(24, 60, 66, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.route-node small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.route-node.n1 {
  top: 11%;
  left: 10%;
}

.route-node.n2 {
  top: 12%;
  right: 9%;
}

.route-node.n3 {
  right: 7%;
  bottom: 13%;
}

.route-node.n4 {
  bottom: 12%;
  left: 8%;
}

.route-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), rgba(20, 127, 130, 0.06));
  transform-origin: left center;
}

.route-line.l1 {
  transform: rotate(-139deg);
}

.route-line.l2 {
  transform: rotate(-39deg);
}

.route-line.l3 {
  transform: rotate(40deg);
}

.route-line.l4 {
  transform: rotate(140deg);
}

.signal {
  position: absolute;
  top: calc(50% - 4px);
  left: 50%;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(243, 165, 58, 0.15);
  animation: signal 3s ease-in-out infinite;
}

.signal.s2 {
  animation-delay: -1.5s;
  transform: rotate(40deg);
}

@keyframes signal {
  from {
    translate: 0 0;
  }
  to {
    translate: 190px 0;
  }
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.section-heading p {
  max-width: 600px;
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability {
  min-height: 210px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.capability:last-child {
  border-right: 0;
}

.capability b {
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.capability h3 {
  margin: 45px 0 10px;
  font-size: 17px;
}

.capability p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.code-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
  padding: 64px;
  border-radius: 24px;
  background: #102a2c;
  color: #f3fafa;
}

.code-band h2 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.045em;
}

.code-band p {
  margin: 17px 0 0;
  color: #a6babc;
  line-height: 1.8;
}

.code-window {
  overflow: hidden;
  border: 1px solid #315054;
  border-radius: 14px;
  background: #0c2022;
}

.code-window header {
  padding: 12px 15px;
  border-bottom: 1px solid #294649;
  color: #7f999c;
  font-size: 10px;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  color: #c9e4e2;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 60px 0 25px;
  border-top: 1px solid var(--line);
}

.cta h2 {
  max-width: 600px;
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 25px 0 35px;
  color: var(--muted);
  font-size: 11px;
}

.page-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 50px;
}

.page-header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 66px);
  letter-spacing: -0.06em;
}

.page-header p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.content-panel {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 80px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.pricing-list {
  display: grid;
  gap: 0;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.7fr;
  gap: 18px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.pricing-row:last-child {
  border-bottom: 0;
}

.pricing-row.header {
  padding-top: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.model-name strong,
.model-name small {
  display: block;
}

.model-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.status-pill {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--brand-pale);
  color: var(--brand-deep);
  font-size: 9px;
  font-weight: 700;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 50px;
}

.docs-menu {
  display: grid;
  align-content: start;
  gap: 5px;
}

.docs-menu a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.docs-menu a.active {
  background: var(--brand-pale);
  color: var(--brand-deep);
  font-weight: 700;
}

.docs-article h2 {
  margin: 0 0 15px;
  font-size: 27px;
}

.docs-article h3 {
  margin: 35px 0 10px;
  font-size: 17px;
}

.docs-article p,
.docs-article li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.docs-article .code-window {
  margin-top: 16px;
}

.auth-page {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: 1fr 1fr;
}

.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  background: #102a2c;
  color: #fff;
}

.auth-story h1 {
  max-width: 560px;
  margin: auto 0;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.auth-story p {
  color: #9bb1b3;
  font-size: 12px;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 40px;
}

.auth-card {
  width: min(400px, 100%);
}

.auth-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-card > p {
  margin: 10px 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-form label {
  color: #56686a;
  font-size: 11px;
  font-weight: 680;
}

.auth-form input {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--white);
}

.auth-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-pale);
}

.auth-form .button {
  width: 100%;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .route-map {
    min-height: 440px;
  }

  .section-heading,
  .code-band {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .capability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability:nth-child(2) {
    border-right: 0;
  }

  .capability:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-story {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-nav {
    width: min(100% - 28px, 1180px);
  }

  .nav-actions .secondary {
    display: none;
  }

  .hero,
  .section,
  .page-header,
  .content-panel,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .route-map {
    min-height: 380px;
  }

  .route-node {
    min-width: 96px;
    padding: 10px;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .code-band,
  .content-panel {
    padding: 24px;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-row {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-row.header {
    display: none;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-menu {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .signal {
    animation: none;
  }
}
