/* Homepage theme: original warm paper tone, black-and-white text, AI-native layout, model hub, routing demo, sci-fi light and Apple-style motion. Layered on landing-aurora.css; scoped to .router-home. */
/* shared light-mode resets for hardcoded dark values in the base */
html body.router-home,html[data-theme] body.router-home{color-scheme:light}
html:has(body.router-home){background:var(--a-bg);color-scheme:light}
.router-home .router-main::before{display:none}
.router-home .router-announcement{background:var(--a-bg);border-color:var(--a-line);color:var(--a-mid)}
.router-home .relay-nav{background:color-mix(in srgb,var(--a-bg) 82%,transparent)}
.router-home .relay-nav .router-mobile-nav{background:var(--a-bg)}
.router-home .router-mobile-nav a{color:var(--a-fg)!important}
.router-home .router-menu span{background:var(--a-fg)}
.router-home .language-switch button.active{background:var(--a-fg);color:var(--a-bg)}
.router-home .hero-atmosphere{background:var(--a-bg)}
.router-home .hero-atmosphere::after{background:linear-gradient(180deg,transparent,var(--a-bg))}
.router-home .atmosphere-orb{display:none!important}
.router-home .atmosphere-grain{display:none}
.router-home #routerHeadline{text-shadow:none}
.router-home .router-hero-description{color:var(--a-mid)}
.router-home .router-direct-promise strong{color:var(--a-fg)}
.router-home .endpoint-label{background:var(--a-line);color:var(--a-mid)}
.router-home .copy-status{color:#059669}
.router-home .router-badge i,.router-home .router-live:before{background:#10b981;box-shadow:0 0 0 3px #10b98126}
.router-home .bento-caps div>span:first-child{background:var(--a-bg);border-color:var(--a-line);color:var(--a-fg)}
.router-home .bento-caps div:hover{background:var(--a-bg)}
.router-home .media-feature::before{opacity:.18}
.router-home .media-feature-meta>span:first-child{background:var(--a-bg);color:var(--a-soft)}
.router-home .media-feature-tags li{background:var(--a-bg)}
.router-home .media-availability[data-state="ready"]{color:#059669}.router-home .media-availability[data-state="ready"]::before{background:#10b981;box-shadow:none}
.router-home .media-model-variants{color:var(--a-mid)}
.router-home .model-card-prices{background:var(--a-bg)}
.router-home .model-rate{background:var(--a-bg);color:var(--a-fg);border-color:var(--a-line-hi)}
.router-home .model-card-heading .provider-mark{background:var(--a-bg);border:1px solid var(--a-line)}
.router-home .model-card-status{color:#059669}.router-home .model-card-status i{background:#10b981;box-shadow:none}
.router-home .router-billing p{color:var(--a-mid)}
html body.router-home :is(.telegram-support-fab,.wechat-support-fab){background:color-mix(in srgb,var(--a-glass) 90%,transparent);color:var(--a-fg);box-shadow:0 6px 20px #0000001a}
.router-home :is(.telegram-support-fab,.wechat-support-fab) svg{fill:var(--a-fg)}
.router-home dialog.promo-dialog{background:var(--a-glass);color:var(--a-fg);box-shadow:0 30px 80px #0003}
.router-home dialog.promo-dialog::backdrop{background:#0006}
.router-home .promo-dialog .promo-benefits article{background:var(--a-bg)}
.router-home .router-model-card:hover{box-shadow:0 18px 40px #0000001a}
/* 4. AI-NATIVE: ChatGPT-like calm white, prompt bar as hero, plenty of space */
html body.router-home,html[data-theme] body.router-home{--a-bg:#fff;--a-fg:#0d0d0d;--a-mid:#5d5d5d;--a-dim:#8f8f8f;--a-glass:#f7f7f8;--a-glass-hi:#f7f7f8;--a-line:#ececec;--a-line-hi:#d9d9d9;
  --a-grad:linear-gradient(#0d0d0d,#0d0d0d);--a-on:#fff;--a-btn:#0d0d0d;--a-head:#0d0d0d;--a-soft:#2f2f2f;--a-blur:none;--a-tile-r:20px;
  --router-ink:#0d0d0d;--router-muted:#5d5d5d;--router-border:#ececec;--r-ink:#0d0d0d;--r-muted:#5d5d5d;--r-line:#ececec;--r-paper:#fff;--r-panel:#f7f7f8;background:#fff;
  font-family:ui-sans-serif,-apple-system,"Segoe UI",Inter,"Microsoft YaHei",sans-serif}
.router-home :is(.bento-tile,.media-feature,.router-model-card,.router-billing,.router-badge,.router-direct-promise){background:#f7f7f8;border:0;box-shadow:none}
.router-home .bento-tile:hover,.router-home .router-model-card:hover{transform:none;background:#f0f0f1;box-shadow:none}
.router-home .router-model-card::before{display:none}
.router-home .router-kicker{color:var(--a-dim);font-family:inherit;font-weight:500;letter-spacing:.02em}
.router-home .router-hero{padding:150px 24px 120px}
.router-home #routerHeadline{font-weight:600;letter-spacing:-.03em;font-size:clamp(38px,4.6vw,60px);line-height:1.15}
.router-home .hero-claude,.router-home .hero-codex{font-weight:600}
.router-home .router-hero-description{font-size:18px}
.router-home .router-badge,.router-home .router-direct-promise{background:transparent;box-shadow:0 0 0 1px #ececec}
.router-home .router-button{border-radius:999px;box-shadow:none;background:#0d0d0d;border-color:#0d0d0d;color:#fff}
.router-home .router-button:hover{background:#2f2f2f;color:#fff;box-shadow:none}
/* the prompt bar is the hero */
.router-home .router-endpoint{background:#fff;border:0;border-radius:28px;padding:10px 10px 10px 14px;min-width:min(680px,100%);margin-top:40px;box-shadow:0 0 0 1px #e5e5e5,0 10px 30px #0000000f}
.router-home .router-endpoint::before{display:none}
.router-home .router-endpoint code{font-size:16px;color:#0d0d0d}
.router-home .router-endpoint button{width:44px;height:44px;border-radius:50%;background:#0d0d0d;color:#fff}
.router-home .endpoint-label{border-radius:999px;background:#f4f4f4}
.router-home .router-section,.router-home .media-showcase{padding-top:130px}
/* calm even stack, not bento */
.router-home .bento{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.router-home .bento-client{grid-column:1/-1;grid-row:auto;background:#f7f7f8;grid-template-columns:.9fr 1.3fr}
.router-home .bento-client h2 span{color:var(--a-mid);background:none;-webkit-text-fill-color:currentColor}
.router-home .bento-client .client-screenshot>a{transform:none;border:1px solid #ececec;box-shadow:0 20px 50px #00000014}
.router-home .bento-rate,.router-home .bento-direct{grid-column:span 1;background:#f7f7f8}
.router-home .bento-rate strong,.router-home .bento-direct strong{font-size:52px;font-weight:600;-webkit-text-fill-color:#0d0d0d}
.router-home .bento-code{grid-column:span 2;background:#f7f7f8}
.router-home .bento-code pre{color:#0d0d0d}.router-home .c-acc{color:#0d0d0d;font-weight:700}.router-home .c-str{color:#5d5d5d}
.router-home .code-head i{background:#d9d9d9!important}
.router-home .bento-caps{grid-column:span 1;grid-template-columns:1fr 1fr;align-content:center;background:#f7f7f8}
.router-home .bento-caps div>span:first-child{background:#fff}
.router-home .media-feature::before{display:none}
.router-home .media-feature-copy>a,.router-home .model-card-footer>a{border-color:#d9d9d9}
.router-home .router-facts strong{-webkit-text-fill-color:#0d0d0d}
.router-home .router-billing{background:#f7f7f8}
.router-home .promo-dialog .promo-benefits strong{-webkit-text-fill-color:#0d0d0d}
@media(max-width:1000px){.router-home .bento{grid-template-columns:1fr 1fr}.router-home .bento-code,.router-home .bento-caps{grid-column:1/-1}.router-home .bento-caps{grid-template-columns:repeat(3,1fr)}}
@media(max-width:540px){.router-home .bento{grid-template-columns:1fr}.router-home .bento-caps{grid-template-columns:1fr 1fr}.router-home .router-hero{padding:90px 19px 70px}}

/* ===== Motion layer: sci-fi light effects + Apple-style scroll animation ===== */
@property --ai-ang{syntax:"<angle>";inherits:false;initial-value:0deg}

/* scroll progress line under the nav */
.router-home .relay-nav::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;transform-origin:left;transform:scaleX(var(--page-progress,0));
  background:#0d0d0d;pointer-events:none}

/* hero: perspective grid floor + soft horizon glow */
.router-home .router-hero{overflow:hidden}
.router-home .hero-atmosphere .atmosphere-grain{display:block;position:absolute;left:-50%;right:-50%;top:auto;bottom:-10%;height:70%;opacity:1;
  background-image:linear-gradient(#0d0d0d14 1px,transparent 1px),linear-gradient(90deg,#0d0d0d14 1px,transparent 1px);background-size:72px 72px;
  transform:perspective(700px) rotateX(62deg);transform-origin:center bottom;animation:aiGridFlow 9s linear infinite;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 45%,#000 70%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0%,#000 45%,#000 70%,transparent 100%)}
.router-home .hero-atmosphere .atmosphere-orb.violet{display:block!important;position:absolute;left:15%;right:15%;width:auto;top:auto;bottom:6%;height:38%;opacity:.4;filter:blur(80px);mix-blend-mode:normal;
  background:radial-gradient(50% 50% at 30% 60%,#93c5fd,transparent 70%),radial-gradient(45% 50% at 70% 55%,#d8b4fe,transparent 70%),radial-gradient(40% 40% at 50% 80%,#fbcfe8,transparent 70%);
  animation:aiHorizon 12s ease-in-out infinite alternate}
.router-home .hero-atmosphere::after{height:22%}

/* headline: Apple-style shine sweeping across the highlighted words */
.router-home .hero-claude,.router-home .hero-codex{-webkit-text-fill-color:transparent;background-image:linear-gradient(100deg,#0d0d0d 40%,#a3a3a3 50%,#0d0d0d 60%);
  background-size:300% 100%;background-position:100% 0;animation:aiShine 7s cubic-bezier(.6,0,.3,1) 1.2s infinite}
.router-home .hero-codex{animation-delay:1.5s}

/* hero recedes as you scroll (Apple product-page style) */
.router-home .router-hero-content{transform:translateY(calc(var(--hero-p,0) * -70px)) scale(calc(1 - var(--hero-p,0) * .07));opacity:calc(1 - var(--hero-p,0) * .9);will-change:transform,opacity}

/* prompt bar: Apple Intelligence–style living edge glow + blinking caret */
.router-home .router-endpoint{position:relative;isolation:auto}
/* let the entrance animation end without leaving a stacking context, so the glow stays behind the bar */
.router-home .router-endpoint.hero-enter{animation-fill-mode:backwards}
.router-home .router-endpoint::before{display:block;content:"";position:absolute;inset:-3px;border-radius:31px;z-index:-1;padding:0;opacity:.6;filter:blur(16px);
  background:conic-gradient(from var(--ai-ang),#60a5fa,#a78bfa,#f472b6,#fb923c,#facc15,#34d399,#60a5fa);-webkit-mask:none;mask:none;animation:aiSpin 5s linear infinite}
.router-home .router-endpoint::after{content:"";position:absolute;inset:-1.5px;border-radius:29.5px;padding:1.5px;pointer-events:none;
  background:conic-gradient(from var(--ai-ang),#60a5fa,#a78bfa,#f472b6,#fb923c,#facc15,#34d399,#60a5fa);animation:aiSpin 5s linear infinite;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.router-home .router-endpoint code::after{content:"";display:inline-block;width:2px;height:1.05em;margin-left:5px;vertical-align:-.18em;background:#0d0d0d;animation:aiCaret 1.1s steps(1) infinite}
.router-home .router-endpoint button{transition:transform .2s}.router-home .router-endpoint button:hover{transform:scale(1.08)}

/* scroll reveal: rise, unblur, settle — staggered */
.router-home .ai-reveal{opacity:0;transform:translateY(56px) scale(.965);filter:blur(10px);
  transition:opacity .9s cubic-bezier(.16,1,.3,1),transform 1.2s cubic-bezier(.16,1,.3,1),filter .9s cubic-bezier(.16,1,.3,1);transition-delay:calc(var(--i,0) * 90ms)}
.router-home .ai-reveal.is-in{opacity:1;transform:none;filter:none}

/* desktop screenshot tilts up into place as it scrolls in */
.router-home .bento-client .client-screenshot{perspective:1600px}
.router-home .bento-client .client-screenshot>a{transform:rotateX(calc((1 - var(--tilt,1)) * 24deg)) scale(calc(.9 + var(--tilt,1) * .1));transform-origin:center bottom;transition:transform .1s linear}

/* cursor spotlight on cards (sci-fi glass sheen) */
.router-home :is(.bento-tile,.router-model-card,.media-feature){position:relative;overflow:hidden}
.router-home :is(.bento-tile,.router-model-card,.media-feature)::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .3s;
  background:radial-gradient(360px circle at var(--mx,50%) var(--my,50%),#a78bfa1f,#60a5fa12 35%,transparent 65%)}
.router-home :is(.bento-tile,.router-model-card,.media-feature):hover::after{opacity:1}
.router-home .bento-code::after{background:radial-gradient(360px circle at var(--mx,50%) var(--my,50%),#60a5fa1a,transparent 60%)}

/* live dot in the rate / direct tiles */
.router-home .bento-direct .router-kicker::before,.router-home .bento-rate .router-kicker::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:8px;vertical-align:1px;background:#10b981;box-shadow:0 0 0 0 #10b98166;animation:aiPulse 2.4s ease-out infinite}

@keyframes aiSpin{to{--ai-ang:360deg}}
@keyframes aiCaret{0%,49%{opacity:1}50%,100%{opacity:0}}
@keyframes aiShine{0%,45%{background-position:100% 0}75%,100%{background-position:0 0}}
@keyframes aiGridFlow{from{background-position:0 0}to{background-position:0 72px}}
@keyframes aiHorizon{from{transform:translateX(-4%) scale(1)}to{transform:translateX(4%) scale(1.08)}}
@keyframes aiPulse{0%{box-shadow:0 0 0 0 #10b98166}80%,100%{box-shadow:0 0 0 8px #10b98100}}

@media(prefers-reduced-motion:reduce){
  .router-home .ai-reveal{opacity:1;transform:none;filter:none;transition:none}
  .router-home .router-hero-content{transform:none;opacity:1}
  .router-home .bento-client .client-screenshot>a{transform:none}
  .router-home :is(.router-endpoint::before,.router-endpoint::after,.atmosphere-grain,.atmosphere-orb,.hero-claude,.hero-codex){animation:none!important}
  .router-home .hero-claude,.router-home .hero-codex{background-position:50% 0}
}


/* ===== Price statement: giant numbers, no cards ===== */
.router-home .ai-stats{text-align:center;padding-top:170px}
.router-home .ai-statement{margin:0;font-size:clamp(40px,6vw,88px);font-weight:600;letter-spacing:-.045em;line-height:1.06;color:#0d0d0d}
.router-home .ai-statement span{display:block}
.router-home .ai-statement span+span{color:#8f8f8f}
.router-home .ai-stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:90px}
.router-home .ai-stat{padding:10px 24px;display:flex;flex-direction:column;align-items:center;gap:10px}
.router-home .ai-stat+.ai-stat{border-left:1px solid #ececec}
.router-home .ai-stat strong{font-size:clamp(56px,7vw,108px);font-weight:600;letter-spacing:-.055em;line-height:1;font-variant-numeric:tabular-nums;color:#0d0d0d}
.router-home .ai-stat span{font:600 12px var(--mono);letter-spacing:.18em;color:#8f8f8f;margin-top:8px}
.router-home .ai-stat p{margin:0;color:var(--a-mid);font-size:14px}

/* ===== Three steps with a line that draws as you scroll ===== */
.router-home .ai-steps{padding-top:170px}
.router-home .ai-step-list{position:relative;list-style:none;margin:56px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.router-home .ai-step-list::before,.router-home .ai-step-list::after{content:"";position:absolute;left:28px;right:28px;top:28px;height:2px;border-radius:2px;background:#ececec}
.router-home .ai-step-list::after{background:#0d0d0d;transform-origin:left;transform:scaleX(var(--steps-p,0))}
.router-home .ai-step-list li{position:relative;z-index:1}
.router-home .ai-step-list b{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #e5e5e5,0 6px 20px #0000000d;font:600 14px var(--mono);color:#0d0d0d;transition:box-shadow .5s,background .5s,color .5s}
.router-home .ai-step-list li.is-lit b{background:#0d0d0d;color:#fff;box-shadow:0 0 0 4px #0d0d0d14,0 8px 24px #0000001f}
.router-home .ai-step-list h3{margin:28px 0 8px;font-size:24px;font-weight:600;letter-spacing:-.025em;color:#0d0d0d}
.router-home .ai-step-list p{margin:0;color:var(--a-mid);font-size:15px;line-height:1.7;max-width:300px}

/* ===== Sticky intro + feature list that lights up as it passes the centre ===== */
.router-home .ai-features{padding-top:170px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:80px;align-items:start}
.router-home .ai-features-intro{position:sticky;top:150px}
.router-home .ai-features-intro h2{font-size:clamp(36px,4.4vw,60px);line-height:1.1;margin:16px 0 18px}
.router-home .ai-features-intro p{color:var(--a-mid);font-size:17px;line-height:1.7;margin:0 0 30px;max-width:360px}
.router-home .ai-features-intro .router-button{min-height:46px;padding:0 24px;font-size:14px}
.router-home .ai-feature-list{list-style:none;margin:0;padding:0}
.router-home .ai-feature-list li{display:grid;grid-template-columns:52px 1fr;gap:22px;padding:34px 0;border-top:1px solid #ececec;transition:opacity .5s}
.router-home.ai-motion .ai-feature-list li{opacity:.28}
.router-home .ai-feature-list li:last-child{border-bottom:1px solid #ececec}
.router-home.ai-motion .ai-feature-list li.is-active{opacity:1}
.router-home .ai-feature-list li>span{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#f7f7f8;font-size:20px;color:#0d0d0d;transition:background .5s,color .5s}
.router-home .ai-feature-list li.is-active>span{background:#0d0d0d;color:#fff}
.router-home .ai-feature-list h3{margin:4px 0 8px;font-size:24px;font-weight:600;letter-spacing:-.025em;color:#0d0d0d}
.router-home .ai-feature-list p{margin:0;color:var(--a-mid);font-size:16px;line-height:1.7}

/* ===== Desktop client: open layout, no box ===== */
.router-home .bento{padding-top:170px}
.router-home .bento-client{background:none!important;padding:0;gap:56px;box-shadow:none;overflow:visible}
.router-home .bento-client:hover{background:none}
.router-home .bento-client::after{display:none}
.router-home .bento-client h2{font-size:clamp(34px,3.8vw,52px)}
.router-home .bento-client p{font-size:16px;max-width:340px}
.router-home .bento-client .client-screenshot>a{border-radius:18px}

/* ===== Closing call to action ===== */
.router-home .router-billing{grid-template-columns:1fr;justify-items:center;text-align:center;gap:34px;padding:110px 40px;margin:150px auto 90px;border-radius:32px;position:relative;overflow:hidden;
  background:#0d0d0d!important;color:#fff}
.router-home .router-billing::before{content:"";position:absolute;left:50%;top:100%;width:900px;height:520px;transform:translate(-50%,-45%);border-radius:50%;filter:blur(90px);opacity:.55;pointer-events:none;
  background:conic-gradient(from var(--ai-ang),#60a5fa,#a78bfa,#f472b6,#fb923c,#60a5fa);animation:aiSpin 10s linear infinite}
.router-home .router-billing::after{display:none}
.router-home .router-billing>*{position:relative}
.router-home .router-billing .router-kicker{color:#a1a1aa}
.router-home .router-billing h2{color:#fff;font-size:clamp(34px,4.6vw,64px);line-height:1.1;letter-spacing:-.04em}
.router-home .router-billing h2 span{display:block}
.router-home .router-billing p{color:#a1a1aa;font-size:16px;margin:0 auto}
.router-home .router-billing .billing-tools{display:flex;flex-direction:column;align-items:center;gap:18px}
.router-home .router-billing .billing-actions{justify-content:center}
.router-home .router-billing .router-button{background:#fff;border-color:#fff;color:#0d0d0d;min-height:50px;padding:0 28px;font-size:15px}
.router-home .router-billing .router-button:hover{background:#fff;color:#0d0d0d;box-shadow:0 0 0 4px #ffffff33}
.router-home .router-billing .router-text-link{color:#e4e4e7}.router-home .router-billing .router-text-link:hover{color:#fff}
.router-home .router-billing .billing-note{color:#71717a;justify-content:center}.router-home .router-billing .billing-note i{background:#52525b}

@media(max-width:900px){
  .router-home .ai-features{grid-template-columns:1fr;gap:30px}
  .router-home .ai-features-intro{position:static}
  .router-home.ai-motion .ai-feature-list li{opacity:1}
}
@media(max-width:760px){
  .router-home .ai-stat-row{grid-template-columns:1fr;gap:44px;margin-top:60px}
  .router-home .ai-stat+.ai-stat{border-left:0}
  .router-home .ai-step-list{grid-template-columns:1fr;gap:34px}
  .router-home .ai-step-list::before,.router-home .ai-step-list::after{left:27px;right:auto;top:28px;bottom:28px;width:2px;height:auto}
  .router-home .ai-step-list::after{transform-origin:top;transform:scaleY(var(--steps-p,0))}
  .router-home .ai-step-list li{display:grid;grid-template-columns:56px 1fr;column-gap:20px}
  .router-home .ai-step-list h3{margin:12px 0 6px}
  .router-home .ai-step-list li>p{grid-column:2}
  .router-home :is(.ai-stats,.ai-steps,.ai-features,.bento){padding-top:110px}
  .router-home .router-billing{padding:70px 24px;margin:100px 19px 60px;border-radius:24px}
}
@media(prefers-reduced-motion:reduce){
  .router-home .ai-feature-list li{opacity:1}
  .router-home .ai-step-list::after{transform:none}
  .router-home .router-billing::before{animation:none}
}
@media(max-width:1000px){.router-home .bento-client{grid-template-columns:1fr;gap:36px}.router-home .bento-client .client-screenshot{margin:0}.router-home .bento-client .client-screenshot>a{border-right:1px solid #ececec}}

/* official marks next to the price labels */
.router-home .ai-stat span{display:inline-flex;align-items:center;gap:8px}
.router-home .ai-stat span img{width:20px;height:20px;border-radius:5px;flex:none}

/* model directory entry under the live pricing heading */
.router-home .router-pricing .models-entry{margin-top:24px;min-height:44px;padding:0 22px;font-size:14px;gap:12px}

/* ===== Warm paper palette: the homepage's original tone (paper, ink, copper, orange/blue light) ===== */
html body.router-home,html[data-theme] body.router-home{--a-bg:#fdfdf9;--a-fg:#242522;--a-mid:#777871;--a-dim:#9a9b91;--a-glass:#fffffc;--a-glass-hi:#fffffc;--a-line:#e7e7e1;--a-line-hi:#d4d4cb;
  --a-on:#fff;--a-btn:#252522;--a-head:#242522;--a-soft:#4a4b44;--a-copper:#a77556;
  --router-ink:#242522;--router-muted:#777871;--router-border:#e7e7e1;--r-ink:#242522;--r-muted:#777871;--r-line:#e7e7e1;--r-paper:#fdfdf9;--r-panel:#fffffc;--r-accent:#a77556;background:#fdfdf9}
html:has(body.router-home){background:#fdfdf9}
.router-home ::selection{background:#e7a07655;color:#242522}

/* nav + announcement */
.router-home .router-announcement{background:#252522;color:#f6f0e8;border:0}
.router-home .router-announcement strong{color:#f1bd94;-webkit-text-fill-color:#f1bd94;background:none}
.router-home .announcement-star{color:#d6a482}
.router-home .relay-nav{background:#fdfdf9e8}
.router-home .relay-nav .router-links a:hover,.router-home .relay-nav .router-links a.active{color:#a36d4e}
.router-home .relay-nav::after{background:#a77556}
.router-home .router-kicker{color:#9a8e7d}

/* hero: the original warm/cool light */
.router-home .hero-atmosphere{background:linear-gradient(180deg,#fdfdf9 0%,#fcf9f4 29%,#f5ede2 100%)}
.router-home .hero-atmosphere::after{background:linear-gradient(180deg,transparent,#fdfdf9)}
.router-home .hero-atmosphere .atmosphere-orb.warm{display:block!important;position:absolute;width:75%;height:90%;left:5%;top:41%;opacity:1;filter:blur(65px);mix-blend-mode:normal;
  background:radial-gradient(ellipse,#e7a076bd 0%,#edbda68c 33%,#f2d3b83d 63%,transparent 73%);animation:warmDrift 19s ease-in-out infinite alternate}
.router-home .hero-atmosphere .atmosphere-orb.cool{display:block!important;position:absolute;width:55%;height:115%;right:-16%;left:auto;top:9%;opacity:1;filter:blur(65px);mix-blend-mode:normal;
  background:radial-gradient(ellipse,#a5bfdfa8 0%,#bdd4e66b 36%,transparent 70%);animation:coolDrift 23s ease-in-out infinite alternate}
.router-home .hero-atmosphere .atmosphere-orb.violet{display:none!important}
.router-home .hero-atmosphere .atmosphere-grain{background-image:linear-gradient(#a7755612 1px,transparent 1px),linear-gradient(90deg,#a7755612 1px,transparent 1px)}
.router-home #routerHeadline{color:#242522}
.router-home .hero-claude,.router-home .hero-codex{font-weight:650;animation:none;background-size:100% 100%;background-position:0 0}
.router-home .hero-claude{background-image:linear-gradient(100deg,#d9592a 0%,#ee7f3f 48%,#f7b98a 100%)}
.router-home .hero-codex{background-image:linear-gradient(100deg,#1663e0 0%,#3d8af2 50%,#a8cdf8 100%)}
.router-home .router-badge{background:#ffffff80;box-shadow:0 0 0 1px #dbd9cfb3}
.router-home .router-badge i,.router-home .router-live:before{background:#6c9b76;box-shadow:0 0 0 3px #6c9b7610}
.router-home .router-direct-promise{background:rgba(167,117,86,.07);box-shadow:0 0 0 1px rgba(167,117,86,.32);color:#6f6a60}
.router-home .router-direct-promise strong{color:#a77556}
.router-home .router-button{background:#252522;border-color:#252522;color:#fff}
.router-home .router-button:hover{background:#43443c;color:#fff}
.router-home .router-text-link:hover{color:#a77556}

/* prompt bar: warm paper with an orange-to-blue living edge */
.router-home .router-endpoint{background:#fffcf7;box-shadow:0 0 0 1px #e8dfd3,0 10px 30px #b68d6e14}
.router-home .router-endpoint::before{opacity:.5;background:conic-gradient(from var(--ai-ang),#e7a076,#f7b98a,#a5bfdf,#4f88d0,#a5bfdf,#f7b98a,#e7a076)}
.router-home .router-endpoint::after{background:conic-gradient(from var(--ai-ang),#e7a076,#f7b98a,#a5bfdf,#4f88d0,#a5bfdf,#f7b98a,#e7a076)}
.router-home .router-endpoint code{color:#4a4b44}
.router-home .router-endpoint code::after{background:#a77556}
.router-home .router-endpoint button{background:#252522}
.router-home .endpoint-label{background:#f4ece2;color:#a77556}
.router-home .copy-status{color:#6a7d5b}

/* price statement, steps, features */
.router-home .ai-statement{color:#242522}
.router-home .ai-statement span+span{color:#a77556}
.router-home .ai-stat strong{color:#242522}
.router-home .ai-stat+.ai-stat{border-color:#e7e7e1}
.router-home .ai-stat span{color:#9a8e7d}
.router-home .ai-step-list::before{background:#e7e7e1}
.router-home .ai-step-list::after{background:#a77556}
.router-home .ai-step-list b{background:#fffffc;box-shadow:0 0 0 1px #e4e2d9,0 6px 20px #66574008;color:#242522}
.router-home .ai-step-list li.is-lit b{background:#252522;color:#fff;box-shadow:0 0 0 4px #a7755624,0 8px 24px #a7755626}
.router-home .ai-feature-list li{border-color:#e7e7e1}
.router-home .ai-feature-list li>span{background:#f4f3ed;color:#242522}
.router-home .ai-feature-list li.is-active>span{background:#252522;color:#f1bd94}

/* cards back to the original paper-with-border look */
.router-home :is(.media-feature,.router-model-card){background:#fffffc;box-shadow:0 0 0 1px #e7e7e1}
.router-home .router-model-card:hover,.router-home .media-feature:hover{background:#fffffc;box-shadow:0 0 0 1px #d4c4b3,0 12px 24px #66574010}
.router-home :is(.bento-tile,.router-model-card,.media-feature)::after{background:radial-gradient(360px circle at var(--mx,50%) var(--my,50%),#e7a0761a,#a5bfdf14 40%,transparent 65%)}
.router-home .model-card-prices{background:#f9f8f2;box-shadow:inset 0 0 0 1px #eeeee7}
.router-home .model-rate{background:#f8f4eb;color:#a37f5a;border-color:#e4d9c6}
.router-home .model-card-status{color:#6d8063}.router-home .model-card-status i{background:#81a275}
.router-home .media-feature-meta>span:first-child,.router-home .media-feature-tags li{background:#f9f9f2;color:#8b8e7a}
.router-home .media-availability[data-state="ready"]{color:#6d8063}.router-home .media-availability[data-state="ready"]::before{background:#7c9b70}
.router-home .bento-client h2 span{color:#a77556}
.router-home .bento-client .client-screenshot>a{border-color:#e4e0d6;box-shadow:0 30px 60px #5e593724}

/* closing banner: warm ink with the hero's orange/blue light */
.router-home .router-billing{background:#252522!important}
.router-home .router-billing::before{opacity:.45;background:conic-gradient(from var(--ai-ang),#e7a076,#f7b98a,#a5bfdf,#4f88d0,#a5bfdf,#e7a076)}
.router-home .router-billing .router-kicker{color:#d6a482}
.router-home .router-billing p{color:#b9b7ad}
.router-home .router-billing .router-text-link{color:#f1e6da}
.router-home .router-billing .billing-note{color:#8d8b80}

/* footer and floating buttons */
.router-home .router-footer a:hover{color:#a77556}
html body.router-home :is(.telegram-support-fab,.wechat-support-fab){background:#fffffbea;box-shadow:0 0 0 1px #d4dbc9,0 4px 18px #343b2110;color:#717a61}
.router-home :is(.telegram-support-fab,.wechat-support-fab) svg{fill:#7d927c}

/* ===== Text in black and white only (background tone stays warm) ===== */
.router-home .hero-claude,.router-home .hero-codex{background:none!important;-webkit-text-fill-color:#242522;color:#242522}
.router-home .router-announcement strong{color:#fff;-webkit-text-fill-color:#fff}
.router-home .relay-nav .router-links a:hover,.router-home .relay-nav .router-links a.active{color:#242522}
.router-home .relay-nav::after{background:#242522}
.router-home .router-kicker{color:#8a8a85}
.router-home .router-direct-promise{background:#ffffffb3;box-shadow:0 0 0 1px #dcdcd4;color:#55564f}
.router-home .router-direct-promise strong{color:#242522}
.router-home .router-text-link:hover{color:#242522}
.router-home .endpoint-label{background:#f1f1ec;color:#6b6c66}
.router-home .router-endpoint code::after{background:#242522}
.router-home .ai-statement span+span,.router-home .bento-client h2 span{color:#9a9a94}
.router-home .ai-stat span{color:#8a8a85}
.router-home .ai-step-list::after{background:#242522}
.router-home .ai-feature-list li.is-active>span{color:#fff}
.router-home .model-rate{background:#f4f4f0;color:#242522;border-color:#e0e0d8}
.router-home .router-billing .router-kicker{color:#a3a39c}
.router-home .router-footer a:hover{color:#242522}
.router-home .router-announcement{color:#c9c9c3}.router-home .router-announcement .announcement-star{color:#fff}

/* ===== Hub: models on the left, Codexy routing in the middle, tools on the right ===== */
.router-home .hub{padding-top:140px}
.router-home .hub-map{position:relative;margin-top:40px;aspect-ratio:1200/440;border-radius:28px;overflow:hidden;
  background:radial-gradient(60% 70% at 50% 50%,#fff5ea 0%,transparent 70%),radial-gradient(45% 60% at 8% 30%,#f7e4d2 0%,transparent 70%),radial-gradient(45% 60% at 95% 75%,#dde6f2 0%,transparent 70%),#fbf8f2;
  box-shadow:inset 0 0 0 1px #24252212}
.router-home .hub-lines{position:absolute;inset:0;width:100%;height:100%}
.router-home .hub-lines path{fill:none;vector-effect:non-scaling-stroke}
.router-home .hub-line{stroke:#2425222e;stroke-width:1.2}
.router-home .hub-flow{stroke-width:2.4;stroke-linecap:round;stroke-dasharray:14 100;stroke-dashoffset:114;opacity:0;animation:hubFlow 3.2s cubic-bezier(.45,.05,.35,1) var(--d,0s) infinite}
.router-home .hub-flow-0{stroke:#f0a070;filter:drop-shadow(0 0 4px #f0a070)}
.router-home .hub-flow-1{stroke:#8fb3e8;filter:drop-shadow(0 0 4px #8fb3e8)}
.router-home .hub-flow-2{stroke:#c9a7ee;filter:drop-shadow(0 0 4px #c9a7ee)}
.router-home .hub-node{position:absolute;top:var(--y);display:inline-flex;align-items:center;gap:10px;padding:10px 16px;transform:translateY(-50%);border-radius:10px;
  background:#ffffffd9;box-shadow:0 0 0 1px #2425221a,0 6px 18px #5e59370f;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  font-size:17px;font-weight:650;color:#242522;white-space:nowrap}
.router-home .hub-node img,.router-home .hub-node svg{width:24px;height:24px;flex:none;color:#242522}
.router-home .hub-left{left:4%}
.router-home .hub-right{right:4%}
.router-home .hub-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;justify-items:center}
.router-home .hub-core-disc{position:relative;display:grid;place-items:center;width:96px;height:96px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%,#fff 0%,#fff6ee 45%,#f7d9c2 100%);box-shadow:0 0 0 1px #ffffff,0 14px 40px #e7a07640,0 0 60px #a5bfdf55}
.router-home .hub-core-disc img{border-radius:12px}
.router-home .hub-core-ring{position:absolute;top:0;left:50%;width:96px;height:96px;margin-left:-48px;border-radius:50%;box-shadow:0 0 0 1px #e7a07688;animation:hubRing 2.8s ease-out infinite}
.router-home .hub-core-label{position:absolute;top:108px;display:inline-flex;align-items:center;gap:8px;font-size:15px;color:#242522;white-space:nowrap}
.router-home .hub-core-label::before{content:"";width:8px;height:8px;border-radius:50%;background:#242522;box-shadow:0 0 0 3px #2425221a}
.router-home .hub-caption{position:absolute;font-size:13px;color:#6b6c66;white-space:nowrap}
.router-home .hub-caption-left{left:4%;top:5%;display:inline-flex;align-items:center;gap:8px}
.router-home .hub-caption-left::before{content:"";width:8px;height:8px;background:#242522;opacity:.55}
.router-home .hub-caption-right{right:4%;bottom:5%;display:inline-flex;align-items:center;gap:12px}
.router-home .hub-caption-right::before,.router-home .hub-caption-right::after{content:"";width:18px;height:1px;background:#24252255}

/* entrance: lines draw in, nodes slide in from the sides, then light starts flowing */
.router-home.ai-motion .hub-map:not(.is-in) .hub-line{stroke-dasharray:100;stroke-dashoffset:100}
.router-home.ai-motion .hub-map.is-in .hub-line{stroke-dasharray:100;animation:hubDraw 1.1s cubic-bezier(.4,.05,.2,1) both}
.router-home.ai-motion .hub-map:not(.is-in) .hub-flow{animation-play-state:paused}
.router-home.ai-motion .hub-map .hub-node{opacity:0;transition:opacity .6s ease,transform .7s cubic-bezier(.16,1,.3,1);transition-delay:calc(.35s + var(--i) * .1s)}
.router-home.ai-motion .hub-map .hub-left{transform:translate(-24px,-50%)}
.router-home.ai-motion .hub-map .hub-right{transform:translate(24px,-50%)}
.router-home.ai-motion .hub-map.is-in .hub-node{opacity:1;transform:translateY(-50%)}
.router-home.ai-motion .hub-map .hub-core{opacity:0;transform:translate(-50%,-50%) scale(.8);transition:opacity .6s ease .1s,transform .8s cubic-bezier(.2,.9,.3,1.2) .1s}
.router-home.ai-motion .hub-map.is-in .hub-core{opacity:1;transform:translate(-50%,-50%)}

@keyframes hubFlow{0%{stroke-dashoffset:114;opacity:0}10%{opacity:1}85%{opacity:1}100%{stroke-dashoffset:0;opacity:0}}
@keyframes hubDraw{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@keyframes hubRing{0%{transform:scale(1);opacity:1}100%{transform:scale(1.7);opacity:0}}

@media(max-width:1000px){.router-home .hub-node{font-size:14px;padding:8px 12px;gap:8px}.router-home .hub-node img,.router-home .hub-node svg{width:20px;height:20px}.router-home .hub-core-disc,.router-home .hub-core-ring{width:76px;height:76px}.router-home .hub-core-ring{margin-left:-38px}.router-home .hub-core-label{top:86px}}
@media(max-width:760px){
  .router-home .hub{padding-top:100px}
  .router-home .hub-map{aspect-ratio:auto;display:flex;flex-direction:column;align-items:center;gap:12px;padding:28px 18px}
  .router-home .hub-lines{display:none}
  .router-home .hub-node,.router-home .hub-core,.router-home .hub-caption{position:static;transform:none!important}
  .router-home .hub-core{order:5;margin:18px 0 34px}
  .router-home .hub-core-label{position:static;margin-top:12px}
  .router-home .hub-core-ring{left:50%}
  .router-home .hub-left{order:2}.router-home .hub-caption-left{order:1}
  .router-home .hub-right{order:6}.router-home .hub-caption-right{order:7}
}
@media(prefers-reduced-motion:reduce){.router-home .hub-flow,.router-home .hub-core-ring{animation:none;opacity:0}}

/* Telegram support button keeps its brand blue */
html body.router-home .telegram-support-fab svg{fill:#229ed9}

/* ===== Routing demo: a request fans out to the pool, skips a bad account, lands on a good one ===== */
.router-home .rd{--rd-ink:#242522;--rd-hair:#24252214;--rd-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding-top:130px}
.router-home .rd .router-section-heading p{max-width:620px;margin:0 auto}
.router-home .rd-stage{margin-top:44px;border:1px solid var(--rd-hair);background:#ffffff73}
.router-home .rd-tabs{display:flex;gap:6px;padding:14px 14px 0}
.router-home .rd-tab{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border:0;border-radius:4px;background:none;color:#24252299;font-size:14px;cursor:pointer;transition:color .18s,background .18s}
.router-home .rd-tab img{width:16px;height:16px}
.router-home .rd-tab:hover{color:var(--rd-ink)}
.router-home .rd-tab[aria-selected=true]{color:var(--rd-ink);font-weight:600;background:#2425220f}
.router-home .rd-tab-bar{position:absolute;left:0;right:0;bottom:0;height:2px;background:#24252261;transform:scaleX(0);transform-origin:left}
.router-home .rd-tab[aria-selected=true] .rd-tab-bar.run{animation:rdBar var(--rd-ms,5200ms) linear forwards}
.router-home .rd-panel{position:relative;display:grid;grid-template-columns:minmax(0,260px) minmax(28px,64px) auto minmax(110px,190px) minmax(300px,1fr);align-items:center;min-height:440px;padding:30px clamp(24px,4vw,56px) 44px;
  background-image:radial-gradient(#24252217 1px,transparent 1px);background-size:26px 26px}
.router-home .rd-panel[hidden]{display:none}
.router-home .rd-app{padding:20px 22px 40px;border:1px solid var(--rd-hair);border-radius:14px;background:#fff;box-shadow:0 1px 2px #24252208;
  -webkit-mask-image:linear-gradient(180deg,#000 60%,transparent);mask-image:linear-gradient(180deg,#000 60%,transparent)}
.router-home .rd-app-dots{display:flex;gap:7px;margin-bottom:18px}.router-home .rd-app-dots i{width:9px;height:9px;border-radius:50%;background:#24252217}
.router-home .rd-app b{display:block;margin-bottom:16px;font-size:28px;font-weight:700;color:#24252217}
.router-home .rd-app span{display:block;height:10px;border-radius:5px;margin-bottom:9px;background:#2425220d}
.router-home .rd-app span:nth-of-type(1){width:58%}.router-home .rd-app span:nth-of-type(2){width:82%}
.router-home .rd-app span:nth-of-type(3){height:58px;border-radius:8px;margin:14px 0}
.router-home .rd-link{height:1.5px;background:linear-gradient(90deg,#2425221a,var(--rd-ink));transform-origin:left}
.router-home .rd-question{margin:0;padding:11px 18px;border:1px solid var(--rd-hair);border-radius:6px;background:#fff;box-shadow:0 1px 2px #2425220a;font-size:14.5px;white-space:nowrap;color:var(--rd-ink)}
.router-home .rd-edges{width:100%;height:208px;overflow:visible}
.router-home .rd-edges path{fill:none;vector-effect:non-scaling-stroke}
.router-home .rd-edge-off{stroke:#24252259;stroke-width:1;stroke-dasharray:3 4}
.router-home .rd-edge-on{stroke:var(--rd-ink);stroke-width:1.4}
.router-home .rd-streak{stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-dasharray:9 100;stroke-dashoffset:109;opacity:0;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #ffffffb3)}
.router-home .rd-cards{display:grid;gap:64px}
.router-home .rd-card{position:relative;display:flex;align-items:center;gap:12px;padding:13px 16px;border:1px solid var(--rd-hair);border-radius:8px;background:#fff}
.router-home .rd-card img{width:26px;height:26px;flex:none}
.router-home .rd-card strong{display:block;font-size:15px;font-weight:600;color:var(--rd-ink)}
.router-home .rd-card small{display:block;margin-top:2px;font-size:12.5px;color:#24252294}
.router-home .rd-tag{position:absolute;left:-12px;top:50%;transform:translate(-100%,-50%);padding:3px 10px;border-radius:4px;font-size:11.5px;white-space:nowrap}
.router-home .rd-card-off{opacity:.62}.router-home .rd-card-off img{filter:grayscale(1)}
.router-home .rd-card-off .rd-tag{background:#fff;border:1px solid var(--rd-hair);color:#24252294}
.router-home .rd-card-on{box-shadow:0 2px 10px #24252214}
.router-home .rd-card-on .rd-tag{background:var(--rd-ink);color:#fff}
.router-home .rd-card-on::after{content:"";position:absolute;inset:-1px;border:1px solid var(--rd-ink);border-radius:9px;pointer-events:none}
.router-home .rd-check{margin-left:auto;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--rd-ink);color:#fff;font-size:12px;font-style:normal}

/* the sequence, replayed each time a panel becomes active */
.router-home .rd-panel.play .rd-link{animation:rdGrow .35s ease-out both}
.router-home .rd-panel.play .rd-question{animation:rdPop .4s cubic-bezier(.2,.9,.3,1.2) .25s both}
.router-home .rd-panel.play .rd-edge-off,.router-home .rd-panel.play .rd-edge-on{animation:rdDraw .7s cubic-bezier(.4,.05,.2,1) .55s both}
.router-home .rd-panel.play .rd-edge-on{stroke-dasharray:100;stroke-dashoffset:100;animation-name:rdDrawSolid}
.router-home .rd-panel.play .rd-card{animation:rdIn .45s ease-out both}
.router-home .rd-panel.play .rd-card-off{animation-delay:1s}.router-home .rd-panel.play .rd-card-on{animation-delay:1.25s}
.router-home .rd-panel.play .rd-card-off{animation-name:rdInOff}
.router-home .rd-panel.play .rd-card-on::after{animation:rdWipe .6s cubic-bezier(.4,0,.2,1) 1.5s both}
.router-home .rd-panel.play .rd-tag{animation:rdFade .3s ease-out 1.6s both}
.router-home .rd-panel.play .rd-check{animation:rdPop .35s cubic-bezier(.2,.9,.3,1.3) 1.9s both}
.router-home .rd-panel.play .rd-streak{animation:rdStreak 2.2s cubic-bezier(.5,.08,.4,1) 1.9s infinite}

@keyframes rdBar{to{transform:scaleX(1)}}
@keyframes rdGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes rdPop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
@keyframes rdDraw{from{opacity:0}to{opacity:1}}
@keyframes rdDrawSolid{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@keyframes rdIn{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
@keyframes rdInOff{from{opacity:0;transform:translateX(14px)}to{opacity:.62;transform:none}}
@keyframes rdWipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes rdFade{from{opacity:0}to{opacity:1}}
@keyframes rdStreak{0%{stroke-dashoffset:109;opacity:0}12%{opacity:1}85%{opacity:1}100%{stroke-dashoffset:0;opacity:0}}

@media(max-width:1100px){.router-home .rd-panel{grid-template-columns:minmax(28px,48px) auto minmax(90px,150px) minmax(280px,1fr)}.router-home .rd-app{display:none}}
@media(max-width:760px){
  .router-home .rd{padding-top:110px}
  .router-home .rd-tabs{overflow-x:auto}
  .router-home .rd-panel{grid-template-columns:1fr;justify-items:start;gap:22px;min-height:0;padding:26px 20px 30px}
  .router-home .rd-link,.router-home .rd-edges{display:none}
  .router-home .rd-cards{gap:14px;width:100%;padding-left:64px}
  .router-home .rd-question{white-space:normal}
}
@media(prefers-reduced-motion:reduce){.router-home .rd-panel *,.router-home .rd-panel *::after{animation:none!important}.router-home .rd-streak{opacity:0}}
