/* Shared brand and page structure */
:root {
  --bg: #fff;
  --ink: #121821;
  --muted: #526074;
  --dim: #66768a;
  --line: #dce4ee;
  --lime: #1651dc;
  --mint: #2159ce;
  --orange: #ab662f;
  --sans: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .7, .22, 1);
  --width: 1280px;
}

html { scroll-behavior: auto; scroll-padding-top: 100px; }
body { background: white; color: var(--ink); font-size: 1rem; line-height: 1.65; }
body::before { content: none; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #1651dc; outline-offset: 5px; }
#app:focus, .section:focus { outline: none; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-200%);
  background: white;
}
.skip-link:focus { transform: none; }

.site-header {
  display: block;
  height: 72px;
  padding: 0;
  background: rgba(255, 255, 255, .9);
  border-color: #e6eaf0;
  backdrop-filter: blur(18px) saturate(1.3);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .95); box-shadow: 0 4px 22px #172c5410; }
.header-frame, .footer-frame {
  width: min(var(--width), calc(100% - 80px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark {
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 12px;
  background: var(--lime);
  transform: none;
  align-items: center;
  padding: 0;
  gap: 4px;
}
.brand-mark i { width: 3px; background: #fff; }
.brand-mark i:nth-child(1) { height: 10px; margin-top: 7px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 13px; margin-top: 4px; }
.brand-word { font-size: 1rem; font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.brand-word small { margin-top: 4px; font: 600 .67rem var(--sans); letter-spacing: .11em; color: #56657b; }
.main-nav { gap: clamp(14px, 2.2vw, 36px); }
.main-nav > a { font-size: .875rem; font-weight: 600; color: #515d6e; white-space: nowrap; }
.main-nav > a.active:not(.nav-cta) { color: var(--lime); }
.main-nav .nav-cta {
  padding: 9px 18px;
  border: 1px solid #d9e2f4;
  border-radius: 999px;
  background: #f4f7ff;
  color: #174abd;
}
.main-nav .nav-cta.active, .main-nav .nav-cta:hover { background: #e7eeff; }
.scroll-progress { background: var(--lime); box-shadow: none; }

.page { min-height: 65vh; animation: none; }
.shell, .section, .page-hero-inner { width: min(var(--width), calc(100% - 96px)); }
.section { padding-block: 78px; }
.section.compact { padding-block: 60px; }
.section + .section { padding-top: 48px; }
.section-title { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: end; gap: 20px 48px; margin-bottom: 30px; }
.section-title > p { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-bottom: 2px; }
.eyebrow, .kicker {
  color: #2053bc;
  font: 680 .875rem/1.5 var(--sans);
  letter-spacing: .08em;
  margin: 0 0 15px;
}
.kicker::before { content: none; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.13; letter-spacing: -.045em; margin-bottom: 12px; font-weight: 760; }
h3 { font-weight: 730; }
.section-title h2 { margin-bottom: 0; }
em.accent { font-style: normal; color: var(--lime); }
.btn {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  color: white;
  background: var(--lime);
  box-shadow: none;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.45;
}
.btn.ghost { background: white; color: #1a4cb9; border-color: #c8d6f2; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 20px #1651dc21; }
.btn.ghost:hover { background: #f5f8ff; }

/* Homepage launch and product stories */
.launch { width: min(1440px, calc(100% - 72px)); margin-inline: auto; }
.launch-copy { padding: 59px 0 37px; text-align: center; animation: lift-in .65s var(--ease) both; }
.launch h1 {
  max-width: none;
  margin: 0 auto 17px;
  font-size: clamp(3.1rem, 7vw, 7.5rem);
  line-height: 1.06;
  letter-spacing: -.085em;
  font-weight: 800;
}
.launch h1 span { color: var(--lime); padding-inline: .035em; }
.launch-lede { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.7; margin: 0 0 22px; }
.launch-actions { justify-content: center; margin-top: 0; }
.launch-visual {
  margin: 0;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  height: clamp(335px, 39vw, 620px);
  border-radius: 24px;
  background: radial-gradient(ellipse at 74% 60%, #e2ecfe, transparent 58%), #f2f6fc;
  border: 1px solid #e2eaf5;
  animation: lift-in .8s .08s var(--ease) both;
}
.launch-image { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 66% 60%; }
.launch-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #eaf1fbad, #f4f8fd32 32%, transparent 56%);
}
.launch-caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(30px, 6vw, 108px);
  transform: translateY(-50%);
}
.launch-caption .eyebrow { margin-bottom: 8px; }
.launch-caption p { margin: 8px 0 0; font-size: clamp(1.6rem, 3.65vw, 3.7rem); font-weight: 750; line-height: 1.15; letter-spacing: -.05em; }
.launch-visual figcaption { position: absolute; z-index: 2; bottom: 14px; right: 19px; background: #ffffffdb; color: #43536b; padding: 5px 10px; border-radius: 8px; font-size: .75rem; }
.launch-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--width); margin: 0 auto; border-bottom: 1px solid var(--line); text-align: center; }
.launch-facts div { position: relative; padding: 25px 10px 23px; }
.launch-facts div + div::before { content: ""; position: absolute; top: 26px; bottom: 24px; left: 0; width: 1px; background: var(--line); }
.launch-facts strong { display: block; font-size: clamp(1.3rem, 2.7vw, 2.6rem); font-weight: 730; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.launch-facts span { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; }
.home-fleet .actions { justify-content: center; }
.home-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 7vw, 110px);
  align-items: center;
  padding: clamp(30px, 6vw, 92px) !important;
  border-radius: 24px;
  background: radial-gradient(ellipse at 95% 10%, #e4edff, transparent 62%), #f3f6fb;
}
.home-method p:not(.eyebrow) { max-width: 33ch; color: var(--muted); line-height: 1.85; }
.home-method .btn { margin-top: 13px; }
.method-diagram { list-style: none; display: grid; gap: 11px; padding: 0; margin: 0; }
.method-diagram li { display: flex; align-items: center; gap: 17px; padding: 17px; background: #ffffffed; border: 1px solid #d9e3f4; border-radius: 14px; }
.method-diagram li > span { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 12px; background: #e9f0ff; color: #164cc7; font-weight: 700; font-size: .875rem; }
.method-diagram strong, .method-diagram small { display: block; }
.method-diagram small { color: var(--muted); font-size: .875rem; }
.home-research.section { padding-top: 92px; }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.research-grid article { background: #f8faff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px, 4vw, 54px); }
.research-grid article + article { background: #eef4ff; }
.research-grid h3 { font-size: clamp(1.35rem, 2.65vw, 2.2rem); text-wrap: pretty; }
.research-grid p:not(.eyebrow), .home-outro p:not(.eyebrow) { font-size: 1rem; line-height: 1.8; color: var(--muted); }
.research-grid .btn { margin-top: 9px; }
.home-prototype { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding-bottom: 72px; }
.home-prototype figure { position: relative; margin: 0; }
.home-prototype img { display: block; width: 100%; height: auto; aspect-ratio: 1.68; object-fit: cover; border-radius: 18px; }
.home-prototype figcaption { margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.home-prototype p:not(.eyebrow) { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.home-outro { display: flex; justify-content: space-between; align-items: center; gap: 28px; border-top: 1px solid var(--line); }
.home-outro p:last-child { margin: 0; }

/* Secondary pages */
.page-hero {
  isolation: isolate;
  padding: clamp(70px, 8vw, 120px) 0 clamp(56px, 6vw, 90px);
  background: linear-gradient(116deg, #fff 14%, #f4f8ff 73%, #e8f0ff);
  border-bottom: 1px solid var(--line);
}
.page-hero::after { content: none; }
.page-hero h1 { max-width: min(1100px, 100%); font-size: clamp(2.6rem, 6vw, 5.25rem); line-height: 1.13; letter-spacing: -.065em; margin: 0 0 23px; text-wrap: pretty; }
.page-hero .lede { max-width: 48rem; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.8; color: var(--muted); }
.hero-orbit { position: absolute; right: -60px; top: 50%; width: min(43vw, 660px); aspect-ratio: 1; transform: translateY(-50%); z-index: 0; pointer-events: none; opacity: .8; }
.hero-orbit i { position: absolute; inset: 4%; border: 1px solid #2863e128; border-radius: 50%; }
.hero-orbit i:nth-child(2) { inset: 18%; border-color: #2863e13c; }
.hero-orbit i:nth-child(3) { inset: 34%; border-color: #2863e148; box-shadow: 0 0 85px #2e71ff14; }
.chapter-nav { display: flex; flex-wrap: wrap; gap: 6px 13px; width: min(var(--width), calc(100% - 96px)); margin: 0 auto; padding: 17px 0; border-bottom: 1px solid var(--line); }
.chapter-nav button { padding: 7px 13px; font-size: .875rem; font-weight: 650; color: #325eaa; background: #f2f6ff; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.chapter-nav button:hover { background: #e5edff; border-color: #d6e3ff; }
.page:not(.page-home) .section { border-bottom: 1px solid #edf1f7; }
.page:not(.page-home) .section:last-child { border: 0; }

.model-card, .glass-card, .tech-card, .robot-info, .team-card, .achievement,
.scenario-detail, .group-panel, .target-box, .contact-panel, .blueprint-card,
.case-study, .metric-ledger article, .discipline-grid article, .field-check-grid article,
.task-lifecycle article, .decision-flow article, .service-steps article, .protocol-ribbon article,
.validation-grid article, .deliverable-grid article, .engagement-steps article,
.status-panel, .ros-architecture, .formula-card, .tech-flow, .tech-hero-visual, .collaboration-board, .data-record {
  border: 1px solid #dce4f0;
  border-radius: 16px;
  background: #f8faff;
}
.model-card { overflow: hidden; }
.model-card:hover, .glass-card:hover { border-color: #a9bfee; box-shadow: 0 14px 35px #1c4b9f13; }
.model-viewport {
  background: radial-gradient(ellipse at 52% 63%, #cbdcfa, transparent 57%), linear-gradient(155deg, #fafcff, #edf3fe);
}
.model-viewport::before { opacity: .4; }
.model-caption { padding: 23px; background: #fff; }
.model-caption h3 { font-size: 1.125rem; }
.model-caption p, .glass-card p, .tech-card p, .team-card p, .timeline p, .robot-info p,
.scenario-detail > p, .group-panel p, .contact-panel p, .case-study > p, .blueprint-card > p,
.metric-ledger p, .discipline-grid p, .field-check-grid p, .deliverable-grid p, .task-lifecycle p,
.decision-flow p, .service-steps p, .engagement-steps p, .collaboration-intro > p, .formula-card p, .intake-list p {
  font-size: 1rem;
  line-height: 1.75;
  color: #4d5b70;
}
.model-dim, .model-label { font: 550 .75rem/1.5 var(--sans); color: #334966; }
.small-label, .micro, .card-index, .team-card .role,
.case-top span, .case-top b, .blueprint-top, .formula-label { font-size: .75rem; color: #315caa; }
.spec-row span, .layer-tags i, .record-chips i {
  padding: 5px 9px;
  border-radius: 7px;
  font: 550 .78rem/1.4 var(--sans);
  color: #3d5c84;
  border-color: #dce5f4;
  background: #f3f7ff;
}
.btn-arrow { display: none; }
.model-controls button { width: 36px; height: 36px; border-radius: 9px; font-size: 1rem; }
.robot-info { padding: clamp(23px, 4vw, 48px); background: #fbfcfe; }
.robot-info h2 { font-size: clamp(1.65rem, 3vw, 2.75rem); }
.feature-list li { font-size: .9375rem; }
.model-tabs button, .route-tabs button, .group-tabs button {
  color: #355072;
  font-size: .9rem;
  font-weight: 650;
  min-height: 43px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #fff;
}
.route-tabs button span { font-size: .75rem; }
.model-tabs button.active, .route-tabs button.active, .group-tabs button.active { color: white; background: var(--lime); }
.scenario-layout { grid-template-columns: minmax(175px, .35fr) 1fr; }
.scenario-detail > h2 { font-size: 2.125rem; text-wrap: pretty; }
.scenario-process span, .case-flow i { border-radius: 7px; color: #284e80; font-size: .875rem; }
.boundary { font-size: .875rem; border-radius: 4px; border-color: #6a93e5; background: #edf3ff; color: #445776; }
.group-panel h3 { font-size: 1.35rem; }
.validation-grid b, .scenario-kpis b, .timeline h3, .achievement span { font-size: 1rem; }
.validation-grid small, .validation-grid span, .scenario-kpis small, .target-values span, .target-box p,
.model-disclaimer, .blueprint-lines small, .blueprint-lines b, .case-focus span, .case-scope,
.metric-ledger small, .deliverable-grid small, .discipline-grid small, .contact-boundary span {
  font-size: .85rem;
  color: #4f6077;
}
.target-values b, .achievement strong { font-size: 1.5rem; color: #174fc7; }
.discipline-grid h3, .tech-node b { font-size: 1.125rem; }
.tech-node small, .node-grid small, .comm-strip span { font-size: .875rem; color: #4f6077; }
.tech-node { border-radius: 10px; }
.node-grid article { border-radius: 10px; }
.node-grid code { font-size: .78rem; overflow-wrap: anywhere; }
.formula { overflow-wrap: anywhere; }
.task-lifecycle article { min-height: 195px; }
.blueprint-card > p, .case-study > p, .metric-ledger p { min-height: 0; }
.field-check-grid, .metric-ledger, .blueprint-grid, .case-study-grid { gap: 14px; }
.team-card h3 { font-size: 1.125rem; }
.site-footer { display: block; background: #f3f6fb; padding: 39px 0; border-top: 1px solid #dae3ef; }
.footer-frame { gap: 27px; align-items: flex-start; }
.footer-frame p { margin: 15px 0 0; color: var(--muted); font-size: .875rem; }
.footer-frame nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .875rem; font-weight: 650; }
.footer-frame nav a:hover { color: var(--lime); }

/* Route transitions move only the main content; interactions remain responsive. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(main-view) { animation-duration: .33s; }
::view-transition-old(main-view) { animation: leave-view .16s ease-in both; }
::view-transition-new(main-view) { animation: lift-in .34s .04s var(--ease) both; }
.detail-enter { animation: lift-in .24s var(--ease) both; }
.reveal { transform: translateY(12px); transition: opacity .44s var(--ease), transform .44s var(--ease); }
.reveal.visible { transform: none; }
@keyframes leave-view { to { opacity: 0; transform: translateY(-7px); } }
@keyframes lift-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .header-frame, .footer-frame, .section, .page-hero-inner, .chapter-nav { width: calc(100% - 56px); }
  .launch { width: calc(100% - 48px); }
  .model-caption { padding: 18px; }
  .decision-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .decision-flow > i { display: none; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; border-radius: 10px; }
  .main-nav { display: none; position: absolute; top: 71px; left: 0; right: 0; padding: 10px 24px 22px; background: white; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: grid; gap: 2px; box-shadow: 0 10px 18px #18264d10; }
  .main-nav > a { padding: 11px 5px; }
  .main-nav .nav-cta { width: max-content; margin-top: 7px; }
  .section-title { grid-template-columns: 1fr; gap: 12px; }
  .section-title > p { max-width: 44rem; }
  .home-fleet .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-fleet .model-viewport { height: 210px; }
  .scenario-layout { grid-template-columns: 1fr; }
  .route-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-frame, .footer-frame, .section, .page-hero-inner, .chapter-nav { width: calc(100% - 36px); }
  .section, .section.compact { padding-block: 48px; }
  .section + .section { padding-top: 39px; }
  .launch { width: calc(100% - 24px); }
  .launch-copy { padding: 44px 8px 28px; }
  .launch-copy .eyebrow { font-size: .78rem; letter-spacing: .02em; }
  .launch h1 { font-size: clamp(2.65rem, 11.7vw, 4rem); }
  .launch h1 span { display: inline-block; }
  .desktop-break { display: none; }
  .launch-visual { height: 320px; border-radius: 17px; }
  .launch-image { object-position: 74% 55%; }
  .launch-visual::after { background: linear-gradient(180deg, #eef4fcc9, transparent 48%); }
  .launch-caption { top: 16px; left: 18px; transform: none; }
  .launch-caption .eyebrow { font-size: .75rem; }
  .launch-caption p { display: none; }
  .launch-visual figcaption { right: 9px; bottom: 9px; }
  .launch-facts div { padding: 18px 6px; }
  .launch-facts span { font-size: .75rem; }
  .launch-facts div + div::before { inset-block: 17px; }
  .home-fleet .card-grid, .home-method, .research-grid, .scenario-layout, .home-prototype { grid-template-columns: 1fr; }
  .home-fleet .model-viewport { height: 265px; }
  .home-method { gap: 24px; border-radius: 18px; }
  .home-research.section { padding-top: 50px; }
  .home-outro, .footer-frame { flex-direction: column; align-items: flex-start; }
  .page-hero { padding-block: 56px 46px; }
  .page-hero h1 { font-size: clamp(2.4rem, 9.2vw, 3.3rem); }
  .hero-orbit { width: 65vw; opacity: .55; }
  .chapter-nav { gap: 7px; }
  .chapter-nav button { font-size: .8125rem; min-height: 38px; }
  .route-tabs button { font-size: .8125rem; }
  .route-tabs button span { display: none; }
  .scenario-detail { padding: 20px; }
  .decision-flow, .node-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(main-view), ::view-transition-new(main-view), .launch-copy, .launch-visual, .detail-enter { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
