/* ===========================================================
   Anrotec — Corporate Website
   Style: Trust cloud blue (light) + modern Inter typography
   + logo-gold highlights
   =========================================================== */

/* ===== Force light theme (prevents browser auto dark-mode inversion) ===== */
:root {
  color-scheme: light only;
}

:root {
  /* Surfaces */
  --c-bg: #F0F5FA;          /* soft tinted blue page bg */
  --c-bg-elev: #FFFFFF;     /* nav / form surfaces */
  --c-bg-card: #FFFFFF;
  --c-bg-card-2: #F7FAFD;   /* very subtle tint for footer / accent cards */
  --c-bg-feature: #EAF1F9;  /* feature card tint */
  --c-border: #DCE6F0;
  --c-border-strong: #BFD0E2;

  /* Text */
  --c-text: #0A2540;        /* deep navy headings */
  --c-text-soft: #425466;   /* slate body */
  --c-text-mute: #6B7B92;   /* hints */

  /* Primary brand (cobalt blue) */
  --c-accent: #0F66E4;
  --c-accent-2: #1A56DB;
  --c-accent-soft: #DCE9FB;
  --c-accent-glow: rgba(15, 102, 228, 0.22);

  /* Logo gold — for highlights & accents */
  --c-gold: #F8B500;
  --c-gold-text: #B47C00;   /* readable gold for text on white */
  --c-gold-soft: #FFF4D6;

  /* Typography */
  --ff-sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Spacing */
  --container: 1180px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 16px;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: light only;
}

/* Prevent Chrome / Edge "Auto Dark Mode" from inverting our content */
html { forced-color-adjust: none; }

/* Stop autofill (Safari/Chrome) from painting form fields with native bg */
.field input:-webkit-autofill,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--c-bg-card-2) inset !important;
  -webkit-text-fill-color: var(--c-text) !important;
  caret-color: var(--c-text);
}

img { max-width: 100%; display: block; }

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--c-accent-2); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Background ambience — gradient mesh aurora (stronger, more visible) ===== */
.ambience {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 90% 15%, rgba(15, 102, 228, 0.42), transparent 65%),
    radial-gradient(50% 70% at 75% 95%, rgba(248, 181, 0, 0.36), transparent 65%),
    radial-gradient(45% 60% at 5% 80%, rgba(120, 90, 230, 0.30), transparent 65%),
    radial-gradient(40% 60% at 15% 10%, rgba(15, 102, 228, 0.28), transparent 65%);
}

/* Page-specific aurora variations — same family, different focal points */
body.page-anrohub .ambience {
  background:
    radial-gradient(55% 75% at 95% 25%, rgba(15, 102, 228, 0.48), transparent 65%),
    radial-gradient(45% 65% at 10% 90%, rgba(15, 102, 228, 0.36), transparent 65%),
    radial-gradient(50% 65% at 80% 90%, rgba(120, 90, 230, 0.28), transparent 65%),
    radial-gradient(35% 55% at 5% 25%, rgba(248, 181, 0, 0.26), transparent 65%);
}
body.page-anroone .ambience {
  background:
    radial-gradient(55% 75% at 5% 20%, rgba(248, 181, 0, 0.44), transparent 65%),
    radial-gradient(50% 70% at 95% 75%, rgba(15, 102, 228, 0.40), transparent 65%),
    radial-gradient(45% 60% at 30% 95%, rgba(248, 181, 0, 0.30), transparent 65%),
    radial-gradient(40% 60% at 80% 10%, rgba(120, 90, 230, 0.26), transparent 65%);
}
body.page-industries .ambience {
  background:
    radial-gradient(55% 75% at 80% 10%, rgba(15, 102, 228, 0.42), transparent 65%),
    radial-gradient(50% 70% at 15% 60%, rgba(248, 181, 0, 0.36), transparent 65%),
    radial-gradient(40% 55% at 95% 85%, rgba(120, 90, 230, 0.28), transparent 65%),
    radial-gradient(40% 60% at 40% 95%, rgba(15, 102, 228, 0.26), transparent 65%);
}
body.page-partners .ambience {
  background:
    radial-gradient(60% 80% at 50% 5%, rgba(15, 102, 228, 0.40), transparent 65%),
    radial-gradient(50% 70% at 5% 85%, rgba(248, 181, 0, 0.34), transparent 65%),
    radial-gradient(45% 60% at 95% 70%, rgba(15, 102, 228, 0.30), transparent 65%),
    radial-gradient(35% 55% at 80% 25%, rgba(120, 90, 230, 0.24), transparent 65%);
}
body.page-about .ambience {
  background:
    radial-gradient(60% 80% at 85% 80%, rgba(120, 90, 230, 0.40), transparent 65%),
    radial-gradient(50% 70% at 10% 15%, rgba(15, 102, 228, 0.40), transparent 65%),
    radial-gradient(40% 60% at 90% 15%, rgba(248, 181, 0, 0.28), transparent 65%),
    radial-gradient(40% 60% at 5% 90%, rgba(15, 102, 228, 0.24), transparent 65%);
}
body.page-contact .ambience {
  background:
    radial-gradient(55% 75% at 90% 95%, rgba(15, 102, 228, 0.38), transparent 65%),
    radial-gradient(45% 60% at 5% 5%, rgba(248, 181, 0, 0.30), transparent 65%),
    radial-gradient(40% 60% at 85% 15%, rgba(120, 90, 230, 0.24), transparent 65%),
    radial-gradient(35% 55% at 15% 80%, rgba(15, 102, 228, 0.24), transparent 65%);
}

/* gentle slow drift (very subtle, not distracting) */
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-1.5%, -1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.ambience { animation: aurora-drift 24s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .ambience { animation: none; }
}

/* ===== Hero with illustration / photo (two-column layout) ===== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-text h1 { max-width: 600px; }
.hero-text p.lead { max-width: 560px; }
.hero-art {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.hero-art svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

/* Hero photo container — subtle, atmospheric (not focal) */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 5 / 6;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 20px 50px -28px rgba(10, 37, 64, 0.30),
    0 0 0 1px rgba(15, 102, 228, 0.06);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.58;            /* fade the image so it acts as atmosphere */
  filter: saturate(0.85);
}
/* Strong brand-tinted overlay so text stays the focal point */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(15, 102, 228, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(248, 181, 0, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(240, 245, 250, 0.30) 0%, rgba(240, 245, 250, 0.55) 100%);
  pointer-events: none;
}

/* Small caption + photo credit */
.hero-photo-credit {
  font-size: 11px;
  color: var(--c-text-mute);
  margin: 8px 0 0;
  text-align: right;
}
.hero-photo-credit a { color: var(--c-text-mute); }
.hero-photo-credit a:hover { color: var(--c-text-soft); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { justify-content: center; }
  .hero-art svg { max-width: 320px; }
  .hero-photo { max-width: 360px; }
  .hero-photo-credit { text-align: center; }
}

/* ===== Section illustration row (alternating left / right) ===== */
.section-art-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}
.section-art-row.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.section-art-row.reverse > :first-child { order: 2; }
.section-art-row .art { width: 100%; display: flex; justify-content: center; }
.section-art-row .art svg { width: 100%; max-width: 360px; height: auto; }
@media (max-width: 880px) {
  .section-art-row { grid-template-columns: 1fr; gap: 24px; }
  .section-art-row.reverse > :first-child { order: 0; }
}

/* ===== Small inline illustration in card ===== */
.card-art {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 0 16px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: 0.4px;
  text-decoration: none;
}
.brand:hover { color: var(--c-text); opacity: 0.85; }
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.site-footer .brand-logo { height: 42px; }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  color: var(--c-text-soft);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--c-text); }
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--c-blue-dark);
  font-weight: 700;
}
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -10px;
  height: 3px;
  background: var(--c-gold);
  border-radius: 2px;
}

.nav-actions { display: flex; gap: 12px; align-items: center; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--c-bg-card-2);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 3px;
  font-size: 12.5px;
  font-weight: 500;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--c-text-mute);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle button.active {
  background: var(--c-accent);
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  color: var(--c-text);
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 18px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  letter-spacing: 0.1px;
}
.btn-primary {
  background: var(--c-accent);
  color: #FFFFFF;
  box-shadow: 0 6px 22px -10px var(--c-accent-glow);
}
.btn-primary:hover {
  background: var(--c-accent-2);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px var(--c-accent-glow);
}
.btn-ghost {
  background: transparent;
  border-color: var(--c-border-strong);
  color: var(--c-text);
}
.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-soft);
}
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 68px;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1px solid rgba(15, 102, 228, 0.18);
  padding: 7px 16px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.14;
  margin: 22px 0 18px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--c-text);
}
.hero h1 .hl {
  color: var(--c-gold-text);
  position: relative;
  white-space: nowrap;
}
.hero p.lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--c-text-soft);
  max-width: 720px;
  margin: 0 0 32px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 24px 28px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
.hero-meta .m {
  text-align: left;
  padding: 0 20px;
  border-right: 1px solid var(--c-border);
}
.hero-meta .m:first-child { padding-left: 0; }
.hero-meta .m:last-child { padding-right: 0; border-right: 0; }
.hero-meta .m strong {
  display: block;
  font-size: 1.7rem;
  color: var(--c-text);
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero-meta .m span {
  color: var(--c-text-soft);
  font-size: 16px;
  letter-spacing: 0.2px;
  font-weight: 500;
  display: block;
  line-height: 1.5;
}

/* ===== Section ===== */
section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.section-head { max-width: 760px; margin: 0 0 44px; }
.section-eyebrow {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--c-text);
  line-height: 1.18;
}
.section-head p {
  color: var(--c-text-soft);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.6;
}

/* ===== Cards / Grids ===== */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s var(--ease);
}
.card:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(10, 37, 64, 0.18);
}
.card .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  margin-bottom: 16px;
  font-size: 20px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
  font-weight: 600;
  color: var(--c-text);
}
.card p { margin: 0; color: var(--c-text-soft); font-size: 14.8px; line-height: 1.6; }

.card-feature {
  background: var(--c-bg-feature);
  border: 1px solid var(--c-border);
}
.card-feature .ico {
  background: var(--c-accent);
  color: #FFFFFF;
}

/* List */
.checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.checklist li {
  position: relative;
  padding: 9px 0 9px 28px;
  color: var(--c-text-soft);
  font-size: 14.8px;
  border-bottom: 1px dashed var(--c-border);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 9px;
  width: 18px; height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* Pills */
.pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-radius: 999px;
  border: 1px solid rgba(15, 102, 228, 0.22);
  margin-right: 6px;
}

/* ===== Architecture diagram block ===== */
.arch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  font-family: var(--ff-mono);
}
.arch-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: stretch;
  gap: 14px;
  background: var(--c-bg-card-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.arch-row .lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.arch-row .body {
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.5;
}
.arch-row.head { background: var(--c-accent-soft); border-color: rgba(15,102,228,0.22); }

/* Stack of three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease);
}
.pillar:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(10, 37, 64, 0.18);
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-gold);
}
.pillar h3 { font-size: 1.3rem; margin: 8px 0 6px; font-weight: 600; color: var(--c-text); }
.pillar .tag {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--c-gold-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.pillar p { color: var(--c-text-soft); margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; }
.pillar .mode-list {
  margin-top: 14px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--c-text-soft);
}
.pillar .mode-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--c-border);
}
.pillar .mode-list li:last-child { border-bottom: 0; }

/* CTA banner */
.cta-banner {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 700; color: var(--c-text); letter-spacing: -0.3px; }
.cta-banner p { margin: 0; color: var(--c-text-soft); max-width: 540px; line-height: 1.6; }

/* ===== Industry list / Partners ===== */
.partner-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.partner {
  padding: 26px 22px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.partner strong { display: block; font-size: 1.05rem; color: var(--c-text); font-weight: 600; }
.partner .role {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--c-text-mute);
  line-height: 1.55;
}

/* ===== Path / Routes ===== */
.routes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.route {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.25s var(--ease);
}
.route:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(10, 37, 64, 0.18);
}
.route .who {
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
}
.route h3 { font-size: 1.4rem; margin: 8px 0 10px; font-weight: 600; color: var(--c-text); letter-spacing: -0.2px; }
.route p { color: var(--c-text-soft); line-height: 1.65; }
.route .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-top: 12px;
  color: var(--c-accent);
}

/* ===== Industry cards ===== */
.industry {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
.industry .num {
  font-family: var(--ff-mono);
  color: var(--c-gold-text);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
}
.industry h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; color: var(--c-text); }
.industry p { color: var(--c-text-soft); margin: 0; line-height: 1.6; }
.industry ul { margin: 12px 0 0; padding-left: 18px; color: var(--c-text-soft); font-size: 14px; line-height: 1.7; }
.industry ul li { padding: 3px 0; }

/* ===== Form ===== */
.form-wrap {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
}
.field input,
.field textarea,
.field select {
  background: var(--c-bg-card-2);
  border: 1px solid var(--c-border-strong);
  border-radius: 10px;
  color: var(--c-text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  transition: all 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--c-text-mute); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(15, 102, 228, 0.15);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--c-border);
  padding: 60px 0 40px;
  margin-top: 60px;
  background: var(--c-bg-card-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--c-text-mute);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 5px 0; }
.footer-col a { color: var(--c-text-soft); font-size: 14px; }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-text-mute);
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   AI Chat Widget (light theme)
   ========================================================= */
.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #FFFFFF;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 38px -10px var(--c-accent-glow), 0 0 0 4px rgba(255,255,255,0.9);
  z-index: 100;
  transition: transform 0.2s var(--ease);
}
.chat-launcher:hover { transform: scale(1.06); background: var(--c-accent-2); }
.chat-launcher svg { width: 26px; height: 26px; }

/* Robot icon variant — transparent background, animated float */
.chat-launcher.chat-launcher--robot {
  background: transparent;
  width: 72px;
  height: 72px;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  animation: none;   /* override base launcher-breath */
}
.chat-launcher.chat-launcher--robot:hover {
  background: transparent;
  transform: scale(1.08);
}
.chat-launcher.chat-launcher--robot:hover .chat-launcher-icon {
  animation-play-state: paused;
}
.chat-launcher-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transform-origin: center bottom;
  filter:
    drop-shadow(0 10px 18px rgba(15, 102, 228, 0.32))
    drop-shadow(0 3px 6px rgba(10, 37, 64, 0.18));
  animation: robot-float 4.5s ease-in-out infinite;
}
@keyframes robot-float {
  0%   { transform: translateY(0) rotate(0deg); }
  20%  { transform: translateY(-6px) rotate(-3deg); }
  40%  { transform: translateY(-2px) rotate(2deg); }
  55%  { transform: translateY(-5px) rotate(-1deg); }
  70%  { transform: translateY(-1px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher-icon { animation: none; }
}

.chat-window {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 140px);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(10, 37, 64, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 101;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.chat-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  padding: 16px 18px;
  background: var(--c-bg-card-2);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 15px;
}
.chat-header .title { font-weight: 600; font-size: 14.5px; color: var(--c-text); }
.chat-header .status {
  font-size: 12px;
  color: var(--c-gold-text);
  display: flex; align-items: center; gap: 5px;
}
.chat-header .status::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--c-gold);
  border-radius: 50%;
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Subtle breathing animation on launcher (until you replace with your own Lottie/SVG) */
.chat-launcher {
  animation: launcher-breath 3.5s ease-in-out infinite;
}
@keyframes launcher-breath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.chat-launcher:hover { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .chat-launcher { animation: none; }
  .chat-header .status::before { animation: none; }
}
.chat-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--c-text-mute);
  cursor: pointer;
  font-size: 20px;
  padding: 4px 8px;
}
.chat-close:hover { color: var(--c-text); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background: #FFFFFF;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
  border-radius: 999px;
}

.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.bot {
  background: var(--c-bg-card-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg.user {
  background: var(--c-accent);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 400;
}
.msg.typing {
  display: flex; gap: 4px; padding: 14px 16px;
}
.msg.typing span {
  width: 6px; height: 6px; background: var(--c-text-mute); border-radius: 50%;
  animation: dot 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
  padding: 6px 18px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: #FFFFFF;
}
.chat-suggestions button {
  background: var(--c-bg-card-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s var(--ease);
}
.chat-suggestions button:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

.chat-input {
  border-top: 1px solid var(--c-border);
  padding: 12px;
  display: flex;
  gap: 8px;
  background: #FFFFFF;
}
.chat-input input {
  flex: 1;
  background: var(--c-bg-card-2);
  border: 1px solid var(--c-border-strong);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--c-text);
  font-family: inherit;
  font-size: 14px;
}
.chat-input input::placeholder { color: var(--c-text-mute); }
.chat-input input:focus {
  outline: none;
  border-color: var(--c-accent);
  background: #FFFFFF;
}
.chat-input button {
  background: var(--c-accent);
  color: #FFFFFF;
  border: 0;
  border-radius: 10px;
  width: 44px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.chat-input button:hover { background: var(--c-accent-2); }
.chat-input button:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-foot {
  padding: 6px 18px 10px;
  font-size: 11px;
  color: var(--c-text-mute);
  text-align: center;
  background: #FFFFFF;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .grid-3, .grid-4, .pillars, .partner-row { grid-template-columns: 1fr 1fr; }
  .routes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; padding: 20px; }
  .hero-meta .m { border-right: 0; padding: 10px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--c-bg-card);
    border-bottom: 1px solid var(--c-border);
    padding: 16px 24px;
    gap: 14px;
  }
  .grid-2, .grid-3, .grid-4,
  .pillars, .partner-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; padding: 16px; }
  .cta-banner { padding: 28px; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 40px; }
  .chat-window {
    right: 8px; left: 8px;
    width: auto;
    bottom: 88px;
    height: calc(100vh - 120px);
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--c-text-mute); }
.lead-soft { color: var(--c-text-soft); }

/* i18n visibility — DO NOT REMOVE */
html[lang="zh"] [data-i18n-en] { display: none !important; }
html[lang="en"] [data-i18n-zh] { display: none !important; }

/* Restore block display for components when their active-language element is shown
   (otherwise display:revert defaults to inline for <strong> / <span> and breaks layout) */
html[lang="zh"] .partner strong[data-i18n-zh],
html[lang="en"] .partner strong[data-i18n-en],
html[lang="zh"] .partner .role[data-i18n-zh],
html[lang="en"] .partner .role[data-i18n-en],
html[lang="zh"] .hero-meta .m span[data-i18n-zh],
html[lang="en"] .hero-meta .m span[data-i18n-en] { display: block !important; }
