/*
 * JiayuGate Brand Round 2
 * Sunlit wayfinding / Light Sunrise / Sunset Premium
 * Incremental brand layer: existing navigation, data and interactions remain intact.
 */

:root {
  color-scheme: light;
  --color-background: #f6f8fc;
  --color-surface: #ffffff;
  --color-surface-soft: #edf2fa;
  --color-surface-rose: #eaf1fb;
  --color-surface-mint: #f1f5fb;
  --color-text: #12223c;
  --color-text-muted: #5f6f86;
  --color-text-subtle: #637288;
  --color-border: rgba(18, 34, 60, .12);
  --color-border-strong: rgba(18, 34, 60, .21);
  --color-primary: #2f63e9;
  --color-primary-strong: #244fc2;
  --color-secondary: #e5a14f;
  --color-signal-mint: #5a93c7;
  --color-success: #23856f;
  --color-success-text: #1c715e;
  --color-warning-text: #8b5b16;
  --color-code: #edf5ff;
  --page: var(--color-background);
  --surface: var(--color-surface);
  --surface-soft: var(--color-surface-soft);
  --surface-rose: var(--color-surface-rose);
  --surface-mint: var(--color-surface-mint);
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --muted-2: var(--color-text-subtle);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --accent: var(--color-primary);
  --accent-strong: var(--color-primary-strong);
  --route-accent: var(--color-primary);
  --rose: var(--color-secondary);
  --signal-mint: var(--color-signal-mint);
  --success: var(--color-success);
  --code: var(--color-code);
  --console: #132b49;
  --console-soft: #1a385d;
  --console-line: rgba(235, 243, 255, .17);
  --button-ink: #ffffff;
  --brand-sky: #2f63e9;
  --brand-horizon: #12223c;
  --brand-dawn: #e5a14f;
  --brand-cloud: #f6f8fc;
  --brand-cloud-deep: #eaf1fb;
  --brand-verified: #1c715e;
  --shadow-soft: 0 34px 100px rgba(25, 52, 92, .13);
  --shadow-nav: 0 16px 48px rgba(25, 52, 92, .13);
  --shadow-control: 0 10px 28px rgba(47, 99, 233, .20);
  --type-heading: clamp(3.2rem, 5.4vw, 5.4rem);
  --type-display: clamp(4.75rem, 7vw, 6rem);
  --leading-heading: .98;
  --leading-display: .91;
  --radius-control: 11px;
  --radius-card: 20px;
  --space-proof: clamp(104px, 9vw, 144px);
  --space-product: clamp(128px, 11vw, 176px);
  --space-brand: clamp(176px, 15vw, 240px);
  --section-space: var(--space-product);
  --shell: 1320px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --color-background: #14243d;
  --color-surface: #1a2f4c;
  --color-surface-soft: #1e3758;
  --color-surface-rose: #203754;
  --color-surface-mint: #1c3452;
  --color-text: #f5f3ee;
  --color-text-muted: #b7c1ce;
  --color-text-subtle: #96a6ba;
  --color-border: rgba(237, 243, 252, .13);
  --color-border-strong: rgba(237, 243, 252, .23);
  --color-primary: #8fb8ff;
  --color-primary-strong: #b4cdff;
  --color-secondary: #f0b568;
  --color-signal-mint: #78b9d9;
  --color-success: #73c5ad;
  --color-success-text: #8bd4bd;
  --color-warning-text: #f1bf78;
  --color-code: #eff5ff;
  --route-accent: #8fb8ff;
  --console: #183453;
  --console-soft: #203f64;
  --console-line: rgba(239, 245, 255, .17);
  --button-ink: #10213a;
  --brand-sky: #8fb8ff;
  --brand-horizon: #f5f3ee;
  --brand-dawn: #f0b568;
  --brand-cloud: #1a2f4c;
  --brand-cloud-deep: #203754;
  --brand-verified: #8bd4bd;
  --shadow-soft: 0 38px 110px rgba(5, 17, 35, .30);
  --shadow-nav: 0 18px 52px rgba(5, 17, 35, .34);
  --shadow-control: 0 10px 30px rgba(5, 17, 35, .28);
}

html,
body {
  background: var(--page);
}

body {
  font-family: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.01em;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline-color: var(--route-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--page) 82%, transparent);
}

.shell {
  width: min(var(--shell), calc(100% - 96px));
}

.eyebrow,
.pricing-label,
.faq-label,
.final-cta-copy > p {
  color: var(--route-accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  text-transform: none;
}

.section {
  padding: var(--section-space) 0;
}

.section-header {
  grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
  gap: clamp(56px, 8vw, 128px);
  align-items: start;
  margin-bottom: clamp(72px, 8vw, 116px);
}

.section-heading {
  max-width: 930px;
  font-weight: 570;
  letter-spacing: -.04em;
}

.section-copy {
  max-width: 520px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.68;
}

.button-primary {
  min-height: 50px;
  padding: 13px 21px;
  border-color: var(--route-accent);
  border-radius: var(--radius-control);
  background: var(--route-accent);
  color: var(--button-ink);
  box-shadow: none;
  transition: transform 180ms var(--ease-out), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button-primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--button-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-control);
}

.button-primary:active {
  transform: translateY(0) scale(.985);
  box-shadow: none;
}

html[data-theme="dark"] .nav-cta {
  color: #10213a;
}

.text-link,
.section-link,
.byok-home-link {
  position: relative;
  border-bottom: 0;
  color: var(--ink);
}

.text-link::before,
.section-link::before,
.byok-home-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 32px;
  bottom: 4px;
  height: 1px;
  background: var(--route-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-out);
}

.text-link:hover::before,
.text-link:focus-visible::before,
.section-link:hover::before,
.section-link:focus-visible::before,
.byok-home-link:hover::before,
.byok-home-link:focus-visible::before {
  transform: scaleX(1);
}

/* Theme names: Light Sunrise and Sunset Premium. */
.hero {
  min-height: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.hero::before {
  z-index: -1;
  inset: 0 0 auto;
  height: 100svh;
  background:
    linear-gradient(180deg, transparent 48%, rgba(246, 248, 252, .42) 100%),
    linear-gradient(90deg, rgba(246, 248, 252, .91) 0%, rgba(246, 248, 252, .72) 34%, rgba(246, 248, 252, .24) 58%, rgba(246, 248, 252, .04) 78%, transparent 100%);
}

html[data-theme="dark"] .hero::before {
  background:
    linear-gradient(180deg, transparent 46%, rgba(20, 36, 61, .46) 100%),
    linear-gradient(90deg, rgba(20, 36, 61, .91) 0%, rgba(20, 36, 61, .69) 35%, rgba(20, 36, 61, .22) 60%, rgba(20, 36, 61, .04) 80%, transparent 100%);
}

.hero::after {
  z-index: 2;
  left: 4vw;
  right: 0;
  top: calc(100svh - 1px);
  bottom: auto;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--route-accent) 42%, transparent) 28%, var(--line-strong) 72%, transparent);
}

.hero-landscape {
  inset: 0 0 auto;
  height: 100svh;
  background-image: url('/assets/optimistic-refresh/hero-sunrise-desktop.webp');
  background-image: image-set(url('/assets/optimistic-refresh/hero-sunrise-desktop.avif') type('image/avif'), url('/assets/optimistic-refresh/hero-sunrise-desktop.webp') type('image/webp'));
  background-position: center center;
  transform: scale(1.006);
  transform-origin: 66% 50%;
  animation: sky-reveal 1100ms var(--ease-out) both, sky-drift 32s 1100ms ease-in-out infinite alternate;
}

html[data-theme="dark"] .hero-landscape {
  background-image: url('/assets/optimistic-refresh/hero-sunset-desktop.webp');
  background-image: image-set(url('/assets/optimistic-refresh/hero-sunset-desktop.avif') type('image/avif'), url('/assets/optimistic-refresh/hero-sunset-desktop.webp') type('image/webp'));
  background-position: center center;
  transform-origin: 64% 48%;
  animation-duration: 1100ms, 36s;
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 0;
  gap: 24px;
}

.hero-copy {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto minmax(72px, 1fr) auto;
  align-content: start;
  gap: 0 24px;
  padding: clamp(128px, 15svh, 158px) 0 clamp(46px, 6svh, 68px);
}

.hero .eyebrow,
.hero .hero-signature {
  grid-column: 1 / 6;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 clamp(34px, 5.5svh, 52px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
}

.hero .eyebrow::before,
.hero .hero-signature::before {
  content: "";
  width: 34px;
  height: 1px;
  flex: 0 0 auto;
  border-radius: 0;
  background: var(--route-accent);
  box-shadow: none;
}

.hero h1,
html[lang="en"] .hero h1,
html[lang^="zh"] .hero h1 {
  grid-column: 1 / 9;
  grid-row: 2;
  max-width: 9.2em;
  margin: 0;
  font-size: clamp(4.75rem, 6.6vw, 5.9rem);
  line-height: .93;
  font-weight: 580;
  letter-spacing: -.04em;
  text-wrap: auto;
}

.hero-title-line {
  display: block;
}

.hero-title-line:last-child {
  padding-left: 0;
}

html[lang^="zh"] .hero h1 {
  max-width: 8.5em;
  font-size: clamp(4.15rem, 6vw, 5.45rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.hero-lede {
  grid-column: 9 / 13;
  grid-row: 4;
  align-self: end;
  max-width: 390px;
  margin: 0 0 2px;
  color: var(--ink);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.58;
}

.hero-actions {
  grid-column: 1 / 6;
  grid-row: 4;
  align-self: end;
  margin-top: 0;
  gap: 26px;
}

.hero .button-primary,
.final-cta .button-primary {
  padding-inline: 23px;
}

.flow-console {
  --surface: #132b49;
  --surface-soft: #1a385d;
  --ink: #f2f6fc;
  --muted: #afbdd0;
  --muted-2: #8fa2bb;
  --line: rgba(238, 245, 255, .14);
  --line-strong: rgba(238, 245, 255, .25);
  --accent: #8fb8ff;
  --accent-strong: #b4cdff;
  --rose: #f0b568;
  --signal-mint: #76b8d9;
  --success: #78c8b1;
  --spot-x: 78%;
  --spot-y: 28%;
  position: relative;
  grid-column: 2 / 12;
  grid-row: 2;
  align-self: auto;
  width: 100%;
  margin: clamp(76px, 9vw, 122px) 0 clamp(104px, 12vw, 168px);
  border-color: rgba(238, 245, 255, .22);
  border-radius: 22px;
  background: #132b49;
  color: var(--ink);
  box-shadow: 0 38px 110px rgba(19, 43, 73, .22);
  backdrop-filter: none;
}

html[data-theme="dark"] .flow-console {
  background: #1a385d;
  box-shadow: 0 40px 110px rgba(4, 16, 33, .34);
}

.flow-console::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 420px at var(--spot-x) var(--spot-y), rgba(143, 184, 255, .10), transparent 72%);
}

.flow-console > * {
  position: relative;
  z-index: 1;
}

.flow-bar {
  min-height: 58px;
  padding: 0 24px;
}

.flow-stage {
  height: 310px;
}

.flow-stage::before {
  opacity: .25;
}

.flow-foot {
  min-height: 52px;
  padding: 0 24px;
  font-size: 11px;
}

.flow-source code,
.flow-route code,
.flow-result code {
  font-size: 10.5px;
  line-height: 1.4;
}

.model-state,
.route-status {
  color: var(--color-success-text);
}

.route-status.preview {
  color: var(--color-warning-text);
}

.flow-console[data-active-route="reasoning"] .route-reasoning,
.flow-console[data-active-route="balanced"] .route-balanced,
.flow-console[data-active-route="fast"] .route-fast {
  animation: none;
  stroke-dasharray: none;
}

.flow-route {
  border-radius: 9px;
}

.flow-route:hover {
  transform: none;
}

.value-section.brand-story {
  --ink: #12223c;
  --muted: #5f6f86;
  --muted-2: #637288;
  --line: rgba(18, 34, 60, .12);
  --line-strong: rgba(18, 34, 60, .21);
  --route-accent: #2f63e9;
  padding-block: var(--space-brand);
  background: var(--brand-cloud);
  color: var(--ink);
}

html[data-theme="dark"] .value-section.brand-story {
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --muted-2: var(--color-text-subtle);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --route-accent: var(--color-primary);
  background:
    radial-gradient(circle at 84% 18%, rgba(143, 184, 255, .10), transparent 32rem),
    linear-gradient(180deg, #14243d 0%, #172b46 46%, var(--brand-cloud) 100%);
  box-shadow: inset 0 1px rgba(237, 243, 252, .05);
}

.brand-story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 24px;
}

.brand-story-signature {
  grid-column: 1 / 3;
  align-self: start;
  display: grid;
  gap: 24px;
}

.brand-story-signature img {
  width: clamp(64px, 5vw, 78px);
  height: auto;
  filter: none !important;
}

.brand-story-signature div {
  display: grid;
  gap: 6px;
}

.brand-story-signature strong {
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand-story-signature span {
  max-width: 16ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.brand-story-copy {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0 24px;
}

.brand-story-copy .section-heading {
  grid-column: 1 / -1;
  max-width: 1050px;
  font-size: clamp(4rem, 6.3vw, 6.15rem);
  line-height: .98;
  font-weight: 560;
  letter-spacing: -.04em;
}

.brand-story-title-line {
  display: block;
}

.brand-story-title-line:last-child {
  color: #536783;
  font-weight: 440;
}

html[data-theme="dark"] .brand-story-title-line:last-child {
  color: #b7c1ce;
}

html[data-theme="dark"] .brand-story-signature img {
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(237, 243, 252, .18);
  border-radius: 18px;
  background: rgba(246, 248, 252, .96);
  box-shadow: 0 18px 42px rgba(5, 17, 35, .24);
}

.brand-story-copy .section-copy {
  grid-column: 6 / 10;
  max-width: 430px;
  margin: clamp(46px, 5vw, 76px) 0 0;
  color: var(--muted);
}

.brand-path {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(96px, 10vw, 148px) 0 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.brand-path li {
  position: relative;
  display: grid;
  gap: 10px;
  padding-right: 18px;
}

.brand-path li::before {
  content: "";
  position: absolute;
  top: -39px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--brand-cloud);
  border-radius: 50%;
  background: var(--route-accent);
  box-shadow: 0 0 0 1px var(--route-accent);
}

.brand-path strong {
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 560;
  letter-spacing: -.03em;
}

.brand-path span {
  max-width: 22ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.models-section {
  padding-block: var(--space-proof);
  background: var(--page);
}

.models-section .section-header,
.byok-home .section-header,
.developer-section .section-header,
.product-section .section-header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 24px;
  padding-left: 0;
}

.models-section .section-heading {
  grid-column: 1 / 8;
}

.models-section .section-copy {
  grid-column: 9 / 13;
  align-self: end;
}

.model-catalog-summary {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(0, 2fr) auto;
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  margin: 0 0 54px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.model-catalog-total {
  display: grid;
  gap: 5px;
}

.model-catalog-total strong {
  font-size: clamp(68px, 8vw, 112px);
  line-height: .82;
  font-weight: 540;
  letter-spacing: -.075em;
  color: var(--ink);
}

.model-catalog-total span,
.model-provider-summary > p {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.model-provider-summary > p {
  margin: 0 0 16px;
}

.model-provider-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px 24px;
}

.model-provider-index span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.model-provider-index b {
  color: var(--ink);
  font-weight: 700;
}

.model-catalog-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px 2px;
  border-bottom: 1px solid var(--route-accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-feedback) ease, border-color var(--motion-feedback) ease;
}

.model-catalog-link:hover,
.model-catalog-link:focus-visible {
  color: var(--route-accent);
  border-color: currentColor;
}

.model-card,
.model-card:nth-child(4),
.model-card:nth-child(5) {
  padding-block: 30px;
}

.model-card::after {
  width: 100%;
  background: var(--route-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms var(--ease-out);
}

.model-card:hover,
.model-card:focus-visible {
  background: color-mix(in srgb, var(--surface-mint) 62%, transparent);
  transform: none;
}

.model-card:hover::after,
.model-card:focus-visible::after {
  width: 100%;
  transform: scaleX(1);
}

.model-card.has-retiring .model-count {
  color: var(--rose);
}

.route-statuses {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.route-statuses .route-status {
  margin-left: 0;
}

.route-status.retiring {
  color: var(--rose);
}

dialog {
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

.dialog-body {
  max-height: calc(100dvh - 108px);
  overflow: auto;
  overscroll-behavior: contain;
}

.byok-home {
  padding-block: var(--space-product);
  background: var(--surface-rose);
}

.byok-home .section-header {
  align-items: start;
}

.byok-home .section-heading {
  grid-column: 2 / 11;
  grid-row: 1;
}

.byok-home .section-copy {
  grid-column: 2 / 7;
  grid-row: 2;
  margin-top: 38px;
}

.byok-home-grid {
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(29, 56, 93, .10);
}

.byok-network {
  background-color: var(--page);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
}

.byok-node {
  box-shadow: 0 14px 34px rgba(29, 56, 93, .06);
}

.developer-section {
  padding-block: var(--space-proof);
}

.developer-section .section-heading {
  grid-column: 1 / 9;
}

.developer-section .section-copy {
  grid-column: 9 / 13;
  align-self: end;
}

.code-panel {
  --surface: #132b49;
  --surface-soft: #1a385d;
  --ink: #f2f6fc;
  --muted: #aebcd0;
  --line: rgba(238, 245, 255, .15);
  --line-strong: rgba(238, 245, 255, .24);
  border-radius: 22px;
  background: #132b49;
  box-shadow: 0 28px 82px rgba(19, 43, 73, .18);
}

html[data-theme="dark"] .code-panel {
  background: #1a385d;
  box-shadow: 0 30px 90px rgba(4, 16, 33, .28);
}

.code-tab.is-active {
  color: #a9c7ff;
}

.copy-button {
  min-width: 64px;
}

.product-section {
  padding-block: var(--space-product);
  background: var(--surface-soft);
}

.product-section .console-heading > div {
  grid-column: 5 / 13;
  grid-row: 1;
  min-width: 0;
}

.product-section .section-heading {
  grid-column: auto;
  grid-row: auto;
}

.product-section .section-copy {
  grid-column: 1 / 5;
  grid-row: 1;
  align-self: end;
}

.dashboard {
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(29, 56, 93, .11);
}

.pricing-intro {
  --panel-ink: #f2f6fc;
  --panel-muted: #afbdd0;
  border-color: rgba(238, 245, 255, .17);
  border-radius: 24px;
  background: var(--console);
  box-shadow: 0 34px 96px rgba(19, 43, 73, .17);
}

.pricing-label {
  color: #a9c7ff;
}

html[data-theme="dark"] .pricing-label {
  color: #a9c7ff;
}

.pricing-copy h2 {
  font-size: clamp(3rem, 5.2vw, 5.4rem);
}

.faq-layout {
  grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr);
}

.faq-label {
  color: var(--route-accent);
}

.final-cta {
  min-height: clamp(660px, 82svh, 840px);
  color: #12223c;
}

.final-landscape {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  background-image: url('/assets/optimistic-refresh/hero-sunrise-desktop.webp');
  background-image: image-set(url('/assets/optimistic-refresh/hero-sunrise-desktop.avif') type('image/avif'), url('/assets/optimistic-refresh/hero-sunrise-desktop.webp') type('image/webp'));
  background-position: center 68%;
  background-size: cover;
}

.final-cta::before {
  background: linear-gradient(90deg, rgba(246, 248, 252, .96) 0%, rgba(246, 248, 252, .72) 48%, rgba(246, 248, 252, .18) 80%);
}

html[data-theme="dark"] .final-cta {
  color: #f5f3ee;
}

html[data-theme="dark"] .final-landscape {
  background-image: url('/assets/optimistic-refresh/hero-sunset-desktop.webp');
  background-image: image-set(url('/assets/optimistic-refresh/hero-sunset-desktop.avif') type('image/avif'), url('/assets/optimistic-refresh/hero-sunset-desktop.webp') type('image/webp'));
  background-position: center 62%;
}

html[data-theme="dark"] .final-cta::before {
  background: linear-gradient(90deg, rgba(20, 36, 61, .94) 0%, rgba(20, 36, 61, .74) 48%, rgba(20, 36, 61, .17) 82%);
}

.final-cta-shell {
  padding-bottom: clamp(76px, 9vw, 126px);
}

.final-cta-copy {
  max-width: 790px;
}

.final-cta-copy > p {
  color: currentColor;
  opacity: .72;
}

.final-cta-copy h2 {
  max-width: 760px;
  font-size: clamp(3.4rem, 5.6vw, 5.25rem);
  line-height: .97;
  font-weight: 570;
  letter-spacing: -.04em;
}

.final-cta-copy > span {
  max-width: 540px;
  color: color-mix(in srgb, currentColor 76%, transparent);
}

footer {
  background: var(--page);
}

@keyframes sky-reveal {
  from { clip-path: inset(0 0 18% 0); opacity: .55; }
  to { clip-path: inset(0); opacity: 1; }
}

@keyframes sky-drift {
  from { transform: scale(1.006) translate3d(0, 0, 0); }
  to { transform: scale(1.016) translate3d(-.32%, -.18%, 0); }
}

.js.motion-ready .hero-copy.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js.motion-ready .hero-copy.reveal .hero-title-line,
.js.motion-ready .hero-copy.reveal .eyebrow,
.js.motion-ready .hero-copy.reveal .hero-lede,
.js.motion-ready .hero-copy.reveal .hero-actions {
  opacity: 1;
  transform: translateY(8px);
  transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out);
}

.js.motion-ready .hero-copy.reveal.is-visible .hero-title-line,
.js.motion-ready .hero-copy.reveal.is-visible .eyebrow,
.js.motion-ready .hero-copy.reveal.is-visible .hero-lede,
.js.motion-ready .hero-copy.reveal.is-visible .hero-actions {
  opacity: 1;
  transform: none;
}

.js.motion-ready .hero-copy.reveal .hero-title-line:nth-child(2) { transition-delay: 80ms; }
.js.motion-ready .hero-copy.reveal .hero-lede { transition-delay: 180ms; }
.js.motion-ready .hero-copy.reveal .hero-actions { transition-delay: 220ms; }

@media (max-width: 1180px) {
  .shell { width: min(var(--shell), calc(100% - 56px)); }
  .hero { padding: 0; }
  .hero-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .hero-copy { grid-column: 1 / -1; max-width: none; gap: 0 20px; }
  .hero h1,
  html[lang="en"] .hero h1,
  html[lang^="zh"] .hero h1 { grid-column: 1 / 9; }
  .hero-lede { grid-column: 9 / 13; }
  .hero-actions { grid-column: 1 / 6; }
  .flow-console { grid-column: 1 / 13; width: min(1040px, 100%); margin-inline: auto; }
  .brand-story-signature { grid-column: 1 / 4; }
  .brand-story-copy { grid-column: 4 / 13; }
  .brand-path { grid-column: 4 / 13; }
}

@media (max-width: 980px) {
  :root { --section-space: clamp(104px, 14vw, 144px); }
  .section-header,
  .models-section .section-header,
  .developer-layout,
  .pricing-intro,
  .faq-layout,
  .byok-home .section-header,
  .developer-section .section-header,
  .product-section .section-header {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  .section-header { gap: 34px; }
  .models-section .section-heading,
  .models-section .section-copy,
  .byok-home .section-heading,
  .byok-home .section-copy,
  .developer-section .section-heading,
  .developer-section .section-copy,
  .product-section .console-heading > div,
  .product-section .section-heading,
  .product-section .section-copy {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
  }
  .model-catalog-summary {
    grid-template-columns: minmax(150px, .5fr) minmax(0, 1.5fr);
    gap: 28px 42px;
  }
  .model-catalog-link {
    grid-column: 2;
    justify-self: start;
  }
  .model-provider-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-lede { grid-column: 8 / 13; }
  .brand-story-signature { grid-column: 1 / 4; }
  .brand-story-copy { grid-column: 4 / 13; }
  .brand-story-copy .section-copy { grid-column: 4 / 10; }
  .brand-path { grid-column: 1 / 13; }
}

@media (max-width: 640px) {
  :root {
    --section-space: 96px;
    --type-heading: clamp(2.7rem, 12vw, 3.65rem);
    --type-display: clamp(3.35rem, 15vw, 4.15rem);
  }
  .model-catalog-summary {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 34px;
    padding: 26px 0 28px;
  }
  .model-catalog-total strong { font-size: 76px; }
  .model-provider-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
  .model-catalog-link { grid-column: 1; width: fit-content; }
  .model-card .model-id { display: block; grid-column: 1; grid-row: auto; }
  .route-list-item { align-items: flex-start; flex-direction: column; }
  .route-statuses { margin-left: 0; justify-content: flex-start; }

  .shell { width: min(var(--shell), calc(100% - 36px)); }
  .section-header { gap: 26px; margin-bottom: 54px; }

  .hero::before {
    background: linear-gradient(180deg, rgba(246, 248, 252, .70) 0%, rgba(246, 248, 252, .34) 54%, rgba(246, 248, 252, .72) 100%);
  }

  html[data-theme="dark"] .hero::before {
    background: linear-gradient(180deg, rgba(20, 36, 61, .70) 0%, rgba(20, 36, 61, .34) 54%, rgba(20, 36, 61, .73) 100%);
  }

  .hero-landscape {
    background-image: url('/assets/optimistic-refresh/hero-sunrise-mobile.webp');
    background-image: image-set(url('/assets/optimistic-refresh/hero-sunrise-mobile.avif') type('image/avif'), url('/assets/optimistic-refresh/hero-sunrise-mobile.webp') type('image/webp'));
    background-position: center center;
    transform-origin: 62% 48%;
  }

  html[data-theme="dark"] .hero-landscape {
    background-image: url('/assets/optimistic-refresh/hero-sunset-mobile.webp');
    background-image: image-set(url('/assets/optimistic-refresh/hero-sunset-mobile.avif') type('image/avif'), url('/assets/optimistic-refresh/hero-sunset-mobile.webp') type('image/webp'));
    background-position: center center;
  }

  .hero-layout { display: block; }

  .hero-copy {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(84px, 1fr) auto auto;
    gap: 0;
    padding: 110px 0 34px;
  }

  .hero .eyebrow,
  .hero .hero-signature {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 25px;
    font-size: 12px;
    line-height: 1.45;
  }

  .hero h1,
  html[lang="en"] .hero h1,
  html[lang^="zh"] .hero h1 {
    grid-column: 1;
    grid-row: 2;
    max-width: 100%;
    font-size: clamp(2.5rem, 10.9vw, 3.3rem);
    line-height: .96;
    letter-spacing: -.035em;
  }

  html[lang^="zh"] .hero h1 {
    font-size: clamp(2.55rem, 10.9vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -.025em;
  }

  .hero-title-line:last-child { padding-left: 0; }

  .hero-lede {
    grid-column: 1;
    grid-row: 4;
    align-self: end;
    max-width: 32ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 5;
    align-self: end;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 20px;
    margin-top: 22px;
  }

  .hero .button-primary { width: auto; }
  .hero .text-link { justify-content: flex-start; }

  .flow-console {
    width: 100%;
    margin: 58px 0 94px;
    border-radius: 18px;
  }

  .flow-bar { padding: 0 15px; }
  .flow-count {
    max-width: 17ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .flow-stage { height: auto; }
  .flow-source code {
    min-width: 0;
    max-width: 68%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
  }
  .flow-result code { font-size: 10px; }
  .flow-foot { padding: 10px 15px; }
  .flow-foot span { font-size: 10px; }

  .value-section.brand-story {
    padding-block: 120px;
  }

  .brand-story-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .brand-story-signature,
  .brand-story-copy,
  .brand-path {
    grid-column: 1;
  }

  .brand-story-signature {
    gap: 20px;
  }

  .brand-story-signature img {
    width: 64px;
  }

  .brand-story-signature span {
    max-width: none;
  }

  .brand-story-copy {
    display: block;
    margin-top: 70px;
  }

  .brand-story-copy .section-heading {
    font-size: clamp(2.8rem, 12.4vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -.035em;
  }

  html[lang^="zh"] .brand-story-copy .section-heading {
    font-size: clamp(2.4rem, 10.5vw, 3.25rem);
    letter-spacing: -.025em;
  }

  html[lang^="zh"] .brand-story-title-line {
    white-space: nowrap;
  }

  .brand-story-copy .section-copy {
    max-width: 34ch;
    margin-top: 38px;
  }

  .brand-path {
    display: block;
    margin-top: 72px;
    padding-top: 0;
  }

  .brand-path li {
    gap: 7px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-path li::before {
    display: none;
  }

  .brand-path strong {
    font-size: 29px;
  }

  .final-landscape {
    background-image: url('/assets/optimistic-refresh/hero-sunrise-mobile.webp');
    background-image: image-set(url('/assets/optimistic-refresh/hero-sunrise-mobile.avif') type('image/avif'), url('/assets/optimistic-refresh/hero-sunrise-mobile.webp') type('image/webp'));
    background-position: center 72%;
  }

  html[data-theme="dark"] .final-landscape {
    background-image: url('/assets/optimistic-refresh/hero-sunset-mobile.webp');
    background-image: image-set(url('/assets/optimistic-refresh/hero-sunset-mobile.avif') type('image/avif'), url('/assets/optimistic-refresh/hero-sunset-mobile.webp') type('image/webp'));
    background-position: center 67%;
  }

  .final-cta::before {
    background: linear-gradient(180deg, rgba(246, 248, 252, .18), rgba(246, 248, 252, .88) 56%, rgba(246, 248, 252, .97));
  }

  html[data-theme="dark"] .final-cta::before {
    background: linear-gradient(180deg, rgba(20, 36, 61, .17), rgba(20, 36, 61, .83) 56%, rgba(20, 36, 61, .96));
  }

  .final-cta-copy h2 {
    font-size: clamp(3.1rem, 14vw, 4.25rem);
  }
}

@media (hover: hover) and (pointer: fine) {
  .flow-console { transition: border-color 220ms ease, box-shadow 220ms ease; }
  .flow-console:hover { border-color: rgba(169, 199, 255, .38); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-landscape {
    animation: none;
    clip-path: none;
    opacity: 1;
    transform: none;
  }

  .js.motion-ready .hero-copy.reveal .hero-title-line,
  .js.motion-ready .hero-copy.reveal .eyebrow,
  .js.motion-ready .hero-copy.reveal .hero-lede,
  .js.motion-ready .hero-copy.reveal .hero-actions {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .text-link::before,
  .section-link::before,
  .byok-home-link::before {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Round 3 · Sunlit Wayfinding Experience
   Light opens the path; product motion confirms that a request has arrived.
   -------------------------------------------------------------------------- */

:root {
  --motion-feedback: 160ms;
  --motion-control: 220ms;
  --motion-settle: 560ms;
  --motion-editorial: 840ms;
  --motion-return: 380ms;
  --motion-ambient-light: 18s;
  --ease-enter: cubic-bezier(.16, 1, .3, 1);
  --ease-state: cubic-bezier(.65, 0, .35, 1);
  --light-sunrise: rgba(255, 219, 159, .24);
  --light-sky: rgba(121, 167, 234, .13);
  --route-light: rgba(93, 142, 235, .18);
}

html[data-theme="dark"] {
  --light-sunrise: rgba(240, 163, 84, .17);
  --light-sky: rgba(112, 148, 211, .12);
  --route-light: rgba(143, 184, 255, .16);
}

.hero-atmosphere {
  --light-shift-x: 0px;
  --light-shift-y: 0px;
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.hero-light-field,
.hero-cloud-veil {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: auto;
}

.hero-light-field {
  inset: -18% -14% -12% 18%;
  background:
    radial-gradient(ellipse 48% 44% at 78% 66%, var(--light-sunrise), transparent 72%),
    radial-gradient(ellipse 56% 46% at 70% 24%, var(--light-sky), transparent 76%);
  opacity: .68;
  transform: translate3d(var(--light-shift-x), var(--light-shift-y), 0);
  animation: sunlight-breathe var(--motion-ambient-light) ease-in-out infinite alternate;
}

.hero-cloud-veil {
  inset: -10% -16% 8% 28%;
  background:
    radial-gradient(ellipse 36% 18% at 58% 30%, rgba(255, 255, 255, .16), transparent 74%),
    radial-gradient(ellipse 42% 20% at 78% 56%, rgba(255, 255, 255, .13), transparent 76%),
    radial-gradient(ellipse 34% 16% at 44% 72%, rgba(222, 232, 248, .10), transparent 78%);
  opacity: .55;
  transform: translate3d(var(--light-shift-x), var(--light-shift-y), 0);
  transition: transform var(--motion-return) var(--ease-enter);
}

html[data-theme="dark"] .hero-cloud-veil {
  background:
    radial-gradient(ellipse 38% 18% at 58% 30%, rgba(175, 196, 229, .09), transparent 74%),
    radial-gradient(ellipse 44% 20% at 78% 56%, rgba(244, 188, 120, .08), transparent 76%),
    radial-gradient(ellipse 34% 16% at 44% 72%, rgba(112, 148, 211, .08), transparent 78%);
  opacity: .48;
}

.hero::after {
  transform: scaleX(0);
  transform-origin: left center;
  animation: horizon-open 1100ms 620ms var(--ease-enter) both;
}

.hero .eyebrow::before,
.hero .hero-signature::before {
  transform: scaleX(0);
  transform-origin: left center;
}

.js.motion-ready .hero-copy.reveal.is-visible .eyebrow::before,
.js.motion-ready .hero-copy.reveal.is-visible .hero-signature::before {
  animation: signature-path-open 720ms 100ms var(--ease-enter) forwards;
}

.hero-landscape {
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
}

.experience-ready .hero-landscape,
.experience-ready .hero-light-field,
.experience-ready .hero-cloud-veil {
  animation-play-state: paused;
}

.experience-ready .hero.is-motion-active .hero-landscape,
.experience-ready .hero.is-motion-active .hero-light-field,
.experience-ready .hero.is-motion-active .hero-cloud-veil {
  animation-play-state: running;
}

html.is-page-hidden .hero-landscape,
html.is-page-hidden .hero-light-field,
html.is-page-hidden .hero-cloud-veil {
  animation-play-state: paused !important;
}

.hero .button-primary,
.final-cta .button-primary {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  gap: .68em;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
  transition:
    transform var(--motion-return) var(--ease-enter),
    background var(--motion-feedback) ease,
    border-color var(--motion-feedback) ease,
    box-shadow var(--motion-feedback) ease;
}

.hero .button-primary::after,
.final-cta .button-primary::after {
  content: "\2192";
  display: inline-block;
  font-size: .94em;
  line-height: 1;
  transform: translateX(0);
  transition: transform var(--motion-feedback) var(--ease-enter);
}

.hero .button-primary:hover,
.final-cta .button-primary:hover {
  transform: translate3d(var(--magnetic-x), calc(var(--magnetic-y) - 1px), 0);
}

.hero .button-primary:hover::after,
.final-cta .button-primary:hover::after,
.hero .button-primary:focus-visible::after,
.final-cta .button-primary:focus-visible::after {
  transform: translateX(3px);
}

.hero .button-primary:active,
.final-cta .button-primary:active {
  transform: translate3d(0, 0, 0) scale(.985);
}

.experience-ready .brand-path {
  position: relative;
  border-top-color: transparent;
}

.experience-ready .brand-path::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--route-accent), var(--line-strong) 72%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 960ms var(--ease-enter);
}

.experience-ready .brand-path li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion-settle) ease, transform var(--motion-settle) var(--ease-enter);
}

.experience-ready .brand-path.is-visible::before { transform: scaleX(1); }
.experience-ready .brand-path.is-visible li { opacity: 1; transform: none; }
.experience-ready .brand-path.is-visible li:nth-child(1) { transition-delay: 140ms; }
.experience-ready .brand-path.is-visible li:nth-child(2) { transition-delay: 240ms; }
.experience-ready .brand-path.is-visible li:nth-child(3) { transition-delay: 340ms; }
.experience-ready .brand-path.is-visible li:nth-child(4) { transition-delay: 440ms; }

.byok-gate-wrap { isolation: isolate; }

.byok-route-packet {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--page);
  border-radius: 50%;
  background: var(--route-accent);
  opacity: 0;
  transform: translate3d(-68px, -50%, 0);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--route-accent) 28%, transparent);
}

.byok-gate-node { position: relative; z-index: 1; }

.byok-gate-node::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid color-mix(in srgb, var(--route-accent) 42%, transparent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.82);
}

.experience-ready .byok-home.has-entered .byok-route-packet {
  animation: byok-request-path 2200ms 360ms var(--ease-state) both;
}

.experience-ready .byok-home.has-entered .byok-gate-node::after {
  animation: gate-verify-once 640ms 1240ms var(--ease-enter) both;
}

.flow-packet {
  opacity: 0 !important;
  filter: none !important;
}

.flow-packet.is-running { opacity: 1 !important; }

.flow-source,
.flow-result,
.flow-gate,
.flow-result strong,
.flow-result code {
  transition:
    border-color var(--motion-control) ease,
    opacity var(--motion-control) ease,
    transform var(--motion-control) var(--ease-enter),
    color var(--motion-control) ease;
}

.flow-console.is-routing .flow-source {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line-strong));
}

.flow-console.is-routing:not(.is-response-confirmed) .flow-result strong,
.flow-console.is-routing:not(.is-response-confirmed) .flow-result code {
  opacity: .52;
  transform: translateY(2px);
}

.flow-console.is-gate-verified .flow-gate::after {
  animation: flow-gate-confirm 620ms var(--ease-enter) both;
}

.flow-console.is-response-confirmed .flow-result {
  border-color: color-mix(in srgb, var(--success) 54%, var(--line-strong));
}

.flow-console.is-response-confirmed .flow-result strong,
.flow-console.is-response-confirmed .flow-result code {
  opacity: 1;
  transform: none;
}

.model-card > strong,
.model-card .model-id,
.model-card .model-card-top,
.model-card small {
  transition: transform var(--motion-feedback) var(--ease-enter), color var(--motion-feedback) ease;
}

.model-card:hover,
.model-card:focus-visible {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--route-accent) 12%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--route-accent) 18%, transparent);
}

.code-panel { position: relative; }

.code-panel::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--rose) 60%, var(--accent)), transparent 92%);
  transform: scaleX(0);
  transform-origin: left center;
}

.experience-ready .developer-section.has-entered .code-panel::before {
  animation: code-path-confirm 920ms 360ms var(--ease-enter) forwards;
}

#codeOutput.is-code-settling { animation: code-content-settle 160ms var(--ease-enter); }

.copy-button {
  min-width: 96px;
  white-space: nowrap;
}

.copy-button[data-copy-state="success"] {
  color: #8bd4bd;
  background: rgba(139, 212, 189, .10);
}

.copy-button[data-copy-state="success"]::before { content: "\2713"; margin-right: 6px; }

.copy-button[data-copy-state="error"] {
  color: #f0a9a2;
  background: rgba(240, 169, 162, .08);
}

.copy-button[data-copy-state="pending"] { cursor: progress; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .model-card:hover > strong,
  .model-card:hover .model-id,
  .model-card:hover .model-card-top,
  .model-card:hover small {
    transform: translateX(2px);
  }
}

@media (max-width: 760px) {
  .hero-light-field,
  .hero-cloud-veil {
    animation: none;
    transform: none;
  }

  .hero-light-field { opacity: .48; }
  .hero-cloud-veil { opacity: .34; }

  .experience-ready .hero-landscape {
    animation: sky-reveal 900ms var(--ease-enter) both;
  }

  .byok-route-packet {
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -62px, 0);
  }

  .experience-ready .byok-home.has-entered .byok-route-packet {
    animation-name: byok-request-path-mobile;
  }

  .copy-button { min-width: 82px; }
}

@media (forced-colors: active) {
  .hero-atmosphere { display: none; }
  .experience-ready .brand-path::before,
  .code-panel::before { background: CanvasText; }
  .byok-route-packet { border-color: Canvas; background: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere { display: none; }

  .hero::after,
  .hero .eyebrow::before,
  .hero .hero-signature::before,
  .experience-ready .brand-path::before,
  .code-panel::before {
    animation: none;
    transform: scaleX(1);
  }

  .experience-ready .brand-path li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .byok-route-packet { display: none; }
  .byok-gate-node::after { animation: none !important; }
  .flow-packet { display: none; }
  #codeOutput.is-code-settling { animation: none; }

  .hero .button-primary,
  .final-cta .button-primary,
  .hero .button-primary:hover,
  .final-cta .button-primary:hover {
    --magnetic-x: 0px;
    --magnetic-y: 0px;
    transform: none;
    transition: none;
  }

  .hero .button-primary::after,
  .final-cta .button-primary::after { transition: none; }
}

.experience-save-data .hero-landscape,
.experience-save-data .hero-light-field,
.experience-save-data .hero-cloud-veil {
  animation: none !important;
  transform: none !important;
}

@keyframes sky-drift {
  from { transform: scale(1.006) translate3d(var(--hero-shift-x), var(--hero-shift-y), 0); }
  to { transform: scale(1.016) translate3d(calc(var(--hero-shift-x) - .32%), calc(var(--hero-shift-y) - .18%), 0); }
}

@keyframes sunlight-breathe {
  from { opacity: .48; transform: translate3d(calc(var(--light-shift-x) - .25%), calc(var(--light-shift-y) + .15%), 0) scale(.99); }
  to { opacity: .72; transform: translate3d(calc(var(--light-shift-x) + .3%), calc(var(--light-shift-y) - .2%), 0) scale(1.015); }
}

@keyframes horizon-open {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: .8; transform: scaleX(1); }
}

@keyframes signature-path-open {
  from { opacity: .35; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes byok-request-path {
  0% { opacity: 0; transform: translate3d(-68px, -50%, 0); }
  12% { opacity: 1; }
  48% { opacity: 1; transform: translate3d(-4px, -50%, 0); }
  62% { opacity: 1; transform: translate3d(10px, -50%, 0); }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(68px, -50%, 0); }
}

@keyframes byok-request-path-mobile {
  0% { opacity: 0; transform: translate3d(-50%, -62px, 0); }
  12% { opacity: 1; }
  48% { opacity: 1; transform: translate3d(-50%, -5px, 0); }
  62% { opacity: 1; transform: translate3d(-50%, 9px, 0); }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-50%, 62px, 0); }
}

@keyframes gate-verify-once {
  0% { opacity: 0; transform: scale(.82); }
  45% { opacity: .72; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.16); }
}

@keyframes flow-gate-confirm {
  0% { opacity: .2; transform: scale(.84); }
  50% { opacity: .72; transform: scale(1.04); }
  100% { opacity: .45; transform: scale(1); }
}

@keyframes code-path-confirm {
  from { opacity: .3; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes code-content-settle {
  from { opacity: .5; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   JiayuAPI 1.2 Light Sunrise glare control
   Keeps the dawn image intact while lowering the concentrated highlight.
   -------------------------------------------------------------------------- */

html[data-theme="light"] .hero-landscape {
  filter: brightness(.86) saturate(.92) contrast(1.02);
}

html[data-theme="light"] .hero-light-field {
  opacity: .32;
  animation-name: sunlight-breathe-soft;
}

html[data-theme="light"] .hero-cloud-veil {
  opacity: .27;
}

html[data-theme="light"] .hero-atmosphere::after {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 36% at 82% 67%, rgba(48, 76, 108, .19) 0%, rgba(68, 98, 130, .10) 42%, transparent 76%),
    linear-gradient(180deg, rgba(220, 229, 239, .025), rgba(94, 119, 146, .055));
  mix-blend-mode: multiply;
}

@keyframes sunlight-breathe-soft {
  from {
    opacity: .22;
    transform: translate3d(calc(var(--light-shift-x) - .18%), calc(var(--light-shift-y) + .1%), 0) scale(.995);
  }
  to {
    opacity: .36;
    transform: translate3d(calc(var(--light-shift-x) + .2%), calc(var(--light-shift-y) - .12%), 0) scale(1.008);
  }
}

@media (max-width: 640px) {
  html[data-theme="light"] .hero-landscape {
    filter: brightness(.80) saturate(.88) contrast(1.025);
  }

  html[data-theme="light"] .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(225, 234, 244, .66) 0%,
        rgba(210, 223, 238, .30) 52%,
        rgba(225, 233, 242, .68) 100%
      );
  }

  html[data-theme="light"] .hero-light-field {
    opacity: .24;
  }

  html[data-theme="light"] .hero-cloud-veil {
    opacity: .20;
  }

  html[data-theme="light"] .hero-atmosphere::after {
    background:
      radial-gradient(ellipse 72% 34% at 68% 64%, rgba(45, 73, 105, .22), rgba(66, 97, 130, .10) 48%, transparent 82%),
      linear-gradient(180deg, rgba(70, 98, 127, .045), rgba(70, 98, 127, .08));
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] .hero-light-field {
    animation: none;
    opacity: .28;
  }
}
