/* Local review: preserve layout, behavior, gallery materials and neutral paper. */
:root { --home-blue: #3683fc; --home-teal: #148174; --home-amber: #9b6b23; --home-coral: #ad6653; }
/* Brand blue belongs to controls, not a color filter over every chapter. */
#top {
  background:
    radial-gradient(ellipse 38% 32% at 16% 78%, #eaf7f3 0, transparent 100%),
    radial-gradient(ellipse 38% 32% at 85% 70%, #fff2e5 0, transparent 100%),
    linear-gradient(180deg, #fcfdff, #fff);
}
.feature:nth-child(2) .feature-ico { color: #147a6d; background: #eef8f4; }
.feature:nth-child(3) .feature-ico { color: #9b6b23; background: #fff6e9; }
.source-tags span:nth-child(2) { color: #147a6d; }
.source-tags span:nth-child(3) { color: #9b6b23; }
.quota-fill { background: linear-gradient(90deg, #9bc8f9, #3683fc 58%, #68b6ac); }
.platform-choice[data-platform="qoder"].active { border-color: #b7dcd3; background: #f3faf7; }
.platform-choice[data-platform="trae"].active { border-color: #ead2b0; background: #fff9f0; }
[data-hero-platform="qoder"] .signal-source-mark { background: #eef8f4; color: #147a6d; }
[data-hero-platform="trae"] .signal-source-mark { background: #fff5e7; color: #9b6b23; }
.ledger-card:nth-child(2) .card-symbol { color: #b47c28; }
.ledger-card:nth-child(3) .card-symbol { color: #159d8d; }
.ledger-card:nth-child(3).focus { border-color: #afd4c8; box-shadow: 0 18px 35px #4a9b7e0d; }
.workspace-tab.active { color: #2469d6; border-color: #cbdefa; }

/* Chapter accents, not a color wash over the original content and sculpture. */
.task-screen { background:linear-gradient(180deg,#fff,#f6faf9); }
.task-screen .overline,.task-screen .story-link { color:var(--home-teal); }
#platforms .ext-header .overline { color:var(--home-teal); }
.platform-choice[data-platform="qoder"] .platform-choice-icon { color:var(--home-teal); }
.platform-choice[data-platform="trae"] .platform-choice-icon { color:var(--home-amber); }
#ledger { background:linear-gradient(180deg,#fff,#fffaf4 70%,#fff); }
#ledger .overline { color:var(--home-amber); }
#ledger .ledger-card:nth-child(1) { background:#f8fbff; }
#ledger .ledger-card:nth-child(2) { background:#fffaf2; }
#ledger .ledger-card:nth-child(3) { background:#f5faf7; }
.detail-card:first-child .detail-copy { background:#f6faf9; }
.detail-card:last-child .detail-copy { background:#fff9f3; }
.detail-card:first-child .overline,.detail-card:first-child .story-link { color:var(--home-teal); }
.detail-card:last-child .overline,.detail-card:last-child .story-link { color:var(--home-amber); }
#boundary .boundary-number { color:var(--home-coral);border-color:#eed8d0;background:#fff9f6; }
.footcta { background:linear-gradient(120deg,#f3f8fe,#f2f9f6 56%,#fff7ee); }

.ride-screen { background:linear-gradient(180deg,#fafcfe,#f6faf8 58%,#fffdf9); padding:80px 0; }
.ride-art { height:490px; border-radius:24px; overflow:hidden; background:#fffaf5; }
.ride-screen .overline { color:#a47854; }
.ride-screen .story-lead { color:#5f786f; }
.ride-screen .story-detail { color:#7a887c; }
.ride-principles { display:flex; flex-wrap:wrap; gap:14px; color:#71867d; font-size:11px; margin:24px 0 14px; }
.ride-principles span + span { padding-left:14px; border-left:1px solid #dce5d9; }
.ride-screen .scene-controls button { background:#fffdf9; color:#617e72; border-color:#dce6db; }

.ride-art { height:490px; border:1px solid #e1e9e8; box-shadow:0 20px 50px #476d7008; }
.task-frame-wrap { height:740px;overflow:visible; }
.signal-wires path,.network svg path { vector-effect:non-scaling-stroke; }
.signal-wires .signal-input { stroke:#8eadd6; opacity:.9; stroke-width:1.5; }
.signal-wires [data-signal-route] { stroke:#cbd8e7; stroke-width:1.3; opacity:.8; }
.signal-wires [data-signal-route].is-selected { stroke:#3683fc; stroke-width:1.9; opacity:1; }
.signal-platforms { display:flex;flex-direction:column;justify-content:space-around;top:0;bottom:0; }
.signal-source { flex-shrink:0; }
.network .network-core,.signal-core { z-index:3; }
.network .lines.dim { opacity:.48; }
.network .lines.highlight { stroke:#3683fc;stroke-width:1.8;opacity:1; }
.connected-packet { pointer-events:none; }
.connected-port { fill:#fff;stroke:#a7c2df;stroke-width:1.5; }
.network svg,.signal-wires { overflow:visible; }
@media(max-width:760px){.ride-art{height:360px}.task-frame-wrap{height:740px}}

/* Bring the opening up to the navigation without making the content cramped. */
.navigation-wrap { position:fixed;top:14px;left:0;right:0;transform:none;padding-top:0;width:min(1170px,calc(100% - 48px));margin-inline:auto;z-index:40; }
.nav { min-height:58px;padding:7px 14px 7px 22px;gap:20px;background:#ffffffdf;border:1px solid #e7ecf3;box-shadow:0 6px 22px #344e7005;transition:box-shadow .35s,border-color .35s,background .35s; }
.navigation-wrap[data-scrolled] .nav { background:#ffffffed;border-color:#dce5ef;box-shadow:0 10px 35px #2949710c; }
.nav-center { position:relative;isolation:isolate;gap:7px; }
.nav-center a { position:relative;z-index:1;display:inline-flex;align-items:center;min-height:34px;padding:7px 13px;border-radius:18px;color:#718096;font-size:11px;transition:color .25s,background .25s; }
.nav-center a:hover,.nav-center a:focus-visible,.nav-center a[aria-current="location"] { color:#2469d6; }
.nav-current-marker { position:absolute;left:0;top:0;height:34px;background:#eef5ff;border:1px solid #e0ebfa;border-radius:18px;z-index:0;pointer-events:none;opacity:0;transition:transform .35s cubic-bezier(.22,1,.36,1),width .35s,opacity .25s; }
.nav-source { display:inline-flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid transparent;border-radius:20px;transition:background .2s,border-color .2s,color .2s; }
.nav-source:hover { background:#f8fafc;border-color:#e7edf4;color:#273c59; }
.nav-source span { display:inline-block;transition:transform .25s; }
.nav-source:hover span { transform:translate(2px,-2px); }
.nav .logo { font-size:18px;gap:9px; }
.nav .logo-sign { width:25px;height:25px;transition:transform .35s cubic-bezier(.22,1,.36,1); }
.nav .logo:hover .logo-sign { transform:translateY(-1px) rotate(-5deg); }
#top .hero { padding-top:110px;min-height:0; }
#top .hero-kicker { margin-top:16px; }
#top .hero h1 { margin-top:10px; }
/* CJK strokes need breathing room; keep this local to the hero title. */
#hero-title { letter-spacing:.015em; font-kerning:none; }
#hero-title .zh23-phrase { white-space:nowrap; }
#top .hero .visual-wrap { margin-top:30px; }
.hero-signature { display:flex;align-items:center;justify-content:center;gap:11px;margin:12px auto 0; }
#top .hero-signature .hero-kicker { margin:0;text-align:left; }
.hero-signature-mark { display:block;width:48px;height:40px;flex:0 0 auto;filter:drop-shadow(0 4px 8px #7594da19); }
.mobile-trigger { border-radius:50%;transition:background .25s; }
.mobile-trigger:hover { background:#f2f6fc; }
.mobile-trigger[aria-expanded="true"] { background:#eef4fc; }
.mobile-trigger svg { transition:transform .3s; }
.mobile-trigger[aria-expanded="true"] svg { transform:rotate(90deg); }
@media(max-width:760px){
  .navigation-wrap{top:10px;width:calc(100% - 28px)}.nav{min-height:54px;padding:7px 12px 7px 17px}
  #top .hero{padding-top:98px}#top .hero-kicker{margin-top:14px}#top .hero .visual-wrap{margin-top:26px}
  .hero-signature{gap:8px;margin-top:10px}.hero-signature-mark{width:39px;height:33px}
  .nav-center{display:none}.mobile-menu{max-height:calc(100dvh - 95px);overflow:auto;background:#fffffff5;backdrop-filter:blur(18px)}
}
@media(prefers-reduced-motion:reduce){.nav-current-marker,.nav,.nav-center a,.nav-source,.nav-source span,.nav .logo-sign,.mobile-trigger svg{transition:none}}
