:root {
  --bg: #101114;
  --bg-2: #17191f;
  --panel: rgba(28, 30, 37, 0.88);
  --panel-strong: #20232b;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7efd9;
  --muted: #c8bea4;
  --gold: #f0b84f;
  --gold-2: #ffd98a;
  --blue: #64d7ff;
  --green: #79d898;
  --danger: #ff8272;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(240, 184, 79, 0.08), transparent 28%),
    linear-gradient(250deg, rgba(100, 215, 255, 0.08), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 72px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  color: #111;
  background: var(--gold);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(13, 14, 18, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img,
.footer-brand img {
  border-radius: 50%;
  border: 1px solid rgba(240, 184, 79, 0.4);
  box-shadow: 0 0 24px rgba(240, 184, 79, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.nav-toggle,
.tab-link {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 12px;
  background: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.tab-link:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-cta,
.button-primary {
  color: #1b1204;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-color: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 66px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.94), rgba(16, 17, 20, 0.72), rgba(16, 17, 20, 0.84)),
    linear-gradient(180deg, transparent, var(--bg));
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content,
.split-section,
.showcase-grid,
.feature-band,
.faq-section,
.start-section,
.why-section,
.loop-section,
.guide-shell,
.cta-section,
.page-hero {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.hero-content {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 36px;
  align-items: center;
  padding: 64px 0 52px;
}

.hero-logo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(240, 184, 79, 0.48);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  font-size: 1.1rem;
}

.hero-subtitle {
  color: var(--blue);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 900;
}

.hero-pitch {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions,
.feature-grid,
.filter-row,
.tabs,
.path-tabs,
.command-flow,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof {
  margin-top: 18px;
}

.hero-proof span {
  color: var(--text);
  border: 1px solid rgba(240, 184, 79, 0.28);
  border-radius: 999px;
  background: rgba(240, 184, 79, 0.08);
  padding: 6px 10px;
  font-size: 0.88rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
}

.button-secondary {
  color: var(--text);
  background: rgba(100, 215, 255, 0.12);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button:hover,
.feature-card:hover,
.guide-card:hover,
.showcase-card:hover {
  transform: translateY(-2px);
}

.discord-preview,
.path-panel,
.guide-card,
.showcase-card,
.guide-shell,
.loot-table,
.calculator,
.location-detail,
.system-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.discord-preview {
  padding: 18px;
}

.preview-topline,
.preview-loadout strong,
.stat-grid span,
.panel-title,
.asset-row span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-topline {
  justify-content: space-between;
  color: var(--muted);
}

code {
  color: var(--blue);
  background: rgba(100, 215, 255, 0.08);
  border: 1px solid rgba(100, 215, 255, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.stat-grid span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.stat-grid img,
.preview-loadout img,
.asset-row img,
.table-icon,
.tab-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.table-emoji {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 2px;
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
}

.preview-loadout {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.command-flow button,
.path-tabs button,
.filter-row button,
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
}

.command-flow button.is-active,
.path-tabs button.is-active,
.filter-row button.is-active,
.tabs button.is-active {
  color: #1b1204;
  background: var(--gold);
}

.flow-output {
  min-height: 48px;
  margin: 12px 0 0;
  color: var(--muted);
}

.hero-orbit {
  position: absolute;
  right: 4vw;
  top: 76px;
  display: grid;
  grid-template-columns: repeat(2, 54px);
  gap: 16px;
  opacity: 0.8;
  animation: floatSet 5s ease-in-out infinite alternate;
}

.hero-orbit img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.5));
}

.feature-band,
.split-section,
.showcase-grid,
.faq-section,
.start-section,
.why-section,
.loop-section,
.guide-shell,
.cta-section,
.page-hero {
  margin-top: 58px;
}

.section-heading.compact {
  max-width: 760px;
  margin-bottom: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.feature-card {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px 10px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  transition: transform 160ms ease, border-color 160ms ease;
}

.feature-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.start-steps,
.reason-grid,
.loop-track {
  display: grid;
  gap: 14px;
}

.start-steps,
.reason-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loop-track {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.start-steps article,
.reason-grid article,
.loop-track article,
.mini-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  padding: 16px;
}

.start-steps article,
.loop-track article {
  display: grid;
  gap: 10px;
}

.start-steps img,
.reason-grid img,
.loop-track img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.start-steps span,
.loop-track span,
.reason-grid p {
  color: var(--muted);
}

.mini-cta {
  width: min(var(--max), calc(100% - 36px));
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
}

.mini-cta span {
  color: var(--muted);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: start;
}

.path-tabs {
  margin-top: 18px;
}

.path-panel {
  min-height: 390px;
  padding: 22px;
}

.panel-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.mini-facts {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.mini-facts div {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.mini-facts dt {
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 900;
}

.mini-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
}

dt {
  color: var(--gold-2);
  font-weight: 900;
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.showcase-grid .section-heading {
  grid-column: 1 / -1;
}

.showcase-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease;
}

.showcase-card.large {
  grid-row: span 2;
}

.showcase-card.large img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: rgba(0,0,0,0.22);
  border-radius: var(--radius);
}

.showcase-card:not(.large) img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.62fr);
  gap: 28px;
  align-items: center;
}

.page-hero img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
}

.guide-shell,
.faq-section details {
  padding: 18px;
}

.faq-grid,
.guide-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.faq-section details,
.guide-helper-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.faq-section summary {
  cursor: pointer;
  color: var(--gold-2);
  font-weight: 900;
}

.faq-section p {
  color: var(--muted);
  margin: 12px 0 0;
}

.guide-helper-card {
  padding: 16px;
}

.path-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin-bottom: 0;
}

.path-list li {
  color: var(--muted);
}

.path-list a,
.quick-links a,
.related-tags a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.path-list span {
  display: block;
  color: var(--muted);
}

.quick-links,
.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links a,
.related-tags a {
  border: 1px solid rgba(100, 215, 255, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(100, 215, 255, 0.08);
}

.compact-tabs {
  margin-top: 0;
}

.guide-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.search-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-box input,
.calculator input,
.calculator select {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  background: #11151d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.calculator select {
  color-scheme: dark;
}

.calculator select option {
  color: var(--text);
  background: #11151d;
}

.search-box input:focus,
.calculator input:focus,
.calculator select:focus {
  border-color: rgba(230, 184, 91, 0.7);
  box-shadow: 0 0 0 3px rgba(230, 184, 91, 0.16);
  outline: none;
}

.guide-panel {
  display: none;
}

.guide-panel.is-active {
  display: block;
}

.card-grid,
.outpost-systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card-grid.dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-card,
.system-card {
  padding: 14px;
}

.card-art {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}

.card-art img,
.system-card > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  border: 1px solid rgba(100, 215, 255, 0.22);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(100, 215, 255, 0.08);
}

.guide-card p,
.guide-card small,
.showcase-card p,
.system-card p,
.page-hero p {
  color: var(--muted);
}

.weapon-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mini-weapon {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}

.mini-weapon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.table-wrap,
.loot-table {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--gold-2);
  font-size: 0.85rem;
}

td {
  color: var(--muted);
}

.location-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.location-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.location-card {
  display: grid;
  gap: 8px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  padding: 12px;
  cursor: pointer;
}

.location-card.is-active {
  border-color: rgba(240,184,79,0.7);
  background: rgba(240,184,79,0.12);
}

.location-fallback {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #160f05;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  border-radius: var(--radius);
  font-weight: 1000;
}

.location-fallback.large {
  width: 68px;
  height: 68px;
  font-size: 1.4rem;
}

.location-detail {
  padding: 18px;
}

.location-detail-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.asset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asset-row span {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  padding: 8px 10px;
}

.asset-row b,
.asset-row small {
  display: block;
}

.asset-row small {
  color: var(--gold-2);
  font-size: 0.78rem;
}

.calculator {
  margin-top: 16px;
  padding: 18px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.calc-output {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.calc-output span,
.calc-output strong {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}

.loot-list {
  display: grid;
  gap: 12px;
}

.loot-table {
  padding: 12px;
}

.loot-table summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 26px;
  text-align: center;
}

.empty-state img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.cta-section {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 58px;
  padding: 22px;
  border: 1px solid rgba(240,184,79,0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(240,184,79,0.14), rgba(100,215,255,0.09));
}

.cta-section img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.site-footer {
  display: grid;
  gap: 16px;
  padding: 28px max(18px, calc((100vw - var(--max)) / 2)) 84px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.24);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.mobile-invite {
  display: none;
}

.is-unconfigured {
  opacity: 0.65;
  cursor: not-allowed;
}

.image-fallback {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #1b1204;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  border-radius: var(--radius);
  font-weight: 1000;
}

.guide-card.is-targeted,
tr.is-targeted,
.location-card.is-targeted,
.loot-table.is-targeted {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.legal-main {
  width: min(900px, calc(100% - 36px));
  margin: 54px auto;
}

.legal-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

@keyframes floatSet {
  from { transform: translateY(0); }
  to { transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #111318;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-content,
  .split-section,
  .page-hero,
  .location-layout,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .faq-grid,
  .guide-intro-grid,
  .card-grid,
  .card-grid.dense,
  .outpost-systems,
  .weapon-strip,
  .start-steps,
  .reason-grid,
  .loop-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .calc-grid,
  .calc-output {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-orbit {
    display: none;
  }

  .stat-grid,
  .feature-grid,
  .card-grid,
  .card-grid.dense,
  .faq-grid,
  .guide-intro-grid,
  .outpost-systems,
  .weapon-strip,
  .location-list,
  .calc-grid,
  .calc-output,
  .start-steps,
  .reason-grid,
  .loop-track {
    grid-template-columns: 1fr;
  }

  .mini-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-invite {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 12;
    display: grid;
    place-items: center;
    min-height: 48px;
    color: #1b1204;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 1000;
    box-shadow: var(--shadow);
  }
}
