/*
 * Xinyida Technology site theme
 * Visual refresh: modern B2B tech style, dark navy + cyan accent.
 * All selectors required by index.html and script.js are preserved.
 */

:root {
  --ink: #0b1320;
  --ink-soft: #1b2737;
  --muted: #5b6b7e;
  --line: #e3e9f1;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --accent: #0e7490;
  --accent-strong: #155e75;
  --accent-bright: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.18);
  --gold: #b45309;
  --green: #15803d;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 28px rgba(11, 19, 32, 0.07);
  --shadow-lift: 0 22px 48px rgba(11, 19, 32, 0.14);
  --gradient-accent: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.modal-anchor {
  position: absolute;
  top: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent-bright);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(227, 233, 241, 0.7);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px var(--accent-glow);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 8px);
  color: #36465a;
  font-size: 14.5px;
  font-weight: 600;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: var(--soft);
  color: var(--accent-strong);
}

.link-action {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease;
}

.link-action:hover {
  color: var(--accent-bright);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  padding: 3px;
}

.lang-button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  transition: background 160ms ease, color 160ms ease;
}

.lang-button.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(11, 19, 32, 0.25);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  text-decoration: none;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.3);
  filter: brightness(1.05);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-small {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 14px;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.button-secondary:hover {
  border-color: var(--accent-bright);
  color: var(--accent-strong);
  filter: none;
  box-shadow: 0 14px 30px rgba(11, 19, 32, 0.1);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(700px, 80svh);
  display: grid;
  align-items: center;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
  background-image:
    linear-gradient(
      100deg,
      rgba(244, 248, 252, 0.99) 0%,
      rgba(244, 248, 252, 0.94) 40%,
      rgba(244, 248, 252, 0.5) 68%,
      rgba(244, 248, 252, 0.12) 100%
    );
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero.is-image-loaded {
  background-image:
    linear-gradient(
      100deg,
      rgba(244, 248, 252, 0.99) 0%,
      rgba(244, 248, 252, 0.94) 40%,
      rgba(244, 248, 252, 0.5) 68%,
      rgba(244, 248, 252, 0.12) 100%
    ),
    url("assets/hero-earbuds.webp");
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  left: -180px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(660px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 16px;
  border: 1px solid rgba(14, 116, 144, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  overflow-wrap: break-word;
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-copy {
  max-width: 54ch;
  color: #41526a;
  font-size: 18.5px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
  margin: 40px 0 0;
}

.hero-stats div {
  border: 1px solid rgba(227, 233, 241, 0.9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.hero-stats dt {
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background:
    radial-gradient(ellipse at 15% 0%, rgba(6, 182, 212, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, #0b1320 0%, #14253c 100%);
  color: #fff;
}

.strip-item {
  position: relative;
  min-height: 80px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #e6f0f6;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.strip-item + .strip-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading p:not(.eyebrow),
.split-copy p {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-lift);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: 70% center;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(34, 197, 94, 0.08)),
    var(--soft);
  transition: transform 400ms ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.1);
  color: var(--accent-strong);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-body h3 {
  font-size: 23px;
  font-weight: 800;
}

.product-body ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 20px;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.product-body li {
  position: relative;
  min-height: 22px;
  padding-left: 18px;
}

.product-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.product-note {
  margin: -6px 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.product-body a {
  margin-top: auto;
  align-self: flex-start;
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
  border-bottom: 2px solid rgba(6, 182, 212, 0.35);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.product-body a:hover {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}

/* ---------- Split sections ---------- */

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.section-split.reverse {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.split-media {
  position: relative;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--gradient-accent);
  opacity: 0.12;
}

.split-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(34, 197, 94, 0.08)),
    var(--soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature-list div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, transform 180ms ease;
}

.feature-list div:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateX(4px);
}

.feature-list strong {
  font-size: 17px;
  color: var(--accent-strong);
}

.feature-list span {
  color: var(--muted);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.custom-grid span {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
  padding: 12px 16px 12px 38px;
  color: #2b3b50;
  font-weight: 650;
  transition: border-color 160ms ease, background 160ms ease;
}

.custom-grid span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--gradient-accent);
}

.custom-grid span:hover {
  background: #fff;
  border-color: rgba(6, 182, 212, 0.45);
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.process-grid article {
  position: relative;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}

.process-grid article::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.process-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.process-grid article:hover::after {
  opacity: 1;
}

.process-grid span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 12px;
  background: rgba(14, 116, 144, 0.1);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 800;
}

.process-grid p {
  color: var(--muted);
}

/* ---------- Inquiry / contact ---------- */

.inquiry-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(241, 246, 251, 0.97));
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.inquiry-form,
.contact-panel {
  border: 1px solid rgba(227, 233, 241, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lift);
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 3.4vw, 40px);
}

label {
  display: grid;
  gap: 8px;
  color: #2f4055;
  font-size: 13.5px;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d4dde7;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  padding: 13px 15px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-bright);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 650;
}

.contact-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 30px 24px;
}

.company-name {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.contact-person {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft);
  padding: 14px;
  transition: border-color 180ms ease;
}

.contact-person:hover {
  border-color: rgba(6, 182, 212, 0.45);
}

.contact-person strong {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 17px;
}

.contact-panel p {
  color: var(--muted);
}

.contact-copy {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 44px;
  gap: 9px;
  align-items: center;
  justify-items: stretch;
  width: 100%;
  min-height: 50px;
  border: 1px dashed rgba(14, 116, 144, 0.4);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 7px 10px;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-copy:hover,
.contact-copy:focus-visible {
  border-color: var(--accent-bright);
  background: rgba(6, 182, 212, 0.06);
}

.contact-copy:focus-visible,
.floating-wechat:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 3px;
}

.contact-icon {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  max-height: 28px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-strong);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  padding: 7px;
}

.contact-copy-text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.contact-copy-text span:first-child {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

.contact-copy-text strong {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-feedback {
  justify-self: end;
  white-space: nowrap;
  font-size: 11px;
  color: var(--accent-bright);
  font-weight: 650;
}

.contact-note {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.contact-note span {
  color: var(--muted);
}

/* ---------- Floating actions ---------- */

.floating-wechat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 12px 22px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-wechat:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.4);
}

.floating-wechat.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
}

.wechat-modal:target,
.wechat-modal.is-open {
  display: grid;
}

.wechat-modal-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(11, 19, 32, 0.48);
  cursor: pointer;
}

.wechat-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  border: 1px solid rgba(227, 233, 241, 0.95);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.wechat-modal-card h3,
.wechat-modal-card p {
  margin: 0;
}

.wechat-modal-card h3 {
  color: var(--ink);
  font-size: 22px;
}

.wechat-modal-card p {
  color: var(--muted);
  font-size: 14px;
}

.wechat-modal-card img {
  width: min(240px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft);
  padding: 10px;
}

.wechat-modal-note {
  font-size: 12px !important;
}

.wechat-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.wechat-modal-close:hover,
.wechat-modal-close:focus-visible {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-strong);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 40;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(14, 116, 144, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  box-shadow: var(--shadow-soft);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--gradient-accent);
  color: #fff;
}

.back-to-top:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(18px, 5vw, 72px);
  background: linear-gradient(135deg, #0b1320 0%, #14253c 100%);
  color: #c8d6e2;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

/* ---------- Reveal on scroll friendly defaults ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .product-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-split,
  .section-split.reverse,
  .inquiry-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .site-header {
    gap: 14px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: min(760px, 74svh);
    background-image:
      linear-gradient(
        180deg,
        rgba(244, 248, 252, 0.98) 0%,
        rgba(244, 248, 252, 0.9) 58%,
        rgba(244, 248, 252, 0.3) 100%
      );
    background-position: 58% center;
  }

  .hero.is-image-loaded {
    background-image:
      linear-gradient(
        180deg,
        rgba(244, 248, 252, 0.98) 0%,
        rgba(244, 248, 252, 0.9) 58%,
        rgba(244, 248, 252, 0.3) 100%
      ),
      url("assets/hero-earbuds.webp");
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(38px, 11vw, 56px);
  }

  .hero-copy {
    font-size: 17px;
    overflow-wrap: break-word;
    max-width: 32ch;
  }

}

@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, max-content) auto;
    min-height: auto;
    align-items: center;
    gap: 10px;
    justify-content: start;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand small,
  .header-actions .button-small {
    display: none;
  }

  .header-actions {
    gap: 0;
    justify-self: start;
    margin-left: 0;
  }

  .language-switcher {
    flex-shrink: 0;
  }

  .lang-button {
    min-height: 30px;
    padding: 5px 10px;
  }

  .button-small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 44px 16px 54px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.6vw, 46px);
    line-height: 1.04;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats,
  .trust-strip,
  .product-grid,
  .process-grid,
  .inquiry-form,
  .custom-grid {
    grid-template-columns: 1fr;
  }

  .strip-item {
    min-height: 56px;
  }

  .strip-item + .strip-item::before {
    left: 22%;
    top: 0;
    height: 1px;
    width: 56%;
  }

  .section {
    padding: 60px 16px;
  }

  .product-card img {
    height: 210px;
  }

  .process-grid article {
    min-height: auto;
  }

  .floating-wechat {
    right: auto;
    left: 16px;
    bottom: 14px;
    width: 150px;
    justify-content: center;
  }

  .wechat-modal-card {
    padding: 22px 18px;
  }

  .back-to-top {
    right: 16px;
    bottom: 14px;
  }
}
