:root {
  --bg-deep: #070b12;
  --bg-panel: #0e1624;
  --bg-panel-alt: #131e30;
  --bg-glass: rgba(10, 17, 29, 0.84);
  --brass: #e2b659;
  --brass-bright: #f5d88b;
  --brass-dim: #9f7932;
  --aether: #3ee6d8;
  --aether-deep: #158ea0;
  --ember: #e36337;
  --text-main: #f4efe2;
  --text-muted: #a9b8ca;
  --text-dim: #798aa0;
  --border-brass: rgba(226, 182, 89, 0.28);
  --border-brass-strong: rgba(226, 182, 89, 0.56);
  --border-aether: rgba(62, 230, 216, 0.32);
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.45);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-w: 1180px;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(226, 182, 89, 0.14), transparent 62%),
    radial-gradient(ellipse 65% 40% at 85% 20%, rgba(62, 230, 216, 0.08), transparent 60%),
    var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brass-bright);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a:hover {
  color: var(--aether);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-brass);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  box-shadow: 0 0 14px rgba(62, 230, 216, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brass-bright);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brass-bright);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c4933b, #e8c166);
  color: #10141c !important;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(226, 182, 89, 0.28);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(226, 182, 89, 0.42);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-brass);
  color: var(--brass-bright);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: 72px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-brass);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/keyart-citadel.jpg");
  background-size: cover;
  background-position: center 28%;
  filter: brightness(0.46) saturate(1.12);
  transform: scale(1.03);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(226, 182, 89, 0.22), transparent 52%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.48) 0%, rgba(7, 11, 18, 0.68) 65%, var(--bg-deep) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-aether);
  background: rgba(14, 28, 40, 0.72);
  color: var(--aether);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-logo {
  width: min(560px, 92%);
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.75));
}

.hero-lead {
  font-size: clamp(1.06rem, 2.2vw, 1.24rem);
  color: #e9e4d7;
  max-width: 680px;
  margin: 0 auto 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #c69134, #f0c96c);
  color: #10141c;
  box-shadow: 0 10px 28px rgba(226, 182, 89, 0.34);
}

.btn-primary:hover {
  color: #10141c;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(226, 182, 89, 0.5);
}

.btn-secondary {
  background: rgba(15, 25, 40, 0.86);
  color: var(--text-main);
  border-color: var(--border-brass-strong);
}

.btn-secondary:hover {
  color: var(--brass-bright);
  border-color: var(--aether);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(15, 25, 40, 0.55);
  color: var(--aether);
  border-color: var(--border-aether);
}

.btn-ghost:hover {
  background: rgba(62, 230, 216, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.metric-chip {
  background: rgba(12, 20, 34, 0.78);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  backdrop-filter: blur(8px);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--brass-bright);
  line-height: 1.15;
}

.metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 78px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.72), rgba(8, 13, 21, 0.9));
  border-top: 1px solid rgba(226, 182, 89, 0.14);
  border-bottom: 1px solid rgba(226, 182, 89, 0.14);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aether);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--brass-bright);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.section-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

/* Feature Banner */
.feature-banner-wrap {
  margin-bottom: 42px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-brass);
  box-shadow: var(--shadow-card);
  position: relative;
}

.feature-banner-wrap img {
  width: 100%;
  height: auto;
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, var(--bg-panel-alt), var(--bg-panel));
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-brass-strong);
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aether);
  margin-bottom: 10px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--brass-bright);
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.94rem;
}

/* Faction Cards */
.faction-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faction-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--faction-color, var(--brass));
}

.faction-chronometer { --faction-color: #e2b659; }
.faction-pelagic { --faction-color: #3ee6d8; }
.faction-basalt { --faction-color: #e36337; }

.faction-epithet {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faction-color);
  font-weight: 600;
}

.faction-bonus {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  color: var(--text-main);
}

.faction-bonus strong {
  color: var(--faction-color);
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

/* Hero Roster */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  background: rgba(14, 22, 36, 0.85);
  border: 1px solid var(--border-brass);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #c4933b, #e8c166);
  color: #10141c;
  border-color: var(--brass-bright);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hero-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--aether);
}

.hero-card.hidden {
  display: none;
}

.hero-portrait-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a1019;
}

.hero-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.rarity-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.rarity-mythic {
  background: rgba(227, 99, 55, 0.88);
  color: #fff;
}

.rarity-legendary {
  background: rgba(226, 182, 89, 0.92);
  color: #10141c;
}

.rarity-epic {
  background: rgba(138, 92, 246, 0.9);
  color: #fff;
}

.hero-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.hero-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--brass-bright);
  margin: 0;
}

.hero-role {
  font-size: 0.78rem;
  color: var(--aether);
  font-weight: 600;
}

.hero-skill {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* Screenshot Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.shot-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass-bright);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot-caption {
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(226, 182, 89, 0.16);
}

.shot-caption strong {
  display: block;
  color: var(--brass-bright);
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin-bottom: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 7, 12, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.lightbox-inner img {
  max-height: 82vh;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-brass-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.lightbox-caption {
  margin-top: 12px;
  color: var(--brass-bright);
  font-family: var(--font-display);
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-brass-strong);
  background: var(--bg-panel);
  color: var(--brass-bright);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Tables & Disclosures */
.table-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.table-card h3 {
  font-family: var(--font-display);
  color: var(--brass-bright);
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.table-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
  color: var(--aether);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table td:last-child,
.data-table th:last-child {
  text-align: right;
  font-family: var(--font-mono);
}

.fair-banner {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-aether);
  background: rgba(16, 42, 54, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Legal & Support Prose Pages */
.page-hero {
  padding: 58px 0 36px;
  border-bottom: 1px solid var(--border-brass);
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(226, 182, 89, 0.12), transparent 70%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--brass-bright);
  margin: 8px 0 10px;
}

.page-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.prose {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 0 72px;
}

.prose h2 {
  font-family: var(--font-display);
  color: var(--brass-bright);
  font-size: 1.38rem;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 182, 89, 0.2);
}

.prose h3 {
  color: var(--aether);
  font-size: 1.04rem;
  margin: 22px 0 8px;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--aether);
  background: rgba(15, 29, 44, 0.76);
  margin: 22px 0;
}

.callout-warn {
  border-left-color: var(--ember);
  background: rgba(48, 22, 18, 0.56);
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--brass-bright);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-brass);
  background: #05080e;
  padding: 44px 0 34px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
}

.footer-copy {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Responsive */
@media (max-width: 980px) {
  .grid-3,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0a111d;
    border-bottom: 1px solid var(--border-brass);
    padding: 12px 22px 18px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    padding: 8px 0;
  }
  .grid-3,
  .grid-2,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding: 52px 0 46px;
  }
}
