/* Base Variables */
:root {
  --primary: #7c3aed;
  --primary-light: rgba(124, 58, 237, 0.2);
  --primary-border: rgba(124, 58, 237, 0.5);
  --accent: #00c8ff;
  --accent-light: rgba(0, 200, 255, 0.2);
  --background: hsl(240, 20%, 5%);
  --secondary: hsl(240, 15%, 12%);
  --foreground: hsl(210, 20%, 98%);
  --muted: hsl(240, 10%, 50%);
  --card-bg: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.15), transparent 60%),
    linear-gradient(to bottom, transparent, var(--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='%239C92AC' 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");
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

ul {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  background: rgba(124, 58, 237, 0.9);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: white;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-cta {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
  }
}

.hero-glow-1 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: rgba(124, 58, 237, 0.1);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 800px;
  height: 600px;
  background: rgba(0, 200, 255, 0.05);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-badge span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), #a855f7, var(--accent));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 4s ease infinite;
}

@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-buttons .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-buttons .btn {
    width: auto;
  }
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-delay {
  animation: fadeIn 0.6s ease 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.6s ease 0.4s forwards;
  opacity: 0;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 0.6s ease 0.6s forwards;
  opacity: 0;
}

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

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: rgba(255, 255, 255, 0.02);
}

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

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

.section-header p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent);
  opacity: 0;
  border-radius: 1rem;
  transition: opacity 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 58, 237, 0.5);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.feature-card:hover h3 {
  color: var(--primary);
}

.feature-card p {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Engines Grid */
.engines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .engines-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.engine-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.engine-card:hover {
  border-color: rgba(124, 58, 237, 0.5);
}

.engine-recommended {
  background: rgba(124, 58, 237, 0.1);
  border: 2px solid rgba(124, 58, 237, 0.5);
}

.engine-offline:hover {
  border-color: rgba(0, 200, 255, 0.5);
}

.engine-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--primary);
  color: white;
}

.badge-accent {
  background: rgba(0, 200, 255, 0.2);
  color: var(--accent);
}

.engine-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.engine-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.engine-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row span:first-child {
  color: var(--muted);
}

.spec-value {
  color: white;
  font-weight: 600;
}

/* Demo Section */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .demo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.demo-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .demo-content h2 {
    font-size: 3rem;
  }
}

.demo-desc {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.demo-feature:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.demo-feature:nth-child(odd):hover {
  border-color: rgba(0, 200, 255, 0.3);
}

.demo-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-feature-icon.accent {
  background: rgba(0, 200, 255, 0.2);
  color: var(--accent);
}

.demo-feature-icon.primary {
  background: rgba(124, 58, 237, 0.2);
  color: var(--primary);
}

.demo-feature h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.demo-feature p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Discord Preview */
.demo-preview {
  position: relative;
}

.demo-preview::before {
  content: '';
  position: absolute;
  inset: -1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.2;
  filter: blur(40px);
  border-radius: 1.5rem;
}

.discord-window {
  position: relative;
  background: #36393f;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid #202225;
}

.discord-titlebar {
  background: #202225;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #202225;
}

.window-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.window-dot.red {
  background: #ed4245;
}

.window-dot.yellow {
  background: #faa61a;
}

.window-dot.green {
  background: #3ba55c;
}

.channel-name {
  margin-left: 1rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: #72767d;
}

.discord-messages {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.discord-message {
  display: flex;
  gap: 1rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-avatar {
  background: #5865f2;
}

.bot-avatar {
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.bot-avatar svg {
  width: 1.5rem;
  height: 1.5rem;
}

.message-content {
  flex: 1;
}

.message-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.username {
  font-weight: 700;
  color: white;
  cursor: pointer;
}

.username:hover {
  text-decoration: underline;
}

.bot-name {
  color: var(--primary);
}

.bot-tag {
  background: #5865f2;
  color: white;
  font-size: 0.625rem;
  padding: 0.125rem 0.25rem;
  border-radius: 0.125rem;
  font-weight: 700;
}

.timestamp {
  font-size: 0.75rem;
  color: #72767d;
}

.message-content > p {
  color: #dcddde;
}

.audio-embed {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #2f3136;
  padding: 0.5rem;
  border-radius: 0.25rem;
  max-width: 20rem;
  border-left: 4px solid var(--primary);
}

.audio-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.audio-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.audio-bars .bar {
  height: 0.5rem;
  background: #4f545c;
  border-radius: 9999px;
}

.audio-bars .bar:first-child {
  width: 6rem;
}

.audio-bars .bar:last-child {
  width: 4rem;
}

.audio-status {
  font-size: 0.75rem;
  color: #b9bbbe;
}

.discord-input {
  padding: 1rem;
  background: #36393f;
}

.discord-input > div,
.discord-input > span {
  background: #40444b;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: #72767d;
  display: block;
}

/* Setup Section */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .setup-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.setup-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.setup-card:hover {
  border-color: rgba(124, 58, 237, 0.5);
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  transition: color 0.3s;
}

.setup-card:hover .step-number {
  color: rgba(124, 58, 237, 0.1);
}

.setup-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.setup-card:hover h3 {
  color: var(--primary);
}

.setup-card p {
  color: var(--muted);
  position: relative;
  z-index: 1;
}

/* Commands Section */
.commands-box {
  max-width: 56rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.commands-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.commands-header svg {
  color: var(--primary);
}

.commands-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.commands-list {
  display: flex;
  flex-direction: column;
}

.command-row {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

@media (min-width: 640px) {
  .command-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.command-row:last-child {
  border-bottom: none;
}

.command-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.command-row code {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  color: var(--primary);
  font-family: monospace;
  font-size: 1.125rem;
  font-weight: 700;
}

.command-row p {
  color: var(--muted);
}

@media (min-width: 640px) {
  .command-row p {
    text-align: right;
  }
}

/* Footer */
.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .logo-text {
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted);
  max-width: 20rem;
}

.footer-links h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-links a {
  color: var(--muted);
  transition: color 0.2s;
}

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