:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #a78bfa;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-input: #16162a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #2d2d4a;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
nav .links { display: flex; gap: 24px; align-items: center; }
nav .links a { color: var(--text-muted); font-size: 0.9rem; }
nav .links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.hero .cta-group { display: flex; gap: 16px; justify-content: center; }

/* Platforms */
.platforms {
  display: flex; gap: 48px; justify-content: center; align-items: center;
  padding: 40px 0;
  opacity: 0.6;
}
.platforms span { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }

/* Pain */
.pain-section { padding: 80px 0; text-align: center; }
.pain-section h2 { font-size: 2rem; margin-bottom: 16px; }
.pain-section p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Before/After */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 60px 0;
}
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.comp-card.before { border-color: var(--danger); }
.comp-card.after { border-color: var(--success); }
.comp-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.before .comp-label { background: rgba(239,68,68,0.15); color: var(--danger); }
.after .comp-label { background: rgba(34,197,94,0.15); color: var(--success); }
.comp-card h4 { margin-bottom: 12px; font-size: 1rem; }
.comp-card p, .comp-card ul { color: var(--text-muted); font-size: 0.9rem; }
.comp-card ul { padding-left: 20px; }
.comp-card li { margin-bottom: 4px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 80px 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Pricing */
.pricing { padding: 80px 0; text-align: center; }
.pricing h2 { font-size: 2.5rem; margin-bottom: 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: left;
  position: relative;
}
.price-card.popular { border-color: var(--primary); }
.price-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  padding: 4px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.price-amount { font-size: 2.5rem; font-weight: 800; margin-bottom: 4px; }
.price-amount span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 32px; }
.price-features li { padding: 6px 0; font-size: 0.9rem; color: var(--text-muted); }
.price-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Login Page */
.auth-container {
  max-width: 420px;
  margin: 120px auto;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.auth-container h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-container p { color: var(--text-muted); margin-bottom: 32px; }

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}
textarea { resize: vertical; min-height: 100px; }

.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-message { margin-top: 16px; padding: 12px; border-radius: 8px; font-size: 0.9rem; }
.form-message.success { background: rgba(34,197,94,0.1); color: var(--success); }
.form-message.error { background: rgba(239,68,68,0.1); color: var(--danger); }

/* App Layout */
.app-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 65px);
}
.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px;
  overflow-y: auto;
}
.main-content { padding: 32px; overflow-y: auto; }

.sidebar h3 { font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 16px; }
.usage-bar {
  background: var(--bg-input);
  border-radius: 8px;
  height: 8px;
  margin: 8px 0 4px;
  overflow: hidden;
}
.usage-bar-fill { height: 100%; background: var(--primary); border-radius: 8px; transition: width 0.3s; }
.usage-text { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; }

.history-item {
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.2s;
}
.history-item:hover { background: var(--bg-input); }
.history-item h4 { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item .meta { font-size: 0.75rem; color: var(--text-muted); }

/* Platform Tabs */
.platform-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.platform-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  background: transparent;
  color: var(--text-muted);
}
.platform-tab.active { background: var(--primary); color: white; }
.platform-tab:hover:not(.active) { color: var(--text); }

/* Results */
.results-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 24px;
  overflow: hidden;
}
.result-section {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.result-section:last-child { border-bottom: none; }
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.result-header h3 { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn.copied { border-color: var(--success); color: var(--success); }

.result-content { font-size: 0.95rem; line-height: 1.7; }
.result-content ul { padding-left: 20px; }
.result-content li { margin-bottom: 6px; }

.seo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-tag {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.generating {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .comparison, .features, .pricing-grid { grid-template-columns: 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero .cta-group { flex-direction: column; align-items: center; }
}

