/* ========== DESIGN TOKENS ========== */
:root {
    --bg: #050507;
    --bg-surface: #0c0c10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(217, 70, 239, 0.3);
    --primary: #d946ef;
    --primary-hover: #c026d3;
    --primary-glow: rgba(217, 70, 239, 0.4);
    --accent: #7c3aed;
    --text: #f4f4f5;
    --text-muted: #71717a;
    --text-secondary: #a1a1aa;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    width: 100%;
    overflow-x: hidden;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== PARTICLES ========== */
.particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute; border-radius: 50%;
    background: var(--primary);
    opacity: 0.15;
    animation: float linear infinite;
}
@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow), 0 0 60px rgba(217,70,239,0.15); }
    50% { box-shadow: 0 0 30px var(--primary-glow), 0 0 80px rgba(217,70,239,0.25); }
}
.pulse-glow { animation: pulseGlow 2.5s ease-in-out infinite; }

/* ========== GLASS ========== */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.glass:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 40px rgba(217,70,239,0.08);
}

/* ========== NAVBAR ========== */
header {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 1rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
header.scrolled { padding: 0.7rem 5%; }
.logo {
    font-size: 1.3rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.5rem;
}
.logo span { color: var(--primary); }
.logo-icon { height: 28px; }
.nav-links { display: flex; gap: 2rem; }
.nav-link {
    font-size: 0.9rem; color: var(--text-secondary);
    transition: color 0.3s ease; font-weight: 500;
}
.nav-link:hover { color: var(--text); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: 10px;
    font-size: 0.95rem; font-weight: 600; font-family: var(--font);
    cursor: pointer; border: none; transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow), 0 8px 25px rgba(0,0,0,0.3);
}
.btn-ghost {
    background: rgba(255,255,255,0.05); color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1); color: var(--text);
    border-color: var(--border-hover);
}
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary); background: rgba(217,70,239,0.05);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh; padding: 8rem 5% 4rem;
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1300px; margin: 0 auto; gap: 3rem;
    z-index: 1;
    overflow: hidden;
}
.hero-glow {
    position: absolute; top: 10%; left: 30%;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(217,70,239,0.12) 0%, transparent 70%);
    filter: blur(80px); pointer-events: none;
}
.hero-content { flex: 1; max-width: 600px; }
.badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 50px;
    background: rgba(217,70,239,0.1); border: 1px solid rgba(217,70,239,0.2);
    font-size: 0.85rem; color: var(--primary); font-weight: 500;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero h1 {
    font-size: 3.5rem; font-weight: 800;
    line-height: 1.15; margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #ec4899, var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.15rem; color: var(--text-secondary);
    margin-bottom: 2rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.social-proof { display: flex; align-items: center; gap: 1rem; }
.social-proof p { font-size: 0.9rem; color: var(--text-muted); }
.social-proof strong { color: var(--primary); }
.avatars { display: flex; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: white;
    margin-left: -8px; border: 2px solid var(--bg);
}
.avatar:first-child { margin-left: 0; }

.hero-visual { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phone-mockup { position: relative; max-width: 400px; }
.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 0 80px rgba(217,70,239,0.2), 0 20px 60px rgba(0,0,0,0.5);
}

/* ========== TRUST BAR ========== */
.trust-bar {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 1.5rem 5%; background: var(--bg-surface);
}
.trust-inner {
    display: flex; justify-content: center; align-items: center;
    gap: 2rem; flex-wrap: wrap; max-width: 1000px; margin: 0 auto;
}
.trust-item { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.trust-divider { width: 1px; height: 20px; background: var(--border); }

/* ========== SECTIONS ========== */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--primary); margin-bottom: 1rem;
}
.section-header h2 {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.section-sub { font-size: 1.1rem; color: var(--text-secondary); max-width: 550px; margin: 0 auto; }

/* ========== FEATURES ========== */
.features {
    position: relative; z-index: 1;
    padding: 6rem 5%; max-width: 1200px; margin: 0 auto;
}
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    padding: 2rem; cursor: pointer;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(217,70,239,0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ========== HOW IT WORKS ========== */
.how-it-works {
    position: relative; z-index: 1;
    padding: 6rem 5%; background: var(--bg-surface);
}
.steps-grid {
    display: flex; justify-content: center; align-items: center;
    gap: 2rem; max-width: 900px; margin: 0 auto; flex-wrap: wrap;
}
.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem; text-align: center;
    flex: 1; min-width: 200px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.step-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; margin: 0 auto 1rem;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: var(--text-secondary); }
.step-arrow { font-size: 1.5rem; color: var(--primary); font-weight: 700; }

/* ========== PREVIEW ========== */
.preview-section {
    position: relative; z-index: 1;
    padding: 6rem 5%;
}
.preview-container {
    display: flex; align-items: center; gap: 4rem;
    max-width: 1100px; margin: 0 auto;
}
.preview-text { flex: 1; }
.preview-text h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.preview-text > p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }
.check-list li {
    position: relative; padding-left: 1.8rem; margin-bottom: 0.8rem;
    font-size: 0.95rem; color: var(--text-secondary);
}
.check-list li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--primary); font-weight: 700;
}
.preview-image { flex: 1; }
.preview-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 0 80px rgba(217,70,239,0.15), 0 20px 60px rgba(0,0,0,0.4);
}

/* ========== PRICING ========== */
.pricing {
    position: relative; z-index: 1;
    padding: 6rem 5%; background: var(--bg-surface);
}
.pricing-cards {
    display: flex; justify-content: center; gap: 2rem;
    max-width: 800px; margin: 0 auto; flex-wrap: wrap;
}
.pricing-card {
    padding: 2.5rem; flex: 1; min-width: 280px; max-width: 380px;
    position: relative; text-align: center;
}
.pricing-card.featured {
    border-color: rgba(217,70,239,0.3);
    background: rgba(217,70,239,0.04);
    transform: scale(1.03);
}
.popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 0.3rem 1rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.pricing-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.8rem; }
.price {
    font-size: 3rem; font-weight: 800; margin-bottom: 0.3rem;
    display: flex; align-items: baseline; justify-content: center; gap: 0.5rem;
}
.price-old {
    font-size: 1.2rem; color: var(--text-muted);
    text-decoration: line-through; font-weight: 400;
}
.price-period { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }
.pricing-features { margin-bottom: 2rem; }
.pricing-features li {
    padding: 0.6rem 0; font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.pricing-features li.disabled { color: var(--text-muted); opacity: 0.5; text-decoration: line-through; }

/* ========== FINAL CTA ========== */
.final-cta {
    position: relative; z-index: 1;
    padding: 6rem 5%; text-align: center; overflow: hidden;
}
.final-cta-bg {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(217,70,239,0.15) 0%, transparent 70%);
    filter: blur(80px); pointer-events: none;
}
.final-cta-content { position: relative; z-index: 2; }
.final-cta h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.final-cta p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.final-cta .btn { margin-bottom: 1.5rem; }
.cta-note { font-size: 0.85rem; color: var(--text-muted); }

/* ========== FOOTER ========== */
footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border); padding: 3rem 5% 1.5rem;
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    max-width: 1100px; margin: 0 auto 2rem; flex-wrap: wrap; gap: 2rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    padding: 2.5rem; max-width: 440px; width: 90%;
    text-align: center; position: relative;
    border-color: rgba(217,70,239,0.2) !important;
    animation: modalIn 0.3s ease;
}
.chat-mobile-max-btn {
    display: none;
    text-align: center;
    margin-top: 1rem;
    cursor: pointer;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    background: rgba(217, 70, 239, 0.1);
    border-radius: 99px;
    border: 1px solid var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}
.chat-mobile-max-btn:active {
    background: rgba(217, 70, 239, 0.2);
}
@keyframes modalIn {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.close-btn {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 8px; padding: 0.4rem; cursor: pointer; color: var(--text-muted);
    transition: all 0.3s;
}
.close-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.modal-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.modal-content h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.8rem; }
.modal-content p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }
.modal-form { margin-top: 1.5rem; }
.chat-input {
    flex: 1; min-width: 0; padding: 0.7rem 1rem; border-radius: 10px;
    border: 1px solid var(--border); background: rgba(0,0,0,0.4);
    color: var(--text); font-size: 1rem; font-family: var(--font);
    outline: none; transition: all 0.3s; line-height: 1.5;
    max-height: 150px; overflow-y: auto; text-align: left;
}
.chat-input:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    opacity: 0.6; pointer-events: none;
}
.chat-input:focus { border-color: var(--primary); background: rgba(0,0,0,0.5); }

/* In-input mixed styling */
.voice-off-input {
    color: #9ca3af;
    font-style: italic;
}
.voice-off-input::before { content: '« '; color: #6b7280; font-size: 0.85em; }
.voice-off-input::after { content: ' »'; color: #6b7280; font-size: 0.85em; }
.modal-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }

/* ========== SUCCESS STATE ========== */
.modal-success h2 { color: var(--primary); }

.chat-msg-bubble p {
    margin-bottom: 0;
}
.chat-msg-bubble p:not(:last-child) {
    margin-bottom: 0.5rem;
}
.chat-msg-bubble strong {
    font-weight: 800;
    color: inherit;
}
.chat-msg-bubble em {
    font-style: italic;
    color: #9ca3af;
    display: inline;
}
.chat-msg-bubble em::before { content: '« '; color: #6b7280; font-size: 0.75em; }
.chat-msg-bubble em::after { content: ' »'; color: #6b7280; font-size: 0.75em; }
.chat-msg-bubble ul, .chat-msg-bubble ol {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}
.chat-msg-bubble li {
    margin-bottom: 0.2rem;
}
.chat-msg-bubble code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
}

/* ========== HERO CHAT WIDGET ========== */
.hero-chat-widget {
    width: 100%; max-width: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden; position: relative;
    display: flex; flex-direction: column;
    height: 620px;
    border: 1px solid rgba(217,70,239,0.25) !important;
    box-shadow: 0 0 60px rgba(217,70,239,0.15), 0 20px 60px rgba(0,0,0,0.5);
    animation: chatGlow 3s ease-in-out infinite;
}
@keyframes chatGlow {
    0%, 100% { box-shadow: 0 0 60px rgba(217,70,239,0.15), 0 20px 60px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 80px rgba(217,70,239,0.25), 0 20px 60px rgba(0,0,0,0.5); }
}
.chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(217,70,239,0.12), rgba(124,58,237,0.12));
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-header-actions {
    display: flex; align-items: center; gap: 0.5rem;
}
.chat-header-btn {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid var(--border); cursor: pointer;
    background: rgba(255,255,255,0.05); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.chat-header-btn:hover {
    background: rgba(255,255,255,0.1); color: var(--text);
    border-color: var(--primary);
}
.chat-header-left { display: flex; align-items: center; gap: 0.7rem; }
.chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #d946ef);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: white;
    flex-shrink: 0;
}
.chat-header-info { display: flex; flex-direction: column; }
.chat-title {
    font-size: 0.85rem; font-weight: 700; color: var(--text);
    line-height: 1.3;
}
.chat-status {
    font-size: 0.7rem; color: #22c55e; font-weight: 500;
    display: flex; align-items: center; gap: 0.3rem;
}
.chat-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e; display: inline-block;
    animation: blink 1.5s ease-in-out infinite;
}
.chat-badge-nsfw {
    background: rgba(239,68,68,0.2); color: #ef4444;
    font-size: 0.65rem; font-weight: 800;
    padding: 0.2rem 0.5rem; border-radius: 6px;
    border: 1px solid rgba(239,68,68,0.3);
}
.chat-messages {
    flex: 1; overflow-y: auto; padding: 1rem;
    display: flex; flex-direction: column; gap: 0.65rem;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
    min-height: 0;
}
.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: 4px; }
.chat-msg { display: flex; }
.chat-msg.assistant { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg-bubble {
    max-width: 85%; padding: 0.7rem 1rem;
    border-radius: 16px; font-size: 0.85rem; line-height: 1.5;
    animation: msgIn 0.3s ease;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-msg.assistant .chat-msg-bubble {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-hook {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.8rem 1rem; margin-top: 0.3rem;
    background: linear-gradient(135deg, rgba(217,70,239,0.1), rgba(124,58,237,0.08));
    border: 1px solid rgba(217,70,239,0.25);
    border-radius: 12px;
    animation: hookPulse 2.5s ease-in-out infinite;
}
@keyframes hookPulse {
    0%, 100% { border-color: rgba(217,70,239,0.25); }
    50% { border-color: rgba(217,70,239,0.5); }
}
.chat-hook-icon { font-size: 1.2rem; flex-shrink: 0; }
.chat-hook span {
    font-size: 0.8rem; color: var(--primary);
    font-weight: 500; line-height: 1.4;
}
/* Pinned Image Window */
.chat-pinned-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    animation: chatGlow 3s ease-in-out infinite;
}
.pinned-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.pinned-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.pinned-img.active {
    opacity: 1;
}
/* Typing indicator */
.chat-typing { padding: 0 1rem 0.5rem; flex-shrink: 0; }
.typing-bubble { padding: 0.6rem 1rem !important; }
.typing-dots { display: flex; gap: 4px; align-items: center; }
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-muted); display: block;
    animation: typingDot 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}
/* Input / Options */
.chat-options-bar {
    padding: 0.2rem 1rem 0.6rem;
    display: flex; justify-content: flex-start;
    flex-shrink: 0;
}
.chat-input-bar {
    display: flex; gap: 0.5rem; padding: 0.7rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.3); flex-shrink: 0;
    align-items: center;
}
/* Toggle Switch Voice Off */
.chat-image-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.6rem; border-radius: 6px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s ease;
    margin-left: auto; /* Push to the right */
}
.chat-image-btn:hover {
    background: rgba(217,70,239,0.1); color: var(--primary);
    border-color: rgba(217,70,239,0.3);
}
.chat-image-prompt-bar {
    display: flex; gap: 0.5rem; padding: 0.7rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(217,70,239,0.05); flex-shrink: 0;
    align-items: center; animation: promptIn 0.2s ease;
}
@keyframes promptIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-close-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--border); background: rgba(255,255,255,0.05);
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
}
.chat-close-btn:hover { background: rgba(239,68,68,0.2); color: #ef4444; border-color: rgba(239,68,68,0.3); }
.voiceoff-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    cursor: pointer; user-select: none;
    padding: 4px 8px; margin: -4px -8px; /* Increase tap area */
}
.voiceoff-toggle input { 
    position: absolute; opacity: 0; pointer-events: none; 
}
.toggle-track {
    width: 44px; height: 24px; border-radius: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    position: relative; transition: all 0.3s ease;
    display: flex; align-items: center;
}
.toggle-thumb {
    position: absolute; top: 1px; left: 1px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #9ca3af; transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex; align-items: center; justify-content: center;
}
.toggle-thumb svg {
    opacity: 0; transition: opacity 0.3s ease;
}
.voiceoff-toggle input:checked + .toggle-track {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
}
.voiceoff-toggle input:checked + .toggle-track .toggle-thumb {
    transform: translateX(20px);
    background: #a78bfa;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
}
.voiceoff-toggle input:checked + .toggle-track .toggle-thumb svg {
    opacity: 1;
}
.toggle-text {
    font-size: 0.8rem; font-weight: 500; color: #9ca3af;
    transition: all 0.3s ease;
}
.voiceoff-toggle input:checked ~ .toggle-text {
    color: #a78bfa;
    text-shadow: 0 0 12px rgba(124, 58, 237, 0.8), 0 0 4px rgba(255, 255, 255, 0.4);
}

/* User Narration override */
.chat-msg.user.is-narration .chat-msg-bubble {
    background: linear-gradient(135deg, #111827, #1f2937); /* Very dark carbon */
    border: 1px solid rgba(156,163,175,0.3);
    color: #9ca3af;
}
.chat-msg.user.is-narration .chat-msg-bubble em {
    color: #d1d5db; /* Lighter grey for visibility */
    font-weight: 500;
}

.chat-send-btn {
    width: 40px; height: 40px; border-radius: 10px;
    border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s; flex-shrink: 0;
}
.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-glow);
}
.chat-send-btn:disabled {
    opacity: 0.5; cursor: not-allowed;
    transform: none; box-shadow: none;
}
/* Paywall */
.chat-paywall {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,5,7,0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 10; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-lg);
}
.paywall-content {
    text-align: center; padding: 2rem;
    max-width: 320px;
}
.paywall-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.paywall-content h3 {
    font-size: 1.2rem; font-weight: 800; margin-bottom: 0.6rem;
    background: linear-gradient(135deg, var(--primary), #ec4899, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.paywall-content p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.2rem; line-height: 1.5; }
.paywall-note { font-size: 0.75rem !important; color: var(--text-muted) !important; margin-top: 0.8rem !important; }

/* ========== MAXIMIZED CHAT ========== */
.chat-maximized-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,5,7,0.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.chat-maximized-overlay .hero-chat-widget {
    position: relative;
    max-width: 500px; width: 95%;
    height: 80vh; max-height: 800px;
    animation: none;
}
.chat-maximized-overlay .chat-mobile-max-btn {
    display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero {
        flex-direction: column; text-align: center;
        min-height: auto; padding: 7rem 5% 3rem;
    }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 2.3rem; }
    .hero-actions { justify-content: center; }
    .social-proof { justify-content: center; }
    .hero-visual { width: 100%; }
    .hero-chat-widget { max-width: 100%; height: 480px; }
    .chat-maximized-overlay .hero-chat-widget {
        width: 100%; max-width: 100%; height: 100dvh;
        max-height: 100dvh; border-radius: 0;
    }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .preview-container { flex-direction: column; text-align: center; }
    .preview-text h2 { font-size: 1.8rem; }
    .check-list { text-align: left; }
    .pricing-cards { flex-direction: column; align-items: center; }
    .pricing-card.featured { transform: scale(1); }
    .section-header h2 { font-size: 2rem; }
    .final-cta h2 { font-size: 2rem; }
    .trust-divider { display: none; }
    .trust-inner { gap: 1rem; }
    .chat-mobile-max-btn {
        display: block !important;
    }
}

@media (max-width: 480px) {
    header { padding: 1rem 4%; width: 100%; left: 0; right: 0; }
    .logo { font-size: 1rem; flex-shrink: 1; }
    .logo-icon { height: 22px; }
    .btn-sm { padding: 0.5rem 0.7rem; font-size: 0.75rem; flex-shrink: 0; }
    
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    .hero-chat-widget { height: 420px; }
    .chat-msg-bubble { font-size: 0.8rem; }
    .section-header h2 { font-size: 1.8rem; }
    .chat-maximized-overlay .hero-chat-widget { border-radius: 0; }
    
    /* Optimize chat input area for mobile */
    .voiceoff-toggle .toggle-text { display: inline; font-size: 0.7rem; }
    .toggle-track { transform: scale(0.9); transform-origin: left; }
    .chat-input { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
    .chat-input-bar { padding: 0.5rem 0.5rem; gap: 0.3rem; }
}
