:root {
  color-scheme: dark;
  --bg: #0c0f0f;
  --surface: #141918;
  --surface-2: #1b211f;
  --line: #303a36;
  --text: #f2f4ef;
  --muted: #aab3ac;
  --green: #90b86a;
  --amber: #d9a441;
  --red: #c95b4d;
  --cyan: #69aeb4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.hero {
  min-height: min(760px, 92vh);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(90deg, rgba(7, 10, 10, .94) 0%, rgba(7, 10, 10, .72) 42%, rgba(7, 10, 10, .18) 75%),
    linear-gradient(0deg, rgba(7, 10, 10, .92) 0%, transparent 35%),
    url("assets/mision_bunker_modulos_isla_mortal.png") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.topbar {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.brand, .nav-actions { display: flex; align-items: center; gap: 18px; }
.brand { font-weight: 750; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 13px;
}
.nav-actions a { color: #d6ddd7; font-size: 14px; }
.nav-actions a:hover { color: white; }
.nav-actions .discord-nav {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.28);
}
.discord-nav svg { width: 16px; }

.hero-content {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  padding: 76px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

h1, h2, h3 { margin-top: 0; letter-spacing: 0; }
h1 {
  max-width: 750px;
  margin-bottom: 20px;
  font-size: clamp(48px, 8vw, 100px);
  line-height: .92;
  text-transform: uppercase;
}
.hero-kicker {
  margin: -8px 0 18px;
  color: var(--green);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 750;
  text-transform: uppercase;
}
.hero-copy {
  max-width: 580px;
  margin: 0 0 30px;
  color: #d2d8d3;
  font-size: 18px;
  line-height: 1.6;
}
.primary-action {
  width: fit-content;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #0b100b;
  font-weight: 800;
}
.primary-action:hover { background: #a6cf7f; }
.primary-action svg { width: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.discord-action {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.38);
  color: white;
  font-weight: 750;
}
.discord-action:hover { background: rgba(255,255,255,.1); }
.discord-action svg { width: 18px; }

.hero-stats {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats div { display: grid; gap: 3px; }
.hero-stats strong { font-size: 24px; }
.hero-stats span { color: var(--muted); font-size: 12px; text-transform: uppercase; }

main section {
  padding: 82px max(20px, calc((100% - 1200px) / 2));
}
.guides-section { background: #101413; }
.catalog-section { border-top: 1px solid var(--line); }
.section-heading {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.section-heading h2 { margin-bottom: 0; font-size: 36px; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.6; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.guide-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.guide-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}
.guide-body { padding: 22px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.guide-meta span {
  padding: 5px 7px;
  background: #252d2a;
  color: #cbd3cd;
  font-size: 11px;
  text-transform: uppercase;
}
.guide-card h3 { margin-bottom: 10px; font-size: 22px; }
.guide-card p, .guide-card li { color: var(--muted); line-height: 1.55; }
.guide-card ul { margin: 15px 0 0; padding-left: 18px; }

.controls {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px auto;
  gap: 12px;
}
.search-box {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.search-box svg { width: 18px; color: var(--muted); flex: 0 0 auto; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
select {
  min-height: 44px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.tier-tabs { display: flex; border: 1px solid var(--line); }
.tier-tabs button {
  min-width: 72px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.tier-tabs button:last-child { border-right: 0; }
.tier-tabs button.active { background: var(--green); color: #0b100b; font-weight: 800; }

.mission-list { border-top: 1px solid var(--line); }
.mission-row {
  display: grid;
  grid-template-columns: 68px minmax(220px, 1.3fr) minmax(190px, 1fr) 90px 170px 32px;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.mission-row:hover { background: var(--surface); }
.tier-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-weight: 900;
}
.tier-1 { color: var(--green); }
.tier-2 { color: var(--amber); }
.tier-3 { color: var(--red); }
.mission-title strong { display: block; margin-bottom: 5px; font-size: 16px; }
.mission-title span, .npc-cell, .time-cell { color: var(--muted); font-size: 13px; }
.mission-title span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}
.npc-cell { display: flex; align-items: center; gap: 8px; }
.npc-cell svg, .time-cell svg { width: 16px; }
.reward-cell { display: flex; flex-wrap: wrap; gap: 5px; }
.reward-cell span {
  padding: 4px 6px;
  background: var(--surface-2);
  color: #cbd2cc;
  font-size: 11px;
}
.mission-row > svg { width: 18px; color: #667069; }
.empty-state { padding: 50px 0; color: var(--muted); text-align: center; }

footer {
  min-height: 90px;
  padding: 24px max(20px, calc((100% - 1200px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.footer-discord:hover { color: var(--green); }
.footer-discord svg { width: 17px; }

@media (max-width: 980px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { display: grid; grid-template-columns: 42% 1fr; }
  .guide-card img { height: 100%; aspect-ratio: auto; }
  .controls { grid-template-columns: 1fr 220px; }
  .tier-tabs { grid-column: 1 / -1; min-height: 44px; }
  .tier-tabs button { flex: 1; }
  .mission-row { grid-template-columns: 54px 1.4fr .8fr 80px 150px; }
  .mission-row > svg { display: none; }
}

@media (max-width: 680px) {
  .nav-actions { display: none; }
  .hero { min-height: 760px; background-position: 62% center; }
  .hero-content { align-self: end; padding-bottom: 38px; }
  h1 { font-size: 52px; }
  .hero-copy { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  main section { padding-top: 58px; padding-bottom: 58px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 30px; }
  .guide-card { display: block; }
  .guide-card img { aspect-ratio: 16 / 10; }
  .controls { grid-template-columns: 1fr; }
  .tier-tabs { grid-column: auto; overflow-x: auto; }
  .tier-tabs button { min-height: 42px; white-space: nowrap; }
  .mission-row {
    grid-template-columns: 46px 1fr;
    gap: 10px 14px;
    padding: 18px 4px;
  }
  .npc-cell, .time-cell, .reward-cell { grid-column: 2; }
  .npc-cell, .time-cell { display: inline-flex; margin-right: 14px; }
  .reward-cell { margin-top: 3px; }
  footer { align-items: start; flex-direction: column; }
}
