/* ==========================================================================
   XINRUI Gas Systems — Global Stylesheet
   Design: International B2B (Parker / Atlas Copco inspired)
   Palette: Deep Navy #0A2342 · Blue #1461B8 · Sky #3E8DDD · White / Light Gray
   ========================================================================== */

:root {
  --navy-900: #071a33;
  --navy-800: #0a2342;
  --navy-700: #10315c;
  --blue-600: #1461b8;
  --blue-500: #1e74d4;
  --sky-400: #3e8ddd;
  --sky-100: #e8f1fb;
  --ink-900: #14202e;
  --ink-700: #33414f;
  --ink-500: #5c6b7a;
  --line-200: #dfe5ec;
  --bg-50: #f6f8fa;
  --white: #ffffff;
  --wa-green: #25d366;
  --wa-dark: #128c7e;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(10, 35, 66, 0.08);
  --shadow-md: 0 6px 24px rgba(10, 35, 66, 0.10);
  --shadow-lg: 0 18px 50px rgba(10, 35, 66, 0.16);

  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai", sans-serif;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--sky-400); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy-800); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-50); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.section-head p { margin-top: 14px; color: var(--ink-500); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--navy-800); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost-light { border-color: rgba(255,255,255,0.55); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); background: transparent; }
.btn-outline:hover { background: var(--blue-600); color: var(--white); }
.btn-wa { background: var(--wa-green); color: var(--white); }
.btn-wa:hover { background: var(--wa-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar a { color: rgba(255,255,255,0.82); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--white); }
.topbar a svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.85; }
.topbar .sep { opacity: 0.3; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line-200);
  position: sticky; top: 0; z-index: 900;
  box-shadow: var(--shadow-sm);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { height: 42px; width: auto; }
.logo .logo-text { line-height: 1.15; }
.logo .logo-text .brand { font-size: 1.28rem; font-weight: 800; color: var(--navy-800); letter-spacing: 0.04em; }
.logo .logo-text .sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; color: var(--blue-600); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a {
  font-size: 0.95rem; font-weight: 600; color: var(--ink-900);
  padding: 26px 0; border-bottom: 3px solid transparent; transition: color 0.2s;
}
.main-nav > a:hover, .main-nav > a.active { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; fill: var(--navy-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,26,51,0.94) 0%, rgba(10,35,66,0.78) 46%, rgba(10,35,66,0.30) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }
.hero-content { max-width: 640px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(62,141,221,0.18);
  border: 1px solid rgba(120,175,230,0.45);
  color: #bcd9f7;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 .accent { color: #7db9ec; }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.12rem; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* hero stats */
.hero-stats {
  position: relative; z-index: 2;
  background: rgba(7, 26, 51, 0.78);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 28px; padding-bottom: 28px;
}
.stat { text-align: center; padding: 6px 12px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.14); }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--white); }
.stat .num span { color: #7db9ec; }
.stat .label { font-size: 0.82rem; color: rgba(255,255,255,0.66); letter-spacing: 0.05em; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  background: var(--navy-800);
  color: var(--white);
  padding: 72px 0 64px;
  overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/hero-bg.jpg") center 30%/cover no-repeat; opacity: 0.30;
}
.page-banner .container { position: relative; }
.page-banner h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-banner .crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.page-banner .crumbs a { color: rgba(255,255,255,0.8); }
.page-banner .crumbs a:hover { color: var(--white); }
.page-banner p.lead { color: rgba(255,255,255,0.82); max-width: 640px; margin-top: 12px; }

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

/* ---------- Product cards ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .thumb {
  background: var(--white);
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line-200);
}
.product-card .thumb img { max-height: 260px; width: auto; object-fit: contain; }
.product-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-600); background: var(--sky-100);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.product-card h3 { margin-bottom: 10px; }
.product-card p { font-size: 0.93rem; color: var(--ink-500); flex: 1; }
.product-card .specs { margin: 14px 0 18px; padding-top: 14px; border-top: 1px dashed var(--line-200); }
.product-card .specs div { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 3px 0; }
.product-card .specs .k { color: var(--ink-500); }
.product-card .specs .v { font-weight: 600; color: var(--ink-900); }
.card-actions { display: flex; gap: 10px; }
.card-actions .btn { flex: 1; }

/* ---------- Feature blocks (Why Xinrui) ---------- */
.feature-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: all 0.25s ease;
}
.feature-card:hover { border-color: var(--sky-400); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card .icon svg { width: 26px; height: 26px; fill: var(--white); }
.feature-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.feature-card p { font-size: 0.92rem; color: var(--ink-500); }

/* ---------- Split media section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .media { position: relative; }
.split .media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split .media .badge-float {
  position: absolute; left: -22px; bottom: 30px;
  background: var(--navy-800); color: var(--white);
  border-radius: var(--radius); padding: 18px 24px;
  box-shadow: var(--shadow-lg);
}
.split .media .badge-float .n { font-size: 1.7rem; font-weight: 800; color: #7db9ec; }
.split .media .badge-float .t { font-size: 0.78rem; opacity: 0.8; }
.split h2 { margin-bottom: 18px; }
.checklist { list-style: none; margin: 24px 0 32px; }
.checklist li { display: flex; gap: 12px; padding: 8px 0; font-size: 0.98rem; }
.checklist li svg { width: 20px; height: 20px; fill: var(--blue-600); flex-shrink: 0; margin-top: 4px; }

/* ---------- Industry grid ---------- */
.industry-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all 0.22s ease;
}
.industry-card:hover { border-color: var(--sky-400); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-card .icon {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sky-100);
  display: flex; align-items: center; justify-content: center;
}
.industry-card .icon svg { width: 30px; height: 30px; fill: var(--blue-600); }
.industry-card h3 { font-size: 1rem; margin-bottom: 6px; }
.industry-card p { font-size: 0.84rem; color: var(--ink-500); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th {
  background: var(--navy-800); color: var(--white);
  text-align: left; padding: 14px 20px; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.spec-table td { padding: 13px 20px; border-bottom: 1px solid var(--line-200); }
.spec-table tr:nth-child(even) td { background: var(--bg-50); }
.spec-table td:first-child { font-weight: 600; color: var(--ink-900); width: 32%; }
.spec-table tr:last-child td { border-bottom: none; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-lg); padding: 30px 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 2.4rem; font-weight: 800; color: var(--sky-100);
  -webkit-text-stroke: 1.5px var(--blue-600);
  display: block; margin-bottom: 8px; line-height: 1;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--ink-500); }

/* ---------- News cards ---------- */
.news-card {
  background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card .cover { height: 190px; overflow: hidden; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.news-card:hover .cover img { transform: scale(1.05); }
.news-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card .meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--ink-500); margin-bottom: 12px; }
.news-card .meta .cat { background: var(--sky-100); color: var(--blue-600); font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.news-card h3 { font-size: 1.06rem; margin-bottom: 10px; line-height: 1.4; }
.news-card h3 a { color: var(--navy-800); }
.news-card h3 a:hover { color: var(--blue-600); }
.news-card p { font-size: 0.9rem; color: var(--ink-500); flex: 1; }
.news-card .more { margin-top: 14px; font-weight: 600; font-size: 0.88rem; color: var(--blue-600); }

/* ---------- Article page ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--ink-500); margin-bottom: 26px; flex-wrap: wrap; }
.article-meta .cat { background: var(--sky-100); color: var(--blue-600); font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
.article-body h2 { font-size: 1.45rem; margin: 42px 0 16px; }
.article-body h3 { font-size: 1.12rem; margin: 30px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body .lead-para { font-size: 1.1rem; color: var(--ink-900); }

.faq-block { background: var(--bg-50); border: 1px solid var(--line-200); border-radius: var(--radius-lg); padding: 8px 28px 28px; margin: 44px 0; }
.faq-block h2 { margin: 22px 0 18px; }
.faq-item { border-bottom: 1px solid var(--line-200); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item .q { font-weight: 700; color: var(--navy-800); margin-bottom: 8px; display: flex; gap: 10px; }
.faq-item .q::before { content: "Q"; color: var(--blue-600); font-size: 1.05rem; flex-shrink: 0; }
.faq-item .a { color: var(--ink-700); font-size: 0.96rem; display: flex; gap: 10px; }
.faq-item .a::before { content: "A"; color: #2e9e5b; font-weight: 700; flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: var(--white); padding: 76px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,141,221,0.35), transparent 70%);
}
.cta-band .inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; }
.cta-band .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-900); margin-bottom: 7px; }
.field label .req { color: #d64545; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(30,116,212,0.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--ink-500); margin-top: 14px; }

/* ---------- Contact info ---------- */
.contact-card {
  background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-lg);
  padding: 30px; display: flex; gap: 18px; align-items: flex-start;
  transition: all 0.22s;
}
.contact-card:hover { box-shadow: var(--shadow-md); border-color: var(--sky-400); }
.contact-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sky-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .icon svg { width: 22px; height: 22px; fill: var(--blue-600); }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.92rem; color: var(--ink-500); word-break: break-all; }
.contact-card a { font-weight: 600; color: var(--blue-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding: 72px 0 56px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--white); }
.footer-brand p { margin-top: 18px; line-height: 1.8; }
.footer-contact li { display: flex; gap: 10px; padding: 6px 0; }
.footer-contact svg { width: 16px; height: 16px; fill: #7db9ec; flex-shrink: 0; margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; font-family: var(--font);
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-flag { display: inline-flex; width: 20px; height: 13px; flex-shrink: 0; line-height: 0; }
.lang-flag svg { width: 20px; height: 13px; display: block; border-radius: 2px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.25); }
.lang-menu button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding-left: 16px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--line-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden; min-width: 64px; z-index: 999;
}
.lang-menu.open { display: flex; }
.lang-menu button {
  background: none; border: none; cursor: pointer;
  padding: 9px 18px; font-size: 0.82rem; font-weight: 700;
  color: var(--ink-700); font-family: var(--font);
}
.lang-menu button:hover { background: var(--sky-100); color: var(--blue-600); }

/* ---------- Floating buttons & chat widget ---------- */
.float-stack { position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.float-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.float-btn:hover { transform: translateY(-3px) scale(1.05); }
.float-btn svg { width: 26px; height: 26px; fill: var(--white); }
.float-btn.wa { background: var(--wa-green); }
.float-btn.chat { background: linear-gradient(135deg, var(--blue-600), var(--sky-400)); }
.float-btn.attn { animation: attnPulse 1.6s ease-in-out infinite; }
@keyframes attnPulse {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(30,116,212,0.5); }
  50% { box-shadow: var(--shadow-md), 0 0 0 14px rgba(30,116,212,0); }
}
.float-btn .dot {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px;
  background: #2ecc71; border: 2.5px solid var(--white); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* chat popup */
.chat-panel {
  position: fixed; right: 22px; bottom: 90px; z-index: 1300;
  width: 348px; max-width: calc(100vw - 32px);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(7, 26, 51, 0.35);
  overflow: hidden;
  display: none; flex-direction: column;
  transform-origin: bottom right;
  animation: chatIn 0.28s cubic-bezier(0.22, 1.2, 0.4, 1);
}
.chat-panel.open { display: flex; }
@keyframes chatIn { from { opacity: 0; transform: scale(0.9) translateY(14px); } to { opacity: 1; transform: none; } }

.chat-head {
  background: linear-gradient(120deg, var(--navy-800), var(--blue-600));
  color: var(--white); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.chat-head .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--navy-800);
  font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.6);
}
.chat-head .meta { flex: 1; }
.chat-head .name { font-weight: 700; font-size: 0.95rem; }
.chat-head .status { font-size: 0.75rem; color: #b8e6c9; display: flex; align-items: center; gap: 6px; }
.chat-head .status::before { content: ""; width: 7px; height: 7px; background: #2ecc71; border-radius: 50%; }
.chat-head .close { background: none; border: none; cursor: pointer; padding: 4px; }
.chat-head .close svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.85); }

.chat-body { padding: 18px 16px; background: var(--bg-50); max-height: 380px; overflow-y: auto; }
.bubble {
  background: var(--white); border: 1px solid var(--line-200);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 15px; font-size: 0.88rem; line-height: 1.55;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
  max-width: 92%;
}
.bubble.bot strong { color: var(--navy-800); }
.bubble .time { display: block; font-size: 0.68rem; color: var(--ink-500); margin-top: 6px; text-align: right; }

.chat-quick { padding: 4px 14px 12px; background: var(--bg-50); display: flex; flex-wrap: wrap; gap: 8px; }
.chat-quick button {
  border: 1.5px solid var(--blue-600); color: var(--blue-600);
  background: var(--white); border-radius: 999px;
  padding: 7px 14px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all 0.18s; font-family: var(--font);
}
.chat-quick button:hover { background: var(--blue-600); color: var(--white); }

.chat-actions { padding: 14px 16px; background: var(--white); border-top: 1px solid var(--line-200); display: grid; gap: 9px; }
.chat-actions .btn { width: 100%; padding: 11px 18px; font-size: 0.87rem; }
.chat-note { text-align: center; font-size: 0.72rem; color: var(--ink-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .media .badge-float { left: 10px; }
}
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: 0 24px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--line-200);
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 16px 0; border-bottom: 1px solid var(--line-200); }
  .nav-toggle { display: block; }
  .nav-cta .btn-quote { display: none; }
  .topbar-links .hide-sm { display: none; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .stat + .stat { border-left: none; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .footer-top { grid-template-columns: 1fr; }
  .chat-panel { bottom: 84px; }
}
