/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --accent: #00CEC9;
  --accent2: #FD79A8;
  --bg: #0A0A1A;
  --bg2: #12122A;
  --bg3: #1A1A3E;
  --surface: #1E1E42;
  --text: #E8E8F0;
  --text-secondary: #9898B8;
  --border: #2A2A5E;
  --gradient: linear-gradient(135deg, #6C5CE7, #00CEC9);
  --gradient2: linear-gradient(135deg, #6C5CE7, #FD79A8);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(108, 92, 231, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent); }

/* ─── NAVBAR ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text) !important;
}

.logo-icon { font-size: 1.6rem; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 12px; }

.mobile-menu { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(108, 92, 231, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-full { width: 100%; justify-content: center; }

.badge {
  background: rgba(0, 206, 201, 0.2);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 206, 201, 0.1), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(253, 121, 168, 0.08), transparent);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  color: var(--primary-light);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
}

.gradient-text {
  background: var(--gradient2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--text); }
.stat span { color: var(--text-secondary); font-size: 0.85rem; }

/* ─── SECTIONS ────────────────────────────────────────── */
.section {
  padding: 100px 24px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 60px;
}

/* ─── FEATURES ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ─── PRICING ─────────────────────────────────────────── */
.pricing-section {
  background: var(--bg2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.pricing-card.featured {
  background: var(--bg3);
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-header { margin-bottom: 24px; }
.pricing-header h3 { font-size: 1.3rem; }
.price { font-size: 2.5rem; font-weight: 800; margin: 12px 0 4px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.pricing-header p { color: var(--text-secondary); font-size: 0.9rem; }

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li:first-child { border-top: 1px solid var(--border); }

/* ─── DNA DEMO ────────────────────────────────────────── */
.dna-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.dna-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
}

.dna-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.dna-meta { display: flex; gap: 8px; margin-bottom: 12px; }

.dna-category, .dna-type {
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dna-category.auth { background: rgba(108, 92, 231, 0.2); color: var(--primary-light); }
.dna-category.db { background: rgba(0, 206, 201, 0.2); color: var(--accent); }
.dna-category.api { background: rgba(253, 121, 168, 0.2); color: var(--accent2); }
.dna-category.ui { background: rgba(255, 200, 50, 0.2); color: #FFC832; }
.dna-category.utils { background: rgba(150, 100, 255, 0.2); color: #9664FF; }

.dna-type { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

.dna-item h4 { margin-bottom: 8px; font-size: 1.05rem; }
.dna-item p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 14px; }

.dna-stats { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-secondary); }

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand .logo-text { font-size: 1.3rem; font-weight: 700; }
.footer-brand p { color: var(--text-secondary); margin-top: 12px; font-size: 0.85rem; }

.footer-links h4 { margin-bottom: 16px; font-size: 0.9rem; }
.footer-links a { display: block; color: var(--text-secondary); margin-bottom: 10px; font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ─── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 4px;
}

.tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s;
  font-family: inherit;
}

.tab.active {
  background: var(--primary);
  color: white;
}

.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h2 { margin-bottom: 6px; }
.auth-form > p { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.9rem; }

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* Password Toggle Styles */
.password-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-group input {
  padding-right: 40px; /* Space for the button */
  width: 100%;
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: opacity 0.2s;
  opacity: 0.7;
}

.btn-toggle-password:hover {
  opacity: 1;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── UTILITIES ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: var(--radius);
  z-index: 3000;
  animation: toastIn 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.toast.error { border-color: #FF4757; }
.toast.success { border-color: var(--accent); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
