@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

@keyframes countPop {
    0% { transform: scale(0.85); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes borderRotate {
    0% { --angle: 0deg; }
    100% { --angle: 360deg; }
}

.landing-card {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

/* Hero dashboard mockup */
.hero-dashboard {
    position: relative;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(12, 135, 231, 0.08) inset;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-dashboard:hover {
    transform: translateY(-4px);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(12, 135, 231, 0.12);
}

.hero-dashboard::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(54, 163, 246, 0.4), transparent 40%, rgba(167, 139, 250, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-kpi {
    position: relative;
    padding: 1rem;
    border-radius: 0.875rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: countPop 0.6s ease-out backwards;
}

.hero-kpi:nth-child(1) { animation-delay: 0.3s; }
.hero-kpi:nth-child(2) { animation-delay: 0.45s; }
.hero-kpi:nth-child(3) { animation-delay: 0.6s; }

.hero-kpi::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--kpi-accent);
    opacity: 0.8;
}

.hero-kpi:hover {
    transform: translateY(-3px);
    border-color: var(--kpi-border);
    box-shadow: 0 8px 24px var(--kpi-glow);
}

.hero-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.hero-kpi-label {
    margin-top: 0.25rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.hero-kpi--blue {
    --kpi-accent: linear-gradient(90deg, #36a3f6, #0c87e7);
    --kpi-border: rgba(54, 163, 246, 0.35);
    --kpi-glow: rgba(12, 135, 231, 0.15);
}

.hero-kpi--blue::after {
    background: linear-gradient(90deg, #36a3f6, #0c87e7);
}

.hero-kpi--red {
    --kpi-accent: linear-gradient(90deg, #f87171, #ef4444);
    --kpi-border: rgba(248, 113, 113, 0.35);
    --kpi-glow: rgba(239, 68, 68, 0.15);
}

.hero-kpi--red::after {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.hero-kpi--emerald {
    --kpi-accent: linear-gradient(90deg, #34d399, #10b981);
    --kpi-border: rgba(52, 211, 153, 0.35);
    --kpi-glow: rgba(16, 185, 129, 0.15);
}

.hero-kpi--emerald::after {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.hero-kpi--red .hero-kpi-value { color: #fca5a5; }
.hero-kpi--emerald .hero-kpi-value { color: #6ee7b7; }
.hero-kpi--blue .hero-kpi-value { color: #7dd3fc; }

.hero-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    animation: slideInRight 0.5s ease-out backwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-alert:nth-child(1) { animation-delay: 0.7s; }
.hero-alert:nth-child(2) { animation-delay: 0.85s; }
.hero-alert:nth-child(3) { animation-delay: 1s; }

.hero-alert:hover {
    transform: translateX(4px);
}

.hero-alert-badge {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
}

.hero-alert-text {
    color: #cbd5e1;
}

.hero-alert--critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(248, 113, 113, 0.25);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.08);
}

.hero-alert--critical .hero-alert-badge {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    animation: pulseGlow 2s ease-in-out infinite;
}

.hero-alert--warning {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.04));
    border: 1px solid rgba(251, 146, 60, 0.25);
}

.hero-alert--warning .hero-alert-badge {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

.hero-alert--ai {
    background: linear-gradient(135deg, rgba(12, 135, 231, 0.15), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(54, 163, 246, 0.25);
    box-shadow: 0 0 24px rgba(12, 135, 231, 0.1);
}

.hero-alert--ai .hero-alert-badge {
    background: linear-gradient(135deg, rgba(12, 135, 231, 0.3), rgba(139, 92, 246, 0.3));
    color: #7dd3fc;
}

/* Feature cards */
.feature-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--feature-gradient);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--feature-border);
    box-shadow: 0 20px 40px var(--feature-shadow), 0 0 0 1px var(--feature-border) inset;
}

.feature-card:hover::before {
    opacity: 0.08;
}

.feature-card-inner {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--feature-icon-bg);
    box-shadow: 0 8px 20px var(--feature-shadow);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 12px 28px var(--feature-shadow);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--feature-title);
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8;
}

.feature-card--blue {
    --feature-gradient: linear-gradient(135deg, #0c87e7, #0156a0);
    --feature-border: rgba(54, 163, 246, 0.35);
    --feature-shadow: rgba(12, 135, 231, 0.2);
    --feature-icon-bg: linear-gradient(135deg, #0c87e7, #0156a0);
    --feature-title: #7dd3fc;
}

.feature-card--violet {
    --feature-gradient: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --feature-border: rgba(167, 139, 250, 0.35);
    --feature-shadow: rgba(139, 92, 246, 0.2);
    --feature-icon-bg: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --feature-title: #c4b5fd;
}

.feature-card--emerald {
    --feature-gradient: linear-gradient(135deg, #10b981, #047857);
    --feature-border: rgba(52, 211, 153, 0.35);
    --feature-shadow: rgba(16, 185, 129, 0.2);
    --feature-icon-bg: linear-gradient(135deg, #10b981, #047857);
    --feature-title: #6ee7b7;
}

.feature-card--orange {
    --feature-gradient: linear-gradient(135deg, #f97316, #dc2626);
    --feature-border: rgba(251, 146, 60, 0.35);
    --feature-shadow: rgba(249, 115, 22, 0.2);
    --feature-icon-bg: linear-gradient(135deg, #f97316, #dc2626);
    --feature-title: #fdba74;
}

.feature-card--amber {
    --feature-gradient: linear-gradient(135deg, #f59e0b, #ea580c);
    --feature-border: rgba(251, 191, 36, 0.35);
    --feature-shadow: rgba(245, 158, 11, 0.2);
    --feature-icon-bg: linear-gradient(135deg, #f59e0b, #ea580c);
    --feature-title: #fcd34d;
}

.feature-card--cyan {
    --feature-gradient: linear-gradient(135deg, #06b6d4, #2563eb);
    --feature-border: rgba(34, 211, 238, 0.35);
    --feature-shadow: rgba(6, 182, 212, 0.2);
    --feature-icon-bg: linear-gradient(135deg, #06b6d4, #2563eb);
    --feature-title: #67e8f9;
}

/* Integration cards */
.integration-card {
    position: relative;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 0.875rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.35s ease;
    animation: fadeUp 0.6s ease-out backwards;
}

.integration-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(12, 135, 231, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.integration-card:hover {
    transform: translateY(-6px);
    border-color: rgba(54, 163, 246, 0.4);
    box-shadow: 0 16px 32px rgba(12, 135, 231, 0.15);
}

.integration-card:hover::before {
    opacity: 1;
}

.integration-icon {
    position: relative;
    z-index: 1;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    background: linear-gradient(135deg, rgba(12, 135, 231, 0.2), rgba(1, 86, 160, 0.3));
    border: 1px solid rgba(54, 163, 246, 0.25);
    color: #36a3f6;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.integration-card:hover .integration-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(12, 135, 231, 0.35), rgba(1, 86, 160, 0.45));
    box-shadow: 0 0 24px rgba(54, 163, 246, 0.3);
}

.integration-name {
    position: relative;
    z-index: 1;
    font-weight: 500;
    font-size: 0.875rem;
    color: #e2e8f0;
    transition: color 0.3s ease;
}

.integration-card:hover .integration-name {
    color: #7dd3fc;
}

.integration-card--accent-1 .integration-icon { color: #36a3f6; border-color: rgba(54, 163, 246, 0.3); }
.integration-card--accent-2 .integration-icon { color: #34d399; border-color: rgba(52, 211, 153, 0.3); background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(4, 120, 87, 0.25)); }
.integration-card--accent-3 .integration-icon { color: #a78bfa; border-color: rgba(167, 139, 250, 0.3); background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.25)); }
.integration-card--accent-4 .integration-icon { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.25)); }
.integration-card--accent-5 .integration-icon { color: #f472b6; border-color: rgba(244, 114, 182, 0.3); background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(190, 24, 93, 0.25)); }
