/* ── topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1.6rem;
  background: linear-gradient(180deg, rgba(10, 9, 8, .94), rgba(10, 9, 8, .72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--font-display); font-size: 1.32rem; color: var(--gold-2); }
.brand-sub { font-family: var(--font-latin); font-size: .62rem; letter-spacing: .34em; color: var(--muted); }
.topnav { display: flex; gap: 1.4rem; }
.navlink { color: var(--text-2); font-size: .9rem; transition: color .2s, text-shadow .2s; }
.navlink:hover { color: var(--gold-2); text-shadow: 0 0 14px rgba(232, 200, 112, .45); }

/* ── hero ── */
.hero { position: relative; text-align: center; padding: 4.6rem 1.25rem 3rem; }
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.eyebrow {
  font-family: var(--font-head); font-size: .82rem; letter-spacing: .22em;
  color: var(--gold); margin-bottom: 1rem; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem); line-height: 1.05; margin-bottom: 1.1rem;
  background: linear-gradient(180deg, #fdf3dc 10%, var(--gold-2) 45%, #9a7c2c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .6));
}
.lede { max-width: 660px; margin: 0 auto 2rem; color: var(--text-2); font-family: var(--font-body); font-size: 1.08rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.4rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--font-latin); font-size: 1.9rem; font-weight: 800; color: var(--gold-2); }
.stat-label { font-size: .78rem; color: var(--muted); }

/* ── sections ── */
.section { max-width: 1120px; margin: 0 auto; padding: 3.4rem 1.5rem 1rem; }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--text); margin-bottom: .5rem; text-align: center;
}
.section-title::after {
  content: ''; display: block; width: 94px; height: 2px; margin: .7rem auto 0;
  background: var(--gold-grad); border-radius: 2px;
}
.section-lede { text-align: center; color: var(--muted); margin-bottom: 2.2rem; }

/* ── faction cards ── */
.faction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.faction-card {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 1.9rem 1.5rem 1.5rem; cursor: pointer; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(0, 0, 0, .3)) var(--noise);
  background-blend-mode: normal, normal, overlay;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.faction-card::before {
  content: ''; position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, currentColor, transparent 62%);
}
.faction-card.agatha { color: var(--agatha); }
.faction-card.mason { color: var(--mason); }
.faction-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.faction-card.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 50px rgba(0, 0, 0, .6); }
.faction-name { font-family: var(--font-display); font-size: 1.75rem; color: var(--text); }
.faction-motto { font-family: var(--font-body); font-style: italic; color: var(--gold-2); font-size: 1rem; }
.perk-list { display: grid; gap: .35rem; margin: .6rem 0 .4rem; color: var(--text-2); font-size: .9rem; }
.perk-list li::before { content: '‹ '; color: var(--gold); }
.pick-tag {
  margin-top: .3rem; font-family: var(--font-head); font-size: .8rem; letter-spacing: .08em;
  color: var(--gold-2); border-top: 1px solid var(--border); padding-top: .6rem; width: 100%;
}
.faction-card.selected .pick-tag { color: var(--text); }

/* ── feature cards ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.feature-card {
  padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255, 255, 255, .035); transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: rgba(255, 255, 255, .06); }
.feature-ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: .7rem;
  border-radius: var(--radius-sm); color: #241a06;
  background: var(--gold-grad); box-shadow: 0 8px 22px rgba(200, 168, 75, .25);
}
.feature-ico svg { width: 22px; height: 22px; stroke-width: 1.75; }
.feature-card h3 { font-family: var(--font-head); font-size: 1.06rem; margin-bottom: .35rem; color: var(--gold-2); }
.feature-card p { color: var(--text-2); font-size: .92rem; font-family: var(--font-body); }

/* ── rules ── */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }
.rules-card {
  padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .22));
}
.rules-card h3 {
  display: flex; align-items: center; gap: .5rem; font-family: var(--font-head);
  color: var(--gold-2); font-size: 1.05rem; margin-bottom: .9rem;
}
.rules-card h3 svg { width: 19px; height: 19px; stroke-width: 1.75; }
.class-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.class-table th {
  text-align: start; font-family: var(--font-head); font-size: .78rem; color: var(--muted);
  padding: .45rem .5rem; border-bottom: 1px solid var(--border);
}
.class-table td { padding: .42rem .5rem; color: var(--text-2); border-bottom: 1px solid rgba(200, 168, 75, .07); }
.class-table td:first-child { font-size: 1.35rem; color: var(--gold-2); text-align: center; width: 2.6rem; }
.class-table tr:hover td { background: rgba(200, 168, 75, .06); color: var(--text); }
.rule-list { display: grid; gap: .55rem; font-family: var(--font-body); color: var(--text-2); font-size: .96rem; }
.rule-list li { padding-inline-start: 1.3rem; position: relative; }
.rule-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .62em;
  width: 7px; height: 7px; rotate: 45deg; background: var(--gold); opacity: .8;
}

/* ── footer ── */
.site-footer {
  margin-top: 3rem; padding: 2.4rem 1.5rem; text-align: center;
  border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem;
}
.site-footer p { font-family: var(--font-body); }
.site-footer .footer-min { font-size: .78rem; opacity: .7; margin-top: .4rem; }
