/* =========================================================
   MGRC — Regenerative Medicine site
   Design system: "Holographic Wellness"
   iridescent aqua · lavender · pink · peach — young, bold, fashion-forward
   ========================================================= */

:root {
  --bg-0: #ffffff;
  --bg-1: #f7f4ff;
  --bg-2: #fbfaff;
  --mist: linear-gradient(135deg, #ecfcff 0%, #f4efff 50%, #fff0f8 100%);
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-solid: #ffffff;
  --line: rgba(27, 20, 66, .08);
  --line-2: rgba(27, 20, 66, .16);
  --text: #1b1442;
  --text-2: #453e6d;
  --text-3: #6c6692;
  --accent: #6d3df5;
  /* accent tokens (names kept for compatibility) */
  --cyan: #0ea5c4;      /* aqua */
  --cyan-2: #0891ad;
  --violet: #7c4dff;
  --violet-2: #7c4dff;
  --gold: #e8487f;      /* warm pink accent */
  --gold-2: #ff8a65;
  --green: #0fae96;     /* mint */
  --pink: #e8489b;
  --orange: #ff7a59;
  --red: #f43f5e;
  --holo: linear-gradient(120deg, #8ef0f5 0%, #b9a6ff 38%, #ffb3dd 68%, #9fe9ff 100%);
  --grad-brand: linear-gradient(100deg, #1b9fd0 0%, #6d3df5 48%, #e8489b 100%);
  --grad-ink: linear-gradient(100deg, #1b1442 0%, #5b2fd6 48%, #d6337f 100%);
  --grad-gold: linear-gradient(100deg, #e8489b 0%, #ff8a65 100%);
  --grad-border: linear-gradient(135deg, #8ef0f5, #c4b0ff 50%, #ffbfe2);
  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 16px 44px -20px rgba(109, 61, 245, .3);
  --shadow-hover: 0 28px 60px -22px rgba(109, 61, 245, .45);
  --font-display: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-label: var(--font-display);
  --header-h: 64px;
  --gutter: 24px;
  color-scheme: light;
}

/* ---------- Language switching ---------- */
html[data-lang="zh"] body [lang="en"],
html[data-lang="en"] body [lang="zh"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; letter-spacing: -.005em;
  color: var(--text); background: var(--bg-0); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; color: var(--text); }
html[data-lang="zh"] :is(h1, h2) { font-weight: 900; letter-spacing: 0; }
h1, h2, h3 { text-wrap: balance; }
html[data-lang="zh"] :is(h1, h2, h3) :is(.grad-text, .gold-text) { white-space: nowrap; }
html[data-lang="zh"] :is(h1, h2) { word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--text); font-weight: 700; }
::selection { background: rgba(124, 77, 255, .22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.container--narrow { width: min(840px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(76px, 10vw, 136px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 84px); }
.section--alt { background: var(--mist); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.muted { color: var(--text-3); }
.small { font-size: 15px; }
.tiny { font-size: 12px; color: var(--text-3); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 7px 15px 7px 12px; border-radius: 980px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(124, 77, 255, .22), 0 6px 18px -10px rgba(109, 61, 245, .4);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 10px rgba(232, 72, 155, .6); }
html[data-lang="zh"] .eyebrow { letter-spacing: .18em; font-size: 13.5px; }
.display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 12.5vw, 160px); line-height: .9; letter-spacing: -.045em; margin: 0;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
html[data-lang="zh"] .display { letter-spacing: .02em; font-weight: 900; }

/* 3D perspective title: extruded side (text-shadow stack) + glossy gradient face on top */
.display--3d { background: none; color: inherit; -webkit-text-fill-color: initial; perspective: 760px; perspective-origin: 50% 10%; padding: .04em 0 .2em; overflow: visible; }
.t3d {
  position: relative; display: inline-block; white-space: nowrap;
  color: #7c5cff;
  text-shadow:
    0 .008em 0 #6a45f0, 0 .016em 0 #6340e6, 0 .024em 0 #5b3bdb, 0 .032em 0 #5436d0,
    0 .040em 0 #4c31c4, 0 .048em 0 #452cb8, 0 .056em 0 #3d27ab, 0 .064em 0 #36229e,
    0 .072em 0 #2f1d90, 0 .080em 0 #2b1680,
    0 .11em .05em rgba(43, 22, 128, .5),
    0 .18em .16em rgba(91, 47, 214, .38),
    -.06em .22em .3em rgba(14, 165, 196, .32),
    .08em .24em .34em rgba(232, 72, 155, .38);
  transform: rotateX(20deg) rotateY(0deg);
  transform-origin: 50% 90%;
  animation: t3dFloat 9s ease-in-out infinite;
}
.t3d__face {
  position: absolute; left: 0; top: 0; pointer-events: none; text-shadow: none;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 48%, transparent 58%) -150% 0 / 60% 100% no-repeat,
    linear-gradient(180deg, #f6f2ff 0%, #d6c8ff 18%, #9d7bff 40%, #6d3df5 62%, #8b3fd8 80%, #e8489b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: t3dShine 6s ease-in-out infinite;
}
@keyframes t3dFloat {
  0%, 100% { transform: rotateX(22deg) rotateY(-5deg); }
  50% { transform: rotateX(14deg) rotateY(5deg) translateY(-.03em); }
}
/* Crystal-glass title (SVG built by main.js) */
.glass-h1 { background: none; color: var(--text); -webkit-text-fill-color: initial; font-size: inherit; line-height: 1; padding: 0; margin: 6px 0 0; perspective: 1100px; perspective-origin: 50% 20%; }
.glass-title { display: inline-block; vertical-align: top; transform-style: preserve-3d; transform-origin: 50% 70%; animation: glassFloat 10s ease-in-out infinite; opacity: 0; transition: opacity .6s ease; }
.glass-title.is-ready { opacity: 1; }
.glass-title svg { display: block; height: auto; overflow: visible; filter: drop-shadow(0 18px 26px rgba(109, 61, 245, .22)); }
.glass-title[lang="zh"] svg { width: clamp(300px, 54vw, 720px); }
.glass-title[lang="en"] svg { width: clamp(330px, 84vw, 1080px); }
.gt-t { font-family: var(--font-display); font-weight: 800; font-size: 200px; letter-spacing: -.035em; }
.glass-title[lang="zh"] .gt-t { font-weight: 900; letter-spacing: .04em; }
@keyframes glassFloat {
  0%, 100% { transform: rotateX(16deg) rotateY(-7deg); }
  50% { transform: rotateX(9deg) rotateY(7deg) translateY(-6px); }
}
/* Crystal-glass inner-page headings (HTML text + SVG filter #glass-text from main.js) */
html.has-glass .page-hero .h1 {
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(170, 228, 255, .62) 30%, rgba(150, 120, 255, .46) 60%, rgba(245, 95, 185, .7) 100%) 0 0 / 100% 1.04em repeat-y;
  -webkit-background-clip: text; background-clip: text;
  filter: url(#glass-text);
  line-height: 1.04; padding: .04em 0 .16em; margin-bottom: .1em;
  transform-origin: 0 100%; animation: glassTilt 11s ease-in-out infinite; will-change: transform;
}
html.has-glass .page-hero .h1 :is(.grad-text, .gold-text) {
  background: linear-gradient(100deg, rgba(30, 185, 235, .8), rgba(124, 77, 255, .66) 50%, rgba(240, 80, 170, .82)) 0 0 / 100% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 620px) {
  html.has-glass .page-hero .h1 {
    filter: url(#glass-text-sm);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(140, 215, 255, .78) 32%, rgba(124, 90, 245, .7) 62%, rgba(236, 72, 170, .85) 100%);
  }
}
@keyframes glassTilt {
  0%, 100% { transform: perspective(1100px) rotateX(9deg) rotateY(-3deg); }
  50% { transform: perspective(1100px) rotateX(4deg) rotateY(2deg) translateY(-3px); }
}

/* crystal rim on glass panels & framed art: iridescent edge like cut glass */
.glass, .specimen, .stage { position: relative; }
:is(.glass, .specimen, .stage, .ig-thumb)::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; padding: 1.6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98) 0%, rgba(120, 236, 255, .8) 22%, rgba(255, 255, 255, .25) 45%, rgba(196, 176, 255, .55) 62%, rgba(255, 140, 214, .85) 82%, rgba(255, 255, 255, .95) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass { box-shadow: 0 24px 60px -28px rgba(91, 60, 200, .45), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -10px 30px -18px rgba(255, 140, 214, .35), inset 10px 0 30px -20px rgba(120, 236, 255, .35); }
@keyframes t3dShine { 0%, 55% { background-position: -150% 0, 0 0; } 100% { background-position: 250% 0, 0 0; } }
.h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.032em; line-height: 1.04; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.h4 { font-size: 20px; font-weight: 700; }
.lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--text-2); line-height: 1.55; max-width: 40em; }
.center .lead { margin-inline: auto; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.25; margin: 0 0 4px; }
.tagline {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .34em;
  font-size: clamp(15px, 2vw, 22px); margin: 16px 0 0; color: var(--accent);
}
html[data-lang="zh"] .tagline { letter-spacing: .6em; font-size: clamp(18px, 2.4vw, 26px); }
.section-head { max-width: 800px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 980px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  border: 1px solid rgba(27, 20, 66, .16); color: var(--text); background: rgba(255, 255, 255, .78);
  cursor: pointer; transition: transform .25s ease, box-shadow .3s ease, background-position .6s ease, background-color .25s;
  white-space: nowrap; text-decoration: none !important;
}
.btn:hover { color: var(--text); background-color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(109, 61, 245, .5); }
.btn .i { width: 17px; height: 17px; stroke-width: 2; }
.btn--primary {
  color: #fff; border: 0; background: linear-gradient(100deg, #1b9fd0, #6d3df5 35%, #e8489b 70%, #ff8a65) 0 0 / 200% 100%;
  box-shadow: 0 14px 32px -12px rgba(109, 61, 245, .6);
}
.btn--primary:hover { color: #fff; background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(232, 72, 155, .6); }
.btn--gold { color: #fff; border: 0; background: var(--text); }
.btn--gold:hover { color: #fff; background: #0e0a26; }
.btn--sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btn-row, .btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--accent); }
.link-arrow .i { width: 15px; height: 15px; stroke-width: 2.2; transition: transform .2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Icons ---------- */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-badge {
  --c: var(--accent);
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; flex: none; color: var(--c);
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 20%, #fff), color-mix(in srgb, var(--c) 6%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent), 0 10px 22px -12px color-mix(in srgb, var(--c) 70%, transparent);
}
.icon-badge .i { width: 26px; height: 26px; }
.icon-badge--lg { width: 68px; height: 68px; border-radius: 22px; }
.icon-badge--lg .i { width: 32px; height: 32px; }
.icon-badge--sm { width: 38px; height: 38px; border-radius: 12px; }
.icon-badge--sm .i { width: 19px; height: 19px; }
.c-cyan { --c: var(--cyan); } .c-violet { --c: var(--violet); } .c-gold { --c: var(--gold); }
.c-green { --c: var(--green); } .c-pink { --c: var(--pink); } .c-orange { --c: var(--orange); } .c-red { --c: var(--red); }

/* ---------- Glass / cards ---------- */
.glass {
  background: rgba(255, 255, 255, .58); border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 60px -28px rgba(91, 60, 200, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad-border) border-box;
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card h3, .card .h4 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon-badge { margin-bottom: 20px; }
.card--accent { box-shadow: inset 0 3px 0 var(--c, var(--accent)), var(--shadow); }
.card--center { text-align: center; }
.card--center .icon-badge { margin-inline: auto; }
.card__num { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .12em; margin-bottom: 10px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split--top { align-items: start; }
@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 24px; }
}

/* ---------- Media frames ---------- */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-1); box-shadow: 0 24px 50px -26px rgba(91, 60, 200, .45); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 6px 13px; border-radius: 980px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.ratio-16x9 { aspect-ratio: 16 / 9; } .ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-1 { aspect-ratio: 1; } .ratio-3x4 { aspect-ratio: 3 / 4; }
.specimen {
  position: relative; border-radius: 30px; overflow: hidden; background: #f1efff; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 34px 70px -30px rgba(109, 61, 245, .6);
}
.specimen img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.specimen:hover img { transform: scale(1.05); }
.stage {
  position: relative; display: grid; place-items: center; padding: 32px; border-radius: 30px; min-height: 280px;
  background: radial-gradient(60% 60% at 50% 45%, #ffffff 0%, rgba(255, 255, 255, .55) 60%, rgba(255, 255, 255, .25) 100%), var(--holo);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 30px 60px -30px rgba(109, 61, 245, .55);
}
.stage img { max-height: 340px; width: auto; object-fit: contain; filter: drop-shadow(0 26px 24px rgba(60, 30, 140, .25)); }
.stage--light { background: radial-gradient(60% 60% at 50% 45%, #ffffff, #f4f0ff 80%); }

/* ---------- Holographic liquid layer (injected by main.js) ---------- */
.holo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--holo); }
.holo svg { position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; animation: holoDrift 26s ease-in-out infinite alternate; will-change: transform; }
.holo::after { /* soft sheen sweep */
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  animation: holoSheen 9s ease-in-out infinite; will-change: transform;
}
@media (max-width: 760px) { .holo svg { animation-duration: 40s; } .holo::after { display: none; } }
@keyframes holoDrift { 0% { transform: translate3d(-3%, -2%, 0) scale(1.02) rotate(-1deg); } 100% { transform: translate3d(3%, 2%, 0) scale(1.1) rotate(1.5deg); } }
@keyframes holoSheen { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .5);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, .6); transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .78); border-bottom-color: var(--line); }
.site-header.is-open { background: #fff; border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand img { height: 40px; width: auto; }
/* CLREAM text logo: crystal orb + wordmark */
.brand-mark {
  position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #fff 0 14%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 70% 75%, rgba(255, 120, 200, .9), rgba(255, 120, 200, 0) 55%),
    radial-gradient(circle at 25% 70%, rgba(90, 230, 255, .9), rgba(90, 230, 255, 0) 55%),
    linear-gradient(140deg, #b9a6ff, #7c4dff 60%, #e8489b);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85), inset -3px -4px 8px rgba(80, 40, 180, .35), 0 6px 16px -6px rgba(109, 61, 245, .7);
}
.brand-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .75); border-left-color: transparent; transform: rotate(-30deg); }
.brand-text { display: grid; line-height: 1; }
.brand-text b {
  font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small { margin-top: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
html[data-lang="zh"] .brand-text small { letter-spacing: .5em; font-size: 10px; }
.brand--lg .brand-mark { width: 42px; height: 42px; }
.brand--lg .brand-mark::after { inset: 11px; }
.brand--lg .brand-text b { font-size: 30px; }
@media (max-width: 420px) { .brand-text b { font-size: 21px; } .brand-mark { width: 30px; height: 30px; } .brand-mark::after { inset: 8px; } }
.brand:hover { text-decoration: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 13px; border-radius: 980px;
  color: var(--text-2); font-weight: 500; font-size: 14.5px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); transition: color .2s, background .2s;
}
.nav__link:hover, .nav__trigger:hover { color: var(--text); background: rgba(255, 255, 255, .7); text-decoration: none; }
.nav__link.is-active, .nav__item.is-active > .nav__trigger { color: var(--accent); font-weight: 700; background: rgba(255, 255, 255, .75); }
.nav__trigger .i { width: 12px; height: 12px; stroke-width: 2.2; transition: transform .2s; }
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; width: 370px; padding: 10px;
  border-radius: 22px; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 30px 60px -20px rgba(91, 60, 200, .4), 0 0 0 1px rgba(124, 77, 255, .14);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover .nav__trigger .i, .nav__item.is-open .nav__trigger .i { transform: rotate(180deg); }
.nav__menu a { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; color: var(--text); }
.nav__menu a:hover, .nav__menu a.is-active { background: var(--mist); text-decoration: none; }
.nav__menu a small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
.nav__menu a b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-toggle { display: inline-flex; padding: 3px; border-radius: 980px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(27, 20, 66, .1); }
.lang-toggle button { border: 0; background: none; color: var(--text-3); font: 600 12.5px/1 var(--font-body); padding: 7px 11px; border-radius: 980px; cursor: pointer; }
html[data-lang="en"] .lang-toggle [data-set-lang="en"],
html[data-lang="zh"] .lang-toggle [data-set-lang="zh"] { background: var(--text); color: #fff; }
.burger { display: none; width: 42px; height: 42px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .7); color: var(--text); cursor: pointer; place-items: center; }
.burger .i { width: 22px; height: 22px; }
.mobile-nav { display: none; }

@media (max-width: 1120px) {
  .nav, .header-actions .btn { display: none; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff;
    padding: 12px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s ease;
  }
  .site-header.is-open + .mobile-nav { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 22px; }
  .mobile-nav a:hover { text-decoration: none; }
  .mobile-nav a.is-active { color: var(--accent); }
  .mobile-nav .mobile-nav__group { padding: 22px 4px 4px; color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-nav .sub { padding-left: 4px; font-size: 18px; font-weight: 600; }
  .mobile-nav .btn { width: 100%; margin-top: 28px; font-size: 17px; border-bottom: 0; color: #fff; justify-content: center; }
}
@media (max-width: 420px) { .brand img { height: 32px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(60px, 9vw, 128px)) 0 clamp(64px, 9vw, 120px);
}
.page-hero__bg { display: none; }
.page-hero::before { content: none; }
.page-hero .lead { margin-top: 20px; color: var(--text-2); }
.page-hero .container > :not(.page-hero__grid) { max-width: 680px; }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.page-hero__art { justify-self: center; max-width: 440px; width: 100%; }
.page-hero__grid .h1 { font-size: clamp(38px, 5vw, 66px); }
.page-hero .chip { background: rgba(255, 255, 255, .7) !important; }
@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { max-width: 320px; }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--text-3); margin-bottom: 22px; }
.crumbs a { color: var(--text-2); }
.crumbs .i { width: 12px; height: 12px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 64px) 0 0; }
.hero__bg { display: none; }
#particles { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__head { text-align: center; position: relative; z-index: 2; }
.hero__sub { max-width: 700px; margin: 24px auto 0; color: var(--text-2); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; }
.hero__sub em { font-style: normal; font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* anatomy stage */
.anatomy {
  position: relative; display: grid; grid-template-columns: 1fr minmax(300px, 520px) 1fr; gap: 16px;
  align-items: center; margin: 36px auto 0; max-width: 1180px;
}
.anatomy__col { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 2; }
.anatomy__col--left { align-items: flex-end; text-align: right; justify-content: space-around; height: 100%; padding-block: 8% 12%; }
.anatomy__col--right { align-items: flex-start; }
.part { max-width: 236px; cursor: default; padding: 2px; transition: transform .25s; }
.part .label { font-size: 15.5px; }
.part p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.part.is-hot .label { color: var(--accent); }
.anatomy__cell { position: relative; z-index: 1; }
.anatomy__cell svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 34px 50px rgba(91, 60, 200, .32)); }
.anatomy__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.anatomy__lines path { fill: none; stroke: rgba(27, 20, 66, .38); stroke-width: 1; }
.anatomy__lines circle { fill: var(--text); }
.anatomy__lines .hot path { stroke: var(--accent); stroke-width: 1.6; }
.anatomy__lines .hot circle { fill: var(--accent); }
.organelle { transition: filter .3s, opacity .3s; }
.organelle.is-hot { filter: brightness(1.12) drop-shadow(0 0 10px rgba(255, 255, 255, .95)); }
.twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.spin-slow { animation: spin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-glow { animation: pulseGlow 6s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .anatomy { grid-template-columns: 1fr 1fr; }
  .anatomy__cell { grid-column: 1 / -1; grid-row: 1; max-width: 400px; margin-inline: auto; width: 100%; }
  .anatomy__col { height: auto; padding: 0; gap: 12px; }
  .anatomy__col--left { align-items: flex-start; text-align: left; }
  .anatomy__lines { display: none; }
  .part { max-width: none; padding: 14px 16px; border-radius: 18px; width: 100%; background: rgba(255, 255, 255, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .8); }
}
@media (max-width: 520px) { .anatomy { grid-template-columns: 1fr; } }

/* key features panel */
.features-panel { margin-top: 48px; padding: 12px; position: relative; z-index: 2; }
.features-panel__title { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; margin: 20px 0 6px; color: var(--accent); }
html[data-lang="zh"] .features-panel__title { font-size: 18px; letter-spacing: .4em; }
.features-panel__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.kf { display: grid; grid-template-columns: 68px 1fr; gap: 16px; padding: 24px 26px; align-items: start; }
.kf + .kf { border-left: 1px solid rgba(27, 20, 66, .1); }
.kf h3 { font-size: 20px; margin: 6px 0 4px; }
.kf p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.why-bar { display: flex; align-items: center; gap: 16px; padding: 18px 24px; margin: 6px 4px 4px; border-radius: 22px; background: rgba(255, 255, 255, .72); }
.why-bar strong { font-family: var(--font-display); font-weight: 800; font-size: 17px; white-space: nowrap; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-bar p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) {
  .features-panel__grid { grid-template-columns: 1fr; }
  .kf + .kf { border-left: 0; border-top: 1px solid rgba(27, 20, 66, .1); }
  .why-bar { flex-direction: column; align-items: flex-start; }
  .why-bar .btn { margin-left: 0 !important; }
}

/* ---------- Marquee (fashion ticker) ---------- */
.marquee { overflow: hidden; padding: 26px 0; background: var(--text); color: #fff; position: relative; }
.marquee__track { display: flex; width: max-content; gap: 44px; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.marquee span:nth-child(4n+1) { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.marquee .star { color: #ffb3dd; -webkit-text-stroke: 0 !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 32px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: rgba(27, 20, 66, .12); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.8vw, 60px); line-height: 1; letter-spacing: -.04em; }
.stat__num small { font-size: .5em; letter-spacing: 0; margin-left: 2px; }
.stat__label { margin-top: 10px; color: var(--text-2); font-size: 14px; line-height: 1.4; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 520px) {
  .stat { padding: 22px 10px; }
  .stat__num { font-size: 30px; }
  .stat__label { font-size: 13px; }
}

/* ---------- Lists ---------- */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.check-list li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat, var(--grad-brand);
}
.dot-list { list-style: none; display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 18px; color: var(--text-2); }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-brand); }
.feature-list { display: grid; gap: 24px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.feature h3, .feature h4 { font-size: 19px; margin: 4px 0 4px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 980px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--bg-1); }
.chip--gold { color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, #fff) !important; }
.chip--cyan { color: var(--cyan-2); background: color-mix(in srgb, var(--cyan) 11%, #fff) !important; }
.chip--green { color: var(--green); background: color-mix(in srgb, var(--green) 11%, #fff) !important; }
.chip--pink { color: var(--pink); background: color-mix(in srgb, var(--pink) 10%, #fff) !important; }
.chip--violet { color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, #fff) !important; }

/* ---------- Product cards ---------- */
.product-card {
  display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; color: var(--text);
  border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-border) border-box;
  box-shadow: var(--shadow); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); color: var(--text); text-decoration: none; }
.product-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #f1efff; position: relative; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-card__img img { transform: scale(1.07); }
.product-card__img--stage { background: radial-gradient(60% 60% at 50% 45%, #fff, rgba(255, 255, 255, .4) 70%), var(--holo); display: grid; place-items: center; padding: 24px; }
.product-card__img--stage img { width: auto; height: 100%; max-height: 230px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(60, 30, 140, .25)); }
.product-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__body h3 { font-size: 24px; margin: 0; }
.product-card__body p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.product-card__body .link-arrow { margin-top: auto; padding-top: 12px; }
.product-card__kicker { font-family: var(--font-display); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; border-radius: 2px; background: var(--holo); }
.step { text-align: center; position: relative; padding: 0 6px; }
.step__dot {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  color: #fff; background: var(--grad-brand); box-shadow: 0 0 0 7px #fff, 0 14px 30px -10px rgba(109, 61, 245, .7);
}
.section--alt .step__dot { box-shadow: 0 0 0 7px #f5f1ff, 0 14px 30px -10px rgba(109, 61, 245, .7); }
.step__dot .i { width: 24px; height: 24px; }
.step h3, .step h4 { font-size: 18px; margin: 0 0 6px; }
.step p { font-size: 14.5px; color: var(--text-2); margin: 0; }
.step ul { list-style: none; font-size: 14px; color: var(--text-2); display: grid; gap: 3px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; text-align: left; padding: 0 0 26px; }
  .step__dot { margin: 0; }
}

/* ---------- Protocol cards ---------- */
.protocol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.protocol .card { padding: 26px; }
.protocol .label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; color: var(--text-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.protocol .label .i { width: 18px; height: 18px; color: var(--accent); }
.protocol p { color: var(--text-2); font-size: 15.5px; }
.protocol .big { font-family: var(--font-display); font-weight: 800; font-size: 30px; display: block; line-height: 1.12; margin-bottom: 6px; letter-spacing: -.03em; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .protocol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .protocol { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px rgba(124, 77, 255, .14), var(--shadow); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.table th, .table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--accent); background: var(--mist); position: sticky; top: 0; }
.table tbody tr:hover { background: #faf8ff; }
.table td { color: var(--text-2); }
.table td:first-child { color: var(--text); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.pass { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 13px; padding: 4px 11px; border-radius: 980px; background: color-mix(in srgb, var(--green) 11%, #fff); white-space: nowrap; }
.mark-yes { color: var(--green); font-weight: 800; }
.mark-strong { color: var(--accent); font-weight: 800; }
.mark-no { color: var(--text-3); }

/* ---------- Case / results cards ---------- */
.case { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-border) border-box; box-shadow: var(--shadow); }
.case__img { background: #f3f4fb; }
.case__img img { width: 100%; aspect-ratio: 16 / 11; object-fit: contain; }
.case__body { padding: 20px 22px 24px; }
.case__body h3 { font-size: 19px; margin: 0 0 4px; }
.case__body p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- Tabs ---------- */
.tabs__list { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 980px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(124, 77, 255, .18); margin-bottom: 28px; }
.tabs__btn { border: 0; background: none; color: var(--text-2); padding: 10px 20px; border-radius: 980px; font: 600 15px/1.2 var(--font-display); cursor: pointer; transition: .25s; }
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(109, 61, 245, .8); }
.tabs__btn[aria-selected="true"] * { color: #fff !important; }
.tabs__panel[hidden] { display: none; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { border-radius: 20px; border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-border) border-box; transition: box-shadow .25s; }
.accordion details[open] { box-shadow: var(--shadow); }
.accordion summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 500; color: #fff; background: var(--grad-brand); line-height: 1; transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 24px 22px; color: var(--text-2); max-width: 780px; }
.accordion .acc-body p:last-child { margin-bottom: 0; }

/* ---------- Infographic thumbs + lightbox ---------- */
.ig-thumb { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 0; cursor: zoom-in; background: #f1efff; padding: 0; width: 100%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), var(--shadow-hover); }
.ig-thumb img { width: 100%; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.ig-thumb:hover img { transform: scale(1.03); }
.ig-thumb__hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 980px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); color: var(--text); font-size: 13px; font-weight: 600; }
.ig-thumb__hint .i { width: 15px; height: 15px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 12, 50, .78); backdrop-filter: blur(10px); display: none; place-items: center; padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 48px); border-radius: 16px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--text); cursor: pointer; display: grid; place-items: center; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: clamp(44px, 7vw, 96px);
  background: var(--holo); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  box-shadow: 0 40px 80px -40px rgba(109, 61, 245, .55);
}
.cta-band h2 { font-size: clamp(32px, 4.6vw, 58px); margin-bottom: 12px; font-weight: 800; letter-spacing: -.035em; }
.cta-band p { color: var(--text-2); margin: 0; max-width: 52ch; font-size: 18px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Certificates ---------- */
.cert { text-align: center; }
.cert .media { background: #fff; padding: 16px; aspect-ratio: 3 / 4; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(124, 77, 255, .14), var(--shadow); }
.cert .media img { object-fit: contain; height: 100%; }
.cert h3 { font-size: 19px; margin: 18px 0 4px; }
.cert p { color: var(--text-3); font-size: 15px; margin: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 32px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #8ef0f5, #b9a6ff, #ffb3dd); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 5px #fff, 0 6px 14px -4px rgba(109, 61, 245, .6); }
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.035em; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.tl-item h3 { font-size: 19px; margin: 8px 0 4px; }
.tl-item p { color: var(--text-2); margin: 0; font-size: 15.5px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(124, 77, 255, .22); background: #fff;
  color: var(--text); font: 400 16.5px/1.35 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 77, 255, .16); }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding: 64px 0 28px; font-size: 13.5px; color: var(--text-3); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-display); color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--text-2); font-size: 14px; }
.site-footer .brand img { height: 42px; }
.footer-about { color: var(--text-3); font-size: 14px; margin-top: 14px; max-width: 40ch; line-height: 1.6; }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--text-2); font-size: 14px; }
.footer-contact .i { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(27, 20, 66, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 12.5px; }
.disclaimer { margin-top: 32px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .6); color: var(--text-3); font-size: 12.5px; line-height: 1.6; }
.disclaimer strong { color: var(--text-2); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* floating WhatsApp / to-top */
.fab { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; gap: 10px; }
.fab a, .fab button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: 0 12px 28px -8px rgba(60, 30, 140, .4); }
.fab .fab-wa { background: #25d366; color: #fff; }
.fab .fab-top { background: rgba(255, 255, 255, .9); color: var(--text); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: .25s; }
.fab .fab-top.is-visible { opacity: 1; visibility: visible; }
.fab .i { width: 24px; height: 24px; }
.fab .fab-wa .i { fill: currentColor; stroke: none; width: 27px; height: 27px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; transform: translateY(28px); transition: transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line-2); border: 0; margin: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.quote { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); line-height: 1.3; font-weight: 700; letter-spacing: -.025em; }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--pink) 7%, #fff); color: var(--text-2); font-size: 15px; }
.note .i { color: var(--pink); width: 22px; height: 22px; margin-top: 1px; }
.kpi-inline { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
.kpi-inline div { display: grid; }
.kpi-inline b { font-family: var(--font-display); font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.kpi-inline > div > span { color: var(--text-3); font-size: 14px; }
.ref { font-size: 12px; color: var(--text-3); font-style: italic; }
