:root {
  --bg-color: #0d0f14;
  --surface-color: #1a1d27;
  --surface-color-hover: #232836;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --secondary: #ec4899;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(26, 29, 39, 0.7);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(13, 15, 20, 0.8);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
  color: white;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary-small {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary-small:hover {
  background-color: #4f46e5;
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}

.btn-primary:hover {
  background-color: #4f46e5;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-color);
  border-color: var(--text-muted);
}

.btn-primary.large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 5% 4rem;
}

.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 6rem 5%;
  background: linear-gradient(to bottom, var(--bg-color), #11131a);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface-color);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, background-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--surface-color-hover);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Syntax Section */
.syntax-section {
  padding: 6rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.code-showcase {
  background: #11131a;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.code-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.code-content {
  display: none;
  padding: 2rem;
  position: relative;
}

.code-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: #e2e8f0;
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--surface-color);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.copy-btn:hover {
  color: white;
  background: var(--surface-color-hover);
}

/* CTA Section */
.cta-section {
  padding: 8rem 5%;
  text-align: center;
  background: linear-gradient(to top, rgba(99, 102, 241, 0.1), transparent);
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-inline: auto;
}

/* Footer */
footer {
  padding: 3rem 5%;
  border-top: 1px solid var(--border);
  background: #090a0f;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}
