/* ===========================
   Modern Gradient Design System
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-pink: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  --gradient-orange: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-ocean: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  --gradient-sunset: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-aurora: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

  /* Solid Colors */
  --bg-dark: #0a0e27;
  --bg-darker: #060920;
  --card-bg: #1a1f3a;
  --card-hover: #242a47;
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --text-muted: #8b92a8;
  --border: #2d3748;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Effects */
  --blur: blur(20px);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --glow: 0 0 30px rgba(102, 126, 234, 0.4);
}

/* ===========================
   Base Styles
   =========================== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.gradient-text {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   Header
   =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}

.header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.75rem;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
}

/* ===========================
   Hero Section - Split Layout
   =========================== */
.hero {
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  position: relative;
}

.hero-text {
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* Hero Visual with Code Preview */
.hero-visual {
  position: relative;
  height: 500px;
}

.code-preview {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.code-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.code-dots span:nth-child(2) {
  background: var(--gradient-secondary);
}

.code-dots span:nth-child(3) {
  background: var(--gradient-success);
}

.code-title {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.code-body {
  padding: 1.5rem;
}

.code-body pre {
  margin: 0;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.code-comment { color: #6b7280; }
.code-keyword { color: #c678dd; }
.code-function { color: #61afef; }
.code-string { color: #98c379; }

/* Floating Cards */
.floating-card {
  position: absolute;
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-1 {
  top: 20%;
  right: -10%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: -15%;
  animation-delay: 1s;
}

.card-3 {
  top: 80%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: var(--blur);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* ===========================
   Features Section
   =========================== */
.features {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  background: var(--card-bg);
  padding: var(--spacing-md);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.gradient-bg-1 { background: var(--gradient-primary); }
.gradient-bg-2 { background: var(--gradient-secondary); }
.gradient-bg-3 { background: var(--gradient-success); }
.gradient-bg-4 { background: var(--gradient-purple); }
.gradient-bg-5 { background: var(--gradient-orange); }
.gradient-bg-6 { background: var(--gradient-ocean); }

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================
   API Categories Section
   =========================== */
.api-categories {
  padding: var(--spacing-xl) 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.category-item {
  background: var(--card-bg);
  padding: var(--spacing-md);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.category-item:hover {
  transform: translateY(-5px);
  background: var(--gradient-primary);
  box-shadow: var(--glow);
}

.category-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.category-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.category-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===========================
   CTA Section
   =========================== */
.cta {
  padding: var(--spacing-xl) 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
  filter: blur(60px);
}

.cta-content {
  text-align: center;
  position: relative;
}

.cta h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.cta p {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--bg-darker);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 1px solid var(--border);
}

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

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links h4 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    padding: var(--spacing-md);
    display: none;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
  }

  .hero {
    padding: var(--spacing-lg) 0;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .features-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .cta p {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}
