/* ==========================================================
   Hainan Masterbatch — site styles
   No external fonts or CDNs (Google services are blocked in
   mainland China), so everything loads from this server.
   ========================================================== */

:root {
  /* Brand colours taken from the Hainan Masterbatch logo */
  --brand: #24266a;        /* logo navy */
  --brand-dark: #17194a;
  --brand-soft: #edf0fa;
  --accent: #52aae2;       /* logo sky blue */
  --accent-ink: #2b86c6;   /* sky blue dark enough for text on white */
  --accent-soft: #eaf5fc;
  --ink: #161838;
  --text: #2b303b;
  --muted: #626b79;
  --line: #e3e6eb;
  --bg: #f5f6f8;
  --paper: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 24, 32, .08);
  --container: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--paper);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

/* ---------- Bilingual switching ---------- */
html[lang="zh-CN"] .en { display: none !important; }
html[lang="en-GB"] .zh { display: none !important; }

/* ---------- Placeholders (things to fill in before launch) ---------- */
.ph {
  background: #fff6d6; color: #7a5a00; border: 1px dashed #d9b440;
  padding: 0 .35em; border-radius: 4px; font-size: .92em; font-weight: 500;
}
.ph-block {
  display: grid; place-items: center; text-align: center; padding: 18px;
  background: repeating-linear-gradient(45deg, #fbf7ea, #fbf7ea 10px, #f6efd8 10px, #f6efd8 20px);
  border: 1px dashed #d9b440; color: #7a5a00; border-radius: var(--radius); font-size: 14px;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c9ced8; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; fill: var(--accent); }
.topbar .ph { background: transparent; color: #e6c97f; border-color: #6b5a2c; }
.lang-switch { display: inline-flex; border: 1px solid #3a404d; border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: none; border: 0; color: #c9ced8; font: inherit; font-size: 12px;
  padding: 3px 12px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 56px; width: auto; }
.site-footer .brand-logo { height: 60px; }
.brand-name { display: block; font-weight: 800; color: var(--ink); letter-spacing: .06em; font-size: 17px; line-height: 1.2; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; font-weight: 600; color: var(--ink); font-size: 15px;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 3px;
  background: var(--brand); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--brand); }
.nav .btn { margin-left: 12px; }
.nav .btn::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 6px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand) !important; }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Section headings (Chinese B2B convention: title + English kicker) ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; font-size: 13px; letter-spacing: .28em; color: var(--accent-ink);
  font-weight: 700; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head h2::after {
  content: ""; display: block; width: 54px; height: 3px; background: var(--accent); margin: 18px auto 0;
}
.section-head p { color: var(--muted); margin-top: 18px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left h2::after { margin-left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; min-height: 620px; }
.hero-copy { padding: 72px 0; position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  background: var(--brand-soft); color: var(--brand); border-radius: 999px; font-size: 13px; font-weight: 700;
  margin-bottom: 24px;
}
.hero-tag b { background: var(--brand); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: .01em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 15px; }
.hero-points svg { width: 22px; height: 22px; fill: var(--brand); flex: none; }
.hero-visual { position: relative; height: 100%; min-height: 520px; }
.hero-visual img {
  position: absolute; inset: 40px -20vw 40px 0; width: calc(100% + 20vw); height: calc(100% - 80px);
  object-fit: cover; border-radius: 18px 0 0 18px;
}
.hero-card {
  position: absolute; left: -36px; bottom: 76px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); padding: 18px 22px; display: flex; gap: 14px; align-items: center; max-width: 300px;
}
.hero-card .dot-row { display: flex; }
.hero-card .dot-row i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; }
.hero-card .dot-row i:first-child { margin-left: 0; }
.hero-card strong { display: block; color: var(--ink); font-size: 15px; }
.hero-card small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; color: #fff; padding: 96px 0 84px; overflow: hidden; background: var(--brand-dark); }
.page-banner::before {
  content: ""; position: absolute; inset: 0; background: url(../img/banner.jpg) center/cover;
  opacity: .55; mix-blend-mode: multiply;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 20, 60, .93) 0%, rgba(36, 38, 106, .6) 60%, rgba(36, 38, 106, .2) 100%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .kicker { color: #8fcaf0; }
.page-banner h1 { color: #fff; font-size: clamp(32px, 4vw, 48px); margin-bottom: 14px; }
.page-banner p { max-width: 640px; color: rgba(255, 255, 255, .88); font-size: 17px; margin: 0; }
.crumbs { font-size: 13px; color: rgba(255, 255, 255, .75); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-num {
  position: absolute; left: 0; top: 0; background: var(--brand); color: #fff; font-weight: 800;
  font-size: 14px; padding: 6px 14px; border-bottom-right-radius: 10px; letter-spacing: .05em;
}
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 20px; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 15px; flex: 1; }
.more { color: var(--brand); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after, .more:hover::after { transform: translateX(4px); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { padding: 0 22px; text-align: center; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand);
  font-weight: 800; font-size: 22px; position: relative; z-index: 1;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; left: calc(50% + 46px); right: calc(-50% + 46px);
  border-top: 2px dashed #a9cdea;
}
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Application tiles ---------- */
.app-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.app-tile { background: #fff; padding: 34px 30px; transition: background .25s, color .25s; }
.app-tile svg { width: 44px; height: 44px; stroke: var(--brand); fill: none; stroke-width: 1.6; margin-bottom: 18px; transition: stroke .25s; }
.app-tile h3 { font-size: 19px; transition: color .25s; }
.app-tile p { color: var(--muted); font-size: 15px; margin: 0; transition: color .25s; }
.app-tile:hover { background: var(--brand); }
.app-tile:hover svg { stroke: #fff; }
.app-tile:hover h3, .app-tile:hover p { color: #fff; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { position: relative; }
.split-img img { border-radius: 14px; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.split-img::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--accent);
  border-radius: 14px; z-index: -1;
}
.checklist li { position: relative; padding-left: 34px; margin-bottom: 16px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checklist strong { color: var(--ink); display: block; }
.checklist span { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; padding: 80px 0; overflow: hidden; background: var(--brand-dark); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url(../img/banner.jpg) center/cover; opacity: .5; mix-blend-mode: multiply; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18, 20, 60, .92), rgba(43, 134, 198, .5)); }
.cta-band .container { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 620px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Product detail sections ---------- */
.subnav { position: sticky; top: 78px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 16px 18px; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.product { padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.product:nth-of-type(even) { background: var(--bg); }
.product .split { align-items: start; }
.product-label { font-size: 13px; font-weight: 800; color: var(--accent-ink); letter-spacing: .2em; margin-bottom: 8px; display: block; }
.product h2 { font-size: clamp(26px, 3vw, 34px); }
.product .lead { color: var(--muted); font-size: 17px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; background: #fff; border-radius: 8px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; color: var(--ink); background: #fafbfc; font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; }
.tags span { background: var(--brand-soft); color: var(--brand-dark); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding: 6px 0 6px 14px; background: var(--accent-soft); border-radius: 0 6px 6px 0; }

/* ---------- Application detail ---------- */
.app-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.app-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 64px 1fr; gap: 22px; }
.app-item .icon { width: 64px; height: 64px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; }
.app-item .icon svg { width: 36px; height: 36px; stroke: var(--brand); fill: none; stroke-width: 1.6; }
.app-item h3 { font-size: 20px; margin-bottom: 6px; }
.app-item p { color: var(--muted); font-size: 15px; }
.app-item .tags { margin-bottom: 0; }

.matrix { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.matrix th, .matrix td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.matrix tbody th { text-align: left; color: var(--ink); font-weight: 700; background: #fafbfc; }
.matrix .yes { color: var(--accent); font-size: 18px; font-weight: 800; }
.matrix .maybe { color: #b4bac4; }
.table-wrap { overflow-x: auto; }

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { padding: 32px 26px; border-radius: var(--radius); background: #fff; border-top: 4px solid var(--brand); box-shadow: 0 2px 0 var(--line); }
.value .zi { font-size: 40px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 16px; display: block; }
.value h3 { font-size: 19px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery .ph-block { aspect-ratio: 4 / 3; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 40px; border-top: 4px solid var(--brand); }
.form-card h2 { font-size: 26px; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field label .req { color: var(--brand); margin-left: 2px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #d3d8df; border-radius: 6px;
  background: #fbfcfd; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(82, 170, 226, .22); background: #fff; }
.field .hint { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #d3d8df; border-radius: 999px; cursor: pointer; font-size: 14px; background: #fbfcfd; }
.chips input { accent-color: var(--brand); margin: 0; }
.chips label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 5px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.form-status.ok { display: block; background: #e8f6ee; color: #136c3a; }
.form-status.err { display: block; background: var(--brand-soft); color: var(--brand-dark); }

.contact-cards { display: grid; gap: 16px; }
.c-card { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.c-card .icon { width: 48px; height: 48px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; flex: none; }
.c-card .icon svg { width: 24px; height: 24px; fill: #fff; }
.c-card h3 { font-size: 16px; margin-bottom: 4px; }
.c-card p { margin: 0; color: var(--muted); font-size: 15px; word-break: break-word; }
.qr-card { text-align: center; padding: 28px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.qr-card h3 { color: #fff; font-size: 17px; }
.qr-card p { color: #aeb5c2; font-size: 14px; margin: 0; }
.qr-box { width: 168px; height: 168px; margin: 16px auto; background: #fff; border-radius: 8px; display: grid; place-items: center; padding: 10px; }
.qr-box .ph-block { width: 100%; height: 100%; padding: 8px; font-size: 13px; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { background: #121433; color: #a8afbb; font-size: 15px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 52px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #8b93a1; }
.site-footer p { font-size: 14px; margin-top: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--accent); flex: none; margin-top: 5px; }
.footer-bottom { border-top: 1px solid #262a55; padding: 20px 0; font-size: 13px; color: #727a88; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .ph { background: transparent; color: #e6c97f; border-color: #6b5a2c; }

/* ---------- Floating contact bar (common on Chinese B2B sites) ---------- */
.float-bar { position: fixed; right: 18px; bottom: 90px; z-index: 60; display: flex; flex-direction: column; gap: 2px; border-radius: 10px; overflow: visible; box-shadow: var(--shadow); }
.float-bar > a, .float-bar > button {
  position: relative; width: 56px; height: 56px; display: grid; place-items: center; background: var(--brand);
  border: 0; cursor: pointer; color: #fff;
}
.float-bar > :first-child { border-radius: 10px 10px 0 0; }
.float-bar > :last-child { border-radius: 0 0 10px 10px; background: var(--ink); }
.float-bar > a:hover, .float-bar > button:hover { background: var(--brand-dark); }
.float-bar svg { width: 24px; height: 24px; fill: #fff; }
.float-pop {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%) translateX(8px); background: #fff; color: var(--ink);
  padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; font-size: 14px; font-weight: 600;
  opacity: 0; visibility: hidden; transition: .2s; pointer-events: none; text-align: center;
}
.float-pop .qr-box { width: 140px; height: 140px; margin: 8px auto 0; border: 1px solid var(--line); }
.float-bar > :hover .float-pop, .float-bar > :focus-visible .float-pop { opacity: 1; visibility: visible; transform: translateY(-50%); }
.float-bar > .to-top { display: none; }
.float-bar > .to-top.show { display: grid; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s, visibility .3s; z-index: -1; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin: 16px 0 0; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero .container { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 56px 0 24px; }
  .hero-visual { min-height: 340px; margin: 0 -20px; }
  .hero-visual img { inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .hero-card { left: 20px; bottom: 20px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-img::before { display: none; }
  .grid-3, .app-tiles, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::after { display: none; }
  .app-list { grid-template-columns: 1fr; }
  .topbar-info span:nth-child(n+3) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .section, .product { padding: 64px 0; }
  .grid-4, .grid-3, .grid-2, .app-tiles, .gallery, .values, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .footer-main { grid-template-columns: 1fr; }
  .topbar-info span:nth-child(n+2) { display: none; }
  .brand-sub { display: none; }
  .float-bar { right: 10px; bottom: 16px; }
  .float-bar > a, .float-bar > button { width: 48px; height: 48px; }
  .app-item { grid-template-columns: 1fr; }
  .spec-table th { width: 40%; }
}

/* ---------- Contact links ---------- */
.topbar a:hover, .footer-contact a:hover { color: #fff; }
a.c-card { transition: border-color .2s, box-shadow .2s; }
a.c-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
a.c-card:hover h3 { color: var(--accent-ink); }
.footer-contact a { word-break: break-word; }
