

:root {
  color-scheme: light;
  --canvas: #f7f4ee;
  --surface: #fffdf8;
  --ink: #24241f;
  --ink-soft: #4c4a42;
  --muted: #6f6c63;
  --faint: #8f8b80;
  --border: #e3ded4;
  --border-strong: #cfc8ba;

  --accent: #0b9677;
  --accent-deep: #087d66;
  --accent-soft: #e7f5f0;
  --violet: #5442dd;
  --sky: #4f8dff;
  --aqua: #28d7ff;

  --code-bg: rgba(255, 255, 255, .55);
  --code-header-bg: rgba(255, 255, 255, .22);
  --code-border: rgba(31, 41, 55, .12);
  --code-ink: #1d2a26;
  --code-comment: #6f7a6a;
  --code-keyword: #0b7d66;
  --code-string: #b45f1d;
  --code-func: #2f6bff;
  --code-line-no: #8b938a;
  --code-highlight: rgba(11, 150, 119, .10);
  --code-caret: #0b9677;

  --font-sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "Cascadia Code", Consolas, "Microsoft YaHei", monospace;

  --ease-out: cubic-bezier(.22, .8, .32, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: linear-gradient(180deg, #faf8f3 0%, var(--canvas) 46%, #f2eee6 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100svh;
}

::selection { background: rgba(11, 150, 119, .18); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 99;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }


.flow-background {
  position: fixed;
  inset: 72px 0 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: .9;
}
.flow-panorama,
.flow-panorama svg {
  width: 100%;
  height: 100%;
  display: block;
}
.flow-panorama svg { preserve-aspect-ratio: xMidYMax slice; }

.flow-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #f7f4eee8 0%, #f7f4ee9c 14%, transparent 38%),
    radial-gradient(90% 70% at 8% 18%, #f7f4eed9 0%, transparent 60%);
}


.flow-panorama .flow-line {
  animation: flow-dash var(--flow-duration, 12s) linear infinite;
  animation-delay: var(--flow-delay, 0s);
  filter: drop-shadow(0 0 3px rgba(53, 224, 200, .45));
}
@keyframes flow-dash {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
.flow-panorama .node-halo {
  animation: node-pulse 3.6s ease-in-out infinite;
  animation-delay: var(--node-delay, 0s);
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes node-pulse {
  0%, 100% { opacity: .25; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.7); }
}
.flow-panorama .city-glow { animation: city-breathe 7s ease-in-out infinite; animation-delay: var(--glow-delay, 0s); }
@keyframes city-breathe {
  0%, 100% { opacity: .35; }
  50%      { opacity: .8; }
}

.flow-background.motion-paused .flow-line,
.flow-background.motion-paused .node-halo,
.flow-background.motion-paused .city-glow,
.motion-paused .wire-globe .beam,
.motion-paused .wire-globe .node-halo {
  animation-play-state: paused;
}


.page-shell {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 160px));
  margin: auto;
  min-height: 720px;
  height: 100svh;
  display: flex;
  flex-direction: column;
}


.site-header {
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.65px;
}
.brand-icon { display: inline-flex; }
.brand-icon img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(11, 150, 119, .3);
}
.brand-wordmark strong { font-weight: 850; color: var(--accent-deep); }

.nav-links { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-link {
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  transition: color .18s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 650; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.small-arrow { font-size: 11px; color: var(--faint); margin-left: 2px; }

.header-cta {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 650;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(90, 70, 51, .05);
}
.header-cta:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(90, 70, 51, .09); }
.action-arrow { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }


.main-content { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.brand-intro {
  text-align: center;
  padding-top: 30px;
  animation: intro-rise .8s var(--ease-out) both;
}
@keyframes intro-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.intro-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 8px;
  margin-bottom: 14px;
}
.intro-ornament span {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b4d8ce);
}
.intro-ornament span:last-child { transform: rotate(180deg); }
.intro-ornament i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 150, 119, .08);
}
.brand-intro h2 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
}
.intro-enterprise { color: var(--violet); }
.intro-api {
  color: var(--accent-deep);
  background: linear-gradient(transparent 83%, rgba(11, 150, 119, .09) 83%, rgba(11, 150, 119, .09) 95%, transparent 95%);
}
.intro-tagline {
  margin: 10px 0 0;
  color: #141410;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: .07em;
}


.hero {
  flex: 1;
  min-height: 490px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  padding: 30px 0 22px;
}

.hero-copy { padding-bottom: 7px; position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--ink-soft);
  font-weight: 650;
  background: var(--accent-soft);
  border: 1px solid rgba(11, 150, 119, .18);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
  margin-bottom: 24px;
}
.eyebrow-symbol { font-size: 15px; color: var(--accent); line-height: 1; }
.uptime-copy strong { color: var(--accent-deep); font-weight: 800; margin-left: 6px; letter-spacing: 0; }

.hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 4.6vw, 68px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -2px;
}
.gradient-model {
  background: linear-gradient(94deg, #3f7df6 4%, #29b0f0 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.headline-period { color: var(--sky); }

.hero-description {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .2px;
  transition: transform .18s var(--ease-out), box-shadow .18s, background .18s, border-color .18s;
}
.button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.button-primary {
  background: var(--accent);
  color: var(--surface);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 20px -8px rgba(11, 150, 119, .55);
}
.button-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(11, 150, 119, .6); }
.button-secondary {
  background: transparent;
  color: #524e44;
  border: 1px solid #d8d1c5;
}
.button-secondary:hover { background: var(--surface); border-color: var(--border-strong); transform: translateY(-1px); }

.feature-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
}
.feature-notes span { display: inline-flex; align-items: center; gap: 7px; }
.feature-notes svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.hero-visual {
  height: 490px;
  position: relative;
  min-width: 0;
  isolation: isolate;
  --code-top: 46px;
}

.visual-grid {
  position: absolute;
  inset: 0 -15px 0 -30px;
  z-index: -3;
  background-image:
    linear-gradient(rgba(150, 160, 150, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 160, 150, .1) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 58% 55% at 58% 36%, #000, transparent);
  mask-image: radial-gradient(ellipse 58% 55% at 58% 36%, #000, transparent);
}

.wire-globe {
  width: 520px;
  height: auto;
  max-width: none;
  position: absolute;
  top: -68px;
  right: -47px;
  z-index: -1;
  opacity: .75;
  animation: globe-appear 1.1s var(--ease-out) both;
}
@keyframes globe-appear {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: .9; transform: none; }
}
.wire-globe .beam {
  stroke: url(#beamGrad);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 16 84;
  animation: flow-dash 9s linear infinite;
}
.wire-globe .beam-slow { animation-duration: 13s; animation-delay: -4s; }
.wire-globe .beam-slower { animation-duration: 16s; animation-delay: -8s; }
.wire-globe .node-core { fill: #2fbfa0; }
.wire-globe .node-halo { fill: rgba(47, 191, 160, .35); animation: node-pulse 3.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.wire-globe .node-delay-1 { animation-delay: -1.1s; }
.wire-globe .node-delay-2 { animation-delay: -2.2s; }
.wire-globe .node-delay-3 { animation-delay: -2.8s; }

.orbit-caption {
  display: flex;
  gap: 9px;
  align-items: center;
  position: absolute;
  right: 8px;
  top: 44px;
  font: 8px/1.8 "Segoe UI", sans-serif;
  letter-spacing: 1px;
  color: var(--faint);
  transform: rotate(6deg);
}
.orbit-caption strong { font-weight: 650; color: #5a564c; }
.orbit-icon {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  background: var(--surface);
}

.coordinate {
  position: absolute;
  right: -6px;
  top: 218px;
  writing-mode: vertical-rl;
  color: #9a948a;
  letter-spacing: 2px;
  font-size: 7px;
}


.code-window {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--code-top, 52px);
  background: var(--code-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  box-shadow: 0 24px 56px -22px rgba(40, 45, 60, .30),
              0 2px 6px rgba(31, 41, 55, .05),
              inset 0 0 0 1px rgba(255, 255, 255, .30);
  overflow: hidden;
  transform: rotate(-1.25deg);
  animation: card-appear .85s var(--ease-out) both;
  z-index: 2;
}
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .code-window { background: rgba(255, 255, 255, .93); }
  .code-header, .code-footer { background: rgba(247, 244, 238, .95); }
}
@keyframes card-appear {
  from { opacity: 0; transform: rotate(-1.25deg) translateY(18px); }
  to   { opacity: 1; transform: rotate(-1.25deg) translateY(0); }
}

.code-header {
  height: 42px;
  background: var(--code-header-bg);
  border-bottom: 1px solid var(--code-border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  color: #4d574d;
}
.window-dots { display: inline-flex; gap: 7px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #4a4e44; }
.window-dots i:nth-child(1) { background: #e5695c; }
.window-dots i:nth-child(2) { background: #e5b64f; }
.window-dots i:nth-child(3) { background: #77c25f; }
.file-name {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 1.4px;
  color: #6b756b;
}
.header-spacer { flex: 1; }

.code-animation-toggle,
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: #55605a;
  font-size: 10.5px;
  padding: 5px 6px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.code-animation-toggle:hover, .copy-button:hover { color: #17211a; background: rgba(17, 24, 18, .06); }
.code-animation-toggle svg, .copy-button svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.code-animation-toggle .anim-play { display: none; }
.code-animation-toggle[aria-pressed="true"] .anim-pause { display: none; }
.code-animation-toggle[aria-pressed="true"] .anim-play { display: block; }

.code-body {
  position: relative;
  padding: 14px 0 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9c0b5 transparent;
}
.code-line { display: flex; align-items: baseline; min-height: 23px; }
.code-line .line-number {
  font: 10px/23px var(--font-mono);
  flex: 0 0 46px;
  text-align: center;
  color: var(--code-line-no);
  user-select: none;
  opacity: .6;
}
.code-line code {
  font: 500 13.5px/23px var(--font-mono);
  color: var(--code-ink);
  white-space: pre;
}
.code-line.blank { min-height: 14px; }
.c-comment { color: var(--code-comment); }
.c-keyword { color: var(--code-keyword); }
.c-string  { color: var(--code-string); }
.c-func    { color: var(--code-func); }
.t         { color: var(--code-ink); }
.code-line.highlight {
  background: var(--code-highlight);
  box-shadow: inset 2px 0 #0b9677;
}
.code-line.highlight .line-number { opacity: 1; color: #0b7d66; }

.code-caret {
  position: absolute;
  width: 7px;
  height: 15px;
  background: var(--code-caret);
  border-radius: 1px;
  opacity: 0;
  pointer-events: none;
}
.code-caret.blinking { opacity: 1; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

.code-footer {
  height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-top: 1px solid var(--code-border);
  font-size: 8.5px;
  letter-spacing: .4px;
  color: #55605a;
  background: rgba(255, 255, 255, .20);
}
.code-footer span { display: inline-flex; align-items: center; gap: 7px; }
.code-footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(53, 224, 200, .8);
  animation: node-pulse 2.8s ease-in-out infinite;
}
.example-label { color: #7a8378; letter-spacing: 1.2px; }


.floating-note {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid #e6ddcd;
  position: absolute;
  left: 0;
  top: calc(var(--code-top, 52px) - 30px);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 10px 26px rgba(90, 70, 51, .08);
  transform: rotate(2deg);
  animation: note-appear 1s var(--ease-out) .35s both;
  z-index: 3;
}
@keyframes note-appear {
  from { opacity: 0; transform: rotate(2deg) translateY(12px); }
  to   { opacity: 1; transform: rotate(2deg) translateY(0); }
}
.note-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.note-icon svg { width: 15px; height: 15px; stroke: var(--accent-deep); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.floating-note strong { display: block; font-size: 12px; color: var(--ink); letter-spacing: .2px; }
.floating-note div span { display: block; font-size: 8.5px; color: var(--faint); letter-spacing: .6px; margin-top: 3px; }
.note-spark { color: var(--accent); font-size: 13px; margin-left: 4px; }


.ecosystem {
  min-height: 111px;
  border: 1px solid rgba(226, 219, 206, .8);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 45px;
  flex-shrink: 0;
  padding: 14px 26px;
  margin-bottom: 10px;
  background: rgba(247, 244, 238, .86);
  box-shadow: 0 10px 28px -14px rgba(60, 55, 40, .25);
}
.ecosystem-intro { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.ecosystem-intro span { font-size: 10px; letter-spacing: 1.4px; color: var(--faint); }
.ecosystem-intro strong { font-size: 14px; color: var(--ink); font-weight: 700; letter-spacing: .2px; }

.model-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.model-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 10px 0;
  color: #55544f;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.6px;
  opacity: .88;
  transition: opacity .2s, transform .2s;
}
.model-logo:hover { opacity: 1; transform: translateY(-2px); }
.provider-mark { width: 26px; height: 26px; flex-shrink: 0; }
.mark-sans { font-family: var(--font-sans); }
.mark-serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.3px; }
.mark-gemini { background: linear-gradient(90deg, #5684d1, #1ba1e3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark-deepseek { color: #4d6bfe; }

.more-models {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.more-models:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(11, 150, 119, .12); }


.site-footer {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-size: 9px;
  color: #847e73;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  letter-spacing: .2px;
  padding: 8px 0;
}
.footer-meta { justify-self: start; display: inline-flex; align-items: center; }
.footer-divider { margin: 0 8px; color: #c4bdb0; }
.service-notice { text-align: center; line-height: 1.75; }
.service-notice p { margin: 0; font-size: 8.5px; color: #9a9488; }
.footer-right-wrap { justify-self: end; display: inline-flex; align-items: center; gap: 7px; }
.footer-star { color: var(--accent); font-size: 11px; }
.flow-motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  padding: 0;
  transition: color .15s, border-color .15s;
}
.flow-motion-toggle:hover { color: var(--accent-deep); border-color: var(--accent); }
.flow-motion-toggle svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow-motion-toggle .flow-play { display: none; }
.flow-motion-toggle[aria-pressed="true"] .flow-pause { display: none; }
.flow-motion-toggle[aria-pressed="true"] .flow-play { display: block; }


dialog#infoDialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(680px, calc(100vw - 48px));
  width: 100%;
  max-height: min(86vh, 760px);
  overflow: hidden;
}
dialog#infoDialog::backdrop {
  background: rgba(36, 34, 28, .38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.dialog-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 32px 32px;
  box-shadow: 0 32px 80px -24px rgba(40, 35, 25, .4);
  position: relative;
  animation: dialog-pop .32s var(--ease-out) both;
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 760px);
}
#dialogContent {
  overflow-y: auto;
  min-height: 0;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 86, 76, .32) transparent;
}
#dialogContent::-webkit-scrollbar { width: 8px; }
#dialogContent::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
#dialogContent::-webkit-scrollbar-corner { display: none; }
#dialogContent::-webkit-scrollbar-track { background: transparent; }
#dialogContent::-webkit-scrollbar-thumb {
  background: rgba(90, 86, 76, .26);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
#dialogContent::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 150, 119, .45);
  background-clip: padding-box;
}
@keyframes dialog-pop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: color .15s, border-color .15s;
}
.dialog-close:hover { color: var(--ink); border-color: var(--border-strong); }
.dialog-eyebrow { font-size: 10px; letter-spacing: 1.8px; color: var(--accent-deep); font-weight: 700; }
#dialogTitle { margin: 8px 0 18px; font-size: 22px; letter-spacing: -.5px; }
.model-group { margin-bottom: 16px; }
.model-group:last-child { margin-bottom: 0; }
.model-group h3 { margin: 0 0 9px; font-size: 12px; color: var(--muted); font-weight: 650; letter-spacing: .4px; }
.model-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.model-chip {
  font: 11.5px/1 var(--font-mono);
  color: var(--ink-soft);
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 11px;
  transition: border-color .15s, color .15s, background .15s;
}
.model-chip:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  background: #23261f;
  color: #f2f3ea;
  font-size: 12.5px;
  letter-spacing: .4px;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(20, 22, 16, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease-out);
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


@media (max-width: 1420px) {
  .page-shell { width: calc(100% - 96px); }
  .hero { gap: 44px; }
  .wire-globe { width: 470px; right: -30px; }
}

@media (max-width: 1180px) {
  .page-shell { width: calc(100% - 64px); }
  .hero-copy h1 { font-size: clamp(40px, 4vw, 54px); letter-spacing: -1.4px; }
  .wire-globe { width: 420px; top: -20px; }
  .code-window { right: 0; }
  .model-logo { font-size: 17px; }
  .code-line { min-height: 22px; }
  .code-line code { font-size: 12.5px; line-height: 22px; }
  .code-line .line-number { font-size: 9px; line-height: 22px; flex-basis: 38px; }
  .brand-intro h2 { font-size: clamp(30px, 3.4vw, 44px); }
}

@media (max-width: 1020px) {
  .page-shell { height: auto; min-height: 100svh; }
  .flow-background { inset: 64px 0 0; }
  .site-header { height: 72px; }
  .nav-links { gap: 22px; }
  .brand-intro { padding-top: 26px; }
  .intro-tagline { font-size: 16px; line-height: 26px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; min-height: 0; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-copy h1 { letter-spacing: -1.2px; }
  .hero-actions { justify-content: center; }
  .feature-notes { justify-content: center; }
  .hero-visual { height: 540px; max-width: 640px; width: 100%; margin: 0 auto; }
  .ecosystem { flex-wrap: wrap; gap: 18px; padding: 18px 20px; }
  .model-logos { flex-wrap: wrap; justify-content: flex-start; gap: 16px 26px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; gap: 10px; text-align: center; padding: 16px 0; }
  .footer-meta, .footer-right-wrap { justify-self: center; }
}

@media (max-width: 640px) {
  .page-shell { width: calc(100% - 40px); }
  .site-header { height: 72px; gap: 10px; }
  .brand { font-size: 16px; gap: 8px; letter-spacing: -.5px; }
  .brand-icon img { width: 28px; height: 28px; }
  .nav-links { gap: 13px; margin-left: auto; }
  .nav-link { font-size: 11px; white-space: nowrap; padding: 8px 0; }
  .small-arrow { font-size: 9px; }
  .header-cta { padding: 8px 10px; gap: 8px; font-size: 10.5px; border-radius: 7px; }
  .headline-break { display: none; }
  .headline-accent::before { content: " "; }
  .hero-copy h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-description { font-size: 13.5px; }
  .desktop-break { display: none; }
  .hero-actions { flex-wrap: wrap; }
  .hero-visual { height: auto; display: flex; flex-direction: column; }
  .wire-globe { width: 360px; top: -30px; right: -60px; }
  .orbit-caption, .coordinate, .floating-note { display: none; }
  .code-window { position: relative; top: 0; right: 0; left: 0; margin-top: 96px; transform: none; animation: none; }
  .code-line .line-number { flex-basis: 32px; font-size: 8.5px; }
  .code-line code { font-size: 12px; line-height: 21px; }
  .ecosystem { padding: 14px 16px; gap: 14px; }
  .ecosystem-intro strong { font-size: 13px; }
  .model-logo { font-size: 15px; gap: 6px; }
  .provider-mark { width: 21px; height: 21px; }
  .more-models { padding: 7px 13px; font-size: 11px; }
  .service-notice p:nth-child(3) { display: none; }
}


@media (max-width: 480px) {
  .page-shell { width: calc(100% - 32px); }

  
  .site-header { height: 64px; gap: 6px; }
  .brand { font-size: 15px; gap: 7px; letter-spacing: -.4px; }
  .brand-icon img { width: 26px; height: 26px; }
  .nav-links { gap: 9px; }
  .nav-link { font-size: 10.5px; padding: 8px 0; }
  .small-arrow { display: none; }
  .header-cta { padding: 7px 9px; gap: 5px; font-size: 10px; border-radius: 7px; }
  .action-arrow { width: 11px; height: 11px; }

  
  .brand-intro { padding-top: 12px; }
  .brand-intro h2 { font-size: 26px; letter-spacing: -1px; }
  .intro-tagline { font-size: 13px; line-height: 21px; }

  
  .hero { padding-top: 12px; gap: 16px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.1px; padding: 6px 11px 6px 9px; margin-bottom: 13px; }
  .hero-copy h1 { font-size: 28px; letter-spacing: -.6px; line-height: 1.3; }
  .hero-description { font-size: 13px; line-height: 1.7; }
  .hero-actions { margin-top: 16px; gap: 10px; width: 100%; }
  .hero-actions .button { flex: 1 1 44%; justify-content: center; height: 42px; font-size: 12px; }
  .feature-notes { margin-top: 13px; gap: 8px 12px; font-size: 11px; }

  
  .hero-visual { overflow: hidden; min-height: 320px; }
  .wire-globe { width: 280px; top: -4px; right: -46px; opacity: .5; }
  .code-window { margin-top: 54px; border-radius: 14px; }
  .code-header { height: 34px; padding: 0 10px; gap: 8px; }
  .file-name { font-size: 9px; letter-spacing: .8px; }
  .code-animation-toggle, .copy-button { font-size: 9.5px; padding: 3px 4px; gap: 4px; }
  .code-body { padding: 10px 0 8px; }
  .code-line { min-height: 20px; }
  .code-line code { font-size: 10.5px; line-height: 20px; }
  .code-line .line-number { flex-basis: 24px; font-size: 8px; line-height: 20px; }
  .code-footer { height: 26px; padding: 0 10px; font-size: 8px; }

  
  .ecosystem { padding: 12px 14px; gap: 10px; border-radius: 12px; }
  .ecosystem-intro span { font-size: 9px; letter-spacing: 1.1px; }
  .ecosystem-intro strong { font-size: 12px; }
  .model-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 10px; }
  .model-logo { font-size: 13.5px; gap: 7px; padding: 5px 0; }
  .more-models { grid-column: 1 / -1; justify-self: start; margin-top: 2px; padding: 6px 11px; font-size: 10.5px; }

  
  .site-footer { padding: 12px 0; gap: 7px; }
  .footer-meta { font-size: 11px; }
  .footer-right-wrap { font-size: 11px; }
  .service-notice p { font-size: 10px; line-height: 1.6; }
}


@media (max-width: 1366px) and (max-height: 840px) {
  .site-header { height: 72px; }
  .flow-background { inset: 60px 0 0; }
  .brand-intro { padding-top: 14px; }
  .intro-ornament { margin-bottom: 8px; }
  .brand-intro h2 { font-size: clamp(28px, 3vw, 40px); }
  .intro-tagline { font-size: 16px; margin-top: 6px; }
  .hero { min-height: 0; padding: 16px 0 10px; gap: 40px; }
  .hero-visual { height: 404px; }
  .code-window { top: 54px; }
  .code-line { min-height: 21px; }
  .code-line code { font-size: 12.5px; line-height: 21px; }
  .code-line .line-number { font-size: 9px; line-height: 21px; flex-basis: 34px; }
  .code-body { padding: 12px 0 10px; }
  .code-header { height: 38px; }
  .code-footer { height: 28px; }
  .wire-globe { width: 430px; top: -30px; right: -40px; }
  .floating-note { top: 52px; padding: 9px 13px; }
  .floating-note strong { font-size: 11px; }
  .eyebrow { margin-bottom: 16px; }
  .hero-copy h1 { font-size: clamp(34px, 3.7vw, 48px); }
  .hero-description { margin-top: 12px; font-size: 14px; line-height: 1.7; }
  .hero-actions { margin-top: 18px; }
  .button { height: 44px; }
  .feature-notes { margin-top: 16px; }
  .ecosystem { min-height: 86px; gap: 30px; padding: 10px 0; }
  .site-footer { min-height: 48px; padding: 6px 0; }
  .service-notice p { font-size: 8px; line-height: 1.6; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .code-caret { display: none; }
}
