/* --- Arcano Antigravity UI System --- */

:root {
    --core-glow: #3b82f6;
    --core-inner: #fff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-space: 'Space Grotesk', sans-serif;
}

/* 1. Container & Layout (Immersive) */
.hero-bot-integrated {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: 0 !important;
    overflow: visible;
}

/* 2. Neural Core (The Gravity Source) */
.neural-core-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin-bottom: 40px;
    animation: float-slow 12s infinite ease-in-out;
}

.bot-orb-large {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle at 30% 30%, 
        var(--core-inner) 0%, 
        #3b82f6 20%, 
        #1d4ed8 50%, 
        #1e1b4b 80%, 
        #020617 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.4),
        0 0 80px rgba(59, 130, 246, 0.2),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: core-glow 3s infinite alternate ease-in-out;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#bot-video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 15;
    border: 4px solid var(--core-glow);
    display: none;
    filter: saturate(1.2) contrast(1.1);
}

.core-inner {
    width: 40%;
    height: 40%;
    background: radial-gradient(circle at center, #fff 0%, transparent 80%);
    filter: blur(15px);
    animation: core-pulse 4s infinite alternate ease-in-out;
}

.energy-ring {
    position: absolute;
    inset: -15px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: rotate-ring 15s linear infinite;
    mask-image: radial-gradient(circle at center, transparent 65%, black 70%);
    -webkit-mask-image: radial-gradient(circle at center, transparent 65%, black 70%);
    pointer-events: none;
}

/* 3. Floating Branding */
.floating-branding {
    position: absolute;
    left: 8%;
    top: 25%;
    max-width: 500px;
    z-index: 20;
    animation: float-medium 15s infinite ease-in-out;
}

.bot-title-hero {
    font-family: var(--font-space) !important;
    font-size: 8rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.05em !important;
    line-height: 0.8 !important;
    text-transform: uppercase;
    margin: 0 !important;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bot-subtitle-hero {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.google-partner-tag-elegant {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.google-partner-tag-elegant img {
    height: 24px;
    filter: grayscale(1) brightness(2);
}

.google-partner-tag-elegant span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: #fff;
}

/* 5. Ghost Terminal Interaction */
.floating-interaction {
    position: absolute;
    right: 8%;
    bottom: 15%;
    width: 450px;
    z-index: 20;
    animation: float-slow 18s infinite ease-in-out reverse;
}

.terminal-ghost {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.transcript-ghost {
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 10px;
    scrollbar-width: none;
    transition: opacity 0.3s ease;
}

.transcript-ghost::-webkit-scrollbar { display: none; }

.ai-msg, .user-msg {
    padding: 0;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 100%;
}

.ai-msg {
    color: #fff;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.user-msg {
    color: var(--core-glow);
    text-align: right;
    font-weight: 500;
}

/* 6. Report & Lead Capture */
.bot-report-area-hero {
    animation: fadeIn 0.8s ease-out forwards;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    font-family: var(--font-space);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--core-glow);
}

.report-content-hero {
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 25px;
}

.report-content-hero::-webkit-scrollbar {
    width: 4px;
}
.report-content-hero::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.lead-form-hero {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-input-hero {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
}

.bot-input-hero:focus {
    outline: none;
    border-color: var(--core-glow);
    background: rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 7. Controls */
.bot-controls-hero {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-antigravity {
    flex: 1;
    background: #fff;
    color: #000;
    border: none;
    padding: 18px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-antigravity:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(1deg); }
    66% { transform: translate(-15px, 20px) rotate(-0.5deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -20px); }
}

@keyframes rotate-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes core-pulse {
    from { transform: scale(0.8); opacity: 0.5; }
    to { transform: scale(1.2); opacity: 0.8; }
}

@keyframes core-glow {
    from { 
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), 0 0 80px rgba(59, 130, 246, 0.1);
        transform: scale(1);
    }
    to { 
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.6), 0 0 120px rgba(59, 130, 246, 0.3);
        transform: scale(1.03);
    }
}

@keyframes orb-speaking-glow {
    0% { filter: brightness(1); box-shadow: 0 0 40px rgba(59, 130, 246, 0.4); }
    50% { filter: brightness(1.3); box-shadow: 0 0 100px rgba(59, 130, 246, 0.8); }
    100% { filter: brightness(1); box-shadow: 0 0 40px rgba(59, 130, 246, 0.4); }
}

.bot-orb-large.speaking {
    animation: orb-speaking-glow 2s infinite ease-in-out !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    z-index: 100;
}
