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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #0a1929 0%, #1a2744 50%, #1b4965 100%);
  color: #e2e8f0;
  position: relative;
  overflow-x: hidden;
}

.star-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.3;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.navbar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 57, 70, 0.1);
}

.navbar-icon {
  width: 75px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.navbar-icon:hover {
  transform: scale(1.1);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  min-height: auto;
  margin-top: 80px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 3rem;
}

.btn-primary {
  background: linear-gradient(135deg, #e63946 0%, #d8697d 100%);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
  border: 2px solid rgba(230, 57, 70, 0.5);
  color: #e2e8f0;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(230, 57, 70, 0.1);
  border-color: #e63946;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.gradient-circle {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #e63946 0%, #d8697d 100%);
  border-radius: 50%;
  opacity: 0.1;
  position: absolute;
  filter: blur(40px);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  grid-column: 1 / -1;
}

.stat-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(30, 41, 59, 0.8);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e63946 0%, #d8697d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.section-title p {
  color: #cbd5e1;
  font-size: 1.125rem;
}

.text-gradient {
  background: linear-gradient(135deg, #e63946 0%, #d8697d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-btn {
  border: 1px solid rgba(230, 57, 70, 0.35);
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.45);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  border-color: rgba(230, 57, 70, 0.75);
  background: rgba(230, 57, 70, 0.12);
}

.category-btn.active {
  border-color: #e63946;
  background: rgba(230, 57, 70, 0.22);
  color: #fff;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.command-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.command-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e63946 0%, #d8697d 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.command-card:hover {
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-4px);
}

.command-card:hover::before {
  transform: scaleX(1);
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.command-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e63946;
}

.command-description {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.command-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-label {
  color: #64748b;
  min-width: 70px;
}

.meta-value {
  color: #e2e8f0;
  font-family: "Courier New", monospace;
  word-break: break-all;
}

.alias-tag {
  display: inline-block;
  background: rgba(230, 57, 70, 0.2);
  color: #fca5a5;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-family: "Courier New", monospace;
  margin: 0.15rem;
}

.cooldown-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
}

.no-commands {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.error-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.footer {
  border-top: 1px solid rgba(230, 57, 70, 0.1);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  background: rgba(15, 23, 42, 0.5);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #e63946;
}

.footer-bottom {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(230, 57, 70, 0.1);
}

.docs-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 1rem 1rem;
}

.docs-title {
  text-align: center;
  margin-bottom: 2rem;
}

.docs-title h1 {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.docs-subtitle {
  color: #ffffff;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

#swagger-ui {
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 20px 35px rgba(2, 6, 23, 0.35);
  margin-bottom: 2.5rem;
}

.topbar,
.swagger-ui .info {
  display: none;
}

.swagger-ui,
.swagger-ui .opblock-tag,
.swagger-ui .opblock .opblock-summary-description,
.swagger-ui .opblock .opblock-summary-path,
.swagger-ui .opblock .opblock-summary-method,
.swagger-ui .parameter__name,
.swagger-ui .parameter__type,
.swagger-ui .response-col_status,
.swagger-ui .response-col_description,
.swagger-ui .tab li,
.swagger-ui .btn,
.swagger-ui label,
.swagger-ui .model-title,
.swagger-ui section.models h4,
.swagger-ui .opblock-title_normal p,
.swagger-ui .responses-inner h4,
.swagger-ui .responses-inner h5,
.swagger-ui .opblock-description-wrapper p,
.swagger-ui .opblock-external-docs-wrapper p {
  color: #e2e8f0;
}

.swagger-ui .scheme-container {
  background: rgba(15, 23, 42, 0.6);
  box-shadow: none;
  border-bottom: 1px solid rgba(230, 57, 70, 0.12);
}

.swagger-ui .opblock-tag {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(230, 57, 70, 0.15);
  font-size: 1.75rem;
}

.swagger-ui .opblock {
  margin: 0.8rem 1rem;
  border-radius: 8px;
}

.swagger-ui .opblock .opblock-summary {
  padding: 0.45rem;
}

.swagger-ui input[type="text"],
.swagger-ui textarea {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.swagger-ui .btn.execute {
  background: #e63946;
  border-color: #d8697d;
}

.legal-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
  line-height: 1.7;
}

.legal-container h1,
.legal-container h2 {
  color: #fff;
}

.legal-container a {
  color: #f87171;
}

.legal-card {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1.2rem;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1.5rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    order: 1;
  }

  .hero-visual {
    margin-bottom: 0;
    order: 2;
  }

  .stats-container {
    order: 3;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .btn-group {
    justify-content: center;
    flex-direction: column;
  }

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

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

  .section-title h2 {
    font-size: 2rem;
  }

  .docs-title h1 {
    font-size: 2rem;
  }

  .docs-shell {
    padding-top: 104px;
  }
}
