/* ===== Legends of Bhop — global styles ===== */
:root {
  --bg:        #0d0d10;
  --bg-2:      #16161c;
  --bg-3:      #1f1f28;
  --fg:        #f4f4f4;
  --fg-mute:   #9a9aa8;
  --accent:    #ff3c2d;
  --accent-2:  #ffb500;
  --border:    #2a2a35;
  --radius:    6px;
  --max-w:     1200px;
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Inter',   sans-serif;
}

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

html { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg);
}
h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin: 0 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); display: inline-block; }
h3 { font-size: 1.4rem; margin: 0 0 0.5rem; }

p { margin-bottom: 1rem; }
small, .muted { color: var(--fg-mute); font-size: 0.85rem; }

main { flex: 1; max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.5rem; width: 100%; }

/* ===== navigation ===== */
header.site {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(22, 22, 28, 0.92);
}
header.site .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg) !important;
}
.brand .accent { color: var(--accent); }
nav.primary { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
nav.primary a {
  color: var(--fg-mute); text-transform: uppercase; font-size: 0.9rem;
  font-weight: 600; letter-spacing: 0.05em;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
nav.primary a:hover, nav.primary a.active { color: var(--fg); border-bottom-color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; color: var(--fg); font-size: 1.5rem; cursor: pointer; }

/* ===== footer ===== */
footer.site {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 2rem 1.5rem; margin-top: 3rem; text-align: center;
  color: var(--fg-mute);
}
footer.site a { color: var(--fg-mute); margin: 0 0.5rem; }
footer.site a:hover { color: var(--accent); }
footer.site .copy { margin-top: 1rem; font-size: 0.8rem; }

/* ===== hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-2); border-radius: var(--radius);
  padding: 4rem 2rem; margin: -2rem -1.5rem 2rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, transparent 50%, rgba(255,60,45,0.08) 100%);
}
.hero h1 { font-size: 4rem; }
.hero h1 .accent { color: var(--accent); }
.hero .tagline { color: var(--fg-mute); font-size: 1.2rem; margin-bottom: 2rem; }
.hero .cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-img { max-width: 400px; flex: 1; height: auto; opacity: 0.85; }
.hero-text { flex: 1; min-width: 280px; }

/* ===== buttons ===== */
.btn {
  display: inline-block; padding: 0.8rem 1.5rem;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem;
  border-radius: var(--radius); cursor: pointer; border: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,60,45,0.4); }
.btn-secondary { background: var(--bg-3); color: var(--fg); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-telegram { background: #2AABEE; color: #fff; }
.btn-telegram:hover { background: #229ED9; }

/* ===== cards / sections ===== */
section { margin-bottom: 3rem; }
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h3 { color: var(--fg); }
.card p:last-child { margin-bottom: 0; }
.card .icon { color: var(--accent); font-size: 2rem; margin-bottom: 0.5rem; }
.card .meta { color: var(--fg-mute); font-size: 0.85rem; margin-bottom: 0.5rem; }

.note {
  background: rgba(255,181,0,0.08); border-left: 3px solid var(--accent-2);
  padding: 1rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.note strong { color: var(--accent-2); }

/* ===== changelog ===== */
.changelog { list-style: none; padding: 0; }
.changelog li {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
}
.changelog .ver { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); }
.changelog .date { color: var(--fg-mute); font-size: 0.85rem; margin-left: 0.5rem; }
.changelog ul { margin: 0.5rem 0 0 1.2rem; }
.changelog li li { background: none; border: 0; padding: 0.2rem 0; margin: 0; border-left: 0; }

/* ===== rules / tables ===== */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-2); font-family: var(--font-display); text-transform: uppercase; font-size: 0.85rem; color: var(--accent); }

/* ===== code ===== */
pre, code { font-family: 'Consolas', 'Monaco', monospace; }
pre {
  background: #000; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; overflow-x: auto; color: #c5c8c6; font-size: 0.85rem;
}
code { background: var(--bg-3); padding: 0.15rem 0.4rem; border-radius: 3px; color: var(--accent-2); }
pre code { background: none; padding: 0; color: inherit; }

/* ===== download page ===== */
.steps { counter-reset: step; }
.steps li {
  background: var(--bg-2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem 1rem 4rem; margin-bottom: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
  list-style: none;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1rem; top: 1rem; width: 2rem; height: 2rem;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.steps li strong { color: var(--fg); }

/* ===== mobile ===== */
@media (max-width: 768px) {
  .hero { padding: 2rem 1rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-img { max-width: 100%; }
  nav.primary { display: none; flex-direction: column; gap: 0.5rem;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2);
    padding: 1rem; border-bottom: 1px solid var(--border); }
  nav.primary.open { display: flex; }
  .menu-toggle { display: block; }
  header.site .inner { flex-wrap: wrap; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
}
