/* ============================================
   KlemensAI Design System — Platform Match
   Colors: Cyan (#00caba) + Neon Green (#33ff55)
   Font: Inter · Glass Effects · Dark Mode
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #090910;
  --bg-elevated: #16161e;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.1);
  --border-light: rgba(255,255,255,0.15);
  --text: #fafafa;
  --text-muted: #829391;
  --text-dim: #657673;
  --accent: #00caba;
  --accent-hover: #00e0ce;
  --accent-glow: rgba(0,202,186,0.25);
  --cta: #33ff55;
  --cta-hover: #2ee04d;
  --cta-glow: rgba(51,255,85,0.2);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ff6568;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.37);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
}

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================
   Glass System (matching real KlemensAI)
   ============================================ */
.glass {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.37);
}
.glass-card {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}
.glass-inset {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
  min-height: 44px;
}
.btn-sm { padding: 6px 14px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 20px var(--accent-glow); }
.btn-cta {
  background: var(--cta); color: #000; border: none; font-weight: 700;
  box-shadow: 0 0 24px var(--cta-glow);
}
.btn-cta:hover { background: var(--cta-hover); box-shadow: 0 0 32px rgba(51,255,85,0.35); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

.badge { display: inline-flex; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: rgba(34,197,94,0.12); color: var(--green); }

.hidden { display: none !important; }

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(9,9,16,0.8);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--text); text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #00caba, #11bc6d);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff;
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav a:hover { color: var(--text); }

/* ============================================
   Hero — 2-Column Layout
   ============================================ */
.hero {
  padding: 140px 0 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,202,186,0.06) 0%, transparent 60%);
}
.hero-grid {
  display: flex; flex-direction: column; align-items: center;
  gap: 32px; text-align: center;
}
.hero-text { max-width: 560px; }
.hero-badge {
  display: inline-flex; padding: 6px 16px; border-radius: 20px;
  background: rgba(0,202,186,0.12); color: var(--accent);
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
  border: 1px solid rgba(0,202,186,0.25);
}
.hero h1 { font-size: 36px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.gradient-text {
  background: linear-gradient(135deg, #00caba, #33ff55);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(51,255,85,0.35)) drop-shadow(0 0 8px rgba(0,202,186,0.2));
}
.hero-sub { font-size: 16px; color: var(--text-muted); margin: 0 0 24px; line-height: 1.6; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }
.hero-right { width: 100%; max-width: 520px; }

/* Hero ChatGPT-Style Input */
.hero-chat-input {
  width: 100%;
  display: flex; flex-direction: column;
}

/* Hero Inline Messages */
.hero-messages {
  display: none; /* shown via JS when messages exist */
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  margin-bottom: 8px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  scroll-behavior: smooth;
}
.hero-messages::-webkit-scrollbar { width: 3px; }
.hero-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.hero-messages.has-messages { display: flex; }

.hero-msg {
  display: flex; gap: 8px; max-width: 95%;
  animation: msgAppear 0.3s ease-out;
}
.hero-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.hero-msg.assistant { align-self: flex-start; }

.hero-msg-avatar {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}
.hero-msg.assistant .hero-msg-avatar {
  background: linear-gradient(135deg, #00caba, #11bc6d); color: #fff;
}
.hero-msg.user .hero-msg-avatar { background: var(--surface); color: var(--text-muted); }

.hero-msg-bubble {
  padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5;
}
.hero-msg.assistant .hero-msg-bubble {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-top-left-radius: 3px;
}
.hero-msg.user .hero-msg-bubble {
  background: var(--accent); color: #000; font-weight: 500;
  border-top-right-radius: 3px;
}

.hero-msg-content { display: flex; flex-direction: column; gap: 6px; }

.hero-action-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-action-btn {
  padding: 5px 12px; border-radius: 16px; font-size: 12px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  white-space: nowrap; text-decoration: none;
}
.hero-action-btn:hover { border-color: var(--accent); color: var(--accent); }
.hero-action-btn.primary {
  background: var(--cta); color: #000; border-color: var(--cta); font-weight: 600;
}
.hero-action-btn.primary:hover { background: var(--cta-hover); }

/* When hero has messages, adjust input container border-radius */
.hero-messages.has-messages + .hero-input-container {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

.hero-input-container {
  display: flex; align-items: flex-end; gap: 8px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); padding: 14px 14px 14px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-input-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.25);
}
#hero-chat-textarea {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px; line-height: 1.5;
  resize: none; min-height: 24px; max-height: 120px;
  overflow: hidden; font-family: inherit;
}
#hero-chat-textarea::placeholder { color: var(--text-dim); }
.hero-send-btn {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--cta); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #000; transition: all 0.2s; flex-shrink: 0;
  box-shadow: 0 0 16px var(--cta-glow);
}
.hero-send-btn:hover:not(:disabled) { background: var(--cta-hover); transform: scale(1.05); box-shadow: 0 0 24px rgba(51,255,85,0.35); }
.hero-send-btn:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }
.hero-input-suggestions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
}
.suggestion-chip {
  padding: 6px 14px; border-radius: 20px; font-size: 13px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.suggestion-chip:hover {
  border-color: var(--accent); color: var(--accent); background: rgba(0,202,186,0.06);
}

/* Platform Logos Bar */
.platforms-bar {
  padding: 32px 0; text-align: center;
  border-bottom: 1px solid var(--border);
}
.platforms-bar p { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.platform-logos { display: flex; gap: 32px; justify-content: center; align-items: center; opacity: 0.5; }
.platform-logos span { font-size: 14px; font-weight: 600; color: var(--text-muted); }

/* ============================================
   Trial Section
   ============================================ */
.trial-section { padding: 80px 0; }
.trial-header { text-align: center; margin-bottom: 40px; }
.trial-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.trial-header p { color: var(--text-muted); font-size: 16px; }

.trial-widget {
  max-width: 680px; margin: 0 auto;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); padding: 32px;
}

.trial-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px; }
.trial-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--text-dim);
  transition: all 0.3s;
}
.trial-step.active .step-number { background: var(--accent); border-color: var(--accent); color: #000; }
.trial-step.completed .step-number { background: var(--green); border-color: var(--green); color: #fff; }
.step-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.trial-step.active .step-label { color: var(--text); }
.trial-step-line { width: 60px; height: 2px; background: var(--border); margin: 0 12px; margin-bottom: 22px; }

.trial-label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.trial-input-group { display: flex; gap: 8px; margin-bottom: 16px; }
.trial-input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
  color: var(--text); font-size: 15px; outline: none; transition: border-color 0.2s;
}
.trial-input:focus { border-color: var(--accent); }
.trial-select {
  padding: 12px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
  color: var(--text); font-size: 14px; cursor: pointer; outline: none;
}
.trial-select option { background: var(--bg-elevated); color: var(--text); }

/* Trial Textarea & Select */
.trial-textarea { resize: vertical; min-height: 60px; font-family: inherit; display: block; width: 100%; margin-bottom: 0; }
.trial-select-full { width: 100%; padding: 12px 16px; }
.trial-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.trial-nav-row { display: flex; gap: 12px; justify-content: space-between; margin-top: 16px; }
.trial-nav-row .btn { flex: 1; }

/* Style Type Tabs */
.style-type-tabs {
  display: flex; gap: 4px; margin-bottom: 12px;
  background: rgba(0,0,0,0.2); border-radius: var(--radius-sm); padding: 4px;
}
.style-type-tab {
  flex: 1; padding: 8px 12px; border: none; border-radius: 6px;
  background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.style-type-tab.active { background: var(--accent); color: #000; }
.style-type-tab:hover:not(.active) { color: var(--text); }

/* Category Filter */
.category-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cat-btn {
  padding: 4px 10px; border-radius: 14px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); font-size: 11px;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cat-btn.active { background: rgba(0,202,186,0.15); color: var(--accent); border-color: var(--accent); }
.cat-btn:hover:not(.active) { border-color: var(--border-light); color: var(--text-muted); }

/* Style Grid */
.style-grid { display: grid; gap: 12px; margin-bottom: 20px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.style-grid-3 { grid-template-columns: repeat(3, 1fr); }
.style-grid::-webkit-scrollbar { width: 4px; }
.style-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.style-card {
  cursor: pointer; text-align: center; border-radius: var(--radius-sm);
  border: 2px solid transparent; transition: all 0.2s; padding: 4px;
}
.style-card:hover { border-color: var(--border-light); }
.style-card.selected { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.style-preview {
  aspect-ratio: 4/5; border-radius: var(--radius-sm); margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  position: relative; background: var(--surface);
}
.style-preview-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.style-card:hover .style-preview-img { transform: scale(1.05); }
.style-mock { text-align: center; padding: 12px; }
.mock-title { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.mock-line { height: 3px; border-radius: 2px; margin-bottom: 4px; }
.mock-line.short { width: 60%; margin: 0 auto; }
.style-card .style-name { font-size: 11px; font-weight: 600; color: var(--text-muted); display: block; }
.style-card .style-cat { font-size: 9px; color: var(--text-dim); display: block; margin-top: 2px; }
.style-badge {
  position: absolute; top: 4px; right: 4px; padding: 2px 6px;
  border-radius: 8px; font-size: 8px; font-weight: 700;
  background: var(--accent); color: #000; text-transform: uppercase;
}

/* Persona Upload */
.persona-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.persona-slot {
  aspect-ratio: 1; border: 2px dashed var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; overflow: hidden; transition: all 0.2s;
}
.persona-slot:hover { border-color: var(--accent); }
.persona-slot.filled { border-style: solid; border-color: var(--green); }
.persona-slot.filled img { width: 100%; height: 100%; object-fit: cover; }
.persona-placeholder { text-align: center; color: var(--text-dim); }
.persona-placeholder span { display: block; font-size: 11px; margin-top: 6px; }
.persona-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.persona-tip { font-size: 11px; color: var(--text-dim); text-align: center; margin-bottom: 8px; }

/* Format Grid */
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.format-card {
  text-align: center; cursor: pointer; border: 2px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 8px; transition: all 0.2s;
}
.format-card:hover { border-color: var(--border-light); }
.format-card.selected { border-color: var(--accent); background: rgba(0,202,186,0.06); }
.format-preview {
  width: 100%; max-height: 80px; background: rgba(0,0,0,0.2);
  border-radius: 4px; margin-bottom: 8px; border: 1px solid var(--border);
}
.format-info strong { display: block; font-size: 16px; }
.format-info span { font-size: 11px; color: var(--text-muted); }

/* Trial Loading */
.trial-loading { text-align: center; padding: 40px 0; }
.loading-spinner {
  width: 48px; height: 48px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.loading-steps { display: flex; flex-direction: column; gap: 8px; max-width: 200px; margin: 0 auto; }
.loading-step {
  font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px;
  transition: color 0.3s;
}
.loading-step::before { content: '○'; font-size: 10px; }
.loading-step.active { color: var(--accent); }
.loading-step.active::before { content: '●'; }
.loading-step.done { color: var(--green); }
.loading-step.done::before { content: '✓'; }

/* Trial Result */
.trial-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.trial-info { font-size: 13px; color: var(--text-dim); }

.slides-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.slide-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; position: relative;
}
.slide-image {
  aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center;
  padding: 20px; position: relative;
}
.slide-watermark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: rgba(255,255,255,0.2);
  transform: rotate(-30deg); pointer-events: none; letter-spacing: 4px;
  user-select: none; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.slide-image-real { position: relative; overflow: hidden; }
.slide-image-real img { user-select: none; -webkit-user-drag: none; }
.slide-text { padding: 12px; }
.slide-text h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.slide-text p { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.slide-prototype-badge {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  padding: 4px 8px; border-radius: 4px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  font-size: 9px; font-weight: 600; color: var(--yellow);
  text-align: center; letter-spacing: 0.5px;
}

.trial-watermark-note { text-align: center; font-size: 11px; color: var(--text-dim); margin-bottom: 20px; }

.trial-cta-box {
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.trial-cta-box h3 { font-size: 18px; margin-bottom: 8px; }
.trial-cta-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.cta-benefits { list-style: none; text-align: left; margin-bottom: 20px; }
.cta-benefits li { padding: 4px 0; font-size: 14px; }

/* ============================================
   Features Section
   ============================================ */
.features-section { padding: 80px 0; }
.features-section h2 { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(0,202,186,0.25); transform: translateY(-2px); }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); }

/* ============================================
   Footer CTA
   ============================================ */
.footer-cta {
  padding: 80px 0; text-align: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,202,186,0.06) 0%, transparent 60%);
}
.footer-cta h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.footer-cta p { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ============================================
   Chat FAB (Floating Action Button)
   ============================================ */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #00caba, #11bc6d);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,202,186,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,202,186,0.5); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4); } }

/* ============================================
   Chat Widget
   ============================================ */
.chat-widget {
  position: fixed; bottom: 96px; right: 24px; z-index: 999;
  width: 400px; height: 560px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(9,9,16,0.92);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: chatOpen 0.3s ease-out;
}
@keyframes chatOpen {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Chat Header */
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0,202,186,0.08), rgba(17,188,109,0.04));
  border-bottom: 1px solid var(--glass-border);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #00caba, #11bc6d);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
}
.chat-header-title { font-size: 14px; font-weight: 700; }
.chat-header-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chat-header-actions { display: flex; gap: 4px; }
.chat-header-btn {
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; padding: 4px; border-radius: 4px; display: flex;
}
.chat-header-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }

/* Chat Messages */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Messages */
.message { display: flex; gap: 8px; max-width: 90%; animation: msgAppear 0.3s ease-out; }
@keyframes msgAppear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.message.assistant { align-self: flex-start; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.message.assistant .message-avatar {
  background: linear-gradient(135deg, #00caba, #11bc6d); color: #fff;
}
.message.user .message-avatar { background: var(--surface); color: var(--text-muted); }

.message-bubble {
  padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5;
}
.message.assistant .message-bubble {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-top-left-radius: 4px;
}
.message.user .message-bubble {
  background: var(--accent); color: #000; font-weight: 500;
  border-top-right-radius: 4px;
}

/* Action Buttons */
.action-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.action-btn {
  padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
  min-height: 36px;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,202,186,0.06); }
a.action-btn { text-decoration: none; }
.action-btn.primary { background: var(--cta); border-color: var(--cta); color: #000; font-weight: 600; }
.action-btn.primary:hover { background: var(--cta-hover); box-shadow: 0 0 16px var(--cta-glow); }

/* Summary Card */
.summary-card {
  background: rgba(0,202,186,0.06); border: 1px solid rgba(0,202,186,0.2);
  border-radius: var(--radius-sm); padding: 14px; margin-top: 10px;
}
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 600; color: var(--text); }

/* Content Plan Card */
.plan-card {
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); padding: 14px; margin-top: 10px;
}
.plan-day {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.plan-day:last-child { border-bottom: none; }
.plan-day-icon { font-size: 16px; }
.plan-day-date { font-size: 12px; color: var(--text-dim); width: 70px; flex-shrink: 0; }
.plan-day-title { font-size: 13px; flex: 1; }
.plan-day-type {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  background: var(--accent-glow); color: var(--accent);
}

/* Content Mix Bar */
.content-mix { margin-top: 10px; }
.mix-bar { display: flex; height: 24px; border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.mix-segment { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 12px; }
.mix-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.mix-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Generating Animation (old simple) */
.generating-card {
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); padding: 20px; margin-top: 10px; text-align: center;
}
.gen-progress { margin-top: 12px; }
.gen-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.gen-bar-fill {
  height: 100%; background: linear-gradient(90deg, #00caba, #11bc6d);
  border-radius: 2px; animation: genProgress 3s ease-in-out;
}
@keyframes genProgress { from { width: 0; } to { width: 100%; } }
.gen-step { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* ============================================
   REAL GENERATION — Editor-Style Loading
   Space background, circular spinner, rotating AI steps
   ============================================ */
.gen-real-container {
  margin-top: 10px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Space background with stars */
.gen-real-loading {
  position: relative;
  background: radial-gradient(ellipse at center, #0d1b2a 0%, #090910 70%);
  padding: 32px 20px;
  text-align: center;
  min-height: 200px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.gen-real-loading::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 60% 50%, rgba(0,202,186,0.6), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(51,255,85,0.4), transparent),
    radial-gradient(1px 1px at 30% 90%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 15% 55%, rgba(0,202,186,0.3), transparent);
  animation: starsTwinkle 4s ease-in-out infinite alternate;
}
@keyframes starsTwinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Circular spinner */
.gen-real-spinner {
  position: relative; z-index: 1;
  width: 64px; height: 64px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: genSpin 1.2s linear infinite;
  margin-bottom: 20px;
}
.gen-real-spinner::after {
  content: '';
  position: absolute; inset: 6px;
  border: 2px solid rgba(255,255,255,0.05);
  border-top-color: var(--cta);
  border-radius: 50%;
  animation: genSpin 2s linear infinite reverse;
}
@keyframes genSpin { to { transform: rotate(360deg); } }

/* Step text */
.gen-real-step {
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  animation: genStepFade 0.5s ease-out;
  min-height: 22px;
}
@keyframes genStepFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.gen-real-progress {
  position: relative; z-index: 1;
  width: 100%; max-width: 200px;
  height: 3px; background: rgba(255,255,255,0.1);
  border-radius: 2px; margin-top: 16px;
  overflow: hidden;
}
.gen-real-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  border-radius: 2px;
  transition: width 0.8s ease-out;
  width: 0%;
}

/* Progress counter */
.gen-real-counter {
  position: relative; z-index: 1;
  font-size: 11px; color: var(--text-dim);
  margin-top: 8px;
}

/* Generated slide images */
.gen-real-slides {
  display: flex; gap: 8px; padding: 12px;
  overflow-x: auto;
  background: rgba(0,0,0,0.3);
}
.gen-real-slide {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  animation: slideReveal 0.6s ease-out;
  position: relative;
}
.gen-real-slide img {
  display: block; height: 180px; width: auto;
  object-fit: cover;
}
.gen-real-slide-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 11px; color: #fff;
  font-weight: 600;
}
@keyframes slideReveal {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Complete state */
.gen-real-complete {
  padding: 20px; text-align: center;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.gen-real-complete-icon { font-size: 32px; margin-bottom: 8px; }
.gen-real-complete-text { font-size: 14px; margin-bottom: 4px; font-weight: 600; }
.gen-real-complete-sub { font-size: 12px; color: var(--text-muted); }

/* Error state */
.gen-real-error {
  padding: 16px; text-align: center;
  background: rgba(255,101,104,0.08);
  border: 1px solid rgba(255,101,104,0.2);
  border-radius: var(--radius-sm);
  margin-top: 10px;
}
.gen-real-error-text { font-size: 13px; color: var(--red); }

/* Hero Generation Inline Status (compact loading in chat) */
.hero-gen-inline-status {
  display: flex; align-items: center; gap: 12px;
}
.hero-gen-step-text {
  font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap;
}

/* Hero Generation Preview (inline, format-aware) */
.hero-gen-preview {
  margin-top: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
}
.hero-gen-viewport {
  position: relative;
  width: 100%;
  background: radial-gradient(ellipse at center, #0d1b2a 0%, #090910 70%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-gen-viewport img {
  animation: slideReveal 0.6s ease-out;
}
.hero-gen-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px;
}
.hero-gen-loading::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 60% 50%, rgba(0,202,186,0.6), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(51,255,85,0.4), transparent);
  animation: starsTwinkle 4s ease-in-out infinite alternate;
}
.hero-gen-step {
  position: relative; z-index: 1;
  font-size: 12px; font-weight: 500; color: var(--text);
  animation: genStepFade 0.5s ease-out;
  min-height: 18px; text-align: center;
}
.hero-gen-slides {
  display: flex; gap: 6px; padding: 8px;
  overflow-x: auto;
  background: rgba(0,0,0,0.2);
}
.hero-gen-thumb {
  flex-shrink: 0;
  width: 56px; text-align: center;
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: border-color 0.2s;
}
.hero-gen-thumb:hover { border-color: var(--accent); }
.hero-gen-thumb img {
  display: block; width: 56px; height: 70px; object-fit: cover;
}
.hero-gen-thumb span {
  display: block; font-size: 9px; color: var(--text-dim); padding: 2px 0;
}
.hero-gen-thumb.error {
  width: 56px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,101,104,0.1);
}

/* Upload preview in chat */
.chat-upload-preview {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
}
.chat-upload-thumb {
  width: 48px; height: 48px; border-radius: 6px;
  object-fit: cover; border: 1px solid rgba(255,255,255,0.1);
}
.chat-upload-info {
  font-size: 11px; color: var(--text-dim); margin-top: 4px;
}

/* Inline Upload (inside chat/hero messages) */
.inline-upload-area {
  margin-top: 10px; padding: 0;
}
.inline-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: rgba(0,202,186,0.15); border: 1px dashed rgba(0,202,186,0.4);
  color: var(--accent); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.inline-upload-btn:hover {
  background: rgba(0,202,186,0.25); border-color: var(--accent);
}
.inline-upload-btn.uploaded {
  background: rgba(34,197,94,0.15); border-style: solid;
  border-color: rgba(34,197,94,0.4); color: #22c55e; cursor: default;
}
.inline-upload-btn:disabled { opacity: 0.8; }
.inline-upload-previews {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
}
.inline-upload-thumb {
  width: 52px; height: 52px; border-radius: 6px;
  object-fit: cover; border: 1px solid rgba(255,255,255,0.1);
}

/* Result Card */
.result-card {
  background: rgba(0,0,0,0.2); border: 1px solid var(--green);
  border-radius: var(--radius-sm); padding: 16px; margin-top: 10px; text-align: center;
}
.result-icon { font-size: 32px; margin-bottom: 8px; }
.result-text { font-size: 14px; margin-bottom: 12px; }
.result-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: 13px;
  text-decoration: none;
}

/* Typing Indicator */
.typing-indicator { display: flex; gap: 4px; padding: 8px 0; }
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim);
  animation: typing 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* Upload Area */
.chat-upload-area { padding: 12px 16px; border-top: 1px solid var(--border); }
.upload-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 24px; text-align: center; cursor: pointer; transition: border-color 0.2s;
  color: var(--text-muted);
}
.upload-dropzone:hover { border-color: var(--accent); }
.upload-dropzone p { font-size: 13px; margin-top: 8px; }
.upload-hint { font-size: 11px; color: var(--text-dim); }

/* Chat Input Area */
.chat-input-area {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--glass-border);
  background: rgba(9,9,16,0.6);
}
.chat-upload-btn, .chat-send-btn {
  background: transparent; border: none; color: var(--text-dim);
  cursor: pointer; padding: 6px; border-radius: 6px; display: flex;
  transition: color 0.2s; min-width: 32px; min-height: 32px;
}
.chat-upload-btn:hover { color: var(--text); }
.chat-send-btn { color: var(--accent); }
.chat-send-btn:disabled { color: var(--text-dim); cursor: default; }
.chat-send-btn:not(:disabled):hover { color: var(--accent-hover); }

.chat-input {
  flex: 1; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--text); font-size: 14px; resize: none;
  outline: none; max-height: 120px; font-family: inherit;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text-dim); }

/* ============================================
   Mobile Responsive
   ============================================ */
@media (min-width: 640px) {
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 17px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hero { padding: 160px 0 80px; }
  .hero-grid {
    flex-direction: row; text-align: left;
    gap: 48px; align-items: center;
  }
  .hero-text { flex: 1; min-width: 0; }
  .hero-right { flex: 1; min-width: 0; }
  .hero h1 { font-size: 56px; }
  .hero-sub { font-size: 18px; margin-left: 0; margin-right: 0; }
  .hero-cta { justify-content: flex-start; }
  .hero-input-suggestions { justify-content: flex-start; }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Slide Lightbox / Gallery Overlay
   ============================================ */
.slide-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.slide-lightbox.open {
  opacity: 1; pointer-events: all;
}

.slide-lightbox-header {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  z-index: 2;
}
.slide-lightbox-counter {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
}
.slide-lightbox-close {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: var(--text); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.slide-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.slide-lightbox-body {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; width: 100%; max-width: 90vw;
  flex: 1; padding: 70px 20px 140px;
}

.slide-lightbox-nav {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  flex-shrink: 0;
}
.slide-lightbox-nav:hover {
  background: rgba(255,255,255,0.15); border-color: var(--accent);
}
.slide-lightbox-nav:disabled {
  opacity: 0.2; cursor: default;
}
.slide-lightbox-nav:disabled:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12);
}

.slide-lightbox-viewport {
  flex: 1; display: flex; align-items: center; justify-content: center;
  max-height: 100%; overflow: hidden;
}
.slide-lightbox-viewport img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  object-fit: contain;
  animation: slideReveal 0.4s ease-out;
}

/* Aspect-specific max sizes */
.slide-lightbox-viewport[data-format="4:5"] img { max-height: 65vh; }
.slide-lightbox-viewport[data-format="9:16"] img { max-height: 75vh; }
.slide-lightbox-viewport[data-format="1:1"] img { max-height: 60vh; }
.slide-lightbox-viewport[data-format="16:9"] img { max-height: 50vh; }

.slide-lightbox-thumbs {
  display: flex; gap: 8px; justify-content: center;
  padding: 12px 0;
}
.slide-lightbox-thumb {
  width: 52px; height: 65px; border-radius: 6px;
  overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0.6;
}
.slide-lightbox-thumb.active {
  border-color: var(--accent); opacity: 1;
  transform: scale(1.05);
}
.slide-lightbox-thumb:hover { opacity: 1; }
.slide-lightbox-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.slide-lightbox-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 20px 24px 28px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  z-index: 2;
}
.slide-lightbox-info {
  font-size: 13px; color: var(--text-muted); text-align: center;
}
.slide-lightbox-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  background: var(--cta); color: #000;
  font-size: 15px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--cta-glow);
}
.slide-lightbox-cta:hover {
  background: var(--cta-hover);
  box-shadow: 0 0 32px var(--cta-glow);
  transform: translateY(-1px);
}
.slide-lightbox-secondary {
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: var(--text); padding: 10px 24px; border-radius: 50px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.2s;
}
.slide-lightbox-secondary:hover {
  border-color: var(--accent); color: var(--accent);
}

@keyframes slideReveal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================
   Registration Overlay (after lightbox close)
   ============================================ */
.reg-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.reg-overlay.open {
  opacity: 1; pointer-events: all;
}
.reg-card {
  background: linear-gradient(145deg, #16161e, #1a1f2e);
  border: 1px solid rgba(0,202,186,0.2);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 480px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,202,186,0.1);
  animation: slideReveal 0.4s ease-out;
}
.reg-header { margin-bottom: 24px; }
.reg-icon { font-size: 48px; margin-bottom: 12px; }
.reg-header h2 {
  font-size: 24px; font-weight: 700; color: var(--text);
  margin-bottom: 8px;
}
.reg-header p {
  font-size: 15px; color: var(--text-muted); line-height: 1.5;
}
.reg-benefits {
  text-align: left; margin-bottom: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.reg-benefit {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text); line-height: 1.4;
}
.reg-check { flex-shrink: 0; font-size: 16px; }
.reg-benefit strong { color: var(--accent); }
.reg-cta-btn {
  display: block; width: 100%;
  padding: 16px 24px; border-radius: 50px;
  background: var(--cta); color: #000;
  font-size: 17px; font-weight: 700;
  text-decoration: none; text-align: center;
  border: none; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 24px var(--cta-glow);
  margin-bottom: 12px;
}
.reg-cta-btn:hover {
  background: var(--cta-hover);
  box-shadow: 0 0 36px var(--cta-glow);
  transform: translateY(-2px);
}
.reg-dismiss {
  background: none; border: none;
  color: var(--text-dim); font-size: 13px;
  cursor: pointer; padding: 8px;
  transition: color 0.2s;
}
.reg-dismiss:hover { color: var(--text-muted); }

@media (max-width: 639px) {
  .reg-card { padding: 28px 20px; }
  .reg-header h2 { font-size: 20px; }
}

@media (max-width: 639px) {
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 14px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .nav { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .style-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .slides-preview { grid-template-columns: 1fr; }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .trial-widget { padding: 20px; }
  .platform-logos { gap: 20px; }
  .platform-logos span { font-size: 12px; }
  .footer-cta h2 { font-size: 24px; }

  .chat-widget {
    bottom: 0; right: 0; left: 0;
    width: 100%; height: 100vh;
    border-radius: 0;
  }
  .chat-fab { bottom: 16px; right: 16px; }
}
