/* 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 for general sections */
.animate-fadeInScale {
    animation: fadeInScale 0.9s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Delay utilities for general sections */
.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;
}

/* SVG Animation Specific Styles (reused from Features page) */
.device-svg {
    width: 100%;
    height: 100%;
    max-width: 800px;
    /* Max width for the SVG container */
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.device-outline {
    stroke: hsl(var(--border-color));
    stroke-width: 2;
    fill: hsl(var(--card-bg));
    transition: all 0.3s ease-in-out;
}

.device-screen {
    fill: hsl(var(--bg-primary));
    stroke: hsl(var(--border-color));
    stroke-width: 1;
}

.data-flow-line {
    stroke: url(#gradientFlow);
    /* Use a gradient for the flow */
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 1000;
    /* Long dash for animation */
    stroke-dashoffset: 1000;
    /* Start off-screen */
    animation: dash 5s linear infinite;
    opacity: 0.7;
}

.data-flow-dot {
    fill: hsl(var(--accent-color-1));
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulseDot {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}