/* VoltAds — Design System */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a26;
  --fg: #e8e8f0;
  --fg-muted: #8888a0;
  --accent: #f5c518;
  --accent-glow: rgba(245, 197, 24, 0.15);
  --accent-dim: #c49e10;
  --danger: #ff4d4d;
  --success: #00e676;
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

/* ========== NAV ========== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span { color: var(--accent); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #ffd640;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
  text-decoration: none;
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--fg-muted);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.2);
  text-decoration: none;
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ========== HERO ========== */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  background: var(--accent-glow);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 32px;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 28px;
  color: #fff;
}

.hero h1 .strike {
  text-decoration: line-through;
  color: var(--danger);
  opacity: 0.8;
}

.hero h1 .highlight { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }

.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 0.85rem; color: var(--fg-muted); }

/* ========== SECTIONS ========== */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
  color: #fff;
}

.section-sub { color: var(--fg-muted); font-size: 1.05rem; max-width: 600px; margin-bottom: 48px; }

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ========== PROBLEM / FEATURES ========== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.pain-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 77, 77, 0.15);
  border-radius: var(--radius);
  padding: 20px;
}

.pain-card .pain-icon { font-size: 1.4rem; margin-bottom: 10px; }
.pain-card h4 { font-size: 0.95rem; color: var(--fg); margin-bottom: 6px; }
.pain-card p { font-size: 0.85rem; color: var(--fg-muted); }

.feature-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px; border: 1px solid rgba(255,255,255,0.06); }
.feature-icon { font-size: 1.8rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }

/* ========== NUMBERS / SOCIAL PROOF ========== */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.number-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(245, 197, 24, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.number-card .big-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.number-card .num-label { font-size: 0.85rem; color: var(--fg-muted); }

/* ========== CLOSING / CTA SECTION ========== */
.closing-section {
  text-align: center;
  padding: 100px 24px;
  background: linear-gradient(to bottom, transparent, rgba(245, 197, 24, 0.04), transparent);
}

.closing-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.closing-section p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 32px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* ========== APP LAYOUT ========== */
.app-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.app-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

/* ========== FORM ELEMENTS ========== */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea { min-height: 100px; }

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin: 16px 0;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ========== AVATAR GRID ========== */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.avatar-card {
  background: var(--bg-card);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-card:hover { border-color: var(--accent); }
.avatar-card.selected { border-color: var(--accent); background: var(--accent-glow); }

.avatar-emoji { font-size: 2.2rem; margin-bottom: 8px; }
.avatar-name { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; }
.avatar-style { font-size: 0.75rem; color: var(--fg-muted); margin-top: 2px; }

/* ========== SCRIPT RESULT CARD ========== */
.script-result {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.script-result-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.script-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending { background: rgba(255,255,255,0.08); color: var(--fg-muted); }
.badge-complete { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.badge-error { background: rgba(255, 77, 77, 0.15); color: var(--danger); }

.script-section {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.script-section-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hook-pills { display: flex; flex-direction: column; gap: 8px; }

.hook-pill {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.hook-pill:hover { border-color: var(--accent); }
.hook-pill.active { border-color: var(--accent); background: var(--accent-glow); }

.script-body-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fg);
  white-space: pre-wrap;
}

.cta-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

/* ========== DASHBOARD TABLE ========== */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dashboard-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}

.dashboard-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ========== LOADING SPINNER ========== */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px;
  color: var(--fg-muted);
  text-align: center;
}

/* ========== PROGRESS STEPS ========== */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.step.done .step-num {
  background: var(--success);
  border-color: var(--success);
  color: #000;
}

.step.active { color: var(--fg); }
.step.done { color: var(--fg-muted); }

.step-connector {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.step-connector.done { background: var(--success); }

/* ========== ALERTS ========== */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.2); color: var(--success); }
.alert-error { background: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.2); color: var(--danger); }

/* ========== VIDEO PREVIEW ========== */
.video-preview-mock {
  background: var(--bg-elevated);
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  aspect-ratio: 9/16;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--fg-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}

.video-preview-mock .play-icon { font-size: 2.5rem; }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--fg-muted);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--fg); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 24px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .hero { padding: 60px 20px 40px; }
  .hero-stats { gap: 24px; }
  .nav { padding: 16px 20px; }
  .section { padding: 60px 20px; }
  .avatar-grid { grid-template-columns: repeat(3, 1fr); }
}
