/* =========================================
     TOOLLIBS UI SYSTEM
   Modern Framework Design
========================================= */

/* =========================
   ROOT VARIABLES
========================= */

:root {
  --bg: #0a0a0f;
  --bg2: #111827;
  --card: #161b22;

  --text: #e8e8f0;
  --muted: #9aa4b2;

  --accent: #4f8ef7;
  --accent2: #7c5fff;

  --green: #22c55e;
  --yellow: #f59e0b;

  --border: rgba(79, 142, 247, 0.15);
  --border2: rgba(255,255,255,0.06);

  --radius: 14px;
  --transition: 0.25s ease;
}

/* =========================
   RESET
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================
   SELECTION
========================= */

::selection {
  background: var(--accent);
  color: white;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg2);
}

::-webkit-scrollbar-thumb {
  background: #2b2f3a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* =========================
   NAVBAR (glass style)
========================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: center;
  gap: 30px;

  padding: 16px 20px;

  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px);

  border-bottom: 1px solid var(--border2);

  z-index: 1000;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

nav a:hover {
  color: var(--text);
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;

  background: linear-gradient(135deg, #fff, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin-top: 15px;
  color: var(--muted);
  max-width: 600px;
}

.tagline {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-header {
  text-align: center;
  padding: 80px 20px 40px;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.page-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================
   BUTTONS
========================= */

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;

  background: var(--accent);
  color: white;

  text-decoration: none;
  font-weight: 600;

  margin: 6px;

  transition: var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent2);
}

/* =========================
   MAIN LAYOUT
========================= */

main {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* =========================
   CARDS / SECTIONS
========================= */

section {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;

  transition: var(--transition);
}

section:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3 {
  font-weight: 700;
}

h2 {
  margin-bottom: 12px;
  color: var(--accent);
}

p {
  color: var(--muted);
}

/* =========================
   LISTS
========================= */

ul {
  padding-left: 18px;
  color: var(--muted);
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--text);
}

/* =========================
   BADGES
========================= */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

/* states */
.badge.tested {
  background: var(--green);
  color: white;
}

.badge.compatible {
  background: var(--accent);
  color: white;
}

.badge.unknown {
  background: #2b2f3a;
  color: #c9d1d9;
}

.badge.new {
  background: var(--green);
  color: white;
}

.badge.planned {
  background: var(--yellow);
  color: black;
}

/* =========================
   CHANGELONG SYSTEM
========================= */

.changelog-card {
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--card);
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
}

.changelog-header:hover {
  background: rgba(79,142,247,0.08);
}

.changelog-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s ease;
}

.changelog-card.open .changelog-content {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   EFFECTS SYSTEM
========================= */

canvas#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;

  pointer-events: none;
  z-index: 0;

  background: radial-gradient(circle, rgba(79,142,247,0.08), transparent 70%);
  transform: translate(-50%, -50%);
}

/* =========================
   FOOTER
========================= */

footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  border-top: 1px solid var(--border2);
  margin-top: 60px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}