:root {
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --secondary: #06b6d4;
  --accent: #f43f5e;
  --accent-warm: #f97316;
  --bg-dark: #09090b;
  --bg-surface: #18181b;
  --bg-card: rgba(24, 24, 27, 0.8);
  --bg-elevated: rgba(39, 39, 42, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-dim: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.4);
  --glow-purple: 0 0 40px rgba(139, 92, 246, 0.15);
  --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -200px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -150px; left: -100px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 40%; animation-delay: -14s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.05); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(9, 9, 11, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; gap: 10px; }

/* Buttons */
.btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  z-index: 1;
}

.hero-content { max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--primary-light);
  margin-bottom: 28px;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -1px;
}

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

.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.visualizer {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 50px;
  justify-content: center;
  margin-top: 50px;
}

.visualizer .bar {
  width: 3px;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 2px;
  animation: barPulse 1.2s ease-in-out infinite;
}

@keyframes barPulse {
  0%, 100% { height: 8px; }
  50% { height: 45px; }
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 32px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-title p { color: var(--text-secondary); font-size: 15px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-purple);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.feature-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal h2 { font-size: 22px; margin-bottom: 6px; text-align: center; }
.modal .subtitle { color: var(--text-secondary); text-align: center; margin-bottom: 28px; font-size: 13px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }

.form-group input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--primary); }

.modal .btn { width: 100%; justify-content: center; padding: 12px; margin-top: 6px; }
.modal-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.modal-switch a { color: var(--primary-light); text-decoration: none; cursor: pointer; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* Toast */
.toast {
  position: fixed;
  top: 70px;
  right: 20px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.3s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: rgba(34, 197, 94, 0.5); }
.toast.error { border-color: rgba(244, 63, 94, 0.5); }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 100px 16px 60px; }
  .hero p { font-size: 15px; }
  .features { padding: 50px 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .modal { margin: 16px; padding: 24px; }
  .section-title h2 { font-size: 28px; }
}
