/* ═══════════════════════════════════════════════
   MemoryAlive — Mobile-First, No-Login UX
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0a0118;
  --bg2: #150628;
  --bg3: #1f0a38;
  --surface: #2a1148;
  --border: #3d1f5c;
  --text: #f0e7ff;
  --text-dim: #9b86bd;
  --primary: #d946ef;
  --primary-hover: #e879f9;
  --primary-glow: rgba(217, 70, 239, 0.15);
  --accent: #06b6d4;
  --accent2: #fbbf24;
  --success: #10b981;
  --gradient-1: linear-gradient(135deg, #d946ef 0%, #7c3aed 50%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(124, 58, 237, 0.2) 50%, rgba(6, 182, 212, 0.2) 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 20% 20%, rgba(217, 70, 239, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 1, 24, 0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(217, 70, 239, 0.05);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 16px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.logo {
  text-decoration: none;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900; font-size: clamp(0.9rem, 3vw, 1.15rem);
  display: flex; align-items: center; gap: 6px;
  filter: drop-shadow(0 2px 8px rgba(217, 70, 239, 0.3));
  flex-shrink: 0;
  min-width: 0;
}
.logo-img {
  width: clamp(28px, 8vw, 36px);
  height: clamp(28px, 8vw, 36px);
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.2);
  flex-shrink: 0;
}
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.status-badge {
  background: var(--gradient-2);
  border: 1px solid var(--primary);
  padding: 5px 12px; border-radius: 24px; font-size: clamp(0.7rem, 2.5vw, 0.82rem); font-weight: 700;
  box-shadow: none;
  color: var(--text);
  white-space: nowrap;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 700; font-size: 0.9rem;
  border: 2px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: all 0.3s;
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.btn:hover::before { opacity: 0.1; }
.btn:hover { border-color: var(--primary); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gradient-1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(217, 70, 239, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.3);
}
.btn-success { background: var(--success); border-color: var(--success); color: #000; font-weight: 800; }
.btn-success:hover { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.hidden { display: none !important; }

/* ─── HERO ────────────────────────────────────── */
.hero {
  min-height: 100svh; padding: 100px 20px 60px;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; gap: 40px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-badge {
  display: inline-block; padding: 8px 20px;
  background: var(--gradient-2);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 24px; font-size: 0.85rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 6.5vw, 4rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 20px;
}
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-dim); max-width: 600px; margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { margin-bottom: 12px; }
.hero-note { font-size: 0.85rem; color: var(--text-dim); }

/* Demo Visual */
.demo-flow {
  display: flex; align-items: center; gap: 16px;
  background: var(--gradient-2);
  border: 2px solid rgba(217, 70, 239, 0.3);
  border-radius: var(--radius); padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.1);
  position: relative;
  overflow: hidden;
}
.demo-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/cover.png') center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.demo-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px; border-radius: var(--radius-sm);
  background: rgba(10, 1, 24, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.demo-photo {
  border: 2px solid var(--border);
}
.demo-video {
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.2);
}
.demo-icon { font-size: 2.2rem; }
.demo-card span { font-weight: 700; font-size: 0.85rem; }
.demo-arrow { font-size: 1.5rem; }
.arrow-pulse {
  animation: pulse 1.5s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ─── SECTIONS ────────────────────────────────── */
.section { padding: 72px 20px; max-width: 1100px; margin: 0 auto; position: relative; }
.section-dark {
  background: var(--bg2);
  background-image: linear-gradient(180deg, rgba(217, 70, 239, 0.05) 0%, transparent 100%);
  max-width: 100%; padding: 72px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-dark > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  font-weight: 900; text-align: center; margin-bottom: 10px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  text-align: center; color: var(--text-dim);
  margin-bottom: 40px; font-size: clamp(0.9rem, 2vw, 1.05rem);
}

/* ─── STEPS ───────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step {
  padding: 28px 24px; position: relative;
  background: var(--gradient-2);
  border: 2px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: flex-start; gap: 16px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.step:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.15);
}
.step-num {
  position: absolute; top: -14px; left: 16px;
  background: var(--gradient-1);
  color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900;
  box-shadow: 0 2px 8px rgba(217, 70, 239, 0.25);
}
.step-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.step-text h3 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
.step-text p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }
.step-text p strong { color: var(--accent2); font-weight: 700; }
.step-text p em { color: var(--text); font-style: normal; opacity: 0.9; }

/* ─── WORKSPACE ───────────────────────────────── */
.workspace { max-width: 680px; margin: 0 auto; }

.upload-area {
  border: 3px dashed var(--border); border-radius: var(--radius);
  padding: 56px 20px; text-align: center; cursor: pointer;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
  background: var(--gradient-2);
  position: relative;
  overflow: hidden;
}
.upload-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/cover.png') center/cover no-repeat;
  opacity: 0.03;
  transition: opacity 0.3s;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
}
.upload-area:hover::before, .upload-area.dragover::before {
  opacity: 0.08;
}
.upload-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.upload-area h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.upload-area p {
  color: var(--text-dim);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

/* ─── EDITOR ──────────────────────────────────── */
.editor { display: flex; flex-direction: column; gap: 18px; }

.editor-photo {
  position: relative;
  background: var(--bg3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.editor-photo img {
  width: 100%; max-height: 320px; object-fit: contain; display: block;
}
.change-photo-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(10, 1, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 6px 14px; border-radius: 24px; font-size: 0.78rem;
  cursor: pointer; font-family: inherit;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s;
}
.change-photo-btn:hover {
  border-color: var(--primary);
  background: rgba(10, 1, 24, 0.95);
}

.editor-prompt { display: flex; flex-direction: column; gap: 12px; }
.prompt-header h3 { font-size: 1.05rem; margin-bottom: 2px; }
.prompt-explain {
  color: var(--text-dim); font-size: 0.85rem; line-height: 1.5;
}
.prompt-explain strong { color: var(--accent2); }

.prompt-input {
  width: 100%; padding: 16px 18px;
  background: rgba(10, 1, 24, 0.6);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-family: inherit;
  font-size: 0.95rem; line-height: 1.6;
  resize: vertical; outline: none;
  transition: all 0.3s;
  min-height: 120px;
  backdrop-filter: blur(10px);
}
.prompt-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.15);
  background: rgba(10, 1, 24, 0.8);
}
.prompt-input::placeholder { color: var(--text-dim); font-size: 0.85rem; line-height: 1.5; }
.prompt-input.shake { animation: shake 0.4s ease-in-out; border-color: var(--accent) !important; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.hints-label {
  font-size: 0.8rem; color: var(--text-dim);
  font-weight: 500; display: block; margin-bottom: 6px;
}
.hint-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hint-chip {
  display: inline-block; padding: 7px 14px;
  background: rgba(10, 1, 24, 0.6);
  border: 2px solid var(--border);
  border-radius: 24px; font-size: 0.78rem; color: var(--text-dim);
  cursor: pointer; transition: all 0.3s; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(10px);
  font-weight: 600;
}
.hint-chip:hover, .hint-chip:active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(217, 70, 239, 0.15);
}

/* Duration */
.duration-row { display: flex; align-items: center; }
.duration-picker { display: flex; align-items: center; gap: 10px; }
.duration-picker label { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.duration-options { display: flex; gap: 6px; }
.dur-btn {
  padding: 6px 14px; border-radius: 20px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-dim); font-family: inherit;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.dur-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.demo-note { text-align: center; color: var(--text-dim); font-size: 0.8rem; margin-top: 4px; }

/* ─── LOADING ─────────────────────────────────── */
.loading { text-align: center; padding: 56px 0; }
.spinner {
  width: 56px; height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading h3 { margin-bottom: 4px; font-size: 1.05rem; }
.loading > p { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 22px; }
.loading-steps {
  display: flex; flex-direction: column; gap: 6px;
  max-width: 260px; margin: 0 auto; text-align: left;
}
.load-step {
  font-size: 0.8rem; color: var(--text-dim);
  padding: 5px 10px; border-radius: var(--radius-xs);
  transition: all 0.3s;
}
.load-step.active { color: var(--text); background: rgba(124, 92, 255, 0.1); }
.load-step.done { color: var(--success); }

/* ─── RESULT ──────────────────────────────────── */
.result { display: flex; flex-direction: column; gap: 18px; }
.result-title { text-align: center; font-size: 1.15rem; }

.result-video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000;
  border: 3px solid var(--primary);
  box-shadow: 0 6px 24px rgba(217, 70, 239, 0.2);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.result-video video {
  width: 100%; display: block; max-height: 420px; object-fit: contain;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.watermark-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.watermark-overlay span {
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  font-weight: 900; color: rgba(255,255,255,0.1);
  letter-spacing: 0.15em; transform: rotate(-18deg);
  user-select: none;
}
.video-protection-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.result-actions { display: flex; flex-direction: column; gap: 10px; }

.share-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.share-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.share-buttons .btn {
  flex: 1;
  min-width: 110px;
}

.share-buttons svg {
  margin-right: 4px;
}

/* ─── PRICING ─────────────────────────────────── */
.single-price {
  text-align: center; margin-bottom: 28px;
}
.single-price-tag {
  display: inline-block; padding: 8px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; font-size: 0.9rem; color: var(--text-dim);
}
.single-price-tag strong { color: var(--text); font-size: 1.1rem; }

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.price-card {
  background: var(--gradient-2);
  border: 2px solid var(--border);
  border-radius: var(--radius); padding: 36px 24px;
  text-align: center; position: relative;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.price-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.15);
}
.price-card.popular {
  border-color: var(--primary);
  border-width: 3px;
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.2);
}
.popular-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-1);
  color: #fff; padding: 5px 18px;
  border-radius: 16px; font-size: 0.75rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(217, 70, 239, 0.25);
}
.price-name { font-weight: 700; color: var(--text-dim); margin-bottom: 6px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 4px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-credits { color: var(--text); font-size: 0.95rem; font-weight: 600; }
.price-per { color: var(--success); font-size: 0.85rem; font-weight: 700; }
.price-save { color: var(--accent2); font-size: 0.8rem; font-weight: 700; margin-bottom: 20px; }

/* ─── MY CREATIONS ────────────────────────────── */
.storage-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(217, 70, 239, 0.08) 100%);
  border: 2px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}
.storage-notice-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.storage-notice p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.storage-notice strong {
  color: var(--accent2);
  font-weight: 700;
}

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

.creation-card {
  background: var(--gradient-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.creation-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.15);
}
.creation-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}
.creation-card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.creation-card-prompt {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.creation-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.creation-card-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.7;
}
.creation-card-expiry {
  font-size: 0.72rem;
  color: var(--accent2);
  font-weight: 600;
}
.creation-card-actions {
  display: flex;
  gap: 6px;
}
.creation-card-actions .btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  flex: 1;
}

/* ─── GALLERY ─────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg3);
  position: relative;
  border: 2px solid var(--border);
  transition: all 0.3s;
}
.gallery-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(217, 70, 239, 0.15);
}
.gallery-item video { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.gallery-prompt {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 10px; font-size: 0.7rem; color: rgba(255,255,255,0.7);
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.gallery-empty {
  text-align: center; color: var(--text-dim);
  grid-column: 1/-1; padding: 36px 20px; font-size: 0.92rem;
}

/* ─── FAQ SECTION ─────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--gradient-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
  color: var(--primary);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ─── FOOTER ──────────────────────────────────── */
.footer {
  border-top: 2px solid var(--border);
  padding: 40px 20px;
  background: var(--bg2);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-profile {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.2);
  margin-bottom: 8px;
}
.footer p { color: var(--text-dim); font-size: 0.85rem; }
.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.footer a:hover {
  color: var(--primary-hover);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: var(--text-dim); }

/* ═══════════════════════════════════════════════
   TABLET (600px+)
   ═══════════════════════════════════════════════ */
@media (min-width: 600px) {
  .nav-inner { padding: 0 24px; height: 60px; }
  .steps { flex-direction: row; gap: 16px; }
  .step { flex: 1; flex-direction: column; text-align: center; padding: 32px 18px; }
  .step-icon { margin-top: 0; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .editor-photo img { max-height: 340px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ═══════════════════════════════════════════════
   DESKTOP (900px+)
   ═══════════════════════════════════════════════ */
@media (min-width: 900px) {
  .hero {
    flex-direction: row; text-align: left;
    padding: 100px 24px 80px; gap: 48px;
  }
  .hero-content { flex: 1; }
  .hero-visual { flex: 0 0 auto; }
  .hero-sub { margin: 0 0 24px; }
  .section { padding: 88px 24px; }
  .section-dark { padding: 88px 24px; }
  .result-actions { flex-direction: row; }
  .result-actions .btn { flex: 1; }
}

/* ═══════════════════════════════════════════════
   SMALL PHONES (< 380px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .nav-inner { padding: 0 12px; height: 56px; }
  .logo { gap: 6px; }
  .logo-img { width: 28px; height: 28px; }
  .status-badge { padding: 4px 10px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.6rem; }
  .demo-flow { padding: 14px 16px; gap: 8px; }
  .demo-card { padding: 10px; }
  .demo-icon { font-size: 1.5rem; }
  .hint-chip { font-size: 0.72rem; padding: 5px 10px; }
  .price-amount { font-size: 1.8rem; }
  .logo span { font-size: 0.85rem; }
  .status-badge { font-size: 0.68rem; padding: 4px 8px; }
}

/* ═══════════════════════════════════════════════
   DISCLAIMER BOX
   ═══════════════════════════════════════════════ */
.disclaimer-box {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(217, 70, 239, 0.08) 100%);
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.disclaimer-checkbox {
  display: flex;
  gap: 14px;
  cursor: pointer;
  align-items: flex-start;
}

.disclaimer-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.disclaimer-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(240, 231, 255, 0.85);
  font-weight: 500;
}

.disclaimer-text ul {
  margin: 10px 0 0 20px;
  padding: 0;
  list-style-type: disc;
}

.disclaimer-text li {
  margin: 6px 0;
  font-size: 12.5px;
  color: rgba(240, 231, 255, 0.7);
}

/* ═══════════════════════════════════════════════
   COMPACT DESIGN - REDUCED SPACING
   ═══════════════════════════════════════════════ */
.section {
  padding: 50px 20px !important; /* Reduced from 80px */
}

.section-dark {
  padding: 50px 20px !important;
}

.hero {
  padding: 70px 20px 50px !important; /* Reduced from 120px */
  min-height: auto !important;
}

.hero h1 {
  margin-bottom: 16px !important; /* Reduced */
}

.hero-sub {
  margin-bottom: 24px !important; /* Reduced */
}

.steps {
  gap: 24px !important; /* Reduced from 40px */
}

.step {
  padding: 24px !important; /* Reduced */
}

.editor-prompt {
  gap: 12px !important; /* Reduced spacing */
}

.prompt-input {
  min-height: 100px !important; /* Reduced from 120px */
  padding: 12px !important;
}

.hint-chips {
  gap: 8px !important;
  margin-top: 8px !important;
}

@media (min-width: 768px) {
  .section {
    padding: 60px 24px !important;
  }
  .hero {
    padding: 80px 24px 60px !important;
  }
}

/* ═══════════════════════════════════════════════
   ENHANCED ANIMATIONS & EFFECTS
   ═══════════════════════════════════════════════ */

/* Smooth fade-in on page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content, .hero-visual, .section {
  animation: fadeInUp 0.8s ease-out;
}

/* Floating animation for demo cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.demo-card {
  animation: float 3s ease-in-out infinite;
}

.demo-card:first-child {
  animation-delay: 0s;
}

.demo-card:last-child {
  animation-delay: 0.5s;
}

/* Gradient animation for headings */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-text {
  background-size: 200% auto;
  animation: gradientShift 4s ease infinite;
}

/* Glow pulse effect - disabled for subtlety */
.logo-img, .footer-profile {
  /* animation removed for cleaner look */
}

/* Button ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: all 0.5s;
}

.btn:active::after {
  transform: scale(2);
  opacity: 1;
  transition: 0s;
}

/* Smooth scroll behavior */
html {
  scroll-padding-top: 80px;
}

/* Loading step progress animation */
.load-step.active {
  animation: stepPulse 1.5s ease-in-out infinite;
}

@keyframes stepPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Price card special effects */
.price-card.popular::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-1);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.15;
  animation: gradientRotate 4s linear infinite;
}

@keyframes gradientRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Enhanced toast notification */
#toast {
  backdrop-filter: blur(16px) !important;
  border: 2px solid var(--primary) !important;
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.2) !important;
}

/* Sparkle effect removed for cleaner button hover */

/* Cover image overlay on sections */
.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/cover.png') center/cover no-repeat;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}

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