/* =========================================
   ESTRELLA AI — Design System
   Dark theme with blue/purple accents
   ========================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0C0A09;
    --bg-secondary: #1C1917;
    --bg-card: #1C1917;
    --bg-card-hover: #292524;
    --surface: #292524;
    --border: rgba(245, 158, 11, 0.15);
    --border-hover: rgba(245, 158, 11, 0.35);
    --text-primary: #FAFAF9;
    --text-secondary: #A8A29E;
    --text-muted: #78716C;
    --accent-primary: #F59E0B;
    --accent-secondary: #D97706;
    --accent-cyan: #FBBF24;
    --accent-pink: #F97316;
    --gradient: linear-gradient(135deg, #F59E0B, #D97706, #F97316);
    --gradient-text: linear-gradient(135deg, #FCD34D, #F59E0B, #FBBF24);
    --glow: 0 0 40px rgba(245, 158, 11, 0.15);
    --glow-strong: 0 0 80px rgba(245, 158, 11, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(12, 10, 9, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-star {
    color: var(--accent-primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: rgba(245, 158, 11, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 13px 27px;
}

.btn-outline:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 40%, transparent 70%);
    animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease 0.3s both;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Social Proof ---------- */
.social-proof {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.proof-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proof-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 200px;
}

/* ---------- Demo Section ---------- */
.demos {
    padding: 120px 0;
}

.demo-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.demo-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    color: var(--text-secondary);
    min-width: 130px;
}

.demo-tab:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.demo-tab.active {
    border-color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.1);
    color: var(--text-primary);
    box-shadow: var(--glow);
}

.demo-icon {
    font-size: 1.5rem;
}

.demo-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.demo-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.demo-chat-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.demo-chat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glow);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

/* ---------- Avatar Image (replaces letter avatar) ---------- */
.chat-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.chat-avatar-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.chat-avatar-img .online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--surface);
    z-index: 2;
}

/* ---------- Tour Overlay ---------- */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.tour-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Emily Concierge ---------- */
.emily-concierge {
    position: fixed;
    bottom: 0;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Override global img reset */
.emily-concierge img {
    display: inline-block !important;
    max-width: none !important;
}

/* Emily Character */
.emily-character {
    position: relative;
    cursor: pointer;
    animation: emilyEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 1s;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 8px 30px rgba(245, 158, 11, 0.25));
}

/* Glowing backdrop behind Emily */
.emily-character::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.15) 40%, rgba(251, 191, 36, 0.08) 70%, transparent 100%);
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.2), 0 0 120px rgba(217, 119, 6, 0.1);
    z-index: -1;
    animation: backdropPulse 4s ease-in-out infinite;
}

@keyframes backdropPulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.emily-character:hover {
    transform: scale(1.04) translateY(-4px);
}

.emily-glow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.emily-pose {
    width: 180px;
    height: auto;
    display: block !important;
    animation: emilyBob 4s ease-in-out infinite;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 20px;
}

@keyframes emilyBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes emilyEntrance {
    from { opacity: 0; transform: translateY(60px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.emily-name-tag {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(12, 10, 9, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px 14px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    pointer-events: none;
}

.emily-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: blink 2s ease-in-out infinite;
}

/* ---------- Emily Speech Bubble ---------- */
.emily-speech {
    position: absolute;
    bottom: 100%;
    right: 20px;
    width: 320px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 158, 11, 0.15);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.emily-speech.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.emily-speech-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.emily-speech-content strong {
    color: var(--accent-primary);
}

.emily-speech-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emily-speech-actions:empty {
    display: none;
}

.emily-speech-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.emily-speech-btn.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.emily-speech-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.emily-speech-btn.secondary {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--border);
}

.emily-speech-btn.secondary:hover {
    background: rgba(245, 158, 11, 0.2);
}

.emily-speech-btn.ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 7px 10px;
    font-weight: 500;
}

.emily-speech-btn.ghost:hover {
    color: var(--text-secondary);
}

.emily-speech-arrow {
    position: absolute;
    bottom: -8px;
    right: 60px;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border-right: 1px solid var(--accent-primary);
    border-bottom: 1px solid var(--accent-primary);
    transform: rotate(45deg);
}

/* ---------- Emily Chat Window (Expanded) ---------- */
.emily-chat-window {
    position: fixed;
    bottom: 20px;
    right: 220px;
    width: 440px;
    height: 560px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 158, 11, 0.2);
    display: none;
    flex-direction: column;
    animation: chatWindowIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
}

.emily-chat-window.open {
    display: flex;
}

@keyframes chatWindowIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.emily-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    border-bottom: 1px solid var(--border);
}

.emily-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emily-header-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    max-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    display: inline-block !important;
}

.emily-header-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.emily-header-status {
    font-size: 0.75rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.emily-chat-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.emily-chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.emily-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.emily-chat-body::-webkit-scrollbar {
    width: 4px;
}

.emily-chat-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.emily-chat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.emily-chat-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.emily-chat-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.emily-chat-input::placeholder {
    color: var(--text-muted);
}

.emily-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    flex-shrink: 0;
}

.emily-chat-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Voice Input Button */
.emily-voice-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.emily-voice-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.emily-voice-btn.listening {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
    animation: voicePulse 1.5s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.emily-voice-btn.hidden {
    display: none;
}

/* Voice tooltip */
.emily-voice-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: tooltipIn 0.3s ease;
    z-index: 10;
}

@keyframes tooltipIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Lead Capture Consent Card */
.emily-consent-card {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-top: 10px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
    animation: msgIn 0.3s ease;
}

.emily-consent-card p {
    margin-bottom: 10px;
}

.emily-consent-actions {
    display: flex;
    gap: 8px;
}

.emily-consent-btn {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.emily-consent-btn.agree {
    background: var(--gradient);
    color: white;
}

.emily-consent-btn.agree:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.emily-consent-btn.cancel {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.emily-consent-btn.cancel:hover {
    color: var(--text-secondary);
}

/* Tour highlight for active sections */
.tour-spotlight {
    position: relative;
    z-index: 9995;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.5s ease;
}

/* Responsive: concierge */
@media (max-width: 768px) {
    .emily-pose {
        width: 120px;
    }

    .emily-concierge {
        right: 8px;
    }

    .emily-speech {
        width: 260px;
        right: 0;
    }

    .emily-chat-window {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 12px;
        height: 70vh;
    }

    .emily-name-tag {
        display: none;
    }
}

@media (max-width: 480px) {
    .emily-pose {
        width: 100px;
    }

    .emily-speech {
        width: 220px;
        padding: 12px 14px;
        font-size: 0.8rem;
    }
}


/* ---------- Particle Styles ---------- */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.4);
    animation: float linear infinite;
}

@keyframes float {
    from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    to { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ---------- Demo Chat continued ---------- */
.chat-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-status {
    font-size: 0.75rem;
    color: #22c55e;
}

.chat-lang-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border-radius: 100px;
    padding: 3px;
}

.lang-btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--accent-primary);
    color: white;
}

.chat-messages {
    height: 380px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: msgIn 0.3s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg.bot {
    background: var(--surface);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--accent-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-msg .typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.chat-msg .typing-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease-in-out infinite;
}
.chat-msg .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.quick-reply {
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--accent-primary);
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-primary);
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply:hover {
    background: var(--accent-primary);
    color: white;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.chat-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.chat-input::placeholder { color: var(--text-muted); }

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.demo-features {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.demo-features h3 { font-size: 1.1rem; margin-bottom: 20px; }

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.feature-list li.active { color: var(--text-primary); }
.check { color: var(--accent-primary); font-weight: 700; }

.demo-cta {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.demo-cta p { color: var(--text-secondary); margin-bottom: 12px; font-size: 0.95rem; }

/* ---------- Services ---------- */
.services { padding: 120px 0; background: var(--bg-secondary); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.service-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: rgba(245, 158, 11, 0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Pricing ---------- */
.pricing { padding: 120px 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
}

.price-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.price-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-strong);
    transform: scale(1.02);
}

.price-card.featured:hover { transform: scale(1.04); }

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 100px;
    white-space: nowrap;
}

.price-tier {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.price-amount { margin-bottom: 12px; display: flex; align-items: baseline; gap: 4px; }
.price-currency { font-size: 1.5rem; color: var(--text-muted); }
.price-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; }

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 32px; }

/* ---------- About ---------- */
.about { padding: 120px 0; background: var(--bg-secondary); }

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content p { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.about-signature { margin-top: 32px; }
.signature-name { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.signature-title { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.about-card-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.about-card-item:last-child { border-bottom: none; }
.about-icon { font-size: 1.5rem; }

/* ---------- Contact ---------- */
.contact { padding: 120px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-features { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.contact-feature { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--text-secondary); }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-secondary); }

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer-brand { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-social a { color: var(--text-secondary); transition: var(--transition); }
.footer-social a:hover { color: var(--text-primary); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(12, 10, 9, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex; }
    .demo-chat-container { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .price-card.featured { transform: none; }
    .price-card.featured:hover { transform: translateY(-4px); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .proof-items { flex-direction: column; gap: 24px; }
    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .demo-selector { flex-direction: column; align-items: stretch; }
    .demo-tab { flex-direction: row; gap: 12px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
}


