/* --- Aurabit Premium Design System & Stylesheet --- */

:root {
    --bg-main: #030305;
    --bg-surface: #0A0B10;
    --bg-surface-light: #12131C;
    --primary: #8B5CF6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #D946EF;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: #1F202E;
    --border-glow: rgba(139, 92, 246, 0.15);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- Matrix Grid Background & Light Accents --- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.spotlight {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 700px;
    background: radial-gradient(circle at top center, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* --- Common Layout & Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

/* --- Typography & Highlights --- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* --- Elegant Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
    background-color: var(--bg-surface-light);
    color: #FFFFFF;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #202231;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Fixed Header Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(5, 5, 8, 0.9);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    background: linear-gradient(
        110deg,
        #ffffff 35%,
        #d946ef 48%,
        #8b5cf6 52%,
        #ffffff 65%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: #FFFFFF;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: rgba(139, 92, 246, 0.08);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 44px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual-block {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* --- Phone Mockup Simulation Styling --- */
.phone-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 10px 0; /* Add padding for hardware buttons to overflow nicely */
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Side hardware buttons positioning */
.phone-hardware {
    position: absolute;
    width: 4px;
    background-color: #2F3242;
    border-radius: 4px;
    z-index: 1;
}

.phone-hardware.volume-up {
    height: 50px;
    left: -4px;
    top: 150px;
}

.phone-hardware.volume-down {
    height: 50px;
    left: -4px;
    top: 210px;
}

.phone-hardware.power {
    height: 75px;
    right: -4px;
    top: 180px;
}

.phone-mockup {
    position: relative;
    width: 100%;
    height: 680px;
    background-color: #000000;
    border: 7px solid #1A1C26;
    border-radius: 42px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.9), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 2;
    overflow: hidden;
}

/* Screen glare reflection style */
.phone-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 55%);
    z-index: 10;
    pointer-events: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #0A0A0E;
    position: relative;
    border-radius: 36px;
    overflow: hidden;
}

/* Phone Status Bar */
.phone-status-bar {
    height: 44px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    background-color: #0F1015;
    z-index: 5;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.dynamic-island {
    width: 80px;
    height: 18px;
    background-color: #000000;
    border-radius: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.island-camera {
    width: 6px;
    height: 6px;
    background-color: #111322;
    border-radius: 50%;
    border: 1px solid #1E2235;
}

.phone-icons {
    letter-spacing: 2px;
}

/* Chat Header inside Phone */
.chat-header {
    height: 64px;
    background-color: #0F1015;
    border-bottom: 1px solid #1F202E;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 4;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.chat-user-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
}

.chat-status {
    font-size: 10px;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-status::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
}

/* Chat Body inside Phone */
.chat-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    background-color: #0A0A0E;
    position: relative;
}

.chat-date {
    align-self: center;
    font-size: 10px;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    max-width: 85%;
    word-wrap: break-word;
    color: #FFFFFF;
    border: 1px solid var(--border-color);
}

.chat-bubble.bot {
    background-color: rgba(255, 255, 255, 0.04);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.chat-bubble.user {
    background-color: var(--primary);
    border-color: transparent;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.chat-bubble.image-bubble {
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.04);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.chat-bubble-img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bubble-time {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    margin-top: 4px;
}

/* Chat Footer inside Phone */
.chat-footer {
    padding: 16px;
    background-color: #0F1015;
    border-top: 1px solid #1F202E;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    position: relative;
}

/* Highlighting tooltip */
.request-tooltip {
    position: absolute;
    top: -36px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
    animation: bounceTooltip 1.6s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.request-tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--primary) transparent transparent;
}

.btn-request-photo {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-heading);
}

.btn-request-photo.pulse-glow {
    animation: attentionPulse 2s infinite ease-in-out;
}

.btn-request-photo:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.btn-request-photo:disabled {
    background: #1F202E;
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
}

/* Keyframes for highlighting */
@keyframes bounceTooltip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes attentionPulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* --- Vision Section --- */
.vision {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.vision-text-block h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.vision-p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.vision-list {
    list-style: none;
}

.vision-list li {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
}

.vision-list li::before {
    content: "•";
    color: var(--primary);
    font-size: 20px;
    position: absolute;
    left: 4px;
    top: -2px;
}

/* Premium Mockup (Solid Dark style) */
.premium-mockup {
    width: 100%;
    max-width: 440px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: 0 auto;
}

.mockup-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.mockup-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-header .dot.red { background-color: #EF4444; }
.mockup-header .dot.yellow { background-color: #F59E0B; }
.mockup-header .dot.green { background-color: #10B981; }

.mockup-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #0A0B10;
}

.mockup-message {
    display: flex;
    gap: 12px;
    max-width: 80%;
}

.mockup-message.bot {
    align-self: flex-start;
}

.mockup-message.user {
    align-self: flex-end;
}

.mockup-message .avatar {
    width: 32px;
    height: 32px;
    background-image: url('https://firebasestorage.googleapis.com/v0/b/aurabitme-866eb.firebasestorage.app/o/aurabit%2Fcharacter_creation%2FSCKYnYs0mWPEJlXoFoyW_avatar.png?alt=media');
    background-size: cover;
    background-position: top center;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Chat Mockup Header Styles */
.chat-mockup-header {
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    background-color: var(--bg-surface-light) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.chat-header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-header-name {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.chat-header-status {
    font-size: 10px;
    color: #10B981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.chat-header-status .status-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.msg-content {
    background-color: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 16px;
    position: relative;
}

.mockup-message.user .msg-content {
    background-color: var(--primary);
    border-color: transparent;
    border-bottom-right-radius: 4px;
}

.mockup-message.bot .msg-content {
    border-top-left-radius: 4px;
}

.msg-content p {
    font-size: 14px;
    color: #FFFFFF;
}

.msg-content .time {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    margin-top: 6px;
}

/* --- Interactive Simulator --- */
.simulator-section {
    padding: 120px 0;
    background-color: #07080D;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

.simulator-wrapper {
    display: flex;
    justify-content: center;
}

.simulator-box {
    width: 100%;
    max-width: 680px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.simulator-box.mood-happy { border-color: var(--primary); }
.simulator-box.mood-sad { border-color: #0284C7; }
.simulator-box.mood-excited { border-color: var(--secondary); }
.simulator-box.mood-mysterious { border-color: #E11D48; }

.sim-header {
    background-color: var(--bg-surface-light);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sim-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--border-color);
}

.sim-meta h3 {
    font-size: 16px;
    color: #FFFFFF;
}

.sim-meta p {
    font-size: 12px;
    transition: color 0.3s ease;
}

.status-happy { color: var(--primary); }
.status-sad { color: #0284C7; }
.status-excited { color: var(--secondary); }
.status-mysterious { color: #E11D48; }

.sim-indicators {
    display: flex;
    gap: 8px;
}

.indicator-bar {
    width: 40px;
    height: 6px;
    background-color: var(--bg-main);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.indicator-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 70%;
    background-color: var(--primary);
    border-radius: 10px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.indicator-bar.energy::after {
    width: 90%;
}
.indicator-bar.empathy::after {
    width: 75%;
}

.sim-body {
    padding: 36px 28px;
    background-color: #0A0B10;
}

.sim-bubble {
    background-color: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    border-radius: 18px;
    border-top-left-radius: 4px;
    max-width: 85%;
}

.sim-bubble p {
    font-size: 15px;
    color: #FFFFFF;
    line-height: 1.6;
}

.sim-controls {
    border-top: 1px solid var(--border-color);
    padding: 20px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mood-btn {
    background-color: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s ease;
    text-align: center;
}

.mood-btn:hover {
    border-color: var(--primary);
    color: #FFFFFF;
}

.mood-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

/* --- Features Section --- */
.features {
    padding: 120px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 48px 36px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(217, 70, 239, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.feature-icon i, .feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    stroke-width: 1.8px;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.3));
    display: inline-flex;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.05) 0%, rgba(5, 5, 8, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover .card-glow {
    opacity: 1;
}

/* --- Early Access Card Section --- */
.early-access {
    padding: 120px 0;
    position: relative;
}

.ea-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.ea-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.ea-info h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.ea-info p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.ea-meta-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ea-meta-points .point {
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-mark {
    color: var(--primary);
    font-weight: 700;
}

.ea-form-container {
    background-color: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.form-message {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    color: #10B981;
}

/* --- Footer --- */
footer {
    background-color: #0A0812;
    padding: 60px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 20;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link,
.footer-link:link,
.footer-link:visited {
    color: #A1A1AA !important;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none !important;
    transition: color 0.2s ease;
    width: fit-content;
}

.footer-link:hover,
.footer-link:active {
    color: #FFFFFF !important;
}

.footer-col-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col-brand, .footer-col-links, .footer-col-copy {
        align-items: center;
        text-align: center;
    }
    .footer-col-copy {
        text-align: center;
    }
    .footer-link {
        margin: 0 auto;
    }
}

/* --- Phone Simulation Badge --- */
.phone-simulation-badge {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: bounceTitle 2s infinite ease-in-out;
    z-index: 10;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: livePulse 1.6s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10B981; }
}

/* --- Chat Ending Overlay --- */
.chat-ending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 8, 0.95);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-ending-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ending-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-ending-overlay.active .ending-content {
    transform: translateY(0);
}

.heart-icon {
    font-size: 54px;
    animation: heartBeat 1.2s infinite;
}

.ending-content h3 {
    font-size: 22px;
    color: #FFFFFF;
    font-family: var(--font-heading);
}

.ending-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-ending-cta {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
    transition: all 0.25s ease;
}

.btn-ending-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.5);
}

/* --- Dynamic Quick Replies --- */
.chat-quick-replies {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-quick-reply {
    width: 100%;
    background-color: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-quick-reply:hover {
    border-color: var(--primary);
    background-color: rgba(139, 92, 246, 0.05);
}

.btn-quick-reply.pulse-glow {
    border-color: var(--primary);
    animation: attentionPulse 2s infinite ease-in-out;
}

.btn-quick-reply::after {
    content: "➔";
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.btn-quick-reply:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
}

@keyframes bounceTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* --- Keyframe Animations --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { transform: scale(1.05); opacity: 0.8; box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

@keyframes typing {
    0% { transform: translateY(0px); opacity: 0.4; }
    28% { transform: translateY(-5px); opacity: 1; }
    70% { transform: translateY(0px); opacity: 0.4; }
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-container,
    .grid-2col,
    .ea-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero {
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual-block {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }
    .nav-links {
        display: none;
    }
    .ea-card {
        padding: 30px;
    }
    .ea-form-container {
        padding: 24px;
    }
}

/* --- Canvas Background Effect --- */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* --- Phone Onboarding Welcome Splash Screen --- */
.phone-splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #11121B 0%, #06070B 100%);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    text-align: center;
    box-sizing: border-box;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.phone-splash-overlay.fade-out {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.splash-badge {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--secondary);
    background-color: rgba(217, 70, 239, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.25);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.1);
}

.splash-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.35);
    margin-bottom: 16px;
}

.splash-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    line-height: 1.3;
}

.splash-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
    padding: 0 10px;
}

.splash-arrow {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 16px;
    animation: bounceArrow 1.4s infinite ease-in-out;
    text-shadow: 0 0 15px rgba(217, 70, 239, 0.5);
}

.btn-start-simulation {
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-start-simulation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.55);
}

.btn-start-simulation:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.btn-start-simulation:hover .btn-arrow {
    transform: translateX(4px);
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- How It Works Section & Character Lab Mockup --- */
.how-it-works {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.steps-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-card {
    display: flex;
    gap: 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.step-icon-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.step-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.step-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.cognitive-traits-list {
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cognitive-traits-list li {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: 0;
}

.cognitive-traits-list li strong {
    color: #FFFFFF;
}

/* Character Creation Panel Mockup */
.creation-panel-mockup {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
    position: relative;
}

.panel-header {
    background-color: var(--bg-surface-light);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.panel-dot.red { background-color: #EF4444; }
.panel-dot.yellow { background-color: #F59E0B; }
.panel-dot.green { background-color: #10B981; }

.panel-title {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-left: 8px;
}

.panel-body {
    padding: 24px;
}

.mockup-avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.mockup-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.mockup-avatar-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.creation-badge {
    font-size: 10px;
    font-weight: 700;
    color: #10B981;
    background-color: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.mockup-section-title {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    margin-top: 20px;
}

.mockup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mockup-tag {
    font-size: 12px;
    color: var(--text-main);
    background-color: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 10px;
}

.mockup-tag.purple {
    border-color: rgba(139, 92, 246, 0.3);
    background-color: rgba(139, 92, 246, 0.05);
}

.mockup-tag.pink {
    border-color: rgba(217, 70, 239, 0.3);
    background-color: rgba(217, 70, 239, 0.05);
}

.mockup-tag.blue {
    border-color: rgba(2, 132, 199, 0.3);
    background-color: rgba(2, 132, 199, 0.05);
}

.mockup-sliders {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mockup-slider-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.slider-label span:last-child {
    font-weight: 700;
    color: #FFFFFF;
}

.slider-bar {
    width: 100%;
    height: 6px;
    background-color: var(--bg-surface-light);
    border-radius: 4px;
    overflow: hidden;
}

.slider-fill {
    height: 100%;
    border-radius: 4px;
}

.slider-fill.purple { background-color: var(--primary); }
.slider-fill.pink { background-color: var(--secondary); }
.slider-fill.blue { background-color: #0284C7; }

.mockup-overlay-text {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #10B981;
    animation: flashText 2s infinite ease-in-out;
}

/* --- Success Modal Popup Overlay --- */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-overlay.active .success-modal-card {
    transform: scale(1);
}

.success-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(217, 70, 239, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.success-modal-icon svg {
    width: 28px;
    height: 28px;
    color: var(--secondary);
    filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.4));
}

.success-modal-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.success-modal-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.success-modal-subtext {
    font-size: 13px !important;
    color: var(--primary) !important;
    font-weight: 600;
    margin-bottom: 24px !important;
}

.btn-close-modal {
    width: 100%;
}

/* --- Floating Live Chat Widget --- */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: var(--font-body);
}

.chat-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4), 0 0 15px rgba(139, 92, 246, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.chat-trigger-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6), 0 0 20px rgba(139, 92, 246, 0.4);
}

.chat-trigger-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.chat-trigger-btn .online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #10B981;
    border: 2px solid var(--bg-surface);
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
}

.chat-bubble-popup {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px 20px;
    max-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.1);
    position: relative;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.chat-bubble-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-surface);
}

.chat-bubble-popup::before {
    content: '';
    position: absolute;
    bottom: -9px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--border-color);
    z-index: -1;
}

.chat-bubble-popup.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-bubble-popup p {
    color: #FFFFFF;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    padding-right: 12px;
}

.close-popup-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-popup-btn:hover {
    color: #FFFFFF;
}

@media (max-width: 576px) {
    .live-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    .chat-bubble-popup {
        max-width: 220px;
        padding: 12px 16px;
    }
    .chat-assistant-card {
        height: 100%;
        max-height: 100vh;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }
}

/* --- Large Chat Assistant Modal --- */
.chat-assistant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1001; /* Above floating live chat trigger and other overlays */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.chat-assistant-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.chat-assistant-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 520px;
    max-width: 90%;
    height: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(139, 92, 246, 0.15);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-assistant-modal.active .chat-assistant-card {
    transform: scale(1);
}

.chat-assistant-header {
    background-color: var(--bg-surface-light);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.assistant-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 1px solid var(--primary);
    padding: 4px;
    box-sizing: border-box;
}

.assistant-info h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: #FFFFFF;
    margin-bottom: 3px;
}

.assistant-info span {
    font-size: 10.5px;
    color: #10B981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.close-assistant-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-assistant-btn:hover {
    color: #FFFFFF;
}

.chat-assistant-body {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #05060a;
}

.assistant-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.assistant-msg.bot {
    align-self: flex-start;
}

.assistant-msg.user {
    align-self: flex-end;
}

.assistant-msg .msg-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.5;
    border: 1px solid var(--border-color);
}

.assistant-msg.bot .msg-bubble {
    background-color: var(--bg-surface);
    color: #FFFFFF;
    border-bottom-left-radius: 4px;
}

.assistant-msg.user .msg-bubble {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: transparent;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.assistant-msg .msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    padding: 0 4px;
}

.assistant-msg.user .msg-time {
    align-self: flex-end;
}

.chat-assistant-quick-questions {
    padding: 20px 24px;
    background-color: var(--bg-surface-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.quick-q-btn {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: #FFFFFF;
    padding: 10px 16px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-q-btn:hover {
    border-color: var(--primary);
    background-color: rgba(139, 92, 246, 0.05);
    transform: translateY(-1px);
}

.quick-q-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
