/* CSS for Automation Page */

/* --- Fixed Video Background --- */
.fixed-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -20;
    overflow: hidden;
}

.auto-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--media-scrim-mid), transparent, var(--media-scrim-strong));
    pointer-events: none;
}

/* --- Eyebrow Label (shared) --- */
.auto-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--first-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.auto-eyebrow span:first-child {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--first-color);
    flex-shrink: 0;
}

.auto-eyebrow.center-text {
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* --- Hero Section --- */
.auto-hero {
    position: relative;
    height: 88vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auto-hero-content {
    text-align: center;
    color: white;
    z-index: 10;
}

.auto-hero-content h1 {
    font-family: 'Guester', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--cine-text-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.auto-hero-content > p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 1.75rem;
}

/* --- Hero Stats Bar --- */
.auto-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--cine-glass-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cine-border);
    border-radius: 40px;
    padding: 12px 28px;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 30px var(--media-scrim-soft);
}

.auto-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.auto-stat-num {
    font-family: 'Kiona', sans-serif;
    font-size: 1.5rem;
    color: var(--first-color);
    line-height: 1;
}

.auto-stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.auto-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--cine-border-soft);
    flex-shrink: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    color: var(--first-color);
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* ====================================== */
/* --- Tab Navigation Bar ---            */
/* ====================================== */
.auto-tab-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 0;
    position: relative;
    z-index: 10;
}

.auto-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    background: var(--cine-glass-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--cine-border-soft);
    border-radius: 40px;
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.auto-tab i, .auto-tab iconify-icon {
    font-size: 1.15rem;
    transition: color 0.4s ease;
}

.auto-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: var(--cine-border-soft);
    border-color: var(--cine-border-soft);
}

.auto-tab.active {
    color: var(--cine-text);
    background: var(--cine-border-soft);
    border-color: var(--first-color);
    box-shadow: 0 0 20px rgba(var(--c-red-rgb), 0.15), inset 0 0 20px rgba(var(--c-red-rgb), 0.05);
}

.auto-tab.active i, .auto-tab.active iconify-icon {
    color: var(--first-color);
}

.auto-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--first-color);
    border-radius: 2px;
}

/* ====================================== */
/* --- Tab Content Panels ---            */
/* ====================================== */
.auto-tab-content {
    display: none;
    animation: tabFadeIn 0.5s ease;
}

.auto-tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Product Sections --- */
.auto-products-container {
    padding: 1.5rem 0 3rem 0;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll triggers from animations */
}

.auto-product-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.auto-product-section.right-align {
    flex-direction: row; /* Text Left, Image Right */
}

.auto-product-section.left-align {
    flex-direction: row-reverse; /* Text Right, Image Left */
}


.auto-product-content {
    /* flex-basis + padding without border-box overflowed the phone
       viewport by 2x1.5rem. */
    box-sizing: border-box;
    flex: 1;
    position: relative;
    z-index: 2;
    background: var(--media-scrim-soft);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--cine-glass-soft);

    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Animations Triggered by .active */
.auto-product-section.active .auto-product-content {
    opacity: 1;
    transform: translateY(0);
}

/* --- Text Colors --- */
.auto-product-content h2 {
    font-family: 'Kiona', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--cine-text); /* White Title */
    text-shadow: 0 0 10px var(--media-scrim-mid);
}

.auto-product-content p {
    font-size: 1.1rem;
    color: var(--cine-text); /* White Text */
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-weight: 300;
}

/* --- Redesigned Buttons --- */
.auto-product-content .btn-ask-ai {
    width: auto;
    min-width: 180px;
}

/* --- Visuals --- */
.auto-product-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;

    opacity: 0;
    transition: all 1s ease 0.2s; /* Delayed slightly */
}

/* Slide In Directions */
.right-align .auto-product-visual {
    transform: translateX(50px);
}

.left-align .auto-product-visual {
    transform: translateX(-50px);
}

.auto-product-section.active .auto-product-visual {
    opacity: 1;
    transform: translateX(0);
}

.visual-placeholder {
    width: 260px;
    height: 260px;
    border-radius: 20px;
    background: var(--cine-glass-soft);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4.5rem;
    color: var(--first-color);
    box-shadow: 0 20px 50px var(--media-scrim-mid);
    transition: transform 0.5s ease;
}

.auto-product-section.active .visual-placeholder {
    animation: float 6s ease-in-out infinite;
    border-color: var(--first-color);
    box-shadow: 0 0 30px rgba(var(--c-red-rgb), 0.3);
}

/* Science visual - blue tint */
.science-visual {
    color: hsl(210, 80%, 65%);
}
.auto-product-section.active .science-visual {
    border-color: hsl(210, 80%, 65%);
    box-shadow: 0 0 30px hsla(210, 80%, 65%, 0.3);
}

/* IT visual - green tint */
.it-visual {
    color: hsl(150, 70%, 55%);
}
.auto-product-section.active .it-visual {
    border-color: hsl(150, 70%, 55%);
    box-shadow: 0 0 30px hsla(150, 70%, 55%, 0.3);
}

/* Marketing visual - purple tint */
.marketing-visual {
    color: hsl(270, 70%, 65%);
}
.auto-product-section.active .marketing-visual {
    border-color: hsl(270, 70%, 65%);
    box-shadow: 0 0 30px hsla(270, 70%, 65%, 0.3);
}

/* OpenClaw visual - teal tint */
.openclaw-visual {
    color: hsl(175, 70%, 55%);
}
.auto-product-section.active .openclaw-visual {
    border-color: hsl(175, 70%, 55%);
    box-shadow: 0 0 30px hsla(175, 70%, 55%, 0.3);
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}


/* --- Pointer Lines (Enhanced) --- */
.pointer-line-container {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    pointer-events: none;
    filter: drop-shadow(0 0 5px var(--first-color));
}

.right-align .pointer-line-container {
    right: 20%;
    width: 35vw;
    flex-direction: row-reverse;
    transform: translateY(-50%);
}

.left-align .pointer-line-container {
    left: 20%;
    width: 35vw;
    flex-direction: row;
    transform: translateY(-50%);
}

.pointer-dot {
    width: 12px;
    height: 12px;
    background-color: var(--cine-text);
    border: 3px solid var(--first-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--first-color);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s;
    flex-shrink: 0;
}

.pointer-line {
    height: 3px;
    width: 0;
    background: linear-gradient(90deg,
        var(--first-color) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        var(--first-color) 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    opacity: 0;
    transition: width 1s ease-out 0.8s, opacity 0.5s ease 0.8s;
}

.auto-product-section.active .pointer-dot {
    opacity: 1;
    transform: scale(1);
}

.auto-product-section.active .pointer-line {
    width: 100%;
    opacity: 1;
    animation: lineFlow 2s linear infinite;
}

@keyframes lineFlow {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Mobile Hide */
@media screen and (max-width: 968px) {
    .pointer-line-container { display: none; }
}

/* --- Produkt-Unterzeile (früher Pille) ---
   Keine Kapsel mehr: Rahmen, Fläche und Radius sind raus, die Wirkung kommt
   aus der Photyra-Hausschrift Arkitech und der Sperrung. */
.auto-prod-tag {
    display: inline-block;
    font-family: var(--font-photyra, 'Arkitech', 'Kiona', sans-serif);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--first-color);
    width: fit-content;
    margin-bottom: 0.75rem;
}

.auto-prod-tag--special {
    color: hsl(45 100% 65%);
}

.auto-prod-tag--openclaw {
    color: hsl(175, 70%, 55%);
}

.auto-prod-tag--science {
    color: hsl(210, 80%, 65%);
}

.auto-prod-tag--it {
    color: hsl(150, 70%, 55%);
}

.auto-prod-tag--marketing {
    color: hsl(270, 70%, 65%);
}

/* --- Feature List inside product content --- */
.auto-feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auto-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}

.auto-feature-list li i, .auto-feature-list li iconify-icon {
    color: var(--first-color);
    font-size: 1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.4));
}

/* ====================================== */
/* --- CTA Section (shared)             */
/* ====================================== */
.auto-cta-section {
    padding: 2.5rem 0 1.5rem;
    display: flex;
    justify-content: center;
}

.auto-cta-card {
    text-align: center;
    max-width: 700px;
    padding: 2.5rem 2.5rem;
    background: var(--cine-glass-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cine-border-soft);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.auto-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--first-color), transparent);
}

.auto-cta-icon {
    font-size: 2.4rem;
    color: var(--first-color);
    display: block;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(var(--c-red-rgb), 0.4);
}

.auto-cta-card h2 {
    font-family: 'Kiona', sans-serif;
    font-size: 2rem;
    color: var(--cine-text);
    margin-bottom: 1rem;
}

.auto-cta-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.auto-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--first-color);
    color: var(--cine-text);
    border: none;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(var(--c-red-rgb), 0.3);
}

.auto-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--c-red-rgb), 0.5);
}

/* ====================================== */
/* --- Consulting Intro Section         */
/* ====================================== */
.consulting-intro {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
}

.consulting-intro-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--media-scrim-soft);
    padding: 2rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--cine-border-soft);
}

.consulting-intro-content .auto-eyebrow {
    justify-content: center;
}

.consulting-intro-content h2 {
    font-family: 'Kiona', sans-serif;
    font-size: 2.5rem;
    color: var(--cine-text);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--media-scrim-mid);
}

.consulting-intro-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-weight: 300;
}

/* ====================================== */
/* --- Credentials Grid (Consulting)    */
/* ====================================== */
.consulting-credentials {
    padding: 2.5rem 0 1.5rem;
    position: relative;
    z-index: 5;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1rem;
}

.credential-card {
    background: var(--cine-glass-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--cine-border-soft);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
}

.credential-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px var(--media-scrim-soft);
}

.credential-icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 0 20px rgba(var(--c-red-rgb), 0.3);
}

.credential-card h3 {
    font-family: 'Kiona', sans-serif;
    font-size: 1.2rem;
    color: var(--cine-text);
    margin-bottom: 0.75rem;
}

.credential-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ====================================== */
/* --- Templates (Free Resources) ---    */
/* ====================================== */
.templates-section {
    background: var(--media-scrim-mid);
    padding: 3.5rem 2rem;
    border-top: 1px solid var(--cine-border-soft);
    position: relative;
    z-index: 5;
}

.section-title {
    font-family: 'Kiona', sans-serif;
    font-size: 2rem;
    text-align: center;
    color: var(--cine-text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--cine-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.template-card {
    background: var(--cine-glass-soft); /* Very subtle glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--cine-border-soft);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(var(--c-red-rgb), 0.15); /* Red Glow */
    border-color: rgba(var(--c-red-rgb), 0.3);
}

.template-icon {
    font-size: 2.75rem;
    color: var(--first-color);
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s ease;
    text-shadow: 0 0 20px rgba(var(--c-red-rgb), 0.3);
}

.template-card:hover .template-icon {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 30px rgba(var(--c-red-rgb), 0.6);
}

.template-card h3 {
    font-size: 1.5rem;
    color: var(--cine-text);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

/* Reuse the Premium Button Style for Download */
.download-btn {
    display: inline-block;
    padding: 10px 30px;
    background: transparent;
    border: 1px solid var(--first-color);
    color: var(--cine-text);
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--first-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.download-btn:hover::before {
    width: 100%;
}

.download-btn:hover {
    box-shadow: 0 0 20px rgba(var(--c-red-rgb), 0.4);
}

/* --- Template button row (Download + Ask AI side by side) --- */
.template-btn-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 0.5rem;
}

@media screen and (min-width: 480px) {
    .template-btn-row {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Compact Ask AI variant for template cards */
.btn-ask-ai--tpl {
    padding: 10px 22px;
    font-size: 0.875rem;
    margin-top: 0;
    border-width: 1px;
}

/* --- Template description text --- */
.template-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* --- n8n import hint --- */
.tpl-hint {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    margin-top: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tpl-hint strong {
    color: var(--first-color);
}

/* ====================================== */
/* --- Responsive ---                    */
/* ====================================== */
@media screen and (max-width: 968px) {
    .auto-hero {
        height: 78vh;
    }

    .auto-hero-content h1 {
        font-size: 2.2rem;
    }

    .auto-product-section {
        flex-direction: column !important; /* Stack everything */
        text-align: center;
        margin-bottom: 3rem;
    }

    .auto-product-section.left-align {
        flex-direction: column !important;
    }

    .pointer-line-container {
        display: none; /* Hide complex pointers on mobile */
    }

    .auto-product-content {
        order: 1;
        width: 100%;
    }

    .auto-product-visual {
        order: 2;
        width: 100%;
        margin-bottom: 2rem;
    }

    .visual-placeholder {
        width: 100%;
        max-width: 300px;
        height: 250px;
    }

    .auto-hero-stats {
        flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
        border-radius: 24px;
    }

    .auto-stat-divider {
        width: 60px;
        height: 1px;
    }

    .auto-stat {
        padding: 0 10px;
    }

    .auto-feature-list {
        text-align: left;
    }

    .auto-prod-tag {
        margin: 0 auto 0.75rem;
    }

    /* Tab bar responsive */
    .auto-tab-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1.5rem 1rem 0;
    }

    .auto-tab {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Consulting intro */
    .consulting-intro-content {
        padding: 2rem 1.5rem;
    }

    .consulting-intro-content h2 {
        font-size: 1.8rem;
    }

    /* CTA */
    .auto-cta-card {
        padding: 2rem 1.25rem;
    }

    .auto-cta-card h2 {
        font-size: 1.6rem;
    }

    /* Credentials */
    .credentials-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* --- 3-Box Credential Layout --- */
.credentials-grid--three {
    grid-template-columns: repeat(3, 1fr);
}
.credential-card--workflow {
    border-top: 2px solid rgba(var(--c-blue-rgb), 0.3);
    padding: 1.75rem 1.5rem;
}
.credential-card--workflow .credential-icon {
    color: var(--c-blue);
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}
@media (max-width: 900px) {
    .credentials-grid--three {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
}

/* --- AI-Powered Template Card (OpenClaw) --- */
.template-card--featured {
    border-color: rgba(var(--c-purple-rgb), 0.35);
    background: linear-gradient(135deg, rgba(var(--c-purple-rgb), 0.08), rgba(var(--c-violet-rgb), 0.04));
    box-shadow: 0 0 40px rgba(var(--c-violet-rgb), 0.1);
}
.template-card--featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 50px rgba(var(--c-violet-rgb), 0.3);
    border-color: rgba(var(--c-purple-rgb), 0.6);
}
.template-card--featured:hover .template-icon--ai {
    text-shadow: 0 0 30px rgba(var(--c-purple-rgb), 0.8);
    transform: scale(1.15) rotate(-5deg);
}
.template-icon--ai {
    color: var(--c-purple);
    text-shadow: 0 0 20px rgba(var(--c-purple-rgb), 0.4);
}
.template-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--c-violet), var(--c-purple));
    color: var(--cine-text);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.download-btn--ai {
    border-color: var(--c-purple);
}
.download-btn--ai::before {
    background: linear-gradient(135deg, var(--c-violet), var(--c-purple));
}
.download-btn--ai:hover {
    box-shadow: 0 0 20px rgba(var(--c-purple-rgb), 0.5);
}

/* --- OpenClaw Section Enhancements --- */
.openclaw-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
}
.btn-guide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(var(--c-purple-rgb), 0.12);
    border: 1px solid rgba(var(--c-purple-rgb), 0.4);
    color: var(--c-purple-light);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-guide:hover {
    background: rgba(var(--c-purple-rgb), 0.22);
    border-color: rgba(var(--c-purple-rgb), 0.7);
    box-shadow: 0 0 18px rgba(var(--c-purple-rgb), 0.25);
    color: var(--cine-text);
}

/* Terminal card visual */
.openclaw-visual-card {
    background: var(--media-scrim-mid);
    border: 1px solid rgba(var(--c-purple-rgb), 0.25);
    border-radius: 14px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(var(--c-violet-rgb), 0.15);
    position: relative;
}
.ocv-header {
    background: var(--cine-glass-soft);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--cine-glass-soft);
}
.ocv-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.ocv-dot.red    { background: #ff5f57; }
.ocv-dot.yellow { background: #febc2e; }
.ocv-dot.green  { background: #28c840; }
.ocv-title {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    margin-left: 6px;
    font-family: 'Poppins', sans-serif;
}
.ocv-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 130px;
}
.ocv-line { color: rgba(255,255,255,0.55); margin: 0; }
.ocv-out  { color: var(--c-green); padding-left: 14px; }
.ocv-out::before { content: '→ '; color: rgba(var(--c-green-rgb), 0.5); }
.ocv-blink { color: rgba(255,255,255,0.55); }
.ocv-prompt { color: var(--c-purple); margin-right: 6px; }
.ocv-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--c-purple);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ocv-badge {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(var(--c-emerald-rgb), 0.15);
    border: 1px solid rgba(var(--c-emerald-rgb), 0.3);
    color: var(--c-green);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/*===============================================================
  HERO STATS — staggered entrance + number pop on load.
  (Stats bar is above the fold, so it animates on load. Pointer
  line/dot draw-in already handled by .auto-product-section.active.)
===============================================================*/
@keyframes auto-stat-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes auto-stat-pop {
    0%   { transform: scale(0.7); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}
.auto-hero-stats .auto-stat {
    animation: auto-stat-in 0.6s var(--ease-out) both;
}
.auto-hero-stats .auto-stat:nth-child(1) { animation-delay: 0.20s; }
.auto-hero-stats .auto-stat:nth-child(3) { animation-delay: 0.34s; }
.auto-hero-stats .auto-stat:nth-child(5) { animation-delay: 0.48s; }
.auto-hero-stats .auto-stat-num {
    display: inline-block;
    animation: auto-stat-pop 0.55s var(--ease-out) both;
}
.auto-hero-stats .auto-stat:nth-child(1) .auto-stat-num { animation-delay: 0.34s; }
.auto-hero-stats .auto-stat:nth-child(3) .auto-stat-num { animation-delay: 0.48s; }
.auto-hero-stats .auto-stat:nth-child(5) .auto-stat-num { animation-delay: 0.62s; }
.auto-hero-stats .auto-stat-divider {
    animation: auto-stat-in 0.6s var(--ease-out) 0.3s both;
}
@media (prefers-reduced-motion: reduce) {
    .auto-hero-stats .auto-stat,
    .auto-hero-stats .auto-stat-num,
    .auto-hero-stats .auto-stat-divider { animation: none; }
}

/* ============================================================
   LIGHT THEME — "slide" the dark bg video into a light backdrop
   (this hero has no native -light video clip, so we brighten the
   footage and lay a light scrim over it, then darken hero text so
   it stays readable). The node overlay switches to dark ink itself.
   ============================================================ */
[data-theme="light"] .auto-bg-video {
    filter: brightness(1.55) contrast(1.02) saturate(0.92);
}
[data-theme="light"] .video-overlay {
    background: linear-gradient(to bottom,
        rgba(237, 240, 245, 0.82),
        rgba(237, 240, 245, 0.66),
        rgba(237, 240, 245, 0.90));
}
[data-theme="light"] .auto-hero-content { color: #1a1f2b; }
[data-theme="light"] .auto-hero-content h1 {
    background: linear-gradient(to right, #12161f, #454c5b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .auto-hero-content > p { color: #2a3140; opacity: 0.96; }
