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

:root {
  --bg: #0f0f13;
  --c-bg-soft: #252529;
  --c-bg-mute: #313136;

  --bg2: #16171f;
  --bg3: #1c1d2b;
  --c-border: rgba(82, 82, 89, 0.32);
  --c-border-h: rgba(82, 82, 89, 0.68);
  --border2: rgba(100, 108, 255, 0.25);
  --text: #e4e6f0;
  --muted: #6b7280;
  --dim: #3d4050;
  --accent: #5865f2; /* Discord */
  --accent2: #e0e3ff; /* White */
  --accent3: #ff0000; /* Youtube */
  --accent4: #9146ff; /* Twitch */
  --accent5: #00af5c; /* Modrinth */
  --accent6: #f16436; /* Curseforge */
  --accent7: #3094ff; /* Github */
  --accent8: #fdd927; /* Github Stars */
  --accent9: #000000; /* X */
  --accent10: #ff0069; /* Instagram */
  --accent11: #52a7e7; /* Twitter */
  --accent12: #ff4500; /* Reddit */
  --accent13: #26a5e4; /* Telegram */

  --accent-bg: rgba(88, 101, 242, 0.12);
  --green: #23a559;
  --red: #ff0000;
  --purple: #9146ff;
  --radius: 16px;
  --radius-lg: 12px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "DM Mono", monospace;

  --c-brand-dk: #30c67e;
  --c-brand: var(--accent);
  --c-brand-bg: var(--accent-bg);
  
  --c-text-1: rgba(255, 255, 255, 0.87);
  --c-text-2: rgba(235, 235, 245, 0.6);
  --c-text-3: rgba(235, 235, 245, 0.38);
  --c-red: #d63d3d;
  --c-orange: #d6993d;
  --c-yellow: #d6cc3d;
  --c-light-green: #4cd63d;
  --c-green: #3dd68c;
  --c-light-blue: #3d8fd6;
  --c-blue: #3d40d6;
  --c-purple: #9b3dd6;
  --c-pink: #d63dbf;
  
  --c-red-bg: rgba(214, 61, 61, 0.08);
  --c-orange-bg: rgba(214, 137, 61, 0.08);
  --c-yellow-bg: rgba(214, 206, 61, 0.08);
  --c-light-green-bg: rgba(61, 214, 74, 0.08);
  --c-green-bg: rgba(61, 214, 140, 0.08);
  --c-light-blue-bg: rgba(61, 176, 214, 0.08);
  --c-blue-bg: rgba(71, 61, 214, 0.08);
  --c-purple-bg: rgba(145, 61, 214, 0.08);
  --c-pink-bg: rgba(214, 61, 163, 0.08);


  --max-w: 960px;
  --transition: 0.18s ease;
}

img{
  max-height: 100%;
  height: auto;
}

a {
  color: var(--accent7);
  font-weight: bold;
  text-decoration: none;
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 16px 48px;
  gap: 20px;
  animation: fadeUp 0.5s ease 0.1s forwards;
}

.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 20px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero h1 em {
  font-style: normal;
  color: var(--c-brand);
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-text-2);
  max-width: 420px;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.badge.red {
  color: var(--c-red);
  border-color: rgba(214, 61, 61, 0.35);
  background: var(--c-red-bg);
}

.badge.orange {
  color: var(--c-brand);
  border-color: rgba(214, 137, 61, 0.35);
  background: var(--c-orange-bg);
}

.badge.yellow {
  color: var(--c-brand);
  border-color: rgba(173, 214, 61, 0.35);
  background: var(--c-yellow-bg);
}

.badge.light-green {
  color: var(--c-brand);
  border-color: rgba(61, 214, 89, 0.35);
  background: var(--c-light-green-bg);
}

.badge.green {
  color: var(--c-green);
  border-color: rgba(61, 214, 140, 0.35);
  background: var(--c-green-bg);
}

.badge.light-blue {
  color: var(--c-light-blue);
  border-color: rgba(61, 155, 214, 0.35);
  background: var(--c-light-blue-bg);
}

.badge.blue {
  color: var(--c-blue);
  border-color: rgba(76, 61, 214, 0.35);
  background: var(--c-blue-bg);
}

.badge.purple {
  color: var(--c-purple);
  border-color: rgba(186, 61, 214, 0.35);
  background: var(--c-purple-bg);
}

.badge.pink {
  color: var(--c-pink);
  border-color: rgba(214, 61, 166, 0.35);
  background: var(--c-pink-bg);
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--c-green);
  color: #0d1f16;
}

.btn-primary:hover {
  background: var(--c-brand-dk);
}

.btn-outline {
  background: transparent;
  color: var(--c-text-1);
  border: 1px solid var(--c-border);
}

.btn-outline:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  background: var(--c-brand-bg);
}

.section {
  margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}

.section-head h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head .count {
  font-size: 13px;
  color: var(--c-text-3);
}

.footer {
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 72px;
  padding-top: 24px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  padding-left: 24px;
  padding-right: 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: calc(320px * 3 + 24px * 2); /* matches 3-col cards-grid */
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.footer-brand span {
  font-size: 13px;
  color: var(--c-text-3);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--c-text-3);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--c-brand);
}

@media (max-width: 680px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .topbar-right {
    display: none;
  }
}

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);

  padding: min(5em, 8%);

  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow layers */
.glow-top {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    ellipse,
    rgba(88, 101, 242, 0.13) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.glow-bottom {
  position: fixed;
  bottom: -180px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(129, 140, 248, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Grid texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Top brand link ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.05s forwards;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
  font-family: var(--mono);
}

.brand-name span {
  color: var(--accent2);
}

.brand:hover .brand-name {
  color: var(--text);
}

/* ---------- Header text ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-bg);
  border: 1px solid var(--border2);
  color: var(--accent2);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0s ease 0s forwards;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.badge-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: pulse 2s ease infinite;
}

.heading {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 700;
  text-align: center;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.5s ease 0.15s forwards;
}

.heading em {
  font-style: normal;
  background: linear-gradient(130deg, #818cf8 20%, #5865f2 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub {
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.2s forwards;
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px 80px;
}

code {
    background-color: #23232977;
    padding: 5px;
    border-radius: 5px;
    overflow-x: auto; /* Adds a scrollbar for long lines */
}
