/* 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, rgba(0,0,0,0.6), transparent, rgba(0,0,0,0.8));
    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: 100vh;
    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: linear-gradient(to right, #fff, #bbb);
    -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.25rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* --- Hero Stats Bar --- */
.auto-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    padding: 16px 36px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.auto-stat-num {
    font-family: 'Kiona', sans-serif;
    font-size: 1.8rem;
    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: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    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: 1.5rem 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: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.auto-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.auto-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--first-color);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.15), inset 0 0 20px rgba(255, 51, 51, 0.05);
}

.auto-tab.active i {
    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: 2rem 0 6rem 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: 4rem;
    margin-bottom: 4rem;
}

.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: 1;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.05);

    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: #fff; /* White Title */
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.auto-product-content p {
    font-size: 1.1rem;
    color: #fff; /* White Text */
    margin-bottom: 2rem;
    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: 320px;
    height: 320px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    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: 6rem;
    color: var(--first-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    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(255, 51, 51, 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: #fff;
    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; }
}

/* --- Product Section Tag Badge --- */
.auto-prod-tag {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--first-color);
    background: hsl(355 70% 58% / 0.08);
    border: 1px solid hsl(355 70% 58% / 0.30);
    border-radius: 20px;
    padding: 4px 12px;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.auto-prod-tag--special {
    color: hsl(45 100% 65%);
    background: hsl(45 100% 65% / 0.08);
    border-color: hsl(45 100% 65% / 0.35);
}

.auto-prod-tag--openclaw {
    color: hsl(175, 70%, 55%);
    background: hsla(175, 70%, 55%, 0.08);
    border-color: hsla(175, 70%, 55%, 0.35);
}

.auto-prod-tag--science {
    color: hsl(210, 80%, 65%);
    background: hsla(210, 80%, 65%, 0.08);
    border-color: hsla(210, 80%, 65%, 0.35);
}

.auto-prod-tag--it {
    color: hsl(150, 70%, 55%);
    background: hsla(150, 70%, 55%, 0.08);
    border-color: hsla(150, 70%, 55%, 0.35);
}

.auto-prod-tag--marketing {
    color: hsl(270, 70%, 65%);
    background: hsla(270, 70%, 65%, 0.08);
    border-color: hsla(270, 70%, 65%, 0.35);
}

/* --- Feature List inside product content --- */
.auto-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    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 {
    color: var(--first-color);
    font-size: 1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(255,102,102,0.4));
}

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

.auto-cta-card {
    text-align: center;
    max-width: 700px;
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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: 3rem;
    color: var(--first-color);
    display: block;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(255, 51, 51, 0.4);
}

.auto-cta-card h2 {
    font-family: 'Kiona', sans-serif;
    font-size: 2rem;
    color: #fff;
    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: 2rem;
}

.auto-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--first-color);
    color: #fff;
    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(255, 51, 51, 0.3);
}

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

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

.consulting-intro-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.consulting-intro-content h2 {
    font-family: 'Kiona', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.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: 4rem 0 2rem;
    position: relative;
    z-index: 5;
}

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

.credential-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    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 rgba(0, 0, 0, 0.3);
}

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

.credential-card h3 {
    font-family: 'Kiona', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    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 {
    margin-top: 5vh;
    padding-bottom: 8vh;
    background: rgba(0,0,0,0.6);
    padding: 6rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 5;
}

.section-title {
    font-family: 'Kiona', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

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

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

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

.template-icon {
    font-size: 3.5rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s ease;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

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

.template-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
    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: #fff;
    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(255, 51, 51, 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: 1.5rem;
}

/* --- 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: 3rem;
    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: 80vh;
    }

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

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

    .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: 3rem 1.5rem;
    }

    .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(99, 179, 237, 0.3);
    padding: 2.5rem 2rem;
}
.credential-card--workflow .credential-icon {
    color: #63b3ed;
    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(167, 139, 250, 0.35);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(139, 92, 246, 0.04));
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}
.template-card--featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 50px rgba(139, 92, 246, 0.3);
    border-color: rgba(167, 139, 250, 0.6);
}
.template-card--featured:hover .template-icon--ai {
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.8);
    transform: scale(1.15) rotate(-5deg);
}
.template-icon--ai {
    color: #a78bfa;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}
.template-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    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: #a78bfa;
}
.download-btn--ai::before {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}
.download-btn--ai:hover {
    box-shadow: 0 0 20px rgba(167, 139, 250, 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(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #c4b5fd;
    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(167, 139, 250, 0.22);
    border-color: rgba(167, 139, 250, 0.7);
    box-shadow: 0 0 18px rgba(167, 139, 250, 0.25);
    color: #fff;
}

/* Terminal card visual */
.openclaw-visual-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(167, 139, 250, 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(139, 92, 246, 0.15);
    position: relative;
}
.ocv-header {
    background: rgba(255,255,255,0.06);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.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: #86efac; padding-left: 14px; }
.ocv-out::before { content: '→ '; color: rgba(134, 239, 172, 0.5); }
.ocv-blink { color: rgba(255,255,255,0.55); }
.ocv-prompt { color: #a78bfa; margin-right: 6px; }
.ocv-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: #a78bfa;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ocv-badge {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
