/* ============================================================
   MMIRACLE 413 — Official B2B Brand Site
   Design system: Apple-style layout × black-gold premium identity
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --dark: #0a0a0c;
  --dark-2: #121215;
  --ink: #1d1d1f;
  --sub: #6e6e73;
  --sub-light: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.12);
  --gold: #c9a25e;
  --gold-light: #eed9a9;
  --gold-deep: #a87f3f;
  --gold-grad: linear-gradient(135deg, #f3e2b8 0%, #d9b878 38%, #c9a25e 62%, #a87f3f 100%);
  --nav-h: 56px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro SC",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 48px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }

::selection { background: rgba(201, 162, 94, 0.28); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.022em;
}
.h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.018em;
}
.h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; }
.muted { color: var(--sub); }
.gold-text {
  background: linear-gradient(120deg, #f3e2b8 0%, #dcb96f 45%, #c9a25e 70%, #b48c47 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.on-dark { color: #f5f5f7; }
.on-dark .muted, .dark-section .muted { color: var(--sub-light); }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.dark-section { background: var(--dark); color: #f5f5f7; }
.dark-section-2 { background: var(--dark-2); color: #f5f5f7; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head p { margin-top: 18px; color: var(--sub); font-size: clamp(16px, 1.5vw, 19px); }
.dark-section .section-head p { color: var(--sub-light); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-8-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Top promo bar ---------- */
.topbar {
  background: #000;
  color: var(--gold-light);
  font-size: 13px;
  text-align: center;
  padding: 11px 20px;
  letter-spacing: 0.04em;
}
.topbar a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { color: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 10, 12, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav.scrolled { background: rgba(10, 10, 12, 0.92); }
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 28px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #f5f5f7;
  white-space: nowrap;
}
.brand .brand-m { color: var(--gold); }
.brand .brand-num {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-links a {
  font-size: 13.5px;
  color: rgba(245, 245, 247, 0.82);
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 980px;
  overflow: hidden;
}
.lang-toggle button {
  font-size: 12px;
  padding: 5px 12px;
  color: rgba(245, 245, 247, 0.7);
  transition: all 0.25s var(--ease);
}
.lang-toggle button.active {
  background: var(--gold-grad);
  color: #131313;
  font-weight: 600;
}

.nav-burger { display: none; width: 40px; height: 40px; position: relative; }
.nav-burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.6px;
  background: #f5f5f7;
  transition: all 0.3s var(--ease);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 23px; }
.nav-burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* Mobile nav overlay */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(8, 8, 10, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mnav.open { opacity: 1; visibility: visible; }
.mnav a {
  font-size: 24px;
  font-weight: 600;
  color: #f5f5f7;
  padding: 10px 20px;
  opacity: 0.9;
}
.mnav a:hover { color: var(--gold-light); }
.mnav .lang-toggle { margin-top: 26px; }
.mnav .lang-toggle button { font-size: 14px; padding: 8px 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 980px;
  padding: 15px 34px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, #efd7a2 0%, #d5ae67 55%, #bd9149 100%);
  color: #131313;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(201, 162, 94, 0.32);
}
.btn-gold:hover { box-shadow: 0 10px 32px rgba(201, 162, 94, 0.45); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(245, 245, 247, 0.45); color: #f5f5f7; }
.btn-ghost:hover { background: rgba(245, 245, 247, 0.1); border-color: rgba(245, 245, 247, 0.8); }
.btn-dark { background: #1d1d1f; color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-outline-dark { border: 1px solid rgba(0, 0, 0, 0.28); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); background: rgba(0, 0, 0, 0.04); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }
.btn-lg { padding: 18px 42px; font-size: 17px; }
.text-link { color: var(--gold-deep); font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.dark-section .text-link { color: var(--gold-light); }

/* ---------- Index hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 72px) 28px 90px;
  background:
    radial-gradient(ellipse 60% 42% at 50% 30%, rgba(201, 162, 94, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 82% 78%, rgba(201, 162, 94, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 30% at 16% 82%, rgba(201, 162, 94, 0.05), transparent 70%),
    var(--dark);
  color: #f5f5f7;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold-light); }
.hero .h1 { margin: 0 auto 26px; max-width: 900px; }
.hero .hero-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  color: rgba(245, 245, 247, 0.72);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 247, 0.55);
  border: 1px solid rgba(245, 245, 247, 0.16);
  border-radius: 980px;
  padding: 8px 18px;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 84px;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(201, 162, 94, 0.14), transparent 72%),
    var(--dark);
  color: #f5f5f7;
  text-align: center;
}
.page-hero .h1 { font-size: clamp(36px, 5.4vw, 62px); }
.page-hero .hero-sub {
  max-width: 640px;
  margin: 22px auto 0;
  color: rgba(245, 245, 247, 0.68);
  font-size: clamp(16px, 1.6vw, 19px);
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.5);
  margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(201, 162, 94, 0.14), rgba(201, 162, 94, 0.05));
  color: var(--gold-deep);
  margin-bottom: 22px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; font-weight: 650; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--sub); font-size: 15px; line-height: 1.65; }

.dark-section .card,
.dark-section-2 .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}
.dark-section .card p, .dark-section-2 .card p { color: var(--sub-light); }
.dark-section .card .icon, .dark-section-2 .card .icon {
  background: linear-gradient(135deg, rgba(201, 162, 94, 0.22), rgba(201, 162, 94, 0.07));
  color: var(--gold-light);
}

/* Gold numbered badge inside cards */
.card-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 94, 0.55);
  color: var(--gold);
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 20px;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.stat .stat-num {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat .stat-label { margin-top: 10px; font-size: 14.5px; color: var(--sub); }
.dark-section .stat .stat-label { color: var(--sub-light); }

/* ---------- Feature split rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split .split-visual { display: grid; place-items: center; }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--sub); font-size: 17px; }
.dark-section .split p, .dark-section-2 .split p { color: var(--sub-light); }

/* ---------- Product visual frame ---------- */
.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 0;
}
.product-stage img { width: min(78%, 340px); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }
.product-stage::before {
  content: "";
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 94, 0.22) 0%, transparent 66%);
}
.light-stage { background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--line); }
.light-stage::before { background: radial-gradient(circle, rgba(201, 162, 94, 0.12) 0%, transparent 66%); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15.5px;
}
.spec-table th { width: 34%; font-weight: 600; color: var(--ink); white-space: nowrap; }
.spec-table td { color: var(--sub); }
.spec-table td strong { color: var(--ink); }

/* ---------- Ingredient chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 10px 20px;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.dark-section .chip { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); color: #f5f5f7; }

/* ---------- Quote block ---------- */
.quote-card {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 28px;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
}
.quote-card cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 14px;
  color: var(--sub);
}

/* ---------- Accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 6px;
  cursor: pointer;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--gold-deep); }
.acc summary .acc-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}
.acc summary .acc-icon::before {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1;
}
.acc details[open] summary .acc-icon { transform: rotate(45deg); background: rgba(201, 162, 94, 0.12); border-color: transparent; }
.acc .acc-body { padding: 0 6px 28px; color: var(--sub); font-size: 15.5px; line-height: 1.7; max-width: 820px; }
.dark-section .acc, .dark-section-2 .acc { border-color: var(--line-dark); }
.dark-section .acc details, .dark-section-2 .acc details { border-color: var(--line-dark); }
.dark-section .acc summary:hover, .dark-section-2 .acc summary:hover { color: var(--gold-light); }
.dark-section .acc summary .acc-icon, .dark-section-2 .acc summary .acc-icon { border-color: var(--line-dark); }
.dark-section .acc summary .acc-icon::before, .dark-section-2 .acc summary .acc-icon::before { color: var(--gold-light); }
.dark-section .acc .acc-body, .dark-section-2 .acc .acc-body { color: var(--sub-light); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; }
.form-field { display: flex; flex-direction: column; gap: 9px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field label .req { color: var(--gold-deep); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-size: 15.5px;
  color: #f5f5f7;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245, 245, 247, 0.35); }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a25e' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.form-field select option { color: #1d1d1f; background: #fff; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 94, 0.18);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--sub-light); }
.form-done {
  display: none;
  border: 1px solid rgba(201, 162, 94, 0.5);
  background: rgba(201, 162, 94, 0.1);
  color: var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.6;
}
.form-done.show { display: block; }

/* Light variant for forms on white background */
.light-form .form-field label { color: var(--ink); }
.light-form .form-field input,
.light-form .form-field select,
.light-form .form-field textarea {
  border-color: #d2d2d7;
  background: #fff;
  color: var(--ink);
}
.light-form .form-field input::placeholder,
.light-form .form-field textarea::placeholder { color: #a1a1a6; }
.light-form .form-note { color: var(--sub); }

/* ---------- Info cards (qualifications) ---------- */
.cert-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(201, 162, 94, 0.35);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(201, 162, 94, 0.7); }
.cert-card .seal {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  position: relative;
}
.cert-card .seal::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 162, 94, 0.5);
}
.cert-card .seal svg { width: 30px; height: 30px; }
.cert-card h3 { font-size: 20px; letter-spacing: 0.12em; margin-bottom: 8px; }
.cert-card .cert-sub { color: var(--gold-light); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.cert-card p { color: var(--sub-light); font-size: 14.5px; }

/* ---------- Value pills row (audience) ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aud-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: #fff;
}
.aud-item h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.aud-item p { color: var(--sub); font-size: 14.5px; }

/* ---------- Chart figure ---------- */
.chart-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px 26px;
  box-shadow: var(--shadow-card);
}
.chart-figure figcaption { margin-top: 18px; font-size: 13.5px; color: var(--sub); text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: 130px 28px;
  background:
    radial-gradient(ellipse 52% 60% at 50% 100%, rgba(201, 162, 94, 0.2), transparent 72%),
    var(--dark);
  color: #f5f5f7;
}
.cta-band .h2 { margin-bottom: 20px; }
.cta-band p { color: rgba(245, 245, 247, 0.66); max-width: 620px; margin: 0 auto 40px; font-size: clamp(16px, 1.6vw, 19px); }

/* ---------- Footer ---------- */
.footer {
  background: #000;
  color: #d5d5da;
  padding: 78px 0 42px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .brand { margin-bottom: 16px; }
.footer-tagline { color: rgba(245, 245, 247, 0.85); line-height: 1.7; max-width: 320px; }
.footer-b2b { color: var(--sub-light); margin-top: 8px; line-height: 1.7; }
.footer h4 {
  color: rgba(245, 245, 247, 0.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a { display: block; padding: 5px 0; color: rgba(245, 245, 247, 0.78); transition: color 0.25s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.footer-legal { color: var(--sub-light); line-height: 1.75; font-size: 12.5px; max-width: 920px; }
.footer-copy { color: rgba(245, 245, 247, 0.45); font-size: 12.5px; }

/* ---------- Legal pages ---------- */
.legal-body { padding: 110px 0; }
.legal-body .container-narrow { max-width: 820px; }
.legal-body h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 14px; }
.legal-meta { color: var(--sub); font-size: 14px; margin-bottom: 48px; }
.legal-body h2 { font-size: 22px; font-weight: 650; margin: 44px 0 14px; letter-spacing: -0.01em; }
.legal-body p, .legal-body li { color: var(--sub); font-size: 15.5px; line-height: 1.8; }
.legal-body ul { list-style: disc; padding-left: 24px; display: grid; gap: 8px; margin: 12px 0; }
.legal-body strong { color: var(--ink); }

/* ---------- Disclosure footnote ---------- */
.disclosure {
  font-size: 13px;
  color: var(--sub);
  background: rgba(201, 162, 94, 0.07);
  border: 1px solid rgba(201, 162, 94, 0.25);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  line-height: 1.7;
}
.dark-section .disclosure, .dark-section-2 .disclosure { color: var(--sub-light); background: rgba(201, 162, 94, 0.06); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .cert-card { transition: none; }
}

/* ---------- Floating bottle animation ---------- */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.float-slow { animation: floatY 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .float-slow { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav .lang-toggle { display: none; }
  .nav-cta { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-8-4 { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split .split-visual { order: -1; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .container, .container-narrow { padding: 0 22px; }
  .grid { gap: 16px; }
  .grid-2, .grid-3, .grid-4, .grid-8-4, .aud-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .section-head { margin-bottom: 44px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 64px); padding-bottom: 72px; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .page-hero { padding: calc(var(--nav-h) + 68px) 0 60px; }
  .card { padding: 30px 24px; }
  .chart-figure { padding: 24px 16px 18px; }
  .spec-table th { width: 40%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 14px 26px; font-size: 15px; }
}

/* ---------- Social quick-contact dock ---------- */
.social-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.dock-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 172px;
  padding: 14px;
  background: rgba(18, 18, 21, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.social-dock.open .dock-panel { opacity: 1; visibility: visible; transform: none; }
.dock-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 0 6px 4px;
}
.dock-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px 9px 11px;
  border-radius: 980px;
  color: #f5f5f7;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
  text-align: left;
}
.dock-item svg { width: 21px; height: 21px; flex: none; }
.dock-item:hover { transform: translateX(-2px); border-color: transparent; }
.dock-item.d-wechat:hover { background: #07c160; }
.dock-item.d-wa:hover { background: #25d366; }
.dock-item.d-ms:hover { background: #0084ff; }
.dock-item.d-ig:hover { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.dock-item.d-mail:hover { background: var(--gold); color: #131313; }
.dock-item.d-wechat.active { background: #07c160; border-color: transparent; }

/* WeChat QR popover */
.qr-pop {
  position: absolute;
  right: 186px;
  bottom: 8px;
  width: 196px;
  padding: 14px 14px 12px;
  background: rgba(18, 18, 21, 0.96);
  border: 1px solid rgba(201, 162, 94, 0.4);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.social-dock.qr-open .qr-pop { opacity: 1; visibility: visible; transform: none; }
.qr-pop img { width: 148px; height: 148px; margin: 0 auto 10px; border-radius: 10px; }
.qr-pop p { font-size: 12.5px; line-height: 1.55; color: var(--sub-light); }
.qr-pop .qr-id { color: var(--gold-light); font-weight: 600; }

/* FAB */
.dock-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #efd7a2, #d5ae67 55%, #bd9149);
  color: #131313;
  box-shadow: 0 10px 30px rgba(201, 162, 94, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.dock-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(201, 162, 94, 0.55); }
.dock-fab svg { width: 26px; height: 26px; }
.dock-fab .ico-close { display: none; }
.social-dock.open .dock-fab .ico-chat { display: none; }
.social-dock.open .dock-fab .ico-close { display: block; }

/* Footer social row */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(245, 245, 247, 0.8);
  transition: all 0.25s var(--ease);
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #131313; transform: translateY(-2px); }

@media (max-width: 480px) {
  .social-dock { right: 14px; bottom: 14px; }
  .qr-pop { right: 0; bottom: calc(100% + 14px); }
}
