/* Shared styles for comrich.lol */
:root {
  --bg: #000000;
  --panel: rgba(10, 10, 10, 0.88);
  --panel-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ef4444;
  --accent-soft: #f87171;
  --shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(249, 68, 68, 0.14), transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(248, 114, 114, 0.08), transparent 18%),
    linear-gradient(180deg, #000 0%, #050505 46%, #090909 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

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

.logo {
  width: 44px;
  aspect-ratio: 1;
  border-radius: 16px;
  box-shadow: 0 16px 45px rgba(239, 68, 68, 0.18);
  position: relative;
  background-image: url("../bot.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-title {
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-weight: 900;
  color: #ffb4b4;
}

.brand-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  padding: 11px 16px;
  border-radius: 999px;
  color: #d6d6d6;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero {
  padding: 56px 0 42px;
}

.hero.centered {
  text-align: center;
}

.grid-hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(249, 68, 68, 0.1);
  border: 1px solid rgba(249, 68, 68, 0.18);
  color: #ffcdcd;
  font-size: 0.92rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(249, 68, 68, 0.12);
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.lead {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 66ch;
}

.hero.centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero.centered .actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f4f4f6 100%);
  color: #040404;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat,
.panel,
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.stat {
  border-radius: 22px;
  padding: 20px;
  text-align: center;
}

.stat .num {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stat .label {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 5px;
}

.panel {
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(18px);
}

.discord-shell {
  border-radius: calc(var(--radius) - 2px);
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 68, 68, 0.16), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(248, 114, 114, 0.08), transparent 18%),
    rgba(4, 4, 4, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.dot.red {
  background: #ef4444;
}

.dot.yellow {
  background: #f59e0b;
}

.dot.green {
  background: #22c55e;
}

.shell-label {
  font-size: 0.88rem;
  color: #a7a7a7;
}

.profile-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.banner {
  height: 116px;
  background:
    linear-gradient(135deg, rgba(249, 68, 68, 0.46), rgba(15, 15, 15, 0.06) 60%),
    radial-gradient(circle at 70% 20%, rgba(248, 114, 114, 0.2), transparent 26%),
    linear-gradient(180deg, #171717, #070707);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-head {
  position: relative;
  padding: 0 18px;
}

.avatar {
  width: 108px;
  aspect-ratio: 1;
  border-radius: 40px;
  border: 5px solid #080808;
  background-image: url("../bot.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: -54px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
}

.profile-body {
  padding: 14px 18px 18px;
}

.name-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.display-name {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.handle {
  color: #9f9f9f;
  font-size: 1rem;
  margin-top: 4px;
}

.pronouns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(249, 68, 68, 0.1);
  border: 1px solid rgba(249, 68, 68, 0.18);
  color: #ffd7d7;
  font-size: 0.8rem;
  font-weight: 700;
}

.bio {
  margin-top: 14px;
  color: #dfdfdf;
  line-height: 1.7;
  font-size: 1rem;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8e8e8;
  font-size: 0.85rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.info {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.info .k {
  color: #bdbdbd;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info .v {
  margin-top: 7px;
  font-size: 1rem;
  font-weight: 800;
}

.section {
  padding: 26px 0 10px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  margin-bottom: 18px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 900;
  color: #ffb4b4;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

.section p.sub {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.8;
}

.cards {
  display: grid;
  gap: 18px;
}

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

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border-radius: 28px;
  padding: 22px;
  backdrop-filter: blur(18px);
  text-align: center;
}

.card h3 {
  margin: 0;
  font-size: 1.22rem;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.install-wrap {
  padding: 44px 0 16px;
}

.install-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 42px;
  background:
    radial-gradient(circle at top left, rgba(249, 68, 68, 0.18), transparent 40%),
    radial-gradient(circle at bottom right, rgba(127, 29, 29, 0.12), transparent 40%),
    rgba(10, 10, 10, 0.76);
  box-shadow: var(--shadow);
  padding: 24px;
}

.install-box {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.install-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.commands-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.filter {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #dcdcdc;
  cursor: pointer;
}

.filter.active {
  background: #fff;
  color: #050505;
  border-color: #fff;
}

.command-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.command {
  position: relative;
  overflow: hidden;
}

.command::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(255, 255, 255, 0) 55%);
  opacity: 0.4;
  pointer-events: none;
}

.command-inner {
  position: relative;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ececec;
}

.command-meta {
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.command-meta .arg {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #fca5a5;
}

.copybar {
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.72);
}

.copytop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.copytop .label {
  font-weight: 800;
}

.copybtn {
  border: none;
  color: #fff;
  background: rgba(239, 68, 68, 0.12);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.copybtn:hover {
  background: rgba(239, 68, 68, 0.2);
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #ffd7d7;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer {
  padding: 34px 0 44px;
  color: #7a7a7a;
  font-size: 0.92rem;
  text-align: center;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.card,
.panel,
.stat,
.discord-shell {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

@media (max-width: 960px) {
  .grid-hero,
  .cards.three,
  .cards.two,
  .command-grid,
  .stats,
  .install-hero {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .display-name {
    font-size: 1.8rem;
  }
}
