:root {
  --primary: #5865f2;
  --secondary: #0088cc;
  --accent: #00c853;
  --dark: #2c2f33;
  --light: #f5f5f5;
  --gray: #99aab5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
}

.btn-discord {
  background-color: var(--primary);
}

.btn-telegram {
  background-color: var(--secondary);
}

.btn-telegram:hover {
  background-color: #0077b3;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 0 100px;
  color: white;
  text-align: center;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(88, 101, 242, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(0, 136, 204, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(118, 75, 162, 0.2) 0%, transparent 40%);
  animation: heroFloat 15s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 30px;
  letter-spacing: 0.3px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge i {
  color: #ffd700;
  margin-right: 6px;
}

.hero-icon-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 15px 40px rgba(88, 101, 242, 0.4);
  animation: fadeInUp 0.8s ease;
  transform: rotate(-5deg);
  transition: transform 0.3s;
}

.hero-icon-wrapper:hover {
  transform: rotate(0deg) scale(1.05);
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-highlight {
  background: linear-gradient(135deg, #667eea, #00c853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.85;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-hero-telegram {
  background: linear-gradient(135deg, #0088cc, #00aaee);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.35);
}

.btn-hero-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 136, 204, 0.5);
  background: linear-gradient(135deg, #0077b3, #0099dd);
}

.btn-hero-discord {
  background: linear-gradient(135deg, #5865f2, #7b68ee);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.35);
}

.btn-hero-discord:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(88, 101, 242, 0.5);
  background: linear-gradient(135deg, #4752c4, #6a5acd);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 1.8rem;
  font-weight: 800;
}

.hero-stat span {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 2px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background-color: var(--light);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

/* Bots Section */
.bots {
  padding: 80px 0;
  background-color: #f5f7fa;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: white;
  border: 1px solid #ddd;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.bot-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.bot-card:hover {
  transform: translateY(-5px);
}

.bot-header {
  padding: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.bot-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-right: 15px;
}

.bot-icon.telegram {
  background-color: var(--secondary);
}

.bot-icon.discord {
  background-color: var(--primary);
}

.bot-info {
  padding: 20px;
}

.bot-info h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.bot-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 15px;
  margin-bottom: 15px;
}

.bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tag {
  background-color: #e3f2fd;
  color: #1565c0;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
}

.tag.telegram {
  background-color: #e3f2fd;
  color: #0088cc;
}

.tag.discord {
  background-color: #e8eaf6;
  color: #5865f2;
}

/* Stats Section */
.stats {
  padding: 60px 0;
  background-color: var(--dark);
  color: white;
  text-align: center;
}

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

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
  background-color: white;
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 30px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark) 0%, #23272a 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 30px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
  .hero h1 { font-size: 2.5rem; }
  .section-title h2 { font-size: 2rem; }
  .cta h2 { font-size: 2rem; }
  .features-grid, .bots-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .hero { min-height: auto; padding: 100px 0 80px; }
}

@media (max-width: 768px) {
  .navbar { flex-direction: column; }
  .nav-links { margin-top: 20px; flex-wrap: wrap; justify-content: center; }
  .nav-links li { margin: 5px 10px; }
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-stats { gap: 25px; }
  .hero-stat strong { font-size: 1.4rem; }
  .btn-hero-telegram, .btn-hero-discord { width: 100%; max-width: 300px; text-align: center; }
  .btn { width: 100%; max-width: 300px; margin-bottom: 10px; }
  .section-title h2 { font-size: 1.6rem; }
  .features, .bots, .how-it-works { padding: 40px 0; }
  .cta { padding: 40px 0; }
  .cta h2 { font-size: 1.6rem; }
  .stat-item h3 { font-size: 1.8rem; }
  .stats { padding: 40px 0; }
  footer { padding: 30px 0 20px; }
}

@media (max-width: 480px) {
  .features-grid, .bots-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-icon-wrapper { width: 70px; height: 70px; font-size: 30px; }
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.search-bar {
  width: 100%;
  padding: 15px 20px;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
}

/* Login */
.login-section{min-height:80vh;display:flex;align-items:center;justify-content:center;padding:2rem}
.login-card{background:#1a1a2e;border:1px solid #2d2d44;border-radius:16px;padding:2.5rem;width:100%;max-width:400px;box-shadow:0 8px 32px rgba(0,0,0,.3)}
.login-header{text-align:center;margin-bottom:2rem}
.login-header i{font-size:2.5rem;color:#6366f1;margin-bottom:.5rem}
.login-header h2{color:#e2e8f0;font-size:1.5rem;margin-bottom:.3rem}
.login-header p{color:#94a3b8;font-size:.9rem}
.form-group{margin-bottom:1.2rem}
.form-group label{display:block;color:#94a3b8;font-size:.8rem;margin-bottom:.4rem;font-weight:600}
.form-group input{width:100%;padding:12px 16px;background:#0f0f1a;border:1px solid #2d2d44;border-radius:8px;color:#e2e8f0;font-size:.95rem;outline:none;transition:border .2s}
.form-group input:focus{border-color:#6366f1}
.toast-msg{position:fixed;top:90px;right:20px;background:#ef4444;color:#fff;padding:10px 20px;border-radius:6px;font-size:.85rem;opacity:0;transition:opacity .3s;z-index:9999}
.toast-msg.show{opacity:1}
