:root {
  --bg-main: #080b14;
  --bg-alt: #0d1220;
  --card-bg: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.10);
  --primary: #5865f2;
  --primary-light: #7289da;
  --text-muted-custom: #a8b0c3;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(88, 101, 242, 0.25), transparent 35%),
    radial-gradient(circle at bottom right, rgba(114, 137, 218, 0.18), transparent 30%),
    var(--bg-main);
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

section {
  scroll-margin-top: 90px;
}

.custom-navbar {
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  letter-spacing: 0.3px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
}

.nav-link:hover {
  color: #ffffff;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: 120px;
  background: rgba(88, 101, 242, 0.22);
  filter: blur(90px);
  border-radius: 999px;
  z-index: -1;
}

.hero-section h1 {
  background: linear-gradient(135deg, #ffffff, #9da7ff, #5865f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bot-badge {
  background: rgba(88, 101, 242, 0.16);
  color: #dfe3ff;
  border: 1px solid rgba(88, 101, 242, 0.35);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4752c4, #6679cc);
}

.btn-glow {
  box-shadow:
    0 8px 25px rgba(88, 101, 242, 0.35),
    0 0 18px rgba(88, 101, 242, 0.25);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.bot-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.4rem;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid;
  place-items: center;
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.5);
}

.bot-icon i {
  font-size: 3rem;
}

.status-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.section-alt {
  background: rgba(255, 255, 255, 0.025);
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  transition: 0.25s ease;
  backdrop-filter: blur(14px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 18px 45px rgba(88, 101, 242, 0.16);
}

.feature-card .card-body {
  padding: 1.7rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  background: rgba(88, 101, 242, 0.14);
  color: #aeb7ff;
}

.feature-icon i {
  font-size: 1.5rem;
}

.command-box {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 1rem;
}

.command-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 0.75rem;
}

.command-line:last-child {
  margin-bottom: 0;
}

.command-line span {
  color: #cdd3ff;
  font-weight: 700;
  font-family: monospace;
}

.command-line small {
  color: var(--text-muted-custom);
}

.invite-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 3rem 1.5rem;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 20, 0.75);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted-custom);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .hero-section .min-vh-100 {
    min-height: auto !important;
    padding-top: 8rem !important;
  }

  .command-line {
    flex-direction: column;
  }
}

.legal-page {
  padding-top: 90px;
  min-height: 100vh;
}

.legal-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 2.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.legal-box h1 {
  background: linear-gradient(135deg, #ffffff, #9da7ff, #5865f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-box h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.legal-box p,
.legal-box li {
  color: var(--text-muted-custom);
  line-height: 1.7;
}

.legal-box a {
  color: #aeb7ff;
}

.legal-box a:hover {
  color: #ffffff;
}

.legal-box ul {
  padding-left: 1.3rem;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-teaser {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 3rem 1.5rem;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

@media (max-width: 767.98px) {
  .legal-box {
    padding: 1.5rem;
  }

  .legal-actions {
    flex-direction: column;
  }

  .legal-actions .btn {
    width: 100%;
  }
}