:root {
    --ink: #14171c;
    --ink-2: #1f242c;
    --steel: #8a929e;
    --paper: #f3f1ec;
    --paper-2: #e8e5dd;
    --line: #d4d0c6;
    --volt: #f5c518;
    --volt-deep: #d9a900;
    --wa: #1faa59;
    --danger: #c8412b;
    --text: #2a2e35;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --sans: "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
    --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html:lang(zh-CN) { --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html:lang(en) { --sans: "IBM Plex Sans", "Noto Sans HK", system-ui, sans-serif; }
html:lang(en) .hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; }
html:lang(en) .sec-head h2, html:lang(en) .quote h2 { line-height: 1.15; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.tag { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.5em; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-volt { background: var(--volt); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-volt:hover { background: #ffd42e; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #189a4f; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c9ced6; font-size: .85rem; border-bottom: 1px solid #2b313a; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

header.site { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; background: var(--volt); border-radius: var(--radius); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; }
.brand strong { display: block; font-size: 1.05rem; font-weight: 900; letter-spacing: .02em; line-height: 1.2; }
.brand small { display: block; font-family: var(--mono); font-size: .68rem; color: var(--steel); letter-spacing: .08em; }
nav.main { display: flex; gap: 28px; font-size: .95rem; }
nav.main a { text-decoration: none; color: #c9ced6; position: relative; }
nav.main a:hover { color: #fff; }
nav.main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--volt); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
nav.main a:hover::after { transform: scaleX(1); }
/* Language switcher */
.lang { display: flex; gap: 2px; font-family: var(--mono); font-size: .78rem; border: 1px solid #39414c; border-radius: var(--radius); padding: 2px; }
.lang a { color: #a9b0ba; text-decoration: none; padding: 4px 9px; border-radius: 2px; white-space: nowrap; }
.lang a:hover { color: #fff; }
.lang a[aria-current] { background: var(--volt); color: var(--ink); font-weight: 600; }
.head-right { display: flex; align-items: center; gap: 18px; }
.head-call { font-family: var(--mono); font-weight: 600; color: var(--volt); text-decoration: none; font-size: 1.1rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-block: 88px 104px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--volt); border: 1px solid rgba(245,197,24,.4); padding: 6px 12px; border-radius: 2px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.12; font-weight: 900; margin: 22px 0 20px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--ink); background: var(--volt); padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-lead { color: #b8bec8; font-size: 1.1rem; max-width: 34em; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; gap: 32px; margin-top: 44px; padding-top: 28px; border-top: 1px dashed #39414c; flex-wrap: wrap; }
.hero-meta div { font-size: .9rem; color: #b8bec8; }
.hero-meta b { display: block; font-family: var(--mono); font-size: 1.6rem; color: #fff; font-weight: 600; line-height: 1.2; }

.panel { position: relative; background: var(--ink-2); border: 1px solid #333a45; border-radius: 6px; padding: 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-head .tag { color: #6f7884; }
.breakers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.breaker { background: #2a3039; border-radius: 3px; padding: 12px 6px 10px; text-align: center; font-family: var(--mono); font-size: .66rem; color: #8a929e; }
.breaker i { display: block; width: 18px; height: 34px; margin: 0 auto 8px; border-radius: 2px; background: #111; position: relative; }
.breaker i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 13px; border-radius: 1px; background: var(--volt); animation: flip 6s infinite; }
.breaker:nth-child(3) i::after { animation-delay: 1.2s; }
.breaker:nth-child(6) i::after { animation-delay: 2.6s; }
@keyframes flip { 0%, 40%, 100% { transform: translateY(0); background: var(--volt); } 44%, 52% { transform: translateY(15px); background: var(--danger); } }
.panel-status { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #c9ced6; background: #171b21; border-radius: 3px; padding: 12px 14px; }
.panel-status b { color: var(--volt); font-family: var(--mono); }
.panel-note { margin: 14px 0 0; font-size: .85rem; color: #8a929e; }

.hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--volt) 0 14px, var(--ink) 14px 28px); }

/* ---------- Sections ---------- */
section { padding-block: 96px; }
.sec-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 900; line-height: 1.2; margin: 8px 0 0; color: var(--ink); }
.sec-head p { margin: 0; color: #5a606a; max-width: 36em; }

/* Services */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 32px; position: relative; transition: border-color .2s, transform .2s; }
.svc:hover { border-color: var(--ink); transform: translateY(-3px); }
.svc:nth-child(1) { grid-column: span 7; }
.svc:nth-child(2) { grid-column: span 5; }
.svc:nth-child(3) { grid-column: span 12; background: var(--ink); color: #dfe3e8; border-color: var(--ink); display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.svc .num { font-family: var(--mono); font-size: .8rem; color: var(--steel); }
.svc h3 { font-size: 1.45rem; margin: 6px 0 14px; font-weight: 900; color: var(--ink); }
.svc:nth-child(3) h3 { color: #fff; }
.svc-icon { width: 46px; height: 46px; border-radius: var(--radius); background: var(--paper-2); display: grid; place-items: center; margin-bottom: 18px; }
.svc:nth-child(3) .svc-icon { background: var(--volt); }
.svc-icon svg { width: 24px; height: 24px; }
.svc ul { list-style: none; padding: 0; margin: 0; }
.svc li { padding: 10px 0 10px 26px; border-top: 1px dashed var(--line); position: relative; }
.svc li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 10px; height: 2px; background: var(--volt-deep); }
.svc:nth-child(3) li { border-color: #39414c; }
.svc:nth-child(3) li::before { background: var(--volt); }
.svc:nth-child(3) .lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.svc p.desc { color: #5a606a; margin: 0 0 6px; }
.svc:nth-child(3) p.desc { color: #a9b0ba; }

/* Certificates */
.certs { background: var(--paper-2); border-block: 1px solid var(--line); }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cert { background: #fff; border-radius: 6px; border: 1px solid var(--line); overflow: hidden; }
.cert-top { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 28px; border-bottom: 2px solid var(--ink); }
.cert-top b { font-family: var(--mono); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1; }
.cert-top span { font-weight: 700; color: var(--ink); }
.cert dl { margin: 0; padding: 8px 28px 24px; }
.cert dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--steel); margin-top: 16px; }
.cert dd { margin: 4px 0 0; }
.cert-note { margin-top: 20px; font-size: .88rem; color: #5a606a; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); }
.step { position: relative; padding-right: 24px; }
.step::before { counter-increment: step; content: "0" counter(step); position: relative; display: grid; place-items: center; width: 48px; height: 48px; background: var(--volt); color: var(--ink); font-family: var(--mono); font-weight: 600; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--ink); margin-bottom: 20px; }
.step h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--ink); }
.step p { margin: 0; color: #5a606a; font-size: .95rem; }

/* Emergency band */
.sos { background: var(--volt); padding-block: 56px; }
.sos .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sos h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; color: var(--ink); line-height: 1.25; }
.sos p { margin: 6px 0 0; color: #3b3313; font-weight: 500; }
.sos .btn-ink { background: var(--ink); color: #fff; font-family: var(--mono); font-size: 1.3rem; padding: 1em 1.6em; }
.sos .btn-ink:hover { background: #000; }
.sos-safety { flex-basis: 100%; display: flex; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: #3b3313; }
.sos-safety span { background: rgba(20,23,28,.08); padding: 4px 12px; border-radius: 2px; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.area { padding: 26px 28px; }
.area + .area { border-left: 1px solid var(--line); }
.area h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--ink); display: flex; justify-content: space-between; }
.area h3 .tag { font-size: .7rem; }
.area p { margin: 0; color: #5a606a; font-size: .95rem; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 700; color: var(--ink); font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.5rem; color: var(--volt-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: #5a606a; max-width: 40em; }

/* Quote form */
.quote { background: var(--ink); color: #dfe3e8; }
.quote-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.quote h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 900; line-height: 1.2; margin: 8px 0 18px; }
.quote-aside p { color: #a9b0ba; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px dashed #39414c; }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--volt); }
.contact-list a { color: #fff; text-decoration: none; font-weight: 700; }
.contact-list a:hover { color: var(--volt); }
.contact-list small { display: block; color: #8a929e; }

form.qf { background: #fff; color: var(--text); border-radius: 6px; padding: 36px; box-shadow: 8px 8px 0 var(--volt); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fcfbf8; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245,197,24,.5); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: .85rem; margin-top: 4px; }
.field.invalid .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 2px; cursor: pointer; font-size: .92rem; transition: all .15s; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--volt); }
.chips input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 2px; }
.hp { display: none; }
form.qf .btn-volt { width: 100%; justify-content: center; font-size: 1.1rem; padding: 1.05em; border: 2px solid var(--ink); }
form.qf .btn-volt[disabled] { opacity: .65; cursor: progress; }
.form-foot { margin: 14px 0 0; font-size: .85rem; color: #6b717b; text-align: center; }
.form-msg { display: none; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; }
.form-msg.error { display: block; background: #fbe9e5; color: #8a2a1a; }
.form-done { display: none; text-align: center; padding: 30px 10px; }
.form-done .ok { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--volt); display: grid; place-items: center; }
.form-done h3 { margin: 0 0 8px; font-size: 1.5rem; color: var(--ink); }
.form-done p { color: #5a606a; margin: 0 0 22px; }
form.qf.sent .form-body { display: none; }
form.qf.sent .form-done { display: block; }

/* Footer */
footer { background: #0e1014; color: #8a929e; font-size: .88rem; padding-block: 36px 110px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer p { margin: 4px 0; }
footer a { color: #c9ced6; text-decoration: none; }

/* Floating & mobile actions */
.float-wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; padding: 14px 22px; border-radius: 50px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -6px rgba(0,0,0,.4); transition: transform .2s; }
.float-wa:hover { transform: translateY(-2px); }
.float-wa svg { width: 22px; height: 22px; }
.mbar { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .rise:nth-child(2) { animation-delay: .08s; }
.hero .rise:nth-child(3) { animation-delay: .16s; }
.hero .rise:nth-child(4) { animation-delay: .24s; }
.hero .rise:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
    nav.main { display: none; }
    .hero .wrap, .sec-head, .faq-layout, .quote-layout, .cert-grid { grid-template-columns: 1fr; }
    .hero .wrap { padding-block: 56px 72px; gap: 40px; }
    .sec-head { gap: 14px; }
    .svc:nth-child(1), .svc:nth-child(2) { grid-column: span 12; }
    .svc:nth-child(3) { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
    .steps::before { display: none; }
    .areas { grid-template-columns: 1fr; }
    .area + .area { border-left: 0; border-top: 1px solid var(--line); }
    section { padding-block: 72px; }
}
@media (max-width: 640px) {
    .topbar .hide-sm, .head-call { display: none; }
    .svc { padding: 24px; }
    .svc:nth-child(3) .lists, .row { grid-template-columns: 1fr; gap: 0; }
    .steps { grid-template-columns: 1fr; }
    form.qf { padding: 24px; box-shadow: 5px 5px 0 var(--volt); }
    .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
    .float-wa { display: none; }
    .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
    .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px calc(16px + env(safe-area-inset-bottom)); font-weight: 700; text-decoration: none; }
    .mbar svg { width: 20px; height: 20px; }
    .mbar .call { background: var(--volt); color: var(--ink); }
    .mbar .wa { background: var(--wa); color: #fff; }
}
