:root {
  --bg: #191127;
  --bg2: #180f26;
  --text: #fff;
  --text-muted: #d6d6d6;
  --accent: #883CF0;
  --accent2: #7c3aed;
  --accent3: #b29dce;
  --warm: #D4A574;
  --card: #23133a;
  --border: #3a1c63;
  --shadow: 0 2px 20px rgba(23, 18, 26, 0.06);
  --shadow-lg: 0 8px 40px rgba(24, 18, 26, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ───── HERO ───── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  background: linear-gradient(180deg, #3a1c63b5 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 26, 196, 0.06) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 46, 107, 0.06) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: #23133a;
  border: 1px solid #3a1c63;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  max-width: 800px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 540px;
  margin-top: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-scroll {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
  cursor: pointer;
}

.hero-scroll .arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───── NAV ───── */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #180f26;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow-x: auto;
}

.sticky-nav::-webkit-scrollbar { display: none; }

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.nav-btn {
  flex-shrink: 0;
  padding: 16px 22px;
  font: 500 14px 'DM Sans', sans-serif;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-btn:hover { color: var(--text); }
.nav-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ───── SECTIONS ───── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section > p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 40px;
}

/* ───── TYPE CARDS ───── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.type-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.type-card:hover::before { transform: scaleX(1); }
.type-card.expanded { border-color: var(--card-accent, var(--accent)); }

.type-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.type-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.type-card .pct {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.type-card .summary {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.type-card .detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0;
}

.type-card.expanded .detail { max-height: 400px; margin-top: 16px; }

.type-card .detail p {
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  line-height: 1.7;
}

/* ───── SYMPTOM CHECKER ───── */
.symptom-checker {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
}

.symptom-checker h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.symptom-checker > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.body-map {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.body-btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg);
  font: 400 14px 'DM Sans', sans-serif;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; gap: 8px;
}

.body-btn:hover { border-color: var(--accent); color: var(--accent); }
.body-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.symptom-result {
  background: var(--bg);
  border-radius: 12px;
  padding: 24px;
  display: none;
}

.symptom-result.visible { display: block; animation: fadeUp 0.4s forwards; }

.symptom-result h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  margin-bottom: 12px;
}

.symptom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.symptom-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.symptom-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ───── TIMELINE ───── */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--accent3));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}

.timeline-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px; top: 32px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-item:nth-child(2)::before { background: var(--accent2); }
.timeline-item:nth-child(3)::before { background: var(--accent3); }
.timeline-item:nth-child(4)::before { background: var(--warm); }

.timeline-item .year {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ───── TREATMENT TABS ───── */
.treatment-tabs {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.treat-tab {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font: 500 14px 'DM Sans', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.treat-tab:hover { border-color: var(--accent2); color: var(--accent2); }
.treat-tab.active {
  background: var(--accent2);
  border-color: var(--accent2);
  color: white;
}

.treatment-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  margin-top: 20px;
  min-height: 240px;
  animation: fadeUp 0.4s forwards;
}

.treatment-panel h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  margin-bottom: 16px;
}

.treatment-panel .drug-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.drug-chip {
  background: var(--bg);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  border-left: 3px solid var(--accent2);
}

.drug-chip .name { font-weight: 600; margin-bottom: 2px; }
.drug-chip .type { font-size: 12px; color: var(--text-muted); }

/* ───── LIFESTYLE CARDS ───── */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.lifestyle-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lifestyle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.lifestyle-card .lc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.lifestyle-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}

.lifestyle-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ───── QUIZ ───── */
.quiz-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
}

.quiz-wrap h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.quiz-wrap > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.quiz-progress {
  height: 4px;
  background: var(--bg2);
  border-radius: 4px;
  margin-bottom: 28px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent2);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-question {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

.quiz-options { display: flex; flex-direction: column; gap: 10px; }

.quiz-opt {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font: 400 15px 'DM Sans', sans-serif;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.quiz-opt:hover { border-color: var(--accent2); background: rgba(46,107,79,0.04); }
.quiz-opt.correct { background: #77b25520; border-color: #77b255; color: #60c090; }
.quiz-opt.wrong { background: #dc143c2b; border-color: #dc143c; color: #ff7a90; }

.quiz-feedback {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}

.quiz-feedback.show { display: block; animation: fadeUp 0.3s forwards; }

.quiz-next {
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--accent2);
  color: white;
  border: none;
  border-radius: 10px;
  font: 500 14px 'DM Sans', sans-serif;
  cursor: pointer;
  display: none;
  transition: all 0.3s;
}

.quiz-next:hover { transform: scale(1.02); }
.quiz-next.show { display: inline-block; }

.quiz-score {
  text-align: center;
  padding: 40px;
  display: none;
}

.quiz-score.show { display: block; animation: fadeUp 0.5s forwards; }

.quiz-score .big-num {
  font-family: 'Instrument Serif', serif;
  font-size: 64px;
  color: var(--accent2);
}

/* ───── STATS BAR ───── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 0 auto;
  max-width: 900px;
  padding: 60px 24px;
}

.stat-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stat-item .stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ───── FAQ ACCORDION ───── */
.faq-list { margin-top: 40px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  padding: 22px 0;
  font: 500 16px 'DM Sans', sans-serif;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
}

.faq-q:hover { color: var(--accent); }

.faq-q .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
}

.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--accent); color: white; border-color: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-a-inner {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.faq-item.open .faq-a { max-height: 300px; }

/* ───── FOOTER ───── */
footer {
  text-align: center;
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

footer .disclaimer {
  background: rgba(196,86,26,0.06);
  border: 1px solid rgba(196,86,26,0.12);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ───── RESPONSIVE ───── */
@media (max-width: 640px) {
  .section { padding: 60px 16px; }
  .symptom-checker, .quiz-wrap, .treatment-panel { padding: 24px; }
  .timeline { padding-left: 32px; }
  .stats-strip { padding: 40px 16px; }
}

/* ───── SCROLL REVEAL ───── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }