:root {
  --ink: #211b16;
  --warm: #b08d6e;
  --warm-dark: #8a6a4f;
  --champagne: #d8c3ac;
  --paper: #f6f1ea;
  --paper-2: #efe7db;
  --dark: #17120e;
  --line: rgba(33, 27, 22, 0.12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
img { display: block; width: 100%; }
a { text-decoration: none; color: inherit; }
em { font-style: normal; }

/* Scroll progress */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: transparent; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--warm), var(--champagne)); transition: width .1s linear; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch { position: fixed; z-index: 40; top: max(10px, env(safe-area-inset-top)); right: 12px; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  min-width: 96px; padding: 8px 30px 8px 14px;
  font: 500 12px/1 Arial, sans-serif; letter-spacing: .3px;
  color: #2a221b; border: 1px solid rgba(0,0,0,.12); border-radius: 999px;
  background: rgba(255,255,255,.92) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23726c63'/></svg>") no-repeat right 12px center;
  backdrop-filter: blur(8px); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.14);
}
[dir="rtl"] .lang-switch { right: auto; left: 12px; }
[dir="rtl"] .lang-switch select { padding: 8px 14px 8px 30px; background-position: left 12px center; }

/* ===== INTRO POSTERS ===== */
.posters { background: #fff; }
.poster { margin: 0; }
.poster img { width: 100%; height: auto; display: block; }
@media (min-width: 760px) {
  .posters { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ===== HERO ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #151210; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #151210; }
.hero-shade { position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 20% 0%, rgba(0,0,0,.15), transparent 55%),
  linear-gradient(180deg, rgba(20,15,12,.35) 0%, rgba(20,15,12,.05) 32%, rgba(20,15,12,.82) 100%); }

.topbar { position: absolute; z-index: 2; top: max(20px, env(safe-area-inset-top)); left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.brand { font: 600 22px/1 Georgia, "Songti SC", serif; letter-spacing: 2px; }
.brand span { margin-left: 5px; font: 400 9px/1 Arial, sans-serif; letter-spacing: 3px; opacity: .85; }
.topbar-link { padding: 9px 16px; font-size: 12px; letter-spacing: 1px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }

.hero-copy { position: relative; z-index: 1; width: min(100%, 760px); padding: 48px 24px 104px; }
.eyebrow { margin: 0 0 14px; color: var(--warm); font-size: 11px; font-weight: 700; letter-spacing: 3.5px; }
.eyebrow.light, .hero .eyebrow { color: var(--champagne); }
.hero h1 { margin: 0; font: 500 clamp(46px, 14vw, 86px)/1.08 Georgia, "Songti SC", serif; letter-spacing: 1px; }
.hero h1 em { display: inline-block; background: linear-gradient(100deg, #f4e4d1, var(--champagne) 60%, var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { margin: 22px 0 30px; max-width: 460px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-button { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 28px; color: var(--dark); font-weight: 600; letter-spacing: 1px; border: 0; border-radius: 999px; background: linear-gradient(100deg, #f6e7d4, var(--champagne)); cursor: pointer; box-shadow: 0 12px 34px rgba(176,141,110,.4); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(176,141,110,.55); }
.primary-button span { transition: transform .3s var(--ease); }
.primary-button:hover span { transform: translateX(5px); }
.ghost-button { min-height: 54px; padding: 0 24px; color: #fff; letter-spacing: 1px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); cursor: pointer; transition: .25s var(--ease); }
.ghost-button:hover { background: rgba(255,255,255,.16); }

.hero-badges { display: flex; gap: 30px; margin: 38px 0 0; padding: 0; list-style: none; }
.hero-badges li { display: flex; flex-direction: column; gap: 5px; }
.hero-badges b { font: 500 30px/1 Georgia, serif; color: #fff; }
.hero-badges b i { font-style: normal; font-size: 14px; color: var(--champagne); margin-left: 2px; }
.hero-badges span { font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,.6); }

.scroll-cue { position: absolute; z-index: 1; right: 24px; bottom: 26px; width: 1px; height: 52px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue span { display: block; width: 100%; height: 20px; background: var(--champagne); animation: scroll 1.8s var(--ease) infinite; }
@keyframes scroll { from { transform: translateY(-22px); } to { transform: translateY(54px); } }

/* ===== TRUST STRIP ===== */
.trust { background: var(--dark); color: #fff; padding: 34px max(20px, calc((100% - 1120px)/2)); }
.trust-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px; }
.ti-ico { font-size: 15px; color: var(--champagne); }
.trust-item p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.85); }

/* ===== SECTIONS ===== */
.section { padding: 88px max(20px, calc((100% - 1120px)/2)); }
.section-heading { max-width: 640px; margin-bottom: 40px; }
.section-heading h2 { margin: 0 0 16px; font: 500 clamp(30px, 8vw, 50px)/1.2 Georgia, "Songti SC", serif; }
.section-heading > p:last-child { margin: 0; color: #6f6960; font-size: 14px; line-height: 1.8; }

/* Doctor */
.doctor { background: #fff; }
.doctor-layout { display: grid; gap: 26px; align-items: center; }
.doctor-text .eyebrow { margin-bottom: 14px; }
.doctor-text h2 { margin: 0 0 16px; font: 500 clamp(30px, 8vw, 48px)/1.2 Georgia, "Songti SC", serif; }
.doctor-desc { margin: 0 0 26px; color: #6f6960; font-size: 14px; line-height: 1.8; }
.doctor-image, .result-image { margin: 0; overflow: hidden; background: #fff; border-radius: 18px; }
.doctor-image { box-shadow: 0 24px 60px rgba(33,27,22,.1); }
.doctor-image img { width: 100%; height: auto; display: block; }
.doctor-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.doctor-summary li { min-width: 0; padding: 20px 12px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #fff, var(--paper)); }
.doctor-summary strong { display: block; margin-bottom: 8px; color: var(--warm-dark); font: 500 24px/1 Georgia, serif; }
.doctor-summary span { display: block; font-size: 11.5px; color: #726c63; line-height: 1.5; }

/* Results */
.results { background: var(--paper); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 22px; padding: 12px 0 0; list-style: none; }
.timeline li { position: relative; padding-top: 24px; text-align: center; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line); }
.timeline .tl-dot { position: absolute; top: 0; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px rgba(176,141,110,.16); }
.timeline b { display: block; font-size: 13.5px; color: var(--ink); }
.timeline em { display: block; margin-top: 4px; font-size: 11px; color: #8a8177; }
.result-image { box-shadow: 0 24px 60px rgba(33,27,22,.08); }
.result-image img { width: 100%; height: auto; display: block; }
.result-image figcaption { padding: 14px; text-align: center; font-size: 12px; letter-spacing: 1px; color: #8a8177; background: #fff; }
.disclaimer { margin: 16px 0 0; color: #8f8a82; font-size: 11px; text-align: center; line-height: 1.6; }

/* ===== CONSULT / QUIZ ===== */
.consult { position: relative; padding-bottom: 140px; color: #fff; background: radial-gradient(120% 60% at 50% 0%, #2a2019, var(--dark)); }
.section-heading.light .eyebrow { color: var(--champagne); }
.section-heading.light > p:last-child { color: rgba(255,255,255,.6); }

.quiz { border-top: 1px solid rgba(255,255,255,.16); }
.question { position: relative; padding: 36px 0; padding-left: 46px; border-bottom: 1px solid rgba(255,255,255,.12); }
.question:last-child { border-bottom: 0; }
.question-number { position: absolute; top: 40px; left: 0; color: var(--champagne); font: 400 13px/1 Georgia, serif; }
.question h3 { margin: 0 0 24px; font-size: 20px; font-weight: 500; line-height: 1.4; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.answers button { min-height: 56px; padding: 12px 16px; text-align: left; color: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; transition: .22s var(--ease); }
.answers button:hover, .answers button:focus-visible { color: var(--dark); border-color: var(--champagne); background: linear-gradient(100deg, #f6e7d4, var(--champagne)); outline: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.privacy { margin: 30px 0 0 46px; color: rgba(255,255,255,.42); font-size: 11px; }

/* ===== STICKY CTA ===== */
.sticky-consult { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(18px, calc((100% - 1120px)/2)); padding-bottom: max(12px, env(safe-area-inset-bottom)); color: #2a221b; background: rgba(255,255,255,.92); border-top: 1px solid rgba(0,0,0,.06); backdrop-filter: blur(14px); box-shadow: 0 -10px 34px rgba(0,0,0,.1); }
.sticky-consult span { font-size: 13px; font-weight: 600; white-space: nowrap; }
.sticky-consult i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #39a96b; box-shadow: 0 0 0 4px rgba(57,169,107,.14); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(57,169,107,0); } }
.sticky-consult button { min-height: 46px; padding: 0 26px; color: var(--dark); font-weight: 600; letter-spacing: .5px; border: 0; border-radius: 999px; background: linear-gradient(100deg, #f0dcc3, var(--champagne)); cursor: pointer; box-shadow: 0 8px 22px rgba(176,141,110,.4); transition: transform .25s var(--ease); }
.sticky-consult button:hover { transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (min-width: 760px) {
  .hero-copy { padding-left: max(40px, calc((100vw - 1120px)/2)); }
  .question { padding-left: 74px; }
  .answers { max-width: 680px; }
  .privacy { margin-left: 74px; }
  .doctor-image, .result-image { max-width: 900px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 560px) {
  .trust-track { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
}

@media (max-width: 420px) {
  .section { padding-top: 68px; padding-bottom: 68px; }
  .consult { padding-bottom: 126px; }
  .hero-badges { gap: 22px; }
  .answers.grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span, .sticky-consult i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== RTL (Arabic) ===== */
[dir="rtl"] .question { padding-left: 0; padding-right: 46px; }
[dir="rtl"] .question-number { left: auto; right: 0; }
[dir="rtl"] .privacy { margin-left: 0; margin-right: 46px; }
[dir="rtl"] .answers button { text-align: right; }
[dir="rtl"] .primary-button span[aria-hidden] { transform: scaleX(-1); }
[dir="rtl"] .topbar-link { direction: rtl; }
@media (min-width: 760px) {
  [dir="rtl"] .question { padding-left: 0; padding-right: 74px; }
  [dir="rtl"] .privacy { margin-left: 0; margin-right: 74px; }
}
