/* NANICHA DESIGN — โครงหน้าเว็บอิงจากเทมเพลต 4RL — โทนสี น้ำเงินกรม · ฟ้า · ขาว */
:root {
  --navy-950: #071029;
  --navy-900: #0b1736;
  --navy-800: #12224d;
  --navy-700: #1b3170;
  --ink: #0e1630;
  --text: #2b3550;
  --muted: #5d6782;
  --line: #e2e7f1;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --accent: #2563eb;
  --accent-600: #1d4ed8;
  --hw: #0ea5e9;
  --sw: #2563eb;
  --ai: #1e40af;
  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(11, 23, 54, .35);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
svg { 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; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
section[id] { scroll-margin-top: var(--header-h); }
:focus-visible { outline: 3px solid var(--sw); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  cursor: pointer; transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .8); }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-ghost { color: var(--sw); border-color: #bfd3f5; background: #fff; }
.btn-ghost:hover { border-color: var(--sw); background: #eff6ff; }
.btn-light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-white { background: #fff; color: var(--sw); }
.btn-white:hover { background: #eff6ff; transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px -14px rgba(30, 64, 175, .35); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logo { display: block; width: auto; height: 66px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--sw); background: #eff6ff; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 120px; background: #eef6ff; color: var(--text); }
/* สไลด์ภาพพื้นหลัง: เฟดสลับทุก 6 วินาที + ซูมช้า ๆ */
.hero-slides, .hero-overlay { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: 70% center; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { background: linear-gradient(90deg, rgba(247, 251, 255, .97) 0%, rgba(247, 251, 255, .9) 34%, rgba(247, 251, 255, .45) 58%, rgba(247, 251, 255, 0) 80%), linear-gradient(0deg, rgba(255, 255, 255, .55), transparent 30%); }
.hero-dots { position: absolute; left: 50%; bottom: 72px; z-index: 2; display: flex; gap: 10px; transform: translateX(-50%); }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(30, 64, 175, .25); cursor: pointer; transition: width .3s, background-color .3s; }
.hero-dots button.is-active { width: 30px; background: var(--sw); }
.hero-grid { position: relative; z-index: 1; display: flex; align-items: center; min-height: 560px; }
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 6px 14px;
  border: 1px solid #cfe0f5; border-radius: 999px; background: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; color: var(--navy-700);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hw); box-shadow: 0 0 0 4px rgba(14, 165, 233, .2); }
.hero h1 { color: var(--ink); font-size: clamp(28px, 3.8vw, 48px); line-height: 1.28; margin-bottom: 22px; }
.grad {
  background: linear-gradient(90deg, #1d4ed8, #2563eb 45%, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; /* ให้ Hardware · Software · AI อยู่บรรทัดเดียวเสมอ */
}
.hero .lead { max-width: 560px; margin-bottom: 32px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 12px -8px rgba(30, 64, 175, .3);
  color: var(--ink); font-size: 14px; font-weight: 500;
}
.hero-pills .icon { width: 18px; height: 18px; }
.hero-pills .hw .icon { color: var(--hw); }
.hero-pills .sw .icon { color: var(--sw); }
.hero-pills .ai .icon { color: var(--ai); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--navy-700); font-size: 12.5px;
}
.scroll-cue .icon { width: 20px; height: 20px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sw); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p:last-child { margin: 0; font-size: 17px; color: var(--muted); }

/* Products — 4 pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  --c: #2563eb;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-6px); border-color: #bfd3f5; box-shadow: 0 28px 44px -22px rgba(30, 64, 175, .35); }
.pillar-photo { position: relative; display: block; height: 190px; background-size: cover; background-position: center; transition: transform .6s ease; }
.pillar:hover .pillar-photo { transform: scale(1.04); }
.pillar-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 23, 54, .25), transparent 45%); }
.pillar-num { position: absolute; top: 14px; left: 16px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--navy-700); }
.pillar-badge { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 24px; border-radius: 16px; background: #fff; color: var(--c); box-shadow: 0 10px 22px -10px rgba(30, 64, 175, .45); }
.pillar-badge .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.pillar-body { display: flex; flex: 1; flex-direction: column; padding: 14px 24px 24px; }
.pillar h3 { font-size: 23px; margin-bottom: 6px; }
.pillar p { flex: 1; margin-bottom: 16px; font-size: 15px; color: var(--muted); }
.pillar-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c); }
.pillar-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.pillar:hover .pillar-link .icon { transform: translateX(4px); }
.pillar-hw { --c: #0284c7; --glow: rgba(14, 165, 233, .16); }
.pillar-sw { --c: #2563eb; --glow: rgba(37, 99, 235, .14); }
.pillar-ai { --c: #1e40af; --glow: rgba(56, 189, 248, .18); }
.pillar-sup { --c: #0ea5e9; --glow: rgba(37, 99, 235, .12); }

/* Core services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { position: relative; overflow: hidden; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.svc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c); }
.svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.svc-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--c); flex: none; }
.svc-badge .icon { width: 26px; height: 26px; }
.svc-head h3 { margin: 0; font-size: 22px; }
.svc-head small { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.svc-desc { font-size: 15px; color: var(--muted); }
.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; }
.checklist .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--c); stroke-width: 2.4; }
.svc-hw { --c: #0ea5e9; --tint: #e0f2fe; }
.svc-sw { --c: #2563eb; --tint: #eff6ff; }
.svc-ai { --c: #1e40af; --tint: #dbeafe; }

/* Business model */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.model { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .3s, box-shadow .3s; }
.model:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.model-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--hw), var(--sw) 55%, var(--ai)); }
.model .en { margin-bottom: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sw); }
.model h3 { font-size: 21px; }
.model p:last-child { margin: 0; font-size: 15px; color: var(--muted); }

/* Workflow */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.flow::before { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--hw), var(--sw), var(--ai)); opacity: .35; }
.flow li { position: relative; padding: 0 6px; text-align: center; }
.flow-num {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px;
  border: 2px solid var(--line); border-radius: 50%; background: #fff;
  font-size: 20px; font-weight: 700; color: var(--navy-900); box-shadow: 0 10px 20px -12px rgba(11, 23, 54, .35);
  transition: border-color .2s, color .2s;
}
.flow li:hover .flow-num { border-color: var(--sw); color: var(--sw); }
.flow .en { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sw); }
.flow h3 { margin-bottom: 6px; font-size: 17px; }
.flow p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Why — dark */
.section-dark { position: relative; overflow: hidden; background: linear-gradient(180deg, #eaf3ff, #f5f9ff); color: var(--text); }
.section-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 360px at 90% 0%, rgba(56, 189, 248, .18), transparent 60%), radial-gradient(520px 320px at 0% 100%, rgba(37, 99, 235, .08), transparent 60%); }
.section-dark .container { position: relative; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { padding: 28px; border: 1px solid #dbe6f5; border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.why:hover { transform: translateY(-3px); border-color: #bfd3f5; box-shadow: var(--shadow); }
.why-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--hw), var(--sw) 55%, var(--ai)); }
.why h3 { font-size: 19px; }
.why p { margin: 0; font-size: 15px; color: var(--muted); }

/* Who we serve */
.serve-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.serve {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center;
  font-size: 15.5px; font-weight: 600; color: var(--ink); transition: border-color .2s, transform .2s;
}
.serve:hover { border-color: #c7d3ee; transform: translateY(-3px); }
.serve .icon { width: 34px; height: 34px; stroke-width: 1.6; color: var(--sw); }
.serve small { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.5; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-copy h2 { font-size: clamp(28px, 3.2vw, 38px); }
.about-copy p { font-size: 16.5px; color: var(--muted); }
.about-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
.stat strong { display: block; font-size: 32px; line-height: 1.2; color: var(--ink); }
.stat span { font-size: 14px; color: var(--muted); }
.about-side { display: grid; gap: 20px; align-self: center; }
.logo-card { display: grid; place-items: center; padding: 28px; border-radius: var(--radius); background: #74b5f4; box-shadow: var(--shadow); }
.logo-card img { width: 100%; max-width: 340px; height: auto; }
.facts { margin: 0; padding: 8px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.facts div { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }

/* CTA */
.cta-wrap { padding: 96px 0; }
.cta-card {
  position: relative; overflow: hidden; padding: 64px 48px; border-radius: 28px; text-align: center; color: #e0f2fe;
  background: radial-gradient(500px 300px at 100% 0%, rgba(125, 211, 252, .45), transparent 60%), linear-gradient(120deg, #1d4ed8, #2563eb 45%, #0ea5e9);
}
.cta-card h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); }
.cta-card p { max-width: 580px; margin: 0 auto 28px; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; }
.form-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
fieldset.field { min-width: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.field legend { margin-bottom: 8px; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe;
  font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sw); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field textarea::placeholder { color: #9aa3b8; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; }
.choice span:hover { border-color: #c7d3ee; }
.choice input:checked + span { border-color: var(--sw); background: #eff6ff; color: var(--sw); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(37, 99, 235, .2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-note { max-width: 340px; margin: 0; font-size: 13px; color: var(--muted); }
.form-status { min-height: 1.5em; margin: 16px 0 0; font-size: 14.5px; font-weight: 500; }
.form-status[data-kind="ok"] { color: #0f9d6b; }
.form-status[data-kind="error"] { color: var(--accent-600); }
.info-card { padding: 32px; border-radius: var(--radius); background: linear-gradient(150deg, #1d4ed8, #0284c7); color: #e0f2fe; }
.info-card h3 { margin-bottom: 2px; color: #fff; font-size: 19px; }
.info-text { margin-bottom: 24px; font-size: 15px; }
.info-en { margin-bottom: 16px; font-size: 13px; letter-spacing: .1em; color: #bae6fd; }
.info-list { display: grid; gap: 20px; margin: 0 0 28px; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 14px; }
.info-list .icon { margin-top: 2px; color: #bae6fd; }
.info-list strong { display: block; font-size: 14.5px; font-weight: 600; color: #fff; }
.info-list span { font-size: 14.5px; }

/* Footer */
.site-footer { padding-top: 64px; background: var(--navy-900); color: #b4c3e3; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .9fr .9fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand-logo { height: 120px; }
.footer-brand p { max-width: 340px; margin: 18px 0 0; }
.site-footer h4 { margin-bottom: 16px; font-size: 16px; color: #fff; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff;
  box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .8);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Reveal on scroll (เฉพาะเมื่อ JS ทำงาน) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pillar.reveal.in:hover { transform: translateY(-6px); transition-delay: 0ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .serve-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer;
  }
  .nav-toggle .i-shut, .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-shut { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 30px -16px rgba(30, 64, 175, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a:not(.btn) { padding: 12px 16px; border-radius: 12px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }

  .hero-grid { min-height: 480px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(247, 251, 255, .93) 0%, rgba(247, 251, 255, .86) 60%, rgba(247, 251, 255, .7) 100%); }
  .hero h1 { font-size: clamp(24px, 7.4vw, 44px); }
  .svc-grid, .model-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--hw), var(--sw), var(--ai)); }
  .flow li { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 0 0 28px; text-align: left; }
  .flow li:last-child { padding-bottom: 0; }
  .flow-num { grid-row: span 3; margin: 0; }
  .flow .en { margin-top: 6px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section, .cta-wrap { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 48px 0 96px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .pillar-grid, .why-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .serve-grid { grid-template-columns: 1fr 1fr; }
  .serve:last-child { grid-column: span 2; }
  .facts { padding: 4px 20px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .cta-card { padding: 48px 22px; border-radius: 22px; }
  .form-card, .info-card { padding: 24px; }
  .form-foot .btn { width: 100%; }
  .brand-logo { height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Product list (WatchGuard / Ruijie) ---------- */
.brand-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 28px; }
.brand-tab {
  display: inline-flex; align-items: center; justify-content: center; min-width: 140px; height: 52px; padding: 0 22px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.brand-tab img { display: block; width: auto; }
.brand-tab:hover { border-color: #bfd3f5; }
.brand-tab.is-active { border-color: var(--sw); background: #eff6ff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.promo { display: block; overflow: hidden; margin-bottom: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.promo img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.prod:hover { transform: translateY(-4px); border-color: #bfd3f5; box-shadow: var(--shadow); }
.prod[hidden], .promo[hidden] { display: none; }
.prod-img { border-bottom: 1px solid var(--line); background: #fff; }
.prod-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.prod-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.prod-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.prod-brand, .prod-cat { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.prod-brand-watchguard { background: #fde8ea; color: #c8102e; }
.prod-brand-ruijie { background: #e0f2fe; color: #0369a1; }
.prod-cat { background: var(--bg-soft); color: var(--muted); }
.prod h3 { margin-bottom: 6px; font-size: 17px; }
.prod-body > p:not(.prod-meta) { flex: 1; margin-bottom: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.prod-note { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 1080px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .prod-body { padding: 12px 12px 14px; } .prod h3 { font-size: 15px; } .brand-tab { min-width: 0; flex: 1; padding: 0 12px; } }
