@import url('https://fonts.googleapis.com/css2?family=Rufina:wght@400;700&family=Nunito:wght@300;400;500;600&display=swap');

:root {
  --bg:        #0a0703;
  --bg-mid:    #130e05;
  --bg-card:   rgba(255,255,255,.03);
  --ochre:     #c89030;
  --ochre-lt:  #e8b050;
  --sand:      #d4b880;
  --pelt:      #e8d4b0;
  --pelt-lt:   #f5ece0;
  --text:      #c8b080;
  --muted:     #786040;
  --border:    rgba(200,144,48,.13);
  --border2:   rgba(255,255,255,.06);
  --rust:      #a84828;
  --rust-lt:   #c87048;
  --sage:      #607848;
  --sage-lt:   #88a868;
  --violet:    #705888;
  --violet-lt: #9880b0;
  --teal:      #408090;
  --teal-lt:   #60a8b8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.78;
}

body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 10% 30%, rgba(200,144,48,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 90% 75%, rgba(168,72,40,.04) 0%, transparent 60%);
}

/* ── HEADER ── */
.site-header {
  background: linear-gradient(158deg, #050300 0%, #0d0904 30%, #18100608 60%, #221608 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden; position: relative;
}

.header-inner {
  max-width: 1020px; margin: auto;
  padding: 68px 44px 60px;
  position: relative; z-index: 1;
  display: flex; gap: 48px; align-items: center;
}

.header-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase;
  color: var(--ochre-lt); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.header-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ochre); }

.header-title {
  font-family: 'Rufina', serif;
  font-size: clamp(72px, 11vw, 128px);
  font-weight: 700; line-height: .86;
  letter-spacing: -3px; color: var(--pelt-lt);
  margin-bottom: 22px;
}

.header-subtitle {
  font-size: 15px; font-weight: 300;
  color: var(--muted); max-width: 500px; line-height: 1.72;
}

.header-svg { width: 130px; flex-shrink: 0; opacity: .13; }

/* ── NAV ── */
.topic-nav {
  background: rgba(9,7,2,.94); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px);
}
.topic-nav-inner {
  max-width: 1020px; margin: auto; padding: 0 44px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.topic-nav-inner::-webkit-scrollbar { display: none; }
.nav-pill {
  flex-shrink: 0; padding: 13px 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .2s; white-space: nowrap;
  background: none; border-top: none; border-left: none; border-right: none;
}
.nav-pill:hover, .nav-pill.active { color: var(--ochre-lt); border-bottom-color: var(--ochre); }

/* ── LAYOUT ── */
.main { max-width: 1020px; margin: auto; padding: 56px 44px 90px; position: relative; z-index: 1; }
.section { margin-bottom: 66px; opacity: 0; transform: translateY(26px); transition: opacity .65s, transform .65s; }
.section.visible { opacity: 1; transform: none; }

.section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase;
  color: var(--ochre); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.section-title { font-family: 'Rufina', serif; font-size: 28px; font-weight: 700; color: var(--pelt); margin-bottom: 18px; }
p { color: var(--text); margin-bottom: 14px; }
p strong { color: var(--pelt); }
p em { color: var(--pelt); font-style: italic; }

/* ── HAIR TYPES COMPARISON ── */
.hair-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 24px; border: 1px solid var(--border2); border-radius: 14px; overflow: hidden; }
.hair-type {
  padding: 22px 18px; text-align: center; border-right: 1px solid var(--border2);
  transition: background .2s; position: relative;
}
.hair-type:last-child { border-right: none; }
.hair-type:hover { background: rgba(200,144,48,.05); }
.ht-icon { font-size: 32px; margin-bottom: 10px; }
.ht-name { font-family: 'Rufina', serif; font-size: 17px; font-weight: 700; color: var(--pelt); margin-bottom: 4px; }
.ht-size { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--ochre); margin-bottom: 8px; }
.ht-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── DISTRIBUTION MAP ── */
.distrib { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.distrib-item {
  background: var(--bg-card); border: 1px solid var(--border2); border-radius: 12px; padding: 18px;
  border-left: 3px solid var(--ochre);
}
.distrib-item:nth-child(2n) { border-left-color: var(--rust); }
.distrib-item:nth-child(3n) { border-left-color: var(--sage); }
.distrib-item:nth-child(4) { border-left-color: var(--violet); }
.di-zone { font-family: 'Rufina', serif; font-size: 15px; font-weight: 700; color: var(--pelt); margin-bottom: 5px; }
.di-hormone { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ochre-lt); margin-bottom: 6px; }
.di-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 16px; margin-top: 24px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border2); border-radius: 13px; padding: 22px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(200,144,48,.3); box-shadow: 0 14px 36px rgba(0,0,0,.5); }

.card-tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(200,144,48,.15); color: var(--ochre-lt); margin-bottom: 12px;
}
.card-tag-rust   { background: rgba(168,72,40,.15); color: var(--rust-lt); }
.card-tag-sage   { background: rgba(96,120,72,.15); color: var(--sage-lt); }
.card-tag-violet { background: rgba(112,88,136,.15); color: var(--violet-lt); }
.card-tag-teal   { background: rgba(64,128,144,.15); color: var(--teal-lt); }

.card-title { font-family: 'Rufina', serif; font-size: 17px; font-weight: 700; color: var(--pelt); margin-bottom: 8px; }
.card-body { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ── PATHO TABLE ── */
.patho-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 13.5px; }
.patho-table th { text-align: left; padding: 11px 16px; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--ochre); border-bottom: 1px solid var(--border); font-weight: 700; }
.patho-table td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: top; color: var(--muted); }
.patho-table tr:hover td { background: rgba(200,144,48,.04); }
.patho-table td:first-child { color: var(--pelt); font-weight: 600; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-ochre  { background: rgba(200,144,48,.15); color: var(--ochre-lt); }
.badge-rust   { background: rgba(168,72,40,.15); color: var(--rust-lt); }
.badge-sage   { background: rgba(96,120,72,.15); color: var(--sage-lt); }
.badge-violet { background: rgba(112,88,136,.15); color: var(--violet-lt); }

.highlight-box { background: rgba(200,144,48,.08); border: 1px solid rgba(200,144,48,.2); border-radius: 10px; padding: 20px 24px; margin: 24px 0; }
.highlight-box strong { color: var(--ochre-lt); }

.stats-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.stat-pill { background: var(--bg-card); border: 1px solid var(--border2); border-radius: 10px; padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 130px; }
.stat-num { font-family: 'Rufina', serif; font-size: 30px; font-weight: 700; color: var(--ochre-lt); line-height: 1; }
.stat-label { font-size: 11.5px; color: var(--muted); }

footer { text-align: center; padding: 28px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--border); position: relative; z-index: 1; }

@media (max-width: 680px) {
  .header-inner { flex-direction: column; padding: 40px 22px; gap: 20px; }
  .header-svg { display: none; }
  .main { padding: 30px 22px 60px; }
  .topic-nav-inner { padding: 0 22px; }
  .hair-types { grid-template-columns: 1fr; }
  .hair-type { border-right: none; border-bottom: 1px solid var(--border2); }
  .distrib { grid-template-columns: 1fr; }
}
