/* dreamer.css — D.D.os Doppelgänger Creation Experience
   Cyberpunk neon aesthetic, matching D.D.os brand.
*/

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

:root {
  --bg: #0A0A0F;
  --surface: #12121C;
  --surface-2: #1A1A28;
  --fg: #F0F0F0;
  --fg-muted: #9B9BB0;
  --accent: #9B5DE5;
  --accent-dim: rgba(155, 93, 229, 0.15);
  --accent-2: #FF6B35;
  --accent-glow: rgba(155, 93, 229, 0.4);
  --accent-2-glow: rgba(255, 107, 53, 0.4);
  --neon-purple: #9B5DE5;
  --neon-orange: #FF6B35;
  --neon-cyan: #00D4FF;
  --border: rgba(155, 93, 229, 0.12);
  --border-bright: rgba(155, 93, 229, 0.3);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --success: #00E676;
  --error: #FF5252;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.dreamer-nav {
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-bright);
  position: sticky;
  top: 0;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  z-index: 50;
}
.dreamer-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.dreamer-nav-logo:hover { opacity: 0.85; }
.dreamer-logo-mark {
  font-size: 22px;
  color: var(--neon-orange);
  text-shadow: 0 0 10px var(--accent-2-glow);
}
.dreamer-logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dreamer-logo-tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  margin-left: 12px;
}

/* ── Progress Bar ────────────────────────────────────────────────── */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.progress-label {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  max-width: 400px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-orange));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--accent-glow);
}
.progress-steps {
  display: flex;
  gap: 8px;
}
.progress-step {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.progress-step.active {
  background: var(--neon-orange);
  border-color: var(--neon-orange);
  box-shadow: 0 0 6px var(--accent-2-glow);
}
.progress-step.done {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Main Container ───────────────────────────────────────────────── */
.dreamer-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* ── Steps ───────────────────────────────────────────────────────── */
.step {
  display: none;
  animation: stepIn 0.4s ease-out;
}
.step.active {
  display: block;
}

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

/* ── Tier Badge ──────────────────────────────────────────────────── */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  margin-bottom: 24px;
}
.tier-badge .moon { font-size: 14px; }

/* ── Headings ─────────────────────────────────────────────────────── */
.step-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--fg), var(--fg-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

/* ── Forms ────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-label span.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg-muted);
  opacity: 0.6;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #5A5A70; }
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9BB0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form-select option { background: var(--surface); color: var(--fg); }
.form-hint {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
  opacity: 0.7;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-orange));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(155, 93, 229, 0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  color: var(--fg);
  border-color: var(--border-bright);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  padding: 14px 16px;
}
.btn-ghost:hover { color: var(--fg); }
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.btn-large {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 12px;
}
.btn-full { width: 100%; }
.btn-arrow { font-size: 18px; }

/* ── Generation Loading ───────────────────────────────────────────── */
.loading-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
}
.loading-screen.active { display: flex; }

.dna-helix {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 40px;
}
.dna-strand {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: var(--neon-purple);
  animation: dnaFloat 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-glow);
}
@keyframes dnaFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
  50%       { transform: translateY(-20px) rotate(10deg); opacity: 0.6; }
}
.dna-strand:nth-child(1)  { left: 20%;  top: 0;  height: 40px; animation-delay: 0.0s; background: var(--neon-purple); }
.dna-strand:nth-child(2) { left: 40%;  top: 10px; height: 50px; animation-delay: 0.2s; background: var(--neon-orange); }
.dna-strand:nth-child(3) { left: 60%;  top: 20px; height: 45px; animation-delay: 0.4s; background: var(--neon-cyan); }
.dna-strand:nth-child(4) { left: 80%;  top: 5px;  height: 55px; animation-delay: 0.6s; background: var(--neon-purple); }
.dna-strand:nth-child(5) { left: 30%;  top: 40px; height: 35px; animation-delay: 0.8s; background: var(--neon-orange); }
.dna-strand:nth-child(6) { left: 70%;  top: 50px; height: 48px; animation-delay: 1.0s; background: var(--neon-cyan); }
.dna-strand:nth-child(7) { left: 50%;  top: 30px; height: 42px; animation-delay: 0.3s; background: var(--neon-purple); }
.dna-strand:nth-child(8) { left: 10%;  top: 60px; height: 38px; animation-delay: 0.7s; background: var(--neon-orange); }

.loading-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.loading-sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 40px;
}
.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  width: 100%;
}
.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.3s;
}
.loading-step.done { color: var(--success); }
.loading-step.active { color: var(--fg); }
.loading-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.3s;
}
.loading-step.done .loading-step-icon {
  background: var(--success);
  border-color: var(--success);
  color: #000;
}
.loading-step.active .loading-step-icon {
  border-color: var(--neon-purple);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-purple);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.3); }
}

/* ── Reveal Screen ────────────────────────────────────────────────── */
.reveal-container {
  text-align: center;
  padding: 60px 0;
}
.reveal-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--neon-orange), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.reveal-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 60px;
  line-height: 1.7;
}
.doppel-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 40px;
  text-align: left;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.doppel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-orange), var(--neon-cyan));
  border-radius: 3px 3px 0 0;
}
.doppel-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.doppel-tagline {
  font-size: 15px;
  color: var(--neon-cyan);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 32px;
}
.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.asset-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}
.asset-item:hover { border-color: var(--neon-purple); }
.asset-item-label {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon-orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.asset-item-text {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
}

/* ── Bonus Deliverables ───────────────────────────────────────────── */
.bonus-section {
  margin-top: 40px;
}
.bonus-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--fg);
}
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bonus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.bonus-card:hover {
  border-color: var(--neon-purple);
  transform: translateY(-2px);
}
.bonus-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.bonus-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.bonus-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.bonus-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--success);
  border-radius: 50%;
  color: #000;
  font-size: 11px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ── Paywall CTA ──────────────────────────────────────────────────── */
.paywall-section {
  margin-top: 60px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.paywall-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(155, 93, 229, 0.08), transparent 70%);
  pointer-events: none;
}
.paywall-tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid var(--neon-cyan);
  border-radius: 20px;
  margin-bottom: 20px;
}
.paywall-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.paywall-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.paywall-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.paywall-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 6px;
}
.paywall-feature .check { color: var(--success); }
.paywall-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.paywall-price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--fg-muted);
}
.paywall-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-orange));
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 30px var(--accent-glow);
  transition: all 0.2s ease;
  margin-bottom: 16px;
}
.paywall-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(155, 93, 229, 0.6);
}
.paywall-note {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.7;
}
.paywall-dreamer-waiting {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── Email capture strip ──────────────────────────────────────────── */
.email-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.email-strip-label {
  font-size: 13px;
  color: var(--fg-muted);
  flex: 1;
  min-width: 200px;
}
.email-strip-label strong { color: var(--fg); }
.email-strip form {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 260px;
  flex-wrap: wrap;
}
.email-strip input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  min-width: 180px;
}
.email-strip input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.email-saved {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--success);
  padding: 12px 0;
}

/* ── Animations for reveal ───────────────────────────────────────── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-reveal {
  animation: revealUp 0.6s ease-out forwards;
}
.animate-reveal-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-reveal-delay-2 { animation-delay: 0.25s; opacity: 0; }
.animate-reveal-delay-3 { animation-delay: 0.4s; opacity: 0; }
.animate-reveal-delay-4 { animation-delay: 0.55s; opacity: 0; }
.animate-reveal-delay-5 { animation-delay: 0.7s; opacity: 0; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .dreamer-nav { padding: 16px 24px; }
  .progress-wrap { padding: 14px 24px; }
  .dreamer-container { padding: 40px 24px 80px; }
  .asset-grid, .bonus-grid { grid-template-columns: 1fr; }
  .doppel-card { padding: 28px 20px; }
  .paywall-section { padding: 28px 20px; }
  .btn-large { width: 100%; }
}

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }