/* ============================================================
   SCUM WEB - public website (landing / news / downloads)
   Shares the military dark palette of the server panel.
   ============================================================ */
:root {
  --bg: #0d1012;
  --bg2: #12171a;
  --panel: #171d21;
  --panel2: #1d2429;
  --line: #262f36;
  --line2: #303b43;
  --text: #dbe2e7;
  --muted: #8b98a2;
  --accent: #ff7b1a;
  --accent-soft: rgba(255, 123, 26, .14);
  --green: #37c871;
  --green-soft: rgba(55, 200, 113, .14);
  --red: #f0523f;
  --red-soft: rgba(240, 82, 63, .14);
  --gold: #ffc93c;
  --gold-soft: rgba(255, 201, 60, .14);
  --blue: #4aa8ff;
  --blue-soft: rgba(74, 168, 255, .14);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(255, 123, 26, .10), transparent 62%),
    radial-gradient(900px 480px at 8% 10%, rgba(74, 168, 255, .06), transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--accent); color: #14100b; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.mono { font-family: Consolas, "Courier New", monospace; }
.muted { color: var(--muted); }

/* ---------------- site-wide banner ---------------- */
.site-banner-root { width: 100%; }
.site-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  color: #ffe7d3;
  background: linear-gradient(90deg, rgba(255, 123, 26, .22), rgba(255, 123, 26, .10));
  border-bottom: 1px solid rgba(255, 123, 26, .45);
}
.site-banner .sb-ico { font-size: 16px; }
.site-banner .sb-text { flex: 1; min-width: 0; }
.site-banner .sb-link {
  color: #ffd0a6;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 208, 166, .5);
}
.site-banner .sb-link:hover { color: #fff; }
.site-banner .sb-close {
  background: transparent;
  border: 0;
  color: #ffd0a6;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}
.site-banner .sb-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-banner.kind-info {
  color: #dcedff;
  background: linear-gradient(90deg, rgba(74, 168, 255, .22), rgba(74, 168, 255, .09));
  border-bottom-color: rgba(74, 168, 255, .45);
}
.site-banner.kind-info .sb-link, .site-banner.kind-info .sb-close { color: #cbe6ff; }
.site-banner.kind-warning {
  color: #ffe2de;
  background: linear-gradient(90deg, rgba(240, 82, 63, .24), rgba(240, 82, 63, .10));
  border-bottom-color: rgba(240, 82, 63, .5);
}
.site-banner.kind-warning .sb-link, .site-banner.kind-warning .sb-close { color: #ffd3cd; }
.site-banner.kind-success {
  color: #d8ffe8;
  background: linear-gradient(90deg, rgba(55, 200, 113, .22), rgba(55, 200, 113, .09));
  border-bottom-color: rgba(55, 200, 113, .45);
}
.site-banner.kind-success .sb-link, .site-banner.kind-success .sb-close { color: #c9ffdd; }

/* ---------------- nav ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(13, 16, 18, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.site-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.site-brand span { display: flex; flex-direction: column; line-height: 1.08; min-width: 0; }
.site-brand strong {
  font-size: 17px;
  letter-spacing: .6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-brand small { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.site-links { display: flex; gap: 4px; margin-left: 12px; }
.site-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 9px;
  transition: background .15s, color .15s;
}
.site-links a:hover { color: var(--text); background: var(--panel); }
.site-links a.active { color: #ffd9b5; background: var(--accent-soft); }
.site-nav .btn { margin-left: auto; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d76006);
  color: #17100a;
  box-shadow: 0 8px 22px -10px rgba(255, 123, 26, .8);
}
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(255, 123, 26, .95); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { background: var(--panel2); border-color: var(--accent); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------------- layout ---------------- */
.site-main {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 42px) 60px;
  flex: 1;
}
.site-main.narrow { max-width: 940px; width: 100%; }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 36px;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(600px 320px at 88% 12%, rgba(255, 123, 26, .18), transparent 65%),
    linear-gradient(160deg, var(--panel2), var(--bg2));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero.with-image { background-size: cover; background-position: center; }
.hero.with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 12, 14, .92) 0%, rgba(10, 12, 14, .72) 55%, rgba(10, 12, 14, .42) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #ffcda6;
  background: rgba(255, 123, 26, .13);
  border: 1px solid rgba(255, 123, 26, .35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -.6px;
  margin-bottom: 16px;
}
.hero p {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art img {
  width: min(300px, 72%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 18px 46px rgba(255, 123, 26, .35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------- stats ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.stat .si {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--accent-soft);
  flex: 0 0 auto;
}
.stat .sl { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.stat .sv { font-size: 22px; font-weight: 800; line-height: 1.1; }

/* ---------------- sections ---------------- */
.section { margin-top: 44px; }
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 24px; letter-spacing: -.3px; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.section-head .btn { margin-left: auto; }

/* ---------------- news cards ---------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.news-card:hover { transform: translateY(-3px); border-color: rgba(255, 123, 26, .5); box-shadow: var(--shadow); }
.news-card .nc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-card h3 { font-size: 17px; line-height: 1.35; }
.news-card .nc-body { color: var(--muted); font-size: 14px; line-height: 1.6; }
.news-card .nc-more { margin-top: auto; color: var(--accent); font-size: 13px; font-weight: 700; }

.kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
}
.kind.news { color: #ffd0a6; border-color: rgba(255, 123, 26, .4); background: var(--accent-soft); }
.kind.announcement { color: #ffc6bf; border-color: rgba(240, 82, 63, .45); background: var(--red-soft); }
.kind.update { color: #cbe6ff; border-color: rgba(74, 168, 255, .4); background: var(--blue-soft); }
.kind.event { color: #ffe9a8; border-color: rgba(255, 201, 60, .4); background: var(--gold-soft); }
.kind.maintenance { color: #ffd0a6; border-color: rgba(255, 123, 26, .4); background: var(--accent-soft); }
.pin { font-size: 11px; color: var(--gold); }
.ndate { color: var(--muted); font-size: 12px; margin-left: auto; }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-post {
  padding: 24px clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scroll-margin-top: 90px;
}
.news-post.pinned { border-color: rgba(255, 201, 60, .4); }
.news-post .nc-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.news-post h2 { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.3; margin-bottom: 12px; }
.news-post .body { color: #c3ccd3; font-size: 15px; line-height: 1.7; }
.news-post .body p { margin-bottom: 10px; }
.news-post.target { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255, 123, 26, .35), var(--shadow); }

/* ---------------- downloads ---------------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.dl-card .dl-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--accent-soft);
}
.dl-card h3 { font-size: 17px; }
.dl-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.dl-meta span {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 3px 9px;
}
.dl-card .btn { margin-top: auto; }

/* ---------------- misc ---------------- */
.page-intro { margin-bottom: 24px; }
.page-intro .eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #ffcda6;
  margin-bottom: 10px;
}
.page-intro h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.5px; margin-bottom: 10px; }
.page-intro p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 70ch; }

.empty {
  padding: 34px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .015);
  font-size: 14px;
}

.cta-panel {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 123, 26, .35);
  border-radius: 18px;
  background:
    radial-gradient(500px 220px at 90% 0%, rgba(255, 123, 26, .18), transparent 70%),
    var(--panel);
}
.cta-panel h2 { font-size: 22px; margin-bottom: 4px; }
.cta-panel p { color: var(--muted); font-size: 14px; }
.cta-panel .btn { margin-left: auto; }

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  padding: 22px clamp(16px, 4vw, 42px);
  color: var(--muted);
  font-size: 13px;
}
.site-footer .inner {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer .brand-line { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; }
.site-footer img { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; }
.site-footer nav { margin-left: auto; display: flex; gap: 14px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(190px, 55%); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-links { display: none; }
  .site-nav { gap: 10px; }
  .site-nav .btn { padding: 9px 13px; font-size: 13px; }
  .stats { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
  .section-head .btn { margin-left: 0; }
  .cta-panel .btn { margin-left: 0; }
}
