/* Custom CSS for Innate AI Consulting Landing Page */

/* Smooth scrolling for all elements */
* {
    scroll-behavior: smooth;
}

/* Body and general styles with Avenir font */
body {
    font-family: 'Avenir', 'Avenir Next', 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar with new color scheme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f7f5f3;
}

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

/* Typewriter Effect */
.typewriter-cursor {
    position: relative;
}

.typewriter-cursor::after {
    content: '|';
    color: #00ff88;
    font-weight: bold;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Custom animations for icons */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

/* Spinning Statistics Tiles Animation */
.stat-tile {
    perspective: 1000px;
}

.stat-card {
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
    min-height: 280px;
}

.stat-card.flipped {
    transform: rotateY(180deg);
}

.stat-front, .stat-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.stat-front {
    z-index: 2;
}

.stat-back {
    transform: rotateY(180deg);
    z-index: 1;
}

/* Ensure proper visibility states */
.stat-back.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hover effects handled by JavaScript for better flip control */

.stat-card.flipped:hover {
    transform: rotateY(180deg) scale(1.02);
}

/* Enhanced reveal animation */
@keyframes statReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(-20deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.stat-tile.reveal {
    animation: statReveal 0.8s ease-out forwards;
}

/* Pulsing glow effect for statistics */
@keyframes statisticGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 40px rgba(0, 255, 136, 0.1);
    }
}

.stat-card:hover {
    animation: statisticGlow 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #33ff99, #00ff88);
}

/* Mobile responsive adjustments for stat tiles */
@media (max-width: 768px) {
    .stat-card {
        min-height: 240px;
    }
    
    .stat-front .text-6xl, .stat-back .text-6xl {
        font-size: 3rem;
    }
}

/* Navigation enhancements with new colors */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(247, 245, 243, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
}

/* Animated background particles with spring green colors */
#particles-background {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%2300ff88;stop-opacity:0.15" /><stop offset="100%" style="stop-color:%2300cc66;stop-opacity:0" /></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad1)"><animate attributeName="cx" values="200;800;200" dur="20s" repeatCount="indefinite"/></circle><circle cx="800" cy="300" r="80" fill="url(%23grad1)"><animate attributeName="cy" values="300;700;300" dur="15s" repeatCount="indefinite"/></circle><circle cx="500" cy="600" r="120" fill="url(%23grad1)"><animate attributeName="cx" values="500;100;500" dur="25s" repeatCount="indefinite"/></circle></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero section enhancements with spring green colors */
.hero-gradient-text {
    background: linear-gradient(45deg, #00ff88, #33ff99, #00cc66);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card hover effects for landing page */
.card-hover-effect {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.25);
}

/* Landing page specific enhancements */
.cta-primary {
    background: linear-gradient(135deg, #0066ff, #6366f1);
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.4);
}

/* Conversion-focused animations */
.trust-indicator {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pricing card enhancements */
.pricing-card {
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.15);
}

/* Button animations */
.btn-glow {
    position: relative;
    overflow: hidden;
}

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

.btn-glow:hover::before {
    left: 100%;
}

/* Pulse animation for icons */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 102, 255, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: .15em solid #06b6d4;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #06b6d4; }
}

/* Section reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

/* Gradient borders */
.gradient-border {
    background: linear-gradient(45deg, #0066ff, #6366f1, #06b6d4);
    padding: 2px;
    border-radius: 16px;
}

.gradient-border-content {
    background: #0f172a;
    border-radius: 14px;
    padding: 2rem;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #06b6d4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form enhancements */
.form-group {
    position: relative;
}

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.1);
}

/* Notification styles for landing page */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(45deg, #10b981, #059669);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification.info {
    background: linear-gradient(45deg, #0066ff, #6366f1);
    border: 1px solid rgba(0, 102, 255, 0.3);
}

/* FAQ accordion styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(30, 41, 59, 0.5);
}

/* Status badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-live {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-progress {
    background: rgba(251, 146, 60, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.status-completed {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        filter: brightness(0.9);
    }
}

/* Reveal Card Animations (No Flip/Inversion) */
.flip-card {
    position: relative;
    height: 288px; /* 72 * 0.25rem */
    cursor: pointer;
    border-radius: 1rem;
    overflow: hidden;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Back content (statistics) - completely hidden by default */
.flip-card-back {
    z-index: 1;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
    visibility: hidden;
}

/* Front content - visible by default, slides away on hover */
.flip-card-front {
    z-index: 2;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(26, 26, 26, 0.2) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.6s ease;
    text-align: center;
    padding: 2rem;
    visibility: visible;
}

/* Hover effects - reveal statistics behind */
.flip-card:hover .flip-card-front,
.flip-card.active .flip-card-front {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    pointer-events: none;
    visibility: hidden;
}

.flip-card:hover .flip-card-back,
.flip-card.active .flip-card-back {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    visibility: visible;
}

.flip-card-front:hover {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 255, 136, 0.2);
}

/* Enhanced icon animations */
.flip-card-front .w-24 {
    transition: all 0.4s ease;
}

.flip-card:hover .flip-card-front .w-24 {
    transform: scale(1.2) rotate(15deg);
}

/* Mobile responsiveness for flip cards */
@media (max-width: 768px) {
    .flip-card {
        height: 240px;
        margin-bottom: 2rem;
    }
    
    .flip-card-front, .flip-card-back {
        padding: 1.5rem;
    }
    
    .flip-card-front .w-24 {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .flip-card-front h3 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .flip-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    .flip-card:active .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cta-primary:hover,
    .conversion-card:hover,
    .card-hover-effect:hover {
        transform: none !important;
    }
}

/* Avenir font declarations */
.font-avenir {
    font-family: 'Avenir', 'Avenir Next', 'Helvetica Neue', 'Arial', sans-serif;
}

.font-avenir-heavy {
    font-family: 'Avenir Heavy', 'Avenir Next Demi Bold', 'Avenir', 'Helvetica Neue', 'Arial Black', sans-serif;
    font-weight: 800;
}

/* Landing page utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.backdrop-blur-strong {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Conversion optimization styles */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.premium-border {
    border: 1px solid;
    border-image: linear-gradient(45deg, #0066ff, #6366f1, #06b6d4) 1;
    border-radius: 1rem;
}

/* McKinsey-style professional elements with Avenir */
.professional-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-family: 'Avenir', 'Avenir Next', 'Helvetica Neue', 'Arial', sans-serif;
}

.professional-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.1);
}

/* Avenir-specific typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Avenir Heavy', 'Avenir Next Demi Bold', 'Avenir', 'Helvetica Neue', 'Arial Black', sans-serif;
    letter-spacing: -0.025em;
}

.hero-title {
    font-family: 'Avenir Heavy', 'Avenir Next Demi Bold', 'Avenir', 'Helvetica Neue', 'Arial Black', sans-serif;
    font-weight: 900;
    letter-spacing: -0.05em;
}

/* Button text with Avenir */
button, .btn {
    font-family: 'Avenir', 'Avenir Next', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Logo styling enhancements - clean presentation */
.logo-container {
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

/* Logo shadow for better visibility on light backgrounds */
.logo-container img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Progress bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #0066ff, #06b6d4);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -70px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Landing page specific responsive adjustments */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        font-family: 'Avenir Heavy', 'Avenir Next Demi Bold', 'Avenir', 'Helvetica Neue', 'Arial Black', sans-serif;
    }
    
    .trust-strip {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons button {
        width: 100%;
    }
}

/* Enhanced focus states for better accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #9caf88;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Conversion-optimized hover states */
.conversion-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.conversion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

/* Premium visual effects with spring green colors */
.premium-glow {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3),
                0 0 40px rgba(0, 255, 136, 0.1),
                0 0 80px rgba(0, 255, 136, 0.05);
}

.subtle-glow:hover {
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.25);
}

/* Debug: Fix stat tiles visibility issues */
.stat-back.hidden {
    display: none !important;
}

/* Ensure stat tiles are visible */
.stat-tile {
    min-height: 300px;
    position: relative;
}

.stat-card {
    background: rgba(44, 44, 44, 0.9) !important;
    border: 2px solid #00ff88 !important;
    color: #f7f5f3 !important;
}

.stat-front {
    position: relative !important;
    display: block !important;
}

/* Interactive Timeline Styles */
.timeline-step {
    position: relative;
    z-index: 10;
}

.timeline-card {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

.timeline-card.expanded .timeline-content {
    max-height: 400px !important;
    padding-bottom: 1.5rem;
}

.timeline-card.expanded .timeline-chevron {
    transform: rotate(180deg);
}

.timeline-content {
    transition: max-height 0.5s ease-out, padding-bottom 0.5s ease-out;
}

.timeline-progress {
    background: linear-gradient(90deg, #00ff88, #33ff99);
}

/* Timeline animation on scroll */
.timeline-step.animate-in {
    animation: timelineSlideIn 0.6s ease-out forwards;
}

@keyframes timelineSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.timeline-step[data-step="1"] { animation-delay: 0.1s; }
.timeline-step[data-step="2"] { animation-delay: 0.3s; }
.timeline-step[data-step="3"] { animation-delay: 0.5s; }

/* Mobile timeline adjustments */
@media (max-width: 1024px) {
    .timeline-card {
        margin-bottom: 2rem;
    }
    
    .timeline-step:last-child .timeline-card {
        margin-bottom: 0;
    }
}

/* Quote Card Animations */
.quote-card {
    position: relative;
    backdrop-filter: blur(10px);
}

.quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.25);
}

@keyframes quoteFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(1deg); }
}

.quote-card:hover::before {
    animation: quoteFloat 3s ease-in-out infinite;
}