@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0a0a0f;
  --bg-card: #12121a;
  --bg-section: #1a1a28;
  --bg-hover: #22223a;
  --border: #2a2a44;
  --border-glow: #c9433a;
  --text: #e8e6e3;
  --text-dim: #9996a8;
  --text-bright: #fff;
  --accent: #c9433a;
  --accent2: #e67e22;
  --accent3: #f39c12;
  --fire: #ff6b35;
  --magic: #9b59b6;
  --demon: #1abc9c;
  --eldritch: #3498db;
  --gold: #d4a843;
  --s-tier: #ff4444;
  --a-tier: #ffaa00;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* HERO */
.hero {
  position: relative;
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, #1a0a0a 0%, #0d0815 50%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 67, 58, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201, 67, 58, 0.15);
  border: 1px solid rgba(201, 67, 58, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 24px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* NAVIGATION */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
}

.nav-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 2px;
  max-width: 800px;
  margin: 0 auto;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  flex-shrink: 0;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.nav-tab:hover {
  color: var(--text);
}

.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* CONTENT */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.tab-panel {
  display: none;
  padding: 24px 0 60px;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GUIDE HEADER */
.guide-header {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.guide-header .llm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.badge-claude {
  background: rgba(204, 120, 76, 0.15);
  color: #cc784c;
  border: 1px solid rgba(204, 120, 76, 0.25);
}

.badge-gpt {
  background: rgba(16, 163, 127, 0.15);
  color: #10a37f;
  border: 1px solid rgba(16, 163, 127, 0.25);
}

.badge-gemini {
  background: rgba(66, 133, 244, 0.15);
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.25);
}

.badge-grok {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.guide-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.guide-header p {
  font-size: 14px;
  color: var(--text-dim);
}

.guide-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.stat-chip {
  padding: 6px 12px;
  background: var(--bg-section);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.stat-chip strong {
  color: var(--text);
}

/* SECTIONS */
.guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.section-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.section-header:hover {
  background: var(--bg-hover);
}

.section-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header .chevron {
  transition: transform 0.3s;
  color: var(--text-dim);
  font-size: 12px;
}

.guide-section.open .chevron {
  transform: rotate(180deg);
}

.section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.guide-section.open .section-body {
  max-height: 10000px;
}

.section-content {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.8;
}

/* TYPOGRAPHY in content */
.section-content h4 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin: 20px 0 10px;
}

.section-content h4:first-child {
  margin-top: 4px;
}

.section-content p {
  margin-bottom: 12px;
  color: var(--text);
}

.section-content ul,
.section-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.section-content li {
  margin-bottom: 6px;
  font-size: 14px;
}

.section-content strong {
  color: var(--text-bright);
}

.section-content em {
  color: var(--accent2);
  font-style: normal;
  font-weight: 500;
}

/* SKILL/BUILD TAGS */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px 2px;
}

.tag-fire {
  background: rgba(255, 107, 53, 0.15);
  color: var(--fire);
}

.tag-magic {
  background: rgba(155, 89, 182, 0.15);
  color: var(--magic);
}

.tag-demon {
  background: rgba(26, 188, 156, 0.15);
  color: var(--demon);
}

.tag-eldritch {
  background: rgba(52, 152, 219, 0.15);
  color: var(--eldritch);
}

.tag-s {
  background: rgba(255, 68, 68, 0.15);
  color: var(--s-tier);
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.tag-a {
  background: rgba(255, 170, 0, 0.15);
  color: var(--a-tier);
  border: 1px solid rgba(255, 170, 0, 0.2);
}

/* TABLES */
.table-wrapper {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: var(--radius-sm);
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 400px;
}

.table-wrapper th {
  background: var(--bg-section);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-wrapper td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(42, 42, 68, 0.5);
  color: var(--text);
  vertical-align: top;
}

.table-wrapper tr:hover td {
  background: rgba(42, 42, 68, 0.3);
}

/* BUILD CARDS */
.build-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.build-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.build-card-header h5 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
}

.build-card p {
  font-size: 13px;
  margin-bottom: 8px;
}

.build-card ul {
  padding-left: 16px;
}

.build-card li {
  font-size: 13px;
  margin-bottom: 4px;
}

/* CALLOUT */
.callout {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.6;
  border-left: 3px solid;
}

.callout-fire {
  background: rgba(255, 107, 53, 0.08);
  border-color: var(--fire);
}

.callout-magic {
  background: rgba(155, 89, 182, 0.08);
  border-color: var(--magic);
}

.callout-tip {
  background: rgba(26, 188, 156, 0.08);
  border-color: var(--demon);
}

.callout-warn {
  background: rgba(255, 170, 0, 0.08);
  border-color: var(--a-tier);
}

.callout-info {
  background: rgba(52, 152, 219, 0.08);
  border-color: var(--eldritch);
}

/* COMPARISON (Analysis tab) */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}

.comp-card:hover {
  border-color: var(--accent);
}

.comp-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros h5,
.cons h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 700;
}

.pros h5 {
  color: #2ecc71;
}

.cons h5 {
  color: #e74c3c;
}

.pros li,
.cons li {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-dim);
}

/* THREAD OF TRUTH */
.truth-section {
  background: linear-gradient(135deg, rgba(201, 67, 58, 0.08) 0%, rgba(212, 168, 67, 0.08) 100%);
  border: 1px solid rgba(201, 67, 58, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.truth-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 16px;
}

.truth-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.truth-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.truth-item p {
  font-size: 14px;
  margin: 0;
}

.truth-item strong {
  color: var(--text-bright);
}

/* GLYPH ICON SYSTEM — Pure CSS geometric marks */
.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  vertical-align: middle;
}

/* ◆ Diamond — identity, core mechanics */
.glyph-diamond::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ● Filled circle — skills, trees */
.glyph-orb::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--magic), #5b2d8e);
  box-shadow: 0 0 6px rgba(155, 89, 182, 0.4);
}

/* △ Upward chevron — leveling, progression */
.glyph-rise::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--gold);
}

/* + Cross / star — builds, combat */
.glyph-cross::before {
  content: '';
  width: 12px;
  height: 12px;
  position: relative;
  background:
    linear-gradient(var(--fire), var(--fire)) center/3px 12px no-repeat,
    linear-gradient(var(--fire), var(--fire)) center/12px 3px no-repeat;
}

/* ◎ Target ring — breakpoints, targets */
.glyph-ring::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent2);
  border-radius: 50%;
  position: relative;
}

.glyph-ring::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent2);
  border-radius: 50%;
}

/* ⬡ Shield / hexagon — gear, defense */
.glyph-ward::before {
  content: '';
  width: 10px;
  height: 12px;
  background: var(--demon);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ⊕ Lens / science — methodology, research */
.glyph-lens::before {
  content: '';
  width: 11px;
  height: 11px;
  border: 2px solid var(--eldritch);
  border-radius: 50%;
}

.glyph-lens::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 2px;
  background: var(--eldritch);
  bottom: 1px;
  right: 0;
  transform: rotate(45deg);
}

/* ▣ Block / foundation — mechanics */
.glyph-rune::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  border-radius: 2px;
}

.glyph-rune::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 1px;
}

/* ◇ Hollow diamond — tactical, assessment */
.glyph-prism::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent3);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Flame glyph — fire builds */
.glyph-flame::before {
  content: '';
  width: 8px;
  height: 12px;
  background: linear-gradient(to top, var(--fire), var(--accent3));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Demon glyph — summoner builds */
.glyph-pact::before {
  content: '';
  width: 12px;
  height: 10px;
  background: var(--demon);
  clip-path: polygon(20% 100%, 0% 30%, 15% 0%, 50% 20%, 85% 0%, 100% 30%, 80% 100%);
}

/* Cog / gear — hardware, optimization */
.glyph-cog::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--text-dim);
  border-radius: 50%;
}

.glyph-cog::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--text-dim);
  border-radius: 50%;
}

/* ◈ Chain link — thread of truth, analysis */
.glyph-chain::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 6px 0 0 0 var(--gold);
}

/* ⊞ Grid — overview, which guide */
.glyph-grid::before {
  content: '';
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--accent) 0%, var(--accent) 100%) 0 0/5px 5px no-repeat,
    linear-gradient(var(--accent) 0%, var(--accent) 100%) 7px 0/5px 5px no-repeat,
    linear-gradient(var(--accent) 0%, var(--accent) 100%) 0 7px/5px 5px no-repeat,
    linear-gradient(var(--accent) 0%, var(--accent) 100%) 7px 7px/5px 5px no-repeat;
  opacity: 0.8;
}

/* ◉ Filled bullseye — used for nav/scale */
.glyph-scale::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
}

.glyph-scale::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 2px;
  background: var(--accent);
}

/* Hero meta glyphs — smaller, inline */
.glyph-sm {
  width: 14px;
  height: 14px;
}

.glyph-sm::before {
  transform-origin: center;
}

/* Pros/cons markers */
.marker-pass,
.marker-fail {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 2px;
  vertical-align: middle;
}

.marker-pass {
  background: #2ecc71;
  box-shadow: 0 0 4px rgba(46, 204, 113, 0.4);
}

.marker-fail {
  background: #e74c3c;
  box-shadow: 0 0 4px rgba(231, 76, 60, 0.4);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer p {
  font-size: 12px;
  color: var(--text-dim);
}

/* RESPONSIVE */
@media (min-width: 640px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 80px 24px 50px;
  }

  .content {
    padding: 0 24px;
  }
}