/* CS2 OSM Toolkit — Landing styles
   Generated alongside index.html by src/shared/landing.py
   See docs/specs/2026-05-22-landing-redesign-design.md */

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

:root {
  --bg: #0e0e10;
  --bg-elevated-from: #18181b;
  --bg-elevated-to: #0f0f12;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(94,106,210,0.4);
  --text: #fafafa;
  --text-muted: #a0a0a8;
  --text-dim: #71717a;
  --accent: #5e6ad2;
  --accent-soft: #c4b5fd;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 800px;
  background: radial-gradient(circle, rgba(94,106,210,0.15) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Focus visible (keyboard only) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- nav ---------- */
nav.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
nav.top .brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.95rem;
}
nav.top .brand .logo {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, #5e6ad2, #8b5cf6);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
nav.top .brand .ver {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0.15rem 0.45rem;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin-left: 0.4rem;
}
nav.top .links { display: flex; gap: 1.5rem; align-items: center; font-size: 0.85rem; }
nav.top .links a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
nav.top .links a:hover { color: var(--text); }
nav.top .links .cta {
  background: var(--text); color: var(--bg);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 500;
}
nav.top .links .cta:hover { background: #e5e5e7; color: var(--bg); }

/* ---------- hero ---------- */
.hero { padding: 5rem 0 3rem; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(94,106,210,0.1);
  border: 1px solid rgba(94,106,210,0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent-soft);
  margin-bottom: 1.8rem;
  text-decoration: none;
}
.hero .badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero .ctas { display: flex; gap: 0.8rem; justify-content: center; margin-bottom: 3rem; }
.hero .ctas a {
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background .15s;
}
.hero .ctas .primary { background: var(--text); color: var(--bg); }
.hero .ctas .primary:hover { background: #e5e5e7; }
.hero .ctas .secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero .ctas .secondary:hover { background: rgba(255,255,255,0.08); }

/* ---------- stats banner ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.5rem 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  margin-bottom: 4rem;
}
.stats > div { text-align: center; border-right: 1px solid var(--border); }
.stats > div:last-child { border-right: none; }
.stats strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.15rem;
  letter-spacing: -0.02em;
}
.stats span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- filter bar ---------- */
.filter-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-pills button {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.filter-pills button:hover { background: rgba(255,255,255,0.08); }
.filter-pills button.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.search { position: relative; }
.search input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 0.45rem 0.85rem 0.45rem 2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  width: 220px;
  font-family: inherit;
  transition: border-color .15s;
}
.search input::placeholder { color: var(--text-dim); }
.search:focus-within input { border-color: var(--accent); }
.search::before {
  content: '⌕';
  position: absolute;
  left: 0.7rem; top: 50%; transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

/* ---------- card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}
.card {
  background: linear-gradient(180deg, var(--bg-elevated-from) 0%, var(--bg-elevated-to) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(94,106,210,0.15);
}
.card .thumb {
  aspect-ratio: 16/10;
  background-color: #18181b;
  position: relative;
  overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card .thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,15,18,0.6) 100%);
  pointer-events: none;
}
.card .body { padding: 0.9rem 1rem 1rem; }
.card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  letter-spacing: -0.01em;
}
.card .loc {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.card .tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.card .modules { display: flex; gap: 0.25rem; }
.card .modules .mod {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(94,106,210,0.5);
}
.card .modules .mod.off { background: rgba(255,255,255,0.1); box-shadow: none; }
.card .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---------- request city card ---------- */
.card.request {
  grid-column: span 2;
  background: transparent;
  border: 1px dashed var(--text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
}
.card.request:hover {
  border-color: var(--accent);
  border-style: solid;
  transform: none;
  box-shadow: none;
}
.card.request .plus {
  color: var(--text-dim);
  margin-bottom: 1rem;
  transition: color .15s;
}
.card.request:hover .plus { color: var(--accent); }
.card.request h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.card.request p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 280px;
}
.card.request .cta {
  font-size: 0.85rem;
  color: var(--accent-soft);
  font-weight: 500;
}

/* ---------- empty state ---------- */
.empty-state {
  display: none;
  padding: 3rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  margin-bottom: 4rem;
}
.empty-state.visible { display: block; }
.empty-state a { color: var(--accent-soft); text-decoration: none; font-weight: 500; }

/* ---------- footer ---------- */
footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap; gap: 1rem;
}
footer a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--text); }
footer .right { display: flex; gap: 1.5rem; }
footer .patreon-link { color: var(--accent-soft); }
footer .patreon-link:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card.request { grid-column: span 1; }
  nav.top .links a[data-secondary] { display: none; }
}
@media (max-width: 639px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1rem; }
  .stats > div:nth-child(2) { border-right: none; }
  .stats > div:nth-child(3) { border-right: 1px solid var(--border); }
  .filter-bar .search { width: 100%; }
  .filter-bar .search input { width: 100%; }
}
@media (max-width: 479px) {
  .wrap { padding: 0 1rem; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2rem; }
  nav.top .links a[data-tertiary] { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero .badge .dot { animation: none; }
  .card:hover { transform: none; }
}
