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

html {
    scroll-behavior: smooth;
}

/* Glow effect */
.glow-effect {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5),
                0 0 40px rgba(0, 240, 255, 0.3),
                0 0 60px rgba(0, 240, 255, 0.1);
}

/* Grid background */
.grid-bg {
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Feature card hover effect */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

/* FAQ accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content.show {
    max-height: 200px;
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle.active i {
    transform: rotate(180deg);
}

/* Button glow animation */
button:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00f0ff, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00d4e6, #7c4fe0);
}

/* Text gradient animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-text {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Pulse animation for CTA */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Selection color */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: white;
}

/* Focus states for accessibility */
a:focus, button:focus {
    outline: 2px solid #00f0ff;
    outline-offset: 2px;
}

/* Smooth transitions for all elements */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: ease;
    transition-duration: 0.2s;
}

/* Chat Widget */
#chat-widget {
    font-family: system-ui, -apple-system, sans-serif;
}

#chat-window {
    backdrop-filter: blur(10px);
}

#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.3) transparent;
}

#chat-messages::-webkit-scrollbar {
    width: 4px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 2px;
}

#chat-input:focus {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

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

#typing-indicator .animate-bounce {
    animation: typingBounce 0.6s infinite;
}

/* ========================================
   3D PREMIUM EFFECTS
   ======================================== */

/* Hero Particles Canvas */
#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 3D Card Tilt Effect */
.feature-card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-3d:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 240, 255, 0.25);
}

.feature-card-3d .card-inner {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.feature-card-3d .card-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card-3d:hover .card-shine {
    opacity: 1;
}

/* Glow border on tilt */
.feature-card-3d::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #00f0ff, #8b5cf6, #00f0ff);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card-3d:hover::after {
    opacity: 0.5;
}

/* ========================================
   3D INTRO ANIMATION - MULTI-PHONE CIRCLE
   ======================================== */

#intro-overlay {
    background: radial-gradient(ellipse at center, #0d1117 0%, #0a0a1a 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Central glow animation */
@keyframes centralGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

#central-glow.show {
    animation: centralGlow 3s ease-in-out infinite;
}

/* Phones circle container */
#phones-circle {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#phones-circle.show {
    opacity: 1;
    animation: circleEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes circleEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Phone entrance animations */
@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.phone-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.phone-item.show {
    opacity: 1 !important;
    animation: phoneFloat 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* Chat bubble animations in center phone */
@keyframes chatBubbleIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-bubble-in.show {
    animation: chatBubbleIn 0.5s ease forwards;
}

/* Floating chat bubbles */
@keyframes floatingBubble {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-12px) translateX(5px);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) translateX(-3px);
        opacity: 0.95;
    }
    75% {
        transform: translateY(-15px) translateX(4px);
        opacity: 1;
    }
}

.floating-chat-bubble {
    z-index: 30 !important;
}

.floating-chat-bubble.show {
    animation: floatingBubble 5s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

@keyframes bubbleEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-chat-bubble.entering {
    animation: bubbleEntrance 0.6s ease forwards;
}

/* Watermark phone styles are now in the main carousel section */

/* ========================================
   CAROUSEL INTRO ANIMATION (APPLE-GRADE 3D IPHONE 15 PRO TITANIUM)
   ======================================== */

.intro-floor-grid {
    position: absolute;
    bottom: -22%;
    width: 160vw;
    height: 65vh;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(650px) rotateX(74deg);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.75) 0%, transparent 68%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.75) 0%, transparent 68%);
}

#phone-stage-3d {
    perspective: 1300px;
    transform-style: preserve-3d;
    touch-action: pan-y;
}

#phone-carousel {
    perspective: 1300px;
    transform-style: preserve-3d;
    transition: opacity 0.6s ease;
    will-change: transform, opacity;
}

.carousel-phone {
    position: absolute;
    transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.68s ease;
    opacity: 0;
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform, opacity;
    -webkit-tap-highlight-color: transparent;
}

.carousel-phone.active {
    opacity: 1;
    z-index: 25;
}

.carousel-phone.side-left,
.carousel-phone.side-right {
    opacity: 0.92;
    z-index: 15;
}

.carousel-phone.far-left,
.carousel-phone.far-right {
    opacity: 0.62;
    z-index: 5;
}

.carousel-phone.hidden-phone {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   3D EXTRUDED IPHONE 15 PRO TITANIUM CHASSIS
   ======================================== */

.iphone-3d-body {
    position: relative;
    width: 224px;
    height: 456px;
    transform-style: preserve-3d;
}

/* Extruded 3D Titanium Side Thickness Layers (Visible on rotateY) */
.iphone-depth-layer {
    position: absolute;
    inset: 0;
    border-radius: 40px;
    pointer-events: none;
}

.iphone-depth-layer.layer-1 {
    transform: translateZ(-3.5px);
    background: linear-gradient(135deg, #e4e4e7 0%, #71717a 28%, #3f3f46 55%, #a1a1aa 82%, #27272a 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.iphone-depth-layer.layer-2 {
    transform: translateZ(-7px);
    background: linear-gradient(135deg, #a1a1aa 0%, #52525b 35%, #27272a 65%, #71717a 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.iphone-depth-layer.layer-3 {
    transform: translateZ(-10.5px);
    background: linear-gradient(135deg, #52525b 0%, #27272a 50%, #18181b 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.85);
}

/* Theme-tinted Titanium Edges */
.theme-green .iphone-depth-layer.layer-1 {
    background: linear-gradient(135deg, #d1fae5 0%, #52525b 30%, #10b981 65%, #27272a 100%);
}
.theme-cyan .iphone-depth-layer.layer-1 {
    background: linear-gradient(135deg, #cffafe 0%, #52525b 30%, #06b6d4 65%, #27272a 100%);
}
.theme-violet .iphone-depth-layer.layer-1 {
    background: linear-gradient(135deg, #ede9fe 0%, #52525b 30%, #8b5cf6 65%, #27272a 100%);
}

/* Physical Protruding Titanium Side Buttons */
.iphone-side-btn {
    position: absolute;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #e4e4e7, #71717a, #3f3f46);
    transform: translateZ(-4px);
    pointer-events: none;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
}

.iphone-side-btn.btn-action {
    left: -2.5px;
    top: 78px;
    height: 18px;
}

.iphone-side-btn.btn-vol-up {
    left: -2.5px;
    top: 108px;
    height: 32px;
}

.iphone-side-btn.btn-vol-down {
    left: -2.5px;
    top: 148px;
    height: 32px;
}

.iphone-side-btn.btn-power {
    right: -2.5px;
    top: 122px;
    height: 48px;
}

/* Ambient Neon Back Glow (Strictly Behind the Phone at Z = -22px) */
.iphone-back-glow {
    position: absolute;
    inset: -14px;
    border-radius: 48px;
    opacity: 0;
    transform: translateZ(-22px);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.iphone-back-glow.green-glow {
    background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.48) 0%, rgba(16, 185, 129, 0.15) 55%, transparent 75%);
}

.iphone-back-glow.cyan-glow {
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.48) 0%, rgba(6, 182, 212, 0.15) 55%, transparent 75%);
}

.iphone-back-glow.violet-glow {
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.52) 0%, rgba(124, 58, 237, 0.18) 55%, transparent 75%);
}

.carousel-phone.active .iphone-back-glow {
    opacity: 1;
}

/* Front Brushed Titanium Frame (Z = 0px) */
.iphone-front-frame {
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 3.5px;
    background: linear-gradient(145deg, #f4f4f5 0%, #71717a 22%, #27272a 50%, #d4d4d8 78%, #3f3f46 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.65),
        inset 0 -1px 2px rgba(0, 0, 0, 0.8);
    transform: translateZ(0px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-phone.active.theme-green .iphone-front-frame {
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        0 0 22px rgba(52, 211, 153, 0.35);
}

.carousel-phone.active.theme-cyan .iphone-front-frame {
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        0 0 22px rgba(34, 211, 238, 0.35);
}

.carousel-phone.active.theme-violet .iphone-front-frame {
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        0 0 22px rgba(167, 139, 250, 0.4);
}

/* Inner Black Ceramic Shield Bezel */
.iphone-bezel {
    width: 100%;
    height: 100%;
    background: #030407;
    border-radius: 36.5px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.95);
}

/* OLED Screen Viewport */
.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 31px;
    background:
        radial-gradient(circle at 80% 15%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 20% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #0b141a 0%, #070d12 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7px 9px 6px 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Gorilla Glass Diagonal Reflection */
.screen-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 45%);
    pointer-events: none;
    z-index: 10;
}

/* 1. iOS 17 Status Bar & Dynamic Island */
.ios-status-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 22px;
    padding: 0 4px;
    z-index: 5;
    flex-shrink: 0;
}

.ios-time {
    font-size: 9.5px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.ios-icons {
    display: flex;
    align-items: center;
    gap: 3.5px;
    font-size: 8px;
    color: #f8fafc;
}

.dynamic-island {
    width: 72px;
    height: 18px;
    background: #000000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.island-cam {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3b82f6 0%, #1e1b4b 55%, #090d16 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.island-led {
    width: 5.5px;
    height: 5.5px;
    border-radius: 50%;
}

.island-led.green {
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

.island-led.cyan {
    background: #22d3ee;
    box-shadow: 0 0 6px #22d3ee;
}

.island-led.violet {
    background: #a78bfa;
    box-shadow: 0 0 6px #a78bfa;
}

/* 2. App Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    z-index: 5;
    flex-shrink: 0;
}

.bot-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bot-avatar.green { background: linear-gradient(135deg, #34d399, #059669); }
.bot-avatar.cyan { background: linear-gradient(135deg, #22d3ee, #0284c7); }
.bot-avatar.violet { background: linear-gradient(135deg, #a78bfa, #6d28d9); }

.bot-info {
    flex: 1;
    min-width: 0;
}

.bot-name {
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.bot-status {
    font-size: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.bot-status.green { color: #4ade80; }
.bot-status.cyan { color: #22d3ee; }
.bot-status.violet { color: #c4b5fd; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8.5px;
    color: #94a3b8;
}

/* 3. Chat Messages Area */
.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 4px 2px;
    z-index: 5;
    overflow: hidden;
}

.chat-date-pill {
    align-self: center;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 2px;
}

.chat-msg {
    max-width: 90%;
    padding: 6px 8px;
    border-radius: 11px;
    font-size: 9.5px;
    line-height: 1.28;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.chat-msg.bot {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.09);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.chat-msg.user {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 1px solid rgba(52, 211, 153, 0.25);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.theme-cyan .chat-msg.user {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: rgba(34, 211, 238, 0.25);
}

.theme-violet .chat-msg.user {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border-color: rgba(167, 139, 250, 0.25);
}

.msg-time {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.65);
    align-self: flex-end;
    line-height: 1;
}

.ai-metric-chip {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 8px;
    font-weight: 700;
    padding: 3.5px 9px;
    border-radius: 99px;
    margin-top: 2px;
    white-space: nowrap;
}

.ai-metric-chip.green {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}

.ai-metric-chip.cyan {
    background: rgba(6, 182, 212, 0.18);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: #67e8f9;
}

.ai-metric-chip.violet {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #ddd6fe;
}

/* 4. Bottom Chat Input Bar & Home Indicator */
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 5px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    z-index: 5;
    flex-shrink: 0;
}

.input-plus {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-input-pill {
    flex: 1;
    font-size: 8px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-send {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7.5px;
    color: white;
    flex-shrink: 0;
}

.input-send.green { background: #10b981; }
.input-send.cyan { background: #06b6d4; }
.input-send.violet { background: #8b5cf6; }

.ios-home-bar {
    width: 72px;
    height: 3.5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
    margin: 5px auto 1px auto;
    z-index: 5;
    flex-shrink: 0;
}

/* 3D Floor Shadow under each iPhone */
.phone-floor-shadow {
    position: absolute;
    bottom: -28px;
    left: 12%;
    right: 12%;
    height: 18px;
    border-radius: 50%;
    transform: rotateX(80deg) translateZ(-12px);
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.phone-floor-shadow.green-shadow {
    background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.45) 0%, transparent 72%);
}

.phone-floor-shadow.cyan-shadow {
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.45) 0%, transparent 72%);
}

.phone-floor-shadow.violet-shadow {
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.48) 0%, transparent 72%);
}

.carousel-phone.active .phone-floor-shadow {
    opacity: 0.95;
}

/* Watermark phone SVG */
.watermark-phone {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

.watermark-img {
    width: 100%;
    height: auto;
}

/* Floating KPI Badges - Positioned Cleanly ABOVE the iPhone Bezel (Never Covers Phone) */
.floating-msg {
    position: absolute;
    top: -46px;
    left: 50%;
    opacity: 0;
    z-index: 35;
    pointer-events: none;
    transform: translate3d(-50%, 10px, 24px) scale(0.9);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.floating-msg.show {
    opacity: 1;
    transform: translate3d(-50%, 0px, 24px) scale(1);
}

/* Carousel navigation dots */
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    width: 26px;
    background: linear-gradient(90deg, #34d399, #22d3ee, #a78bfa);
}

.msg-bubble {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.msg-bubble.green {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid rgba(110, 231, 183, 0.55);
}

.msg-bubble.cyan {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    border: 1px solid rgba(103, 232, 249, 0.55);
}

.msg-bubble.violet {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: 1px solid rgba(196, 181, 253, 0.55);
}

.msg-icon {
    font-size: 13px;
}

.msg-content strong {
    font-weight: 800;
}

/* Mobile Responsive Adjustments (< 768px) - 60FPS & Crystal Clear Fit */
@media (max-width: 767px) {
    .iphone-3d-body {
        width: 184px;
        height: 382px;
    }

    .iphone-depth-layer,
    .iphone-front-frame {
        border-radius: 34px;
    }

    .iphone-bezel {
        border-radius: 31px;
        padding: 5px;
    }

    .iphone-screen {
        border-radius: 26px;
        padding: 6px 7px 5px 7px;
    }

    .dynamic-island {
        width: 60px;
        height: 15px;
    }

    .bot-avatar {
        width: 20px;
        height: 20px;
        font-size: 8.5px;
    }

    .bot-name {
        font-size: 9.5px;
    }

    .chat-msg {
        font-size: 8.5px;
        padding: 5px 7px;
    }

    .ai-metric-chip {
        font-size: 7.5px;
        padding: 3px 7px;
    }

    .floating-msg {
        top: -38px;
    }

    .msg-bubble {
        padding: 5px 11px;
        font-size: 10px;
    }
}

/* Intro text animation */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#intro-text.show {
    animation: textReveal 0.8s ease forwards;
}

/* Particle animation - subtle and elegant */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.55;
    }
    90% {
        opacity: 0.55;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(135deg, #00f0ff, #8b5cf6);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

/* Typing indicator animation */
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-3px); }
}

.typing-dot {
    animation: typingBounce 1.4s infinite;
}

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

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