/**
 * App Intelligence Page - Spy/Intelligence Theme Override
 * Orange/Yellow gradient with tech/spy aesthetic (matching app UI)
 */

/* ==========================================================================
   CSS Variables for Intelligence Theme
   ========================================================================== */

.page-template-template-app-intelligence {
    --intel-purple: #a855f7;
    --intel-blue: #6366f1;
    --intel-violet: #8b5cf6;
    --intel-glow: rgba(168, 85, 247, 0.4);
    --intel-glow-blue: rgba(99, 102, 241, 0.3);
    --intel-dark-bg: #0a0a0f;
    --intel-darker-bg: #050508;
}

/* Darker background for the page */
.page-template-template-app-intelligence {
    background-color: var(--intel-dark-bg);
}

/* ==========================================================================
   Hero Section - Intelligence Style
   ========================================================================== */

.page-template-template-app-intelligence .feature-hero::before {
    background:
        radial-gradient(ellipse at center top, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
}

.page-template-template-app-intelligence .feature-hero h1 {
    background: linear-gradient(135deg, #ffffff 0%, var(--intel-purple) 50%, var(--intel-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-template-template-app-intelligence .feature-hero .hero-screenshot img {
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 40px var(--intel-glow),
        0 0 80px var(--intel-glow-blue);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ==========================================================================
   CTA Button - Intelligence Style
   ========================================================================== */

.page-template-template-app-intelligence .btn-cta {
    background: linear-gradient(135deg, var(--intel-purple) 0%, var(--intel-blue) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #fff;
}

.page-template-template-app-intelligence .btn-cta:hover {
    box-shadow:
        0 10px 40px var(--intel-glow),
        0 0 20px var(--intel-glow-blue);
    color: #fff;
}

/* ==========================================================================
   Split Sections - Intelligence Style
   ========================================================================== */

.page-template-template-app-intelligence .split-section .split-image img {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px var(--intel-glow);
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.page-template-template-app-intelligence .split-section .image-placeholder {
    border-color: rgba(168, 85, 247, 0.3);
    background:
        linear-gradient(145deg, rgba(168, 85, 247, 0.05) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.page-template-template-app-intelligence .split-section .image-placeholder i {
    color: rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   Features Grid - Intelligence Style with Grid Pattern
   ========================================================================== */

.page-template-template-app-intelligence .features-grid-section {
    background:
        linear-gradient(rgba(168, 85, 247, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.015) 1px, transparent 1px),
        var(--intel-darker-bg);
    background-size: 50px 50px, 50px 50px, 100% 100%;
}

.page-template-template-app-intelligence .features-grid-section .section-title {
    background: linear-gradient(135deg, #ffffff 0%, var(--intel-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-template-template-app-intelligence .feature-grid-item {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.06) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Subtle scan line effect */
.page-template-template-app-intelligence .feature-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--intel-purple), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-template-template-app-intelligence .feature-grid-item:hover::before {
    animation: scan-line 1.5s ease-in-out;
    opacity: 1;
}

@keyframes scan-line {
    0% {
        left: -100%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.page-template-template-app-intelligence .feature-grid-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--intel-glow),
        inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.page-template-template-app-intelligence .feature-grid-item .feature-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(99, 102, 241, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
}

/* Pulse effect on icon */
.page-template-template-app-intelligence .feature-grid-item:hover .feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 1px solid var(--intel-purple);
    animation: pulse-ring 1s ease-out;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.page-template-template-app-intelligence .feature-grid-item .feature-icon i {
    color: var(--intel-violet);
}

/* ==========================================================================
   Use Cases Section - Intelligence Style
   ========================================================================== */

.page-template-template-app-intelligence .use-cases-section .section-title {
    background: linear-gradient(135deg, #ffffff 0%, var(--intel-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-template-template-app-intelligence .use-case-item {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.04) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid rgba(168, 85, 247, 0.08);
    border-radius: 12px;
}

.page-template-template-app-intelligence .use-case-item:hover {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.page-template-template-app-intelligence .use-case-item h3 .use-case-number {
    background: linear-gradient(135deg, var(--intel-purple) 0%, var(--intel-blue) 100%);
    box-shadow: 0 0 15px var(--intel-glow);
    color: #fff;
}

/* ==========================================================================
   Trust Section - Intelligence Style
   ========================================================================== */

.page-template-template-app-intelligence .trust-section {
    background:
        linear-gradient(rgba(168, 85, 247, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.015) 1px, transparent 1px),
        var(--intel-darker-bg);
    background-size: 50px 50px, 50px 50px, 100% 100%;
}

.page-template-template-app-intelligence .trust-section .section-title {
    color: var(--intel-violet);
}

/* ==========================================================================
   Closing CTA - Intelligence Style
   ========================================================================== */

.page-template-template-app-intelligence .closing-cta-section::before {
    background:
        radial-gradient(ellipse at center bottom, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
}

.page-template-template-app-intelligence .closing-cta-section h2 {
    background: linear-gradient(135deg, #ffffff 0%, var(--intel-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Alt Background Override
   ========================================================================== */

.page-template-template-app-intelligence .feature-content-section.alt-bg {
    background: rgba(168, 85, 247, 0.02);
}

/* ==========================================================================
   Scrollbar styling (optional, webkit only)
   ========================================================================== */

.page-template-template-app-intelligence::-webkit-scrollbar {
    width: 8px;
}

.page-template-template-app-intelligence::-webkit-scrollbar-track {
    background: var(--intel-dark-bg);
}

.page-template-template-app-intelligence::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--intel-purple), var(--intel-blue));
    border-radius: 4px;
}

.page-template-template-app-intelligence::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--intel-blue), var(--intel-violet));
}
