/* ============================================
   DENTDESK 2026 DESIGN SYSTEM
   ============================================ */

body { font-family: 'Inter', system_ui, sans-serif; }

/* Smooth scrolling for the whole page */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #10B981; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #059669; }

/* ============================================
   GRADIENT MESH BACKGROUND EFFECTS
   ============================================ */
.mesh-bg {
    position: relative;
    overflow: hidden;
}
.mesh-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: meshFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(-1%, 1%) rotate(-1deg); }
    75% { transform: translate(1%, -1%) rotate(0.5deg); }
}

/* Floating gradient orbs */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}
.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #10B981, #059669);
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}
.orb-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    top: 60%;
    right: -80px;
    animation-delay: -3s;
}
.orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    bottom: 20%;
    left: 30%;
    animation-delay: -5s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================
   GLASSMORPHISM
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-dark {
    background: rgba(26, 44, 62, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   ANIMATED COUNTER
   ============================================ */
.counter {
    font-variant-numeric: tabular-nums;
}
.counter-animated {
    animation: countPulse 0.5s ease-out;
}
@keyframes countPulse {
    0% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
}
.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   GLOWING BUTTONS
   ============================================ */
.glow-btn {
    position: relative;
    overflow: hidden;
}
.glow-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.glow-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced CTA button with glow */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-button::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #10B981, #059669, #10B981);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
}
.cta-button:hover::after {
    opacity: 0.6;
}
.cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4);
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* 3D card tilt effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}
.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
}

/* ============================================
   AUDIO DEMO SECTION STYLES
   ============================================ */
.audio-demo-container {
    position: relative;
    perspective: 1000px;
}

.conversation-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 40px;
}

.person-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.person-icon.patient {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.speech-bubble {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 12px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    max-width: 200px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}
.speech-bubble.visible {
    opacity: 1;
    transform: scale(1);
}
.speech-bubble.left {
    left: 10%;
    top: 0;
    border-bottom-left-radius: 4px;
}
.speech-bubble.right {
    right: 10%;
    top: 0;
    border-bottom-right-radius: 4px;
}

/* Sound wave animation */
.sound-wave {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 24px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.sound-wave.playing {
    display: flex;
}
.wave-bar {
    width: 4px;
    height: 20px;
    background: linear-gradient(to top, #10B981, #059669);
    border-radius: 4px;
    animation: waveAnim 1s ease-in-out infinite;
}
.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.3s; }
.wave-bar:nth-child(7) { animation-delay: 0.2s; }
.wave-bar:nth-child(8) { animation-delay: 0.1s; }
.wave-bar:nth-child(9) { animation-delay: 0s; }

@keyframes waveAnim {
    0%, 100% { height: 15px; opacity: 0.5; }
    50% { height: 50px; opacity: 1; }
}

/* Play button with pulse */
.play-btn {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
}
.play-btn::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}
.play-btn.paused::before {
    animation: none;
    opacity: 0;
}
.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.5);
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Audio progress bar */
.audio-progress {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}
.audio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 3px;
    transition: width 0.1s linear;
    width: 0%;
}

/* Transcript animation */
.transcript-line {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}
.transcript-line.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   LIVE INDICATOR
   ============================================ */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #EF4444;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.live-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   STICKY CTA BAR
   ============================================ */
.sticky-cta {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: rgba(26, 44, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    z-index: 90;
    transition: bottom 0.4s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}
.sticky-cta.visible {
    bottom: 0;
}

/* ============================================
   FLOATING CONTACT BUTTON
   ============================================ */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 80;
}
.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    animation: floatBounce 3s ease-in-out infinite;
}
.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
}
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ============================================
   ANIMATED CHECKMARKS
   ============================================ */
.animated-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    animation: checkPop 0.4s ease-out;
}
@keyframes checkPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 120px;
    color: rgba(16, 185, 129, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #10B981, #059669);
    z-index: 100;
    transition: width 0.1s ease;
    width: 0%;
}
.navy { color: #1A2C3E; }
.emerald { color: #10B981; }
.terracotta { color: #E76F51; }
.revenue { font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
@media (min-width: 768px) { .revenue { font-size: 4.5rem; } }
.cta-button { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.cta-button:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 25px -5px rgb(16 185 129 / 0.4); }
.card-hover:hover { transform: translateY(-12px); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15); }

/* Mobile optimizations */
@media (max-width: 768px) {
    .nav-logo { font-size: 1.5rem; }
    .nav-logo-icon { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons button { width: 100%; text-align: center; }
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: currentColor;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #E5E7EB;
    border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: currentColor;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #E5E7EB;
    border-radius: 3px;
}
