/* ============================================================
   Ningbo Yijia Electric — Company Website
   ============================================================ */

:root {
  --navy: #0a4d6e;
  --navy-deep: #063348;
  --navy-soft: #0e637f;
  --teal: #16b8ad;
  --mint: #5ee1d0;
  --ink: #15333f;
  --muted: #6b8791;
  --line: #dce8ec;
  --bg: #f6fafb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(10, 77, 110, 0.09);
  --shadow-soft: 0 8px 26px rgba(10, 77, 110, 0.07);
  --radius: 18px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-accent { background: var(--teal); color: #042c35; box-shadow: 0 10px 26px rgba(22, 184, 173, .28); }
.btn-accent:hover { background: var(--mint); box-shadow: 0 14px 32px rgba(22, 184, 173, .38); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.04); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); }
.btn-outline-dark { border-color: #b9d3db; color: var(--navy); background: #fff; }
.btn-outline-dark:hover { border-color: var(--teal); background: #f1fafa; }
.catalogue-btn { margin-top: 22px; }
.catalogue-contact { margin: 16px 0 0 12px; }

/* ---------- Eyebrow & section head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-line { width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--mint); }
.section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head-center { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section h2 { font-size: clamp(30px, 3.4vw, 44px); color: var(--navy-deep); }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10, 51, 72, .08); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; color: var(--navy); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 20px; letter-spacing: .12em; color: var(--navy-deep); font-weight: 800; }
.brand-text small { font-size: 10px; letter-spacing: .1em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 560; color: #3d5a65; transition: color .2s ease; white-space: nowrap; }
.main-nav a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--navy); cursor: pointer; font-size: 12px; font-weight: 750;
}
.lang-toggle svg { width: 11px; height: 11px; }
.lang-toggle:hover { border-color: var(--teal); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(128deg, #063348 0%, #0a4d6e 52%, #0d6d7c 100%);
  color: #fff;
  padding: 88px 0 104px;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.hero-glow-a { width: 640px; height: 640px; right: -180px; top: -220px; background: radial-gradient(circle, rgba(94,225,208,.20), transparent 65%); }
.hero-glow-b { width: 520px; height: 520px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(22,184,173,.16), transparent 65%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--mint); }
.hero-lead { margin-top: 24px; max-width: 570px; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.8; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-features {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px;
}
.hero-features li {
  position: relative; padding-left: 20px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9);
}
.hero-features li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 3px rgba(94,225,208,.16);
}
.hero-note { margin-top: 22px; font-size: 12px; letter-spacing: .05em; color: rgba(255,255,255,.55); }
.hero-visual { position: relative; }
.visual-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.03));
  box-shadow: 0 32px 70px rgba(0,0,0,.18);
  padding: 22px;
  overflow: hidden;
}
.visual-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 72%);
}
.hero-product-pair { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-product-frame {
  position: relative;
  background: transparent;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
}
.hero-product-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; display: block; }
.hero-model-tag {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(6,51,72,.86); color: #fff;
  border: 1px solid rgba(94,225,208,.5);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
}
.float-tag {
  position: absolute; z-index: 2;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--navy);
  font-size: 12px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.float-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 7px; vertical-align: 1px; }
.float-tag-a { top: 40px; left: -18px; }
.float-tag-b { bottom: 92px; right: -14px; }
.visual-caption {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 12px; color: rgba(255,255,255,.68); letter-spacing: .03em;
}
.visual-caption .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* ---------- Trust bar ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 30px 26px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 25px; color: var(--navy); letter-spacing: -.02em; }
.trust-item span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background-color: #edf5f7;
  background-image: linear-gradient(rgba(10,77,110,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10,77,110,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1.5px dashed #bdcfd6;
  color: #9db3bb;
  overflow: hidden;
}
.img-placeholder::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; pointer-events: none;
}
.img-placeholder svg { width: 38px; height: 38px; opacity: .8; }
.img-placeholder span { font-size: 11px; letter-spacing: .05em; text-align: center; padding: 0 10px; }
.img-placeholder-tall { aspect-ratio: 4 / 5; border-radius: 18px; }

/* ---------- Products ---------- */
.products { background: var(--bg); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #bfd9e0; }
.product-img { display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .product-img img { transform: scale(1.045); }
.product-body { padding: 22px 20px 24px; }
.product-card-oem {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 34px 30px; background: linear-gradient(135deg, #0a4d6e, #0d7d84); color: #fff;
  border-color: transparent; min-height: 100%;
}
.product-card-oem h3 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.product-card-oem p { color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 24px; }
.oem-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.14); color: var(--mint); margin-bottom: 22px; }
.oem-icon svg { width: 27px; height: 27px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.product-tags span { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-soft); background: #eaf5f5; padding: 4px 8px; border-radius: 5px; }
.product-card h3 { font-size: 18px; color: var(--navy-deep); margin-bottom: 10px; }
.product-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.product-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf3f5;
  font-size: 11.5px; color: #405e69;
}
.product-specs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-specs i { font-style: normal; color: #93a8af; margin-right: 5px; }
.product-link { display: inline-block; margin-top: 18px; font-size: 12.5px; font-weight: 700; color: var(--teal); }

/* ---------- Why us ---------- */
.why { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-item { background: #fff; padding: 34px 30px; transition: background .2s ease; }
.feature-item:hover { background: #f5fbfb; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #e8f6f5; color: var(--navy); margin-bottom: 20px; }
.feature-icon svg { width: 25px; height: 25px; }
.feature-item h3 { font-size: 17px; color: var(--navy-deep); margin-bottom: 10px; }
.feature-item p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* ---------- How it works ---------- */
.how { background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps-grid::before { content: ""; position: absolute; top: 54px; left: 16%; right: 16%; height: 1px; border-top: 1.5px dashed #c7dde1; }
.step-card { position: relative; text-align: center; padding: 0 18px; }
.step-num { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: var(--teal); letter-spacing: .1em; }
.step-icon {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 30px auto 22px;
  border-radius: 50%; background: #fff; border: 1px solid #cfe2e6; color: var(--navy); box-shadow: 0 8px 24px rgba(10,77,110,.07);
}
.step-icon svg { width: 32px; height: 32px; }
.step-card h3 { font-size: 18px; color: var(--navy-deep); margin-bottom: 10px; }
.step-card p { font-size: 13.5px; color: var(--muted); max-width: 280px; margin-inline: auto; }
.feature-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 46px; }
.feature-strip span { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy-soft); font-size: 12px; font-weight: 600; box-shadow: var(--shadow-soft); }
.how-footnote { text-align: center; margin-top: 24px; font-size: 12.5px; color: #93a8af; }

/* ---------- Applications ---------- */
.applications { background: #fff; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(120deg, #fbfefe, #f4fafb);
  transition: border-color .2s ease, transform .2s ease;
}
.app-card:hover { border-color: #a9d4d4; transform: translateY(-3px); }
.app-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: #e6f5f4; color: var(--navy); }
.app-icon svg { width: 24px; height: 24px; }
.app-card h3 { font-size: 15px; color: var(--navy-deep); font-weight: 650; }

/* ---------- Quality ---------- */
.quality { background: linear-gradient(120deg, #eef7f7, #f8fbfc); }
.quality-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.quality-copy h2 { margin-bottom: 18px; }
.quality-copy p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 30px; }
.quality-list { display: grid; gap: 12px; }
.quality-step { display: flex; gap: 18px; align-items: flex-start; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-soft); }
.q-num { font-size: 13px; font-weight: 800; color: var(--teal); padding-top: 3px; }
.quality-step h3 { font-size: 15px; color: var(--navy-deep); margin-bottom: 4px; }
.quality-step p { font-size: 12.5px; color: var(--muted); }

/* ---------- About ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 76px; align-items: center; }
.about-visual { position: relative; max-width: 440px; }
.about-img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.about-badge {
  position: absolute; right: -22px; bottom: -22px;
  background: var(--navy); color: #fff; padding: 18px 24px; border-radius: 14px;
  box-shadow: 0 16px 34px rgba(10,77,110,.22);
}
.about-badge strong { display: block; font-size: 26px; line-height: 1; color: var(--mint); }
.about-badge span { font-size: 11.5px; letter-spacing: .04em; color: rgba(255,255,255,.75); }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.fact-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.fact-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.fact-list span { color: var(--muted); }
.fact-list strong { color: var(--navy-deep); text-align: right; font-weight: 650; }
/* ---------- Export markets ---------- */
.about-copy p.market-title { margin: 24px 0 11px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-deep); }
.market-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.market-tags span { display: inline-block; padding: 6px 11px; border: 1px solid #d6e6ea; border-radius: 999px; background: #f2f8f9; font-size: 11.5px; line-height: 1.3; color: var(--navy-deep); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: linear-gradient(125deg, #063348, #0a4d6e 62%, #0d6b7a); color: #fff; }
.contact-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -180px; top: -220px; background: radial-gradient(circle, rgba(94,225,208,.16), transparent 68%); }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 76px; align-items: start; }
.contact h2 { font-size: clamp(30px, 3.4vw, 44px); max-width: 420px; color: #fff; }
.contact-lead { margin: 20px 0 32px; color: rgba(255,255,255,.72); font-size: 15.5px; line-height: 1.8; max-width: 440px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(94,225,208,.16); color: var(--mint); }
.contact-icon svg { width: 21px; height: 21px; }
.contact-card div { min-width: 0; }
.contact-label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.contact-card a, .contact-card strong { display: block; font-size: 14px; font-weight: 650; word-break: break-word; }
.contact-card a:hover { color: var(--mint); }
.contact-card small { display: block; margin-top: 5px; font-size: 11px; color: rgba(255,255,255,.5); }
.contact-sublink { margin-top: 6px; font-size: 12px !important; font-weight: 600 !important; color: var(--mint) !important; }
.qr-note { margin: 24px 0 12px; font-size: 12px; letter-spacing: .05em; color: rgba(255,255,255,.6); }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px; border-radius: 14px; background: #fff;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 12px 30px rgba(0,0,0,.14);
  transition: transform .2s ease;
}
.qr-card:hover { transform: translateY(-3px); }
.qr-card img { width: 100%; max-width: 190px; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 8px; }
.qr-card span { font-size: 12px; font-weight: 650; color: var(--navy-deep); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: #052b3d; color: rgba(255,255,255,.62); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding: 68px 0 56px; }
.brand-footer .brand-mark { color: var(--mint); }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(255,255,255,.45); }
.footer-brand p { margin-top: 18px; max-width: 300px; font-size: 13px; line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 13px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .06em; margin-bottom: 8px; text-transform: uppercase; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 11.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px rgba(10,77,110,.28);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .25s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal); color: var(--navy-deep); }
.back-to-top svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 13px; }
  .header-cta { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 36px; }
  .quality-grid, .about-grid, .contact-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 78px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10,51,72,.1); padding: 12px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid #f0f5f6; font-size: 14px; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 64px 0 76px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-lead { max-width: 620px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1200px); }
  .section { padding: 72px 0; }
  .header-inner { height: 68px; }
  .main-nav { top: 68px; }
  .brand-text strong { font-size: 17px; }
  .hero h1 { font-size: 38px; }
  .hero-buttons .btn { width: 100%; }
  .hero-features { grid-template-columns: 1fr; gap: 8px; }
  .float-tag { font-size: 10px; padding: 6px 10px; }
  .float-tag-a { left: -4px; }
  .float-tag-b { right: -4px; }
  .product-grid, .feature-grid, .app-grid, .contact-cards, .qr-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 34px; }
  .quality-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: none; }
  .about-badge { right: 16px; }
  .fact-list li { flex-direction: column; gap: 2px; }
  .fact-list strong { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .back-to-top { right: 16px; bottom: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .inquiry-form { padding: 20px 16px; }
  .wa-float { right: 16px; bottom: 70px; height: 48px; padding: 0 12px; }
  .wa-float svg { width: 24px; height: 24px; }
  .modal-dialog { grid-template-columns: 1fr; max-height: 90vh; }
  .modal-media { padding: 18px; }
  .modal-media img { max-height: 240px; }
  .modal-content { padding: 24px 20px; }
  .modal-content h3 { font-size: 24px; }
  .modal-specs { grid-template-columns: 1fr 1fr; gap: 8px; }
}

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

/* ---------- Inquiry form ---------- */
.inquiry-form {
  margin-top: 26px; padding: 24px 22px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
}
.inquiry-title { font-size: 17px; font-weight: 700; color: #fff; }
.inquiry-sub { margin: 5px 0 18px; font-size: 12px; color: rgba(255,255,255,.6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: block; margin-bottom: 14px; }
.form-field > span { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.8); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 12px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1);
  color: #fff; font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,.42); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--mint); background: rgba(255,255,255,.15); }
.form-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23ffffff' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; padding-right: 32px; }
.form-field select option { background: #0a4d6e; color: #fff; }
.form-field textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-actions .btn { flex: 1 1 auto; justify-content: center; }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #25d366; color: #052b3d; }
.btn-wa:hover { background: #1ebe5d; }
.btn-wa svg { width: 17px; height: 17px; flex-shrink: 0; }
.form-note { margin-top: 12px; font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.5); }
.form-error { display: block; margin-top: 4px; font-size: 11px; color: #ffb3a7; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 82px; z-index: 95;
  display: flex; align-items: center; gap: 0;
  height: 52px; padding: 0 14px; border-radius: 26px;
  background: #25d366; color: #052b3d;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float-label { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .25s ease, opacity .25s ease, margin .25s ease; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.3); }
.wa-float:hover .wa-float-label, .wa-float:focus .wa-float-label { max-width: 120px; opacity: 1; margin-left: 8px; }

/* ---------- Product detail button ---------- */
.product-detail-btn {
  display: inline-block; margin-top: 14px; padding: 0; border: 0; background: none;
  font-size: 12.5px; font-weight: 700; color: var(--teal); cursor: pointer;
}
.product-detail-btn:hover { text-decoration: underline; }

/* ---------- Product modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,26,37,.72); }
.modal-dialog {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: min(920px, 100%); max-height: min(88vh, 700px); overflow: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.3);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--navy-deep);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--mint); }
.modal-media { display: grid; place-items: center; background: #f6fafb; padding: 24px; }
.modal-media img { width: 100%; max-height: 420px; object-fit: contain; }
.modal-content { padding: 40px 34px; }
.modal-eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.modal-content h3 { font-size: 28px; color: var(--navy-deep); margin: 8px 0 14px; }
.modal-content > p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 26px; }
.modal-specs div { padding: 10px 12px; border-radius: 9px; background: #f6fafb; border: 1px solid var(--line); }
.modal-specs span { display: block; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #93a8af; }
.modal-specs strong { display: block; margin-top: 3px; font-size: 14px; color: var(--navy-deep); }
.modal-cta { display: flex; flex-wrap: wrap; gap: 10px; }
body.modal-open { overflow: hidden; }
