/* =====================================================
   K4JMC • site.css (polish pass)
   ===================================================== */

:root {
  --bg-900: #0f1420;
  --bg-850: #141a29;
  --bg-800: #192132;
  --tx-100: #e9eef8;
  --tx-200: #c9d2e3;
  --accent: #ffd166;
  --brand: #5ac8fa;
  --muted: #3a4661;
  --shadow: rgba(2,10,30,0.55);
}

html[data-bs-theme="dark"] body {
  background: var(--bg-900);
  color: var(--tx-100);
}

/* Navbar */

.navbar.navbar-dark {
  background: linear-gradient(180deg,rgba(20,26,41,.95),rgba(20,26,41,.80) 60%,rgba(20,26,41,0));
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(90,200,250,.06);
}

.navbar-brand img {
  height: 28px;
  width: auto;
}

.navbar .nav-link {
  color: var(--tx-200);
}

.navbar .nav-link.active, .navbar .nav-link:hover, .navbar .dropdown-item:hover {
  color: var(--tx-100);
}

.nav-discord.btn {
  background: var(--accent);
  color: #131722;
  border: none;
  padding: .375rem .65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 6px 18px rgba(255,209,102,.18);
}

.nav-discord svg {
  height: 16px;
  width: 16px;
  fill: currentColor;
}

/* Hero */

.hero {
  min-height: 45vh;
  background: radial-gradient(1200px 40% at 60% 0%,rgba(90,200,250,.12),transparent 60%),url("../../../assets/img/banner.png") center/cover no-repeat;
  box-shadow: inset 0 -60px 120px rgba(2,10,30,.65);
}

.hero .inner .sub {
  max-width: 74ch;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(90,200,250,.08);
  color: var(--tx-200);
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  border: 1px solid rgba(90,200,250,.18);
}

.badge-soft svg {
  height: 16px;
  width: 16px;
  fill: currentColor;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .35rem .6rem;
  font-size: .85rem;
  color: var(--tx-200);
}

/* Content */

.section-title span {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(90,200,250,.08);
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(90,200,250,.18);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.grid.grid-3 {
  grid-template-columns: repeat(3,1fr);
}

.card {
  background: var(--bg-850);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(2,10,30,.6);
  border-color: rgba(255,255,255,.08);
}

.card .hd {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}

.card .hd svg {
  height: 18px;
  width: 18px;
  fill: currentColor;
  color: var(--brand);
}

.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .15rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}

.kv:last-child {
  border-bottom: 0;
}

.kv span {
  color: var(--tx-200);
  font-size: .9rem;
}

.kv strong {
  color: var(--tx-100);
  font-weight: 600;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease,transform .5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Footer */

footer {
  background: linear-gradient(180deg,rgba(20,26,41,0),rgba(20,26,41,.6));
  border-top: 1px solid rgba(255,255,255,.06);
}

footer a {
  color: var(--tx-200);
}

footer a:hover {
  color: var(--tx-100);
}

.divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin-top: 1rem;
}

/* To Top */

#toTop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(90,200,250,.95);
  color: #0f1420;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(90,200,250,.3);
  border: 0;
  z-index: 1030;
}

#toTop svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Breakpoints */

@media (max-width:1199.98px) {
  .grid.grid-4 {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:991.98px) {
  .navbar-brand img {
    height: 26px;
  }
}

@media (max-width:991.98px) {
  .nav-discord.btn {
    padding: .35rem .55rem;
  }
}

@media (max-width:991.98px) {
  .chip {
    font-size: .8rem;
    padding: .3rem .55rem;
  }
}

@media (max-width:991.98px) {
  .hero {
    min-height: 50vh;
  }
}

@media (max-width:575.98px) {
  .grid.grid-3, .grid.grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width:575.98px) {
  .navbar-brand img {
    height: 24px;
  }
}

