/* ============================================================
   Badlands — Shared Styles
   Fluxer-hosted instance · badlands.pw
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:           #111113;
  --surface:      #1a1a1f;
  --surface-2:    #222228;
  --border:       #2a2a32;
  --border-hover: #3d3d4a;

  --text:         #e4e4f0;
  --muted:        #8888a0;
  --muted-2:      #55556a;

  --accent:       #5865f2;        /* Fluxer indigo */
  --accent-dim:   rgba(88,101,242,.15);
  --accent-border:rgba(88,101,242,.4);

  --green:        #23a55a;
  --red:          #f23f43;
  --yellow:       #f0b132;

  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;
  --font-display: 'Inter', system-ui, sans-serif;

  --radius:       6px;
  --radius-lg:    10px;
  --transition:   0.15s ease;

  --max-w:        780px;
  --nav-h:        60px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 4px; }

strong { font-weight: 600; color: var(--text); }

/* ── Page transition ────────────────────────────────────── */
.page-transition { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(17,17,19,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-left .logo {
  height: 28px;
  width: auto;
  display: block;
}

.nav-left h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-right a,
.nav-left > a:not(:first-child) {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-right a:hover,
.nav-left > a:not(:first-child):hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-right a.active,
.nav-left > a.active {
  color: var(--text);
  background: var(--surface-2);
}

.btn-outline {
  border: 1px solid var(--border-hover) !important;
  color: var(--text) !important;
  padding: 5px 14px !important;
  border-radius: var(--radius) !important;
}
.btn-outline:hover {
  border-color: var(--accent-border) !important;
  background: var(--accent-dim) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-right {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 2px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 99;
    overflow-y: auto;
  }

  .nav-right.open { display: flex; }

  .nav-right a {
    width: 100%;
    font-size: 15px;
    padding: 10px 12px;
  }

  .btn-outline {
    margin-top: 12px;
    width: 100%;
    text-align: center;
  }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 24px 64px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(88,101,242,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid var(--accent-border);
  border-radius: 99px;
  background: var(--accent-dim);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-meta {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Doc sections (ToS / Privacy accordion) ─────────────── */
.doc-content { display: flex; flex-direction: column; gap: 6px; }

.expand-all-btn {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color var(--transition), color var(--transition);
}
.expand-all-btn:hover { border-color: var(--border-hover); color: var(--text); }

.doc-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.doc-section:hover { border-color: var(--border-hover); }

.doc-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  transition: background var(--transition);
}

.doc-section-header:hover { background: var(--surface-2); }

.doc-section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  min-width: 26px;
  opacity: .75;
}

.doc-section-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.doc-section-chevron {
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  transition: transform var(--transition), color var(--transition);
  width: 20px;
  text-align: center;
}

.doc-section.open .doc-section-chevron {
  transform: rotate(45deg);
  color: var(--text);
}

.doc-section-body {
  display: none;
  padding: 0 20px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.doc-section.open .doc-section-body { display: block; }

.doc-section-body p,
.doc-section-body li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.doc-section-body p { margin-top: 14px; }
.doc-section-body ul, .doc-section-body ol { margin-top: 10px; }
.doc-section-body li { color: var(--muted); }

.doc-section-body strong { color: var(--text); }

.doc-section-body a { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Info / alert boxes ──────────────────────────────────── */
.alert-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: var(--max-w);
  margin: 0 auto;
}

.alert-box .icon { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.alert-box strong { color: var(--text); }

.info-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-2);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted-2); font-size: 12px; }
.footer-links a:hover { color: var(--muted); text-decoration: none; }

/* ── Divider label ───────────────────────────────────────── */
.divider-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 28px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.divider-label::before, .divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }
