/* ============================================================
   Rasber International — global.rasbertech.com
   Design system: tech-style, dark default, light optional
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Theme tokens ---------- */
:root {
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --max-w: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d18;
  --bg-2: #0b1626;
  --bg-3: #0f1d33;
  --panel: rgba(148, 184, 235, 0.055);
  --panel-solid: #101e34;
  --panel-strong: rgba(148, 184, 235, 0.1);
  --border: rgba(148, 184, 235, 0.14);
  --border-strong: rgba(148, 184, 235, 0.28);
  --text: #e8eefb;
  --text-2: #a8b8d4;
  --text-3: #71839f;
  --accent: #38bdf8;
  --accent-2: #4f8df9;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --glow: rgba(56, 189, 248, 0.35);
  --grad: linear-gradient(96deg, #38bdf8, #6d9ffb);
  --button-grad: linear-gradient(96deg, #0879bd, #315fdb);
  --hero-overlay: linear-gradient(180deg, rgba(7,13,24,.72) 0%, rgba(7,13,24,.82) 60%, #070d18 100%);
  --img-frame-bg: #ffffff;
  --table-head: rgba(56, 189, 248, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fc;
  --bg-2: #eef3fa;
  --bg-3: #e6eef8;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-strong: #ffffff;
  --border: #dde6f1;
  --border-strong: #c3d2e5;
  --text: #14253d;
  --text-2: #44597a;
  --text-3: #5e7290;
  --accent: #006bb3;
  --accent-2: #2563eb;
  --accent-soft: rgba(12, 135, 216, 0.1);
  --glow: rgba(37, 99, 235, 0.18);
  --grad: linear-gradient(96deg, #0c87d8, #2563eb);
  --button-grad: linear-gradient(96deg, #006db5, #1d4ed8);
  --hero-overlay: linear-gradient(180deg, rgba(9,21,38,.66) 0%, rgba(9,21,38,.74) 60%, rgba(245,248,252,1) 100%);
  --img-frame-bg: #ffffff;
  --table-head: rgba(37, 99, 235, 0.06);
  --shadow: 0 16px 44px rgba(23, 48, 86, 0.12);
}

/* ---------- Language switching ---------- */
html[data-lang="en"] .lang-zh { display: none !important; }
html[data-lang="zh"] .lang-en { display: none !important; }
html[data-lang="zh"] body { font-family: var(--font-sans); }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.skip-link {
  position: fixed; top: 10px; left: 12px; z-index: 10001;
  padding: 9px 13px; border-radius: 6px;
  background: var(--panel-solid); color: var(--text);
  border: 2px solid var(--accent);
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.section-alt { background: var(--bg-2); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); }
.section-head { margin-bottom: 48px; max-width: 780px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 17px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .35s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 28px; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand img.logo-light-mode { display: none; }
html[data-theme="light"] .brand img.logo-light-mode { display: block; }
html[data-theme="light"] .brand img.logo-dark-mode { display: none; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: 0.01em; }
.brand-name span { color: var(--accent); }

.cloud-link {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 1;
  max-width: 260px; min-width: 0;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-2); background: color-mix(in srgb, var(--panel) 76%, transparent);
  font-size: 13px; font-weight: 650; line-height: 1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.cloud-link::before {
  content: ""; width: 7px; height: 7px; flex: 0 0 7px;
  border-radius: 50%; background: var(--accent);
}
.cloud-link:hover { color: var(--text); border-color: var(--border-strong); background: var(--panel-strong); transform: translateY(-1px); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a {
  padding: 9px 14px; border-radius: 8px;
  color: var(--text-2); font-size: 15px; font-weight: 500;
  transition: color .2s, background .2s;
}
.main-nav > a:hover { color: var(--text); background: var(--panel-strong); }
.main-nav > a.active { color: var(--accent); }

.header-controls { display: flex; align-items: center; gap: 10px; }
.ctrl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; min-width: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-2); font-size: 13.5px; font-weight: 600;
  transition: all .2s;
}
.ctrl-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--panel-strong); }
.ctrl-btn svg { width: 16px; height: 16px; }
#theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] #theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] #theme-toggle .icon-moon { display: none; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(99,151,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,151,255,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 30%, transparent 75%);
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 880px; margin-bottom: 22px; color: #f2f6ff; }
.hero .hero-sub { font-size: clamp(16px, 2vw, 20px); color: #b9c8e2; max-width: 720px; margin-bottom: 16px; }
.hero .hero-chain { font-family: var(--font-mono); font-size: 14px; color: #7dd1f8; margin-bottom: 38px; letter-spacing: .04em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 70px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15.5px;
  transition: all .22s var(--ease);
}
.btn-primary { background: var(--button-grad); color: #fff; box-shadow: 0 8px 26px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--glow); }
.btn-ghost { border: 1px solid rgba(190,212,245,.4); color: #e4ecfa; }
.btn-ghost:hover { border-color: #9fc4ef; background: rgba(190,212,245,.1); }
.btn-ghost-adapt { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost-adapt:hover { border-color: var(--accent); color: var(--accent); }

/* hero stats */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(190,212,245,.16);
  border: 1px solid rgba(190,212,245,.16);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 980px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-stats .stat { background: rgba(10,20,38,.55); padding: 26px 28px; }
.stat .num { font-family: var(--font-mono); font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: #7dd1f8; line-height: 1.1; }
.stat .num small { font-size: .55em; font-weight: 600; }
.hero-stats .stat .label { margin-top: 6px; color: #aebfdd; font-size: 14px; }

/* ---------- Cards ---------- */
.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(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14.8px; }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.card .card-icon svg { width: 23px; height: 23px; }

a.card { display: block; }
.card .card-more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* product photo card */
.media-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.media-card .media {
  background: var(--img-frame-bg);
  height: 215px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  padding: 14px;
}
.media-card .media img { max-height: 100%; width: auto; object-fit: contain; }
.media-card .media.cover { padding: 0; }
.media-card .media.cover img { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.media-card .body .tag { margin-bottom: 10px; }
.media-card .body .card-more { margin-top: auto; padding-top: 14px; }

.tag {
  display: inline-flex; align-self: flex-start;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Big number features ---------- */
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.number-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px;
}
.number-card .num { font-family: var(--font-mono); font-size: 40px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.15; }
.number-card .name { font-weight: 600; margin: 8px 0 6px; }
.number-card p { color: var(--text-2); font-size: 14.2px; }

/* ---------- Project / solution detail pages ---------- */
.solution-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.solution-metrics .number-card { padding: 22px 20px; }
.solution-metrics .number-card .num { font-size: clamp(24px, 3vw, 34px); }
.case-note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--text-2);
}
.case-note b { color: var(--text); }
.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-list .card { padding: 22px; }
.project-list .tag { margin-bottom: 10px; }
.sensor-chain { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sensor-chain .tag { border: 1px solid var(--border); }
.chain-arrow { color: var(--text-3); font-family: var(--font-mono); }

/* ---------- Architecture (cloud-edge-device) ---------- */
.arch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.arch-layer {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 18px; position: relative;
}
.arch-layer .idx { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.arch-layer h4 { font-size: 16.5px; margin: 6px 0 12px; color: var(--accent); }
.arch-layer ul { display: flex; flex-direction: column; gap: 7px; }
.arch-layer li { font-size: 13.2px; color: var(--text-2); padding-left: 14px; position: relative; }
.arch-layer li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-size: 11px; top: 1px; }
.arch-banner {
  margin-top: 26px; text-align: center;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .05em;
  color: var(--accent);
  border: 1px dashed var(--border-strong); border-radius: 999px;
  padding: 13px 20px;
}

/* ---------- Spec tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.spec-table { min-width: 560px; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table thead th { background: var(--table-head); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--text-2); white-space: nowrap; }
.spec-table .hl { color: var(--accent); font-weight: 600; }
.spec-table tbody tr:hover { background: var(--panel); }

/* ---------- Checklist / feature list ---------- */
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list .fi {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; margin-top: 2px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.feature-list b { display: block; margin-bottom: 2px; }
.feature-list p { color: var(--text-2); font-size: 14.3px; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual {
  background: var(--img-frame-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.split .visual img { max-height: 420px; object-fit: contain; }
.split .visual.cover { padding: 0; overflow: hidden; }
.split .visual.cover img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 70px) 0 60px;
  background:
    radial-gradient(900px 420px at 80% -10%, var(--accent-soft), transparent 65%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.page-hero .crumb { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); max-width: 860px; }
.page-hero .sub { margin-top: 16px; color: var(--text-2); font-size: 17.5px; max-width: 760px; }
.page-hero .model { font-family: var(--font-mono); color: var(--accent); font-size: 14px; margin-top: 18px; letter-spacing: .06em; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 0%, var(--accent-soft), transparent 60%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { color: var(--text-2); max-width: 540px; }
.cta-band .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-lockup {
  display: flex; align-items: center; gap: 10px;
  min-height: 38px; margin-bottom: 16px;
}
.footer-brand-lockup img { width: auto; height: 32px; margin: 0; flex: 0 0 auto; }
.footer-brand-lockup img.logo-light-mode { display: none; }
html[data-theme="light"] .footer-brand-lockup img.logo-light-mode { display: block; }
html[data-theme="light"] .footer-brand-lockup img.logo-dark-mode { display: none; }
.footer-brand-name { color: var(--text); font-size: 22px; font-weight: 700; line-height: 1; }
.footer-brand-name span { color: var(--accent); }
.footer-brand p { color: var(--text-3); font-size: 13.8px; max-width: 300px; }
.site-footer h5 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-family: var(--font-mono); }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--text-2); font-size: 14.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; color: var(--text-2); font-size: 14.5px; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; }

.regional-sales-inline {
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
}
.regional-sales-inline strong {
  color: var(--accent);
  font-size: 15px;
}

.regional-sales-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.regional-sales-card--footer {
  margin-top: 8px;
  padding: 14px;
}
.regional-sales-card--contact {
  margin: 0 0 24px;
  padding: 18px 20px;
}
.regional-sales-label {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.regional-sales-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.regional-sales-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.regional-sales-links a {
  color: var(--accent);
  font-size: 14px;
  word-break: break-all;
}
.regional-sales-meta {
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 7px;
}

/* ---------- Screenshot/QA mode (?shot=1) ---------- */
html.shotmode .hero { min-height: 0; padding-top: calc(var(--header-h) + 90px); }
html.shotmode .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Industry strip ---------- */
.industry-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 230px; display: flex; align-items: flex-end; }
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.industry-card:hover img { transform: scale(1.05); }
.industry-card .overlay {
  position: relative; width: 100%; padding: 40px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(5,12,24,.88));
  color: #eef3fc;
}
.industry-card .overlay h3 { font-size: 17px; }
.industry-card .overlay p { font-size: 13px; color: #b6c4dd; margin-top: 3px; }

/* ---------- Comparison ---------- */
.versus-table td:first-child { font-weight: 500; }
.check { color: #34d399; font-weight: 700; }
.cross { color: var(--text-3); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-list details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-list summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 18px; flex-shrink: 0; transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { border-bottom: 1px solid var(--border); }
.faq-list .faq-body { padding: 16px 20px; color: var(--text-2); font-size: 14.6px; }

/* ---------- Principle diagram ---------- */
.diagram-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.diagram-box svg { width: 100%; height: auto; display: block; }
.diagram-box .diagram-caption { margin-top: 14px; font-size: 13.5px; color: var(--text-3); text-align: center; }
.svg-stroke { stroke: var(--accent); }
.svg-stroke-soft { stroke: var(--border-strong); }
.svg-fill-soft { fill: var(--accent-soft); }
.svg-text { fill: var(--text-2); font-family: var(--font-sans); }
.svg-text-strong { fill: var(--text); font-family: var(--font-sans); font-weight: 600; }
.svg-text-accent { fill: var(--accent); font-family: var(--font-mono); }

/* ---------- Detail gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { background: var(--img-frame-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.gallery img { width: 100%; height: 200px; object-fit: contain; padding: 10px; }
.gallery figcaption { padding: 10px 14px 13px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--border); }

/* ---------- Assurance row ---------- */
.assure-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .assure-row { grid-template-columns: repeat(2, 1fr); } .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .assure-row { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ci { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.contact-card .ci svg { width: 21px; height: 21px; }
.contact-card b { display: block; margin-bottom: 4px; }
.contact-card a, .contact-card p { color: var(--text-2); font-size: 15px; word-break: break-all; }
.contact-card a:hover { color: var(--accent); }

/* ============================================================
   Customer-service chat widget
   ============================================================ */
.rc-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 9998;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--button-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px var(--glow);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.rc-launcher:hover { transform: translateY(-3px) scale(1.04); }
.rc-launcher svg { width: 26px; height: 26px; }
.rc-launcher .rc-ic-close { display: none; }
.rc-launcher.is-open .rc-ic-chat { display: none; }
.rc-launcher.is-open .rc-ic-close { display: block; }
.rc-launcher::after {
  content: ""; position: absolute; top: 11px; right: 11px;
  width: 9px; height: 9px; border-radius: 50%; background: #34d399;
  border: 2px solid var(--bg);
}
.rc-launcher.is-open::after { display: none; }

.rc-panel {
  position: fixed; right: 24px; bottom: 94px; z-index: 9999;
  width: 374px; max-width: calc(100vw - 32px);
  height: 552px; max-height: calc(100vh - 130px);
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.rc-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.rc-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(120deg, var(--accent-soft), transparent);
}
.rc-head .rc-avatar {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--button-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.rc-head .rc-avatar svg { width: 20px; height: 20px; }
.rc-head .rc-title { font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.rc-head .rc-status { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.rc-head .rc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.rc-head .rc-close { margin-left: auto; color: var(--text-3); padding: 6px; border-radius: 8px; }
.rc-head .rc-close:hover { color: var(--text); background: var(--panel-strong); }
.rc-head .rc-close svg { width: 18px; height: 18px; }

.rc-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rc-body::-webkit-scrollbar { width: 7px; }
.rc-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.rc-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 14.3px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.rc-msg.bot { align-self: flex-start; background: var(--panel-strong); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text); }
.rc-msg.user { align-self: flex-end; background: var(--button-grad); color: #fff; border-bottom-right-radius: 5px; }
.rc-msg.bot a { color: var(--accent); }

.rc-typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 15px; background: var(--panel-strong); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 5px; }
.rc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: rc-bounce 1.2s infinite ease-in-out; }
.rc-typing span:nth-child(2) { animation-delay: .18s; }
.rc-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes rc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 6px; }
.rc-chip { font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .18s; }
.rc-chip:hover { border-color: var(--accent); }

.rc-foot { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; gap: 9px; align-items: flex-end; }
.rc-input { flex: 1; resize: none; max-height: 96px; min-height: 24px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 13px; color: var(--text); font-family: inherit; font-size: 14px; line-height: 1.45; outline: none; transition: border-color .18s; }
.rc-input:focus { border-color: var(--accent); }
.rc-send { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--button-grad); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .18s, opacity .18s; }
.rc-send:hover { transform: translateY(-1px); }
.rc-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.rc-send svg { width: 18px; height: 18px; }
.rc-foot-note { text-align: center; font-size: 10.5px; color: var(--text-3); padding: 0 14px 9px; }

@media (max-width: 480px) {
  .rc-panel { right: 8px; left: 8px; bottom: 86px; width: auto; max-width: none; height: calc(100vh - 120px); }
  .rc-launcher { right: 16px; bottom: 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .numbers-grid, .solution-metrics, .project-list { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .numbers-grid, .solution-metrics, .project-list, .arch { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 38px 28px; }

  .nav-burger { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a { padding: 13px 12px; font-size: 16px; }
  body.nav-open { overflow: hidden; }

  .brand-name { font-size: 18px; }
  .cloud-link { max-width: 168px; padding: 8px 10px; font-size: 12px; }
  .ctrl-btn .ctrl-label { display: none; }
  .ctrl-btn { padding: 0; width: 36px; }
  #lang-toggle { width: auto; padding: 0 12px; }
  #lang-toggle .ctrl-label { display: inline; }
}

@media (max-width: 520px) {
  .header-inner { gap: 8px; padding: 0 16px; }
  .brand { gap: 0; }
  .brand img { height: 30px; }
  .brand-name { display: none; }
  .cloud-link { max-width: calc(100vw - 210px); min-width: 78px; padding: 8px; }
  .header-controls { gap: 6px; }
  #lang-toggle { width: 36px; padding: 0; }
  #lang-toggle .ctrl-label { display: none; }
}
