:root {
  --deep: #071428;
  --mid: #0B1D34;
  --cyan: #00E5FF;
  --blue: #1B6DFF;
  --text: #F7FBFF;
  --muted: rgba(247,251,255,.78);
  --hint: rgba(247,251,255,.68);
  --card: rgba(8,22,42,.76);
  --surface-inner: rgba(247,251,255,.035);
  --max: 1160px;
  --action-bg: #00D5ED;
  --action-hover: #53E9FA;
  --action-text: #071428;
  --radius-inner: 12px;
  --radius-card: 20px;
  --radius-feature: 28px;
  --radius-pill: 999px;
  --border-width: 1px;
  --border-subtle: rgba(247,251,255,.14);
  --border-brand: rgba(0,229,255,.28);
  --border-action: rgba(247,251,255,.32);
  --border-live: rgba(145,237,210,.45);
  --shadow-feature: 0 16px 40px rgba(0,0,0,.22);
  --shadow-menu: 0 16px 32px rgba(0,0,0,.28);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --type-hero: clamp(34px,4.2vw,60px);
  --type-section: clamp(28px,3.1vw,44px);
  --type-card: 22px;
  --type-body: 16px;
  --type-note: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter','Noto Sans TC',system-ui,sans-serif;
  font-size: var(--type-body);
  line-height: 1.75;
  background: radial-gradient(circle at 78% 8%,rgba(0,229,255,.07),transparent 28%),radial-gradient(circle at 18% 24%,rgba(27,109,255,.08),transparent 30%),linear-gradient(135deg,var(--deep),var(--mid) 58%,#06101f);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.009) 1px,transparent 1px);
  background-size: 80px 80px;
}
body.privacy-page, body.legal-ai-page, body.travel-page { background: linear-gradient(135deg,var(--deep),var(--mid)); }
body.privacy-page::before, body.legal-ai-page::before, body.travel-page::before { opacity: .35; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 28px; }
h1,h2,h3 { font-family: 'Space Grotesk','Noto Sans TC',sans-serif; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
h1, .hero h1.long { font-size: var(--type-hero); line-height: 1.18; letter-spacing: -.01em; }
html:lang(en) .hero h1.long { line-height: 1.12; letter-spacing: -.025em; }
h1 .cyan, em { color: var(--cyan); font-style: normal; }
.hero h1 .nb { display: inline-block; max-width: 100%; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7,20,40,.95);
  backdrop-filter: blur(16px);
  border-bottom: var(--border-width) solid var(--border-subtle);
}
/* A wider navigation container accommodates the unchanged English CTA. */
.nav-inner { max-width: 1320px; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand { flex: none; min-width: 0; }
.brand img { display: block; width: 200px; max-width: 100%; height: auto; mix-blend-mode: lighten; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; flex: 1; }
.nav-links { display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; font-size: 13px; letter-spacing: .01em; color: var(--muted); }
.nav-links a { white-space: nowrap; padding-block: 10px; }
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.nav-cta { flex: none; min-height: 48px; padding: 12px 18px; font-size: 14px; white-space: nowrap; }
.btn { min-height: 50px; min-width: 0; max-width: 100%; padding: 12px 22px; font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
.btn.primary, .nav-cta { background: var(--action-bg); border-color: var(--action-bg); color: var(--action-text); }
.btn.secondary { background: transparent; border-color: var(--border-action); color: var(--text); }
.btn:active, .nav-cta:active, .nav-toggle:active { filter: brightness(.92); }
.nav-toggle { display: none; min-height: 44px; padding: 8px 12px; border: var(--border-width) solid var(--border-brand); border-radius: var(--radius-pill); background: var(--surface-inner); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.lang-switch { display: inline-flex; flex: none; align-items: center; gap: 2px; color: var(--hint); font-size: 13px; white-space: nowrap; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 4px; border-radius: var(--radius-inner); color: var(--muted); }
.lang-switch a[aria-current="true"] { color: var(--cyan); }
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .arch-grid > *, .pill-grid > * { min-width: 0; }
.eyebrow, .tag { color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: var(--space-3); margin-bottom: 18px; }
.eyebrow::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--border-brand); }
.lead { margin: 24px 0 0; max-width: 720px; color: var(--muted); font-size: clamp(17px,1.8vw,21px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }
.cta-note, .contact-box .cta-note { margin: 12px 0 0; font-size: var(--type-note); line-height: 1.65; color: var(--muted); }
.cta-note a { color: var(--cyan); overflow-wrap: anywhere; }
.hero-card, .panel, .card, .faq-item, .architecture, .answer-box, .contact-box { border: var(--border-width) solid var(--border-subtle); border-radius: var(--radius-card); background: var(--card); }
.hero-card, .answer-box, .contact-box { border-radius: var(--radius-feature); border-color: var(--border-brand); }
.hero-card { padding: 30px; box-shadow: var(--shadow-feature); }
.hero-card img { display: block; width: min(100%,520px); height: auto; margin: auto; mix-blend-mode: lighten; }
.pill-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); margin-top: var(--space-5); }
.pill { border: var(--border-width) solid var(--border-subtle); border-radius: var(--radius-inner); background: var(--surface-inner); padding: 14px 13px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.pill b { display: block; color: var(--text); margin-bottom: 4px; line-height: 1.5; }
.pill-sub { display: block; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.pill-sub .nw { white-space: nowrap; }
/* Ordered workflow uses existing site wording; connectors carry no copy. */
.workflow-visual { display: grid; list-style: none; padding: 0; margin: 0; gap: 20px; }
.workflow-visual li { position: relative; border: var(--border-width) solid var(--border-subtle); border-radius: var(--radius-inner); background: var(--surface-inner); padding: 12px 18px; text-align: center; font-weight: 500; line-height: 1.5; }
.workflow-visual li:not(:last-child)::after { content: ""; position: absolute; top: calc(100% + 6px); left: calc(50% - 4px); width: 8px; height: 8px; border-right: var(--border-width) solid var(--cyan); border-bottom: var(--border-width) solid var(--cyan); transform: rotate(45deg); }
.workflow-visual li:nth-child(2) { border-color: var(--border-brand); color: var(--cyan); }
.workflow-visual li:nth-child(3) { border-style: dashed; }
section { padding-block: var(--space-8); }
.section-head { max-width: 820px; margin-bottom: var(--space-6); }
.section-head h2 { margin-top: 10px; font-size: var(--type-section); line-height: 1.25; letter-spacing: 0; }
.section-head p { margin: 12px 0 0; font-size: 17px; color: var(--muted); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
#cases .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.panel, .card { padding: 28px; }
.card { min-height: 0; position: relative; }
#solutions .card::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg,var(--cyan),var(--blue),transparent); }
.card h3, .panel h3, .answer-box h3, .architecture > h3 { font-size: var(--type-card); line-height: 1.35; margin: 0 0 12px; }
.card .tag + h3 { margin-top: 8px; }
.card p, .panel p, .answer-box p { margin: 12px 0 0; }
.card p, .panel p, .card li, .panel li, .answer-box p { color: var(--muted); }
.answer-box p { font-size: 17px; }
.card p.small { font-size: var(--type-note); line-height: 1.7; color: var(--hint); }
.card--linked { border-color: var(--border-brand); }
/* Only the real link receives an action surface and feedback. */
.card--linked p.small a { display: inline-block; padding-block: 10px; color: var(--cyan); font-weight: 500; }
ul.clean { list-style: none; padding: 0; margin: 14px 0 0; }
.clean li { margin: 8px 0; }
.clean li::before { content: "—"; color: var(--cyan); margin-right: 8px; }
.step { position: relative; }
.step > b { color: var(--cyan); font-size: 12px; letter-spacing: .14em; }
.step h3, .faq-item h3 { font-size: 20px; line-height: 1.4; }
.step h3 { margin-top: 8px; }
.architecture { padding: 30px; }
.arch-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-3); margin-top: 18px; }
.arch-node { border: var(--border-width) solid var(--border-subtle); border-radius: var(--radius-inner); background: var(--surface-inner); padding: 16px; overflow-wrap: anywhere; }
.arch-node b { display: block; color: var(--text); margin-bottom: 4px; line-height: 1.5; }
.arch-node span { color: var(--muted); font-size: 14px; }
.answer-box { padding: 30px; background: rgba(0,229,255,.025); }
.faq { display: grid; gap: var(--space-4); }
.faq-item { padding: 24px; }
.faq-item h3 { margin-bottom: 10px; }
.faq-item p { color: var(--muted); margin: 0; }
.status { display: inline-flex; max-width: 100%; margin: 2px 0 12px; border: var(--border-width) solid var(--border-subtle); border-radius: var(--radius-pill); padding: 4px 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.status--live { color: #91EDD2; border-color: var(--border-live); background: rgba(145,237,210,.1); }
.status--demo { color: var(--cyan); border-color: var(--border-brand); background: rgba(0,229,255,.05); }
.status--scenario { border-style: dashed; background: transparent; font-weight: 500; }
.contact-box { padding: 38px; background: rgba(7,20,40,.82); }
.contact-box h2 { margin-top: 10px; font-size: clamp(28px,2.5vw,36px); line-height: 1.3; }
.contact-box p { color: var(--muted); font-size: 16px; margin: 16px 0 0; }
.contact-list { display: grid; align-content: start; gap: 24px; min-width: 0; }
.contact-details { display: grid; gap: 20px; }
.contact-line { min-width: 0; color: var(--text); line-height: 1.7; }
.contact-line b { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; color: var(--muted); }
.contact-line a { display: inline-block; padding-block: 5px; overflow-wrap: anywhere; }
.contact-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 16px; border-top: var(--border-width) solid var(--border-subtle); }
.contact-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--muted); }
.footer { padding-block: 32px; border-top: var(--border-width) solid var(--border-subtle); color: var(--muted); font-size: 13px; line-height: 1.8; letter-spacing: .02em; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 24px; }
.footer a { display: inline-block; padding-block: 6px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(34px,4.2vw,54px); margin-bottom: 8px; line-height: 1.2; }
.prose h2 { font-size: 24px; line-height: 1.4; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--cyan); }
.legal-hero { padding: 72px 0 48px; }
.legal-ai-page .faq { max-width: 760px; }
.legal-ai-page .section-head p { max-width: 760px; }
.legal-ai-page .card p { line-height: 1.8; }
main p a:not(.btn), main li a:not(.btn), .contact-list a:not(.btn) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
[id] { scroll-margin-top: 160px; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 50; max-width: calc(100% - 40px); padding: 10px 18px; border-radius: var(--radius-inner); background: var(--deep); color: var(--text); transform: translateY(calc(-100% - 20px)); text-decoration: underline; }
.skip-link:focus { transform: translateY(0); }
.travel-page .travel-disclaimer { margin: 0; padding: 22px 28px; border: var(--border-width) solid var(--border-subtle); border-radius: var(--radius-card); background: var(--card); color: var(--muted); font-size: 14px; }
.travel-page .conversation-summary { max-width: 760px; margin: 0 0 24px; padding: 20px 24px; border-inline-start: 3px solid var(--border-brand); border-radius: 0 var(--radius-inner) var(--radius-inner) 0; background: var(--surface-inner); font-size: 16px; line-height: 1.8; color: var(--text); }
.travel-page .travel-figure { max-width: 960px; margin: 0 auto; }
.travel-page .travel-figure picture { display: block; }
.travel-page .travel-figure img { display: block; width: 100%; height: auto; border: var(--border-width) solid var(--border-subtle); border-radius: var(--radius-card); }
.travel-page .travel-figure figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.travel-page .travel-figure figcaption p { margin: 8px 0; }
.travel-page .travel-figure figcaption a { display: inline-block; padding-block: 8px; color: var(--cyan); }
@media (hover:hover) {
  .btn.primary:hover, .nav-cta:hover { background: var(--action-hover); border-color: var(--action-hover); }
  .btn.secondary:hover, .nav-toggle:hover, .lang-switch a:hover { background: rgba(247,251,255,.07); }
  .nav-links a:hover, .footer a:hover, .contact-nav a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: .3em; }
  main p a:not(.btn):hover, main li a:not(.btn):hover, .contact-list a:hover { text-decoration-thickness: 2px; }
  .card--linked p.small a:hover { color: var(--text); }
}
@media (min-width:981px) {
  .grid-4 > .step:not(:last-child)::after { content: ""; position: absolute; width: var(--space-5); height: 1px; top: 44px; left: calc(100% + 1px); background: var(--border-brand); }
}
/* Keep CSS and every page's matchMedia query in sync. */
@media (max-width:1280px) {
  .nav-inner { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px 10px; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand img { width: min(100%,200px); }
  .nav-right { display: contents; }
  .lang-switch { grid-column: 2; grid-row: 1; }
  .nav-ready .nav-toggle { display: inline-flex; grid-column: 3; grid-row: 1; align-items: center; justify-content: center; }
  .nav-cta { grid-column: 1/-1; grid-row: 2; justify-self: stretch; white-space: normal; overflow-wrap: anywhere; }
  .nav-links { grid-column: 1/-1; grid-row: 3; flex-wrap: wrap; }
  .nav-ready .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 16px 20px; background: var(--deep); border-bottom: var(--border-width) solid var(--border-brand); box-shadow: var(--shadow-menu); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); overflow-y: auto; }
  .nav-ready .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a { min-height: 44px; padding: 10px 8px; white-space: normal; }
}
@media (max-width:980px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .arch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-card { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width:680px) {
  .wrap { padding-inline: 20px; }
  section { padding-block: 48px; }
  .hero { padding: 48px 0; }
  .hero-grid { gap: 32px; }
  .section-head { margin-bottom: 24px; }
  .grid-3, .grid-4, .arch-grid, .pill-grid, #cases .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { gap: 16px; }
  .panel, .card, .answer-box, .hero-card, .architecture, .contact-box, .faq-item { padding: 22px; }
  .actions { display: grid; gap: 10px; margin-top: 24px; }
  .btn { width: 100%; }
  .hero-card > img { width: 160px; }
  .pill-grid { margin-top: 16px; gap: 8px; }
  .pill { padding: 12px; }
  .legal-hero { padding-top: 48px; }
  .footer .wrap { flex-direction: column; }
  .travel-page .travel-figure picture { max-width: 440px; margin: 0 auto; }
  .travel-page .travel-disclaimer { padding: 20px; }
  .travel-page .conversation-summary { padding: 16px 20px; }
}
@media (min-width:360px) and (max-width:680px) {
  html:lang(zh-Hant) .pill-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v8: proof strip, travel team view */
.proof-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 0; font-size: var(--type-note); line-height: 1.6; color: var(--muted); }
.proof-strip .status { margin: 0; }
.proof-strip a { color: var(--cyan); margin-left: 6px; }
.travel-page .team-view { margin: 18px 0 22px; padding: 22px 24px; }
.travel-page .team-view h3 { margin-bottom: 10px; }
.travel-page .team-view li b { color: var(--cyan); font-weight: 600; margin-right: 4px; }
.travel-page .team-view .small { margin: 12px 0 0; color: var(--muted); font-size: var(--type-note); }
#meeting .cta-note .status { margin: 0 8px 0 0; vertical-align: middle; }

/* v8.1: package page stacked panel under proof cards */
#proof #maintenance { margin-top: 24px; }
