/* Hero Section Background Pattern */
.hero-bg-v3 {
    background-image: radial-gradient(circle at 15% 85%, hsl(var(--accent-color-1) / 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, hsl(var(--accent-color-2) / 0.08) 0%, transparent 40%),
        linear-gradient(to bottom, hsl(var(--bg-primary)), hsl(var(--bg-primary) / 0.9));
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-bg-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, hsl(var(--bg-primary)) 95%);
    z-index: 1;
}

/* Card Styling for general cards (v3) */
.card-v3 {
    border: 1px solid hsl(var(--border-color));
    background-color: hsl(var(--card-bg));
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    /* Darker shadow for dark theme */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), hsl(var(--accent-color-1) / 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-v3:hover::before {
    opacity: 1;
}

.card-v3:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    /* Darker shadow on hover */
    border-color: hsl(var(--accent-color-1));
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInLeftV3 {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRightV3 {
    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes lineGrowV3 {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fadeInScale {
    animation: fadeInScale 0.9s ease-out forwards;
}

.animate-slideInLeftV3 {
    animation: slideInLeftV3 0.9s ease-out forwards;
}

.animate-slideInRightV3 {
    animation: slideInRightV3 0.9s ease-out forwards;
}

/* Delay utilities */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-900 {
    animation-delay: 0.9s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Core Problem Section (v3) */
.problem-section-v3 {
    background: linear-gradient(160deg, hsl(var(--bg-secondary)), hsl(var(--bg-primary)));
    border-radius: var(--radius-xl);
    padding: 4rem 2.5rem;
    max-width: 960px;
    margin: -6rem auto 0;
    /* Pulls it up into the hero section */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    /* Darker shadow */
    border: 1px solid hsl(var(--border-color));
    position: relative;
    z-index: 10;
    text-align: center;
}

.problem-section-v3::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 50% 50%, hsl(var(--accent-color-2) / 0.05) 0%, transparent 70%);
    /* Changed accent */
    animation: rotateBackground 40s linear infinite;
    z-index: -1;
}

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Unique Value Proposition Section (v3) */
.value-prop-card-v3 {
    background-color: hsl(var(--card-bg));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid hsl(var(--border-color));
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    /* Darker shadow */
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-prop-card-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), hsl(var(--accent-color-2) / 0.1) 0%, transparent 70%);
    /* Changed accent */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.value-prop-card-v3:hover::before {
    opacity: 1;
}

.value-prop-card-v3:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    /* Darker shadow on hover */
    border-color: hsl(var(--accent-color-1));
    /* Fixed: Changed to accent-color-1 */
}

.value-prop-card-v3 svg {
    color: hsl(var(--accent-color-1));
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 8px hsl(var(--accent-color-1) / 0.4));
}

/* How It Works Section (v3) */
.steps-section-v3 {
    position: relative;
    padding-bottom: 5rem;
}

.timeline-line-v3 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    width: 4px;
    /* Even thicker line */
    background: linear-gradient(to bottom, hsl(var(--accent-color-1)), hsl(var(--accent-color-2)));
    /* Changed gradient */
    height: calc(100% - 4rem);
    top: 2rem;
    z-index: 0;
    transform-origin: top;
    transition: transform 2.2s ease-out;
    /* Slower, more dramatic transition */
}

.timeline-line-v3.is-visible {
    transform: translateX(-50%) scaleY(1);
}

.step-item-v3 {
    position: relative;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    background-color: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border-color));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    /* Darker shadow */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    /* More complex easing */
    opacity: 0;
    transform: translateY(60px);
    /* Larger initial translateY */
    text-align: center;
    z-index: 1;
    /* Ensure cards are above the line */
}

.step-item-v3.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.step-item-v3:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
    /* Darker shadow on hover */
    border-color: hsl(var(--accent-color-1));
}

.step-number-v3 {
    font-size: 4rem;
    /* Larger numbers */
    font-weight: 900;
    /* Extra bold */
    margin-bottom: 1rem;
    background: linear-gradient(90deg, hsl(var(--accent-color-1)), hsl(var(--accent-color-2)));
    /* Changed gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 5px hsl(var(--accent-color-1) / 0.3));
}

.timeline-dot-v3 {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    /* Even larger dot */
    height: 24px;
    background-color: hsl(var(--accent-color-1));
    border-radius: 50%;
    border: 4px solid hsl(var(--bg-primary));
    /* Thicker border around dot */
    z-index: 2;
    /* Ensure dot is on top */
    top: 50%;
    box-shadow: 0 0 0 6px hsl(var(--bg-primary)), 0 0 15px hsl(var(--accent-color-1) / 0.6);
    /* Multi-layered glow */
    animation: dotPulse 2s infinite ease-in-out;
}

/* Responsive adjustments for steps */
@media (min-width: 768px) {
    .step-item-v3.md\:text-right {
        text-align: right;
    }

    .step-item-v3.md\:text-left {
        text-align: left;
    }
}