/* Engrm Polish Enhancements - Maintains indie dev vibe, adds subtle professionalism */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Fade-in animation for sections on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects on cards */
.price-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,212,255,0.15);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,212,255,0.12);
}

/* Button hover enhancements */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0,212,255,0.3);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Gradient text shimmer effect */
.gradient-text {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

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

/* Comparison table row hover */
.section table tbody tr {
    transition: background-color 0.2s ease;
}

.section table tbody tr:hover {
    background-color: rgba(0,212,255,0.03);
}

/* Value pills subtle pulse */
.value-pill {
    transition: all 0.3s ease;
}

.value-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,212,255,0.2);
}

/* Metrics bar animate on scroll */
.metric {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.metric.visible {
    opacity: 1;
    transform: translateY(0);
}

.metric:nth-child(1) { transition-delay: 0.1s; }
.metric:nth-child(2) { transition-delay: 0.2s; }
.metric:nth-child(3) { transition-delay: 0.3s; }

/* Agent logos subtle hover */
.agent-tag {
    transition: all 0.3s ease;
}

.agent-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,212,255,0.15);
}

/* Install block copy hint enhancement */
.install-cmd {
    transition: all 0.3s ease;
}

.install-cmd:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,212,255,0.15);
}

.install-cmd:hover .copy-hint {
    opacity: 1;
}

/* Status banner subtle animation */
.status-banner {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pricing card "featured" glow pulse */
.price-card.featured {
    animation: featuredPulse 3s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0,212,255,0.2);
    }
    50% {
        box-shadow: 0 0 50px rgba(0,212,255,0.4);
    }
}

/* Diagram images subtle parallax on scroll (optional, can remove if too much) */
img[src*=".svg"] {
    transition: transform 0.3s ease;
}

img[src*=".svg"]:hover {
    transform: scale(1.02);
}

/* Hero CTA buttons stagger animation */
.hero-ctas a {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-ctas a:nth-child(1) { animation-delay: 0.2s; }
.hero-ctas a:nth-child(2) { animation-delay: 0.3s; }
.hero-ctas a:nth-child(3) { animation-delay: 0.4s; }

/* Constellation canvas subtle fade-in */
#hero-constellation {
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive: reduce animations on mobile to save battery */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile: disable hover transforms (prevents janky tap behavior) */
@media (max-width: 768px) {
    .price-card:hover,
    .feature-card:hover,
    .btn:hover {
        transform: none;
    }
}
