@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Mulish:wght@300;400;500;600&display=swap');

:root {
  --bg:       #0b0a0f;
  --bg-mid:   #130e18;
  --bg-card:  rgba(255,255,255,.028);
  --rose:     #c87890;
  --rose-lt:  #e8a0b8;
  --blush:    #f0c8d8;
  --mauve:    #a060a0;
  --mauve-lt: #c898c8;
  --pearl:    #f0ece8;
  --pearl-lt: #faf8f6;
  --text:     #c8b8c0;
  --muted:    #786878;
  --border:   rgba(200,120,144,.12);
  --border2:  rgba(255,255,255,.06);
  --ivory:    #e0d4c8;
  --teal:     #50a0a8;
  --teal-lt:  #78c8d0;
  --amber:    #c09050;
  --amber-lt: #dbb070;
  --red:      #b84848;
  --red-lt:   #d87070;
  --green:    #488870;
  --green-lt: #6ab090;
}

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

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

/* Glass shimmer background */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 75% 15%, rgba(200,120,144,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 25% 85%, rgba(160,96,160,.05) 0%, transparent 60%);
}

/* ── HEADER ── */
.site-header {
  background: linear-gradient(160deg, #060408 0%, #0e0812 35%, #160e20 65%, #1e1028 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden; position: relative;
}

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

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

.header-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(60px, 9vw, 110px);
  font-weight: 700; line-height: .88;
  letter-spacing: -3px; color: var(--pearl-lt);
  margin-bottom: 22px;
}

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

.header-nail-svg { width: 160px; flex-shrink: 0; opacity: .15; }

/* ── NAV ── */
.topic-nav {
  background: rgba(8,6,12,.93); 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: 14px 18px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .6px;
  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(--rose-lt); border-bottom-color: var(--rose); }

/* ── 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: 600; letter-spacing: 5px; text-transform: uppercase;
  color: var(--rose); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border2); }

.section-title {
  font-family: 'EB Garamond', serif;
  font-size: 28px; font-weight: 700; color: var(--pearl); margin-bottom: 18px;
}

p { color: var(--text); margin-bottom: 14px; }
p strong { color: var(--pearl); }
p em { color: var(--ivory); font-style: italic; }

/* ── ANATOMY DIAGRAM ── */
.nail-anatomy {
  display: flex; gap: 32px; align-items: flex-start; margin-top: 28px;
}
.nail-svg-wrap { flex-shrink: 0; width: 220px; }
.nail-legend { flex: 1; display: flex; flex-direction: column; gap: 0; }
.nail-part {
  display: flex; gap: 14px; padding: 12px 10px;
  border-bottom: 1px solid var(--border2);
  align-items: flex-start; border-radius: 6px; cursor: default;
  transition: background .2s;
}
.nail-part:hover { background: rgba(200,120,144,.05); }
.nail-part:last-child { border-bottom: none; }
.np-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.np-name { font-family: 'EB Garamond', serif; font-size: 16px; font-weight: 600; color: var(--pearl); margin-bottom: 3px; }
.np-info { font-size: 13px; 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,120,144,.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: 600; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(200,120,144,.15); color: var(--rose-lt); margin-bottom: 12px;
}
.card-tag-teal   { background: rgba(80,160,168,.15); color: var(--teal-lt); }
.card-tag-amber  { background: rgba(192,144,80,.15); color: var(--amber-lt); }
.card-tag-green  { background: rgba(72,136,112,.15); color: var(--green-lt); }
.card-tag-mauve  { background: rgba(160,96,160,.15); color: var(--mauve-lt); }

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

/* ── SIGNS TABLE ── */
.signs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 22px; }
.sign-card {
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: 12px; padding: 18px;
  border-top: 3px solid var(--rose);
  transition: transform .2s;
}
.sign-card:nth-child(2) { border-top-color: var(--teal); }
.sign-card:nth-child(3) { border-top-color: var(--amber); }
.sign-card:nth-child(4) { border-top-color: var(--mauve); }
.sign-card:nth-child(5) { border-top-color: var(--green); }
.sign-card:nth-child(6) { border-top-color: var(--red); }
.sign-card:hover { transform: translateY(-3px); }
.sign-name { font-family: 'EB Garamond', serif; font-size: 16px; font-weight: 600; color: var(--pearl); margin-bottom: 6px; }
.sign-meaning { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.sign-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── 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(--rose); border-bottom: 1px solid var(--border2); font-weight: 600;
}
.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,120,144,.04); }
.patho-table td:first-child { color: var(--pearl); font-weight: 600; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-rose   { background: rgba(200,120,144,.15); color: var(--rose-lt); }
.badge-teal   { background: rgba(80,160,168,.15); color: var(--teal-lt); }
.badge-amber  { background: rgba(192,144,80,.15); color: var(--amber-lt); }
.badge-red    { background: rgba(184,72,72,.15); color: var(--red-lt); }
.badge-green  { background: rgba(72,136,112,.15); color: var(--green-lt); }

/* ── HIGHLIGHT BOXES ── */
.highlight-box {
  background: rgba(200,120,144,.08); border: 1px solid rgba(200,120,144,.2);
  border-radius: 10px; padding: 20px 24px; margin: 24px 0;
}
.highlight-box strong { color: var(--rose-lt); }

/* ── STATS ── */
.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: 'EB Garamond', serif; font-size: 30px; font-weight: 700; color: var(--rose-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(--border2); position: relative; z-index: 1;
}

@media (max-width: 680px) {
  .header-inner { flex-direction: column; padding: 40px 22px; gap: 20px; }
  .header-nail-svg { display: none; }
  .main { padding: 30px 22px 60px; }
  .topic-nav-inner { padding: 0 22px; }
  .nail-anatomy { flex-direction: column; }
  .nail-svg-wrap { width: 100%; max-width: 220px; margin: auto; }
}
