:root {
  --bg: #f7fbff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --ink: #111827;
  --muted: #61708a;
  --line: rgba(28, 45, 72, 0.13);
  --violet: #6d3df5;
  --blue: #246bfe;
  --cyan: #12b6cb;
  --green: #16a36a;
  --amber: #d58b13;
  --shadow: 0 24px 70px rgba(34, 76, 129, 0.15);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(109, 61, 245, 0.18), transparent 34rem),
    radial-gradient(circle at 18% 18%, rgba(18, 182, 203, 0.18), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, #eef8ff 58%, #f8fbff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(19, 34, 60, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 34, 60, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22) 1px, transparent 1px, transparent 5px),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 28rem);
  mix-blend-mode: soft-light;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(36, 107, 254, 0.45);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.filter-groups div,
.metrics,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 26px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--blue), var(--violet)),
    linear-gradient(90deg, transparent 32%, #fff 32% 42%, transparent 42%);
  box-shadow: 0 14px 26px rgba(109, 61, 245, 0.28);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.nav {
  gap: 6px;
}

.nav a {
  min-height: 42px;
  padding: 12px 15px;
  color: #273244;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(109, 61, 245, 0.1);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(54px, 8vw, 104px) 5vw 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.endpoint-panel {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 14px;
  max-width: 780px;
  margin: 30px 0 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.endpoint-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

code {
  overflow-wrap: anywhere;
  color: #172033;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: 999px;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #171d35, var(--violet));
  box-shadow: 0 18px 34px rgba(109, 61, 245, 0.3);
}

.button.ghost {
  color: #182238;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.orbit {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 50%, rgba(109, 61, 245, 0.18), transparent 9rem),
    rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.orbit::before,
.orbit::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(109, 61, 245, 0.18);
  border-radius: 50%;
}

.orbit::after {
  inset: 22%;
  border-color: rgba(18, 182, 203, 0.2);
  transform: rotate(22deg);
}

.core,
.node {
  position: absolute;
  display: grid;
  place-items: center;
}

.core {
  top: 50%;
  left: 50%;
  width: 152px;
  height: 152px;
  padding: 18px;
  text-align: center;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(36, 107, 254, 0.16);
  transform: translate(-50%, -50%);
}

.core small {
  color: var(--violet);
  font-weight: 800;
}

.core strong {
  margin-top: 8px;
  line-height: 1.1;
}

.node {
  width: 86px;
  height: 46px;
  color: #102034;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.node-a {
  top: 18%;
  left: 16%;
}

.node-b {
  top: 16%;
  right: 12%;
}

.node-c {
  bottom: 18%;
  left: 12%;
}

.node-d {
  right: 14%;
  bottom: 16%;
}

.metrics {
  gap: 12px;
}

.metrics article {
  flex: 1;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.metrics span {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
}

.metrics p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.finder,
.pricing,
.compute {
  padding: 76px 5vw;
}

.section-head {
  max-width: 840px;
  margin-bottom: 30px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.search-row {
  max-width: 920px;
  margin-bottom: 18px;
}

.search-row label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-row input {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  color: var(--ink);
  font: inherit;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.filter-groups {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-groups div {
  flex-wrap: wrap;
  gap: 9px;
}

.filter-groups span {
  min-width: 48px;
  color: #1e2c44;
  font-weight: 900;
}

.chip {
  min-height: 40px;
  padding: 0 15px;
  color: #243147;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: transparent;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.model-card {
  min-height: 248px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgba(35, 64, 103, 0.08);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.model-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

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

.model-top h3 {
  margin: 0;
  font-size: 22px;
}

.model-id {
  margin-top: 6px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
}

.badge.cn {
  background: var(--green);
}

.badge.global {
  background: var(--blue);
}

.model-card p {
  color: var(--muted);
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  padding: 6px 9px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  background: rgba(36, 107, 254, 0.08);
  border-radius: 999px;
}

.price-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  color: #1c2940;
  font-size: 13px;
  font-weight: 900;
}

.pricing-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pricing-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.pricing-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-table tr:last-child td {
  border-bottom: 0;
}

.compute {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
}

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

.compute-grid article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.compute-grid span {
  color: var(--amber);
  font-weight: 900;
}

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

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px 5vw 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .hero,
  .finder,
  .pricing,
  .compute {
    padding-right: 20px;
    padding-left: 20px;
  }

  .model-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics {
    display: grid;
  }

  .endpoint-panel {
    grid-template-columns: 1fr;
  }

  .orbit {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
