:root {
    --bg-color: #050505;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #050505 100%);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-marketing: #FF7B7B;
    /* Soft Red/Pink for Marketing */
    --accent-automation: #7BFFB8;
    /* Green for Automation */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --glow-marketing: radial-gradient(circle at 50% 50%, rgba(255, 123, 123, 0.15), transparent 70%);
    --glow-automation: radial-gradient(circle at 50% 50%, rgba(123, 255, 184, 0.15), transparent 70%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ambient Glow Backgrounds */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
}

.ambient-glow.marketing-glow {
    background: var(--glow-marketing);
}

.ambient-glow.automation-glow {
    background: var(--glow-automation);
}

.ambient-glow.active {
    opacity: 1;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Toggle */
header {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.toggle-container {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-radius: 100px;
    padding: 5px;
    display: flex;
    position: relative;
    width: 340px;
    height: 50px;
}

.toggle-bg {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 165px;
    height: 40px;
    background: var(--text-primary);
    border-radius: 100px;
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* State for toggle position */
.toggle-container.automation-active .toggle-bg {
    transform: translateX(165px);
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 2;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.toggle-btn.active {
    color: var(--bg-color);
}

/* Main Content Sections */
main {
    padding: 40px 0 100px;
    min-height: 80vh;
}

.page-section {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

/* Hero Styles */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.cta-marketing {
    background: var(--accent-marketing);
    color: #000;
}

.cta-automation {
    background: var(--accent-automation);
    color: #000;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.magnetic-btn {
    transition: transform 0.1s linear, box-shadow 0.2s;
}

/* Content Marketing Specifics */
/* Stacked Grid Layout (Marketing & Automation) */
/* Stacked Grid Layout (Marketing & Automation) */
.marketing-grid,
.automation-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 480px;
    /* Added space for scaled card */
    margin: 40px 0 60px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 340px;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* Hardware acceleration for smooth scale */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, height, opacity;
}

/* Base Transforms for "Spread" Stack */
/* Base Transforms for "Spread" Stack */
/* Base Transforms for "Spread" Stack */
.card.pos-left {
    transform: translateX(-240px) translateY(20px) rotate(-6deg) scale(0.95);
    z-index: 1;
    opacity: 0.9;
    cursor: pointer;
}

.card.pos-center {
    transform: translateX(0) translateY(-30px) rotate(0deg) scale(1.15);
    /* Scale instead of width change prevents reflow */
    /* width: 340px; Inherited */
    height: 380px;
    z-index: 100;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    opacity: 1;
    cursor: default;
    border-color: rgba(255, 255, 255, 0.2);
}

.card.pos-right {
    transform: translateX(240px) translateY(20px) rotate(6deg) scale(0.95);
    z-index: 1;
    opacity: 0.9;
    cursor: pointer;
}

/* Card Details Reveal */
.card-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.85rem;
    color: white;
    margin-top: 0;
    line-height: 1.4;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
}

.card.pos-center .card-details {
    max-height: 200px;
    /* Increased for list */
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
}

/* Checklist Styles */
.card-details ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.card-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-details li::before {
    content: '✓';
    font-weight: 800;
    font-size: 1.1em;
}

/* Comparison Section Styles */
.comparison-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* Increased gap/spacing */
}

.comparison-card {
    /* Removed background, border, box-shadow for text-only look */
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.3s ease;
    position: relative;
    overflow: visible;
    /* Changed from hidden to visible */
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin: 20px 0;
    font-weight: 600;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    /* Keep secondary text color */
    line-height: 1.6;
    font-size: 1.1rem;
    /* Slightly larger text */
}

/* Custom bullet points using pseudo-elements */
.comparison-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: currentColor;
    font-size: 1.2em;
    line-height: 1.4;
}



.card-danger .icon-box {
    color: #FF7B7B;
    background: transparent;
    width: auto;
    height: auto;
    display: inline-block;
    margin-bottom: 10px;
}

.card-danger .icon-box svg {
    width: 32px;
    height: 32px;
}

.card-danger li::before {
    content: '';
    /* Remove default bullet */
    width: 6px;
    height: 6px;
    background: #FF7B7B;
    border-radius: 50%;
    top: 10px;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Checklist Colors matching card theme */
.card-pink .card-details li::before {
    color: #FF7B7B;
}

.card-yellow .card-details li::before {
    color: #FFD27B;
}

.card-green .card-details li::before {
    color: #7BFFB8;
}

/* Hover Effects */
.card.pos-left:hover {
    transform: translateX(-250px) translateY(15px) rotate(-8deg) scale(0.98);
    background: var(--glass-border);
}

.card.pos-right:hover {
    transform: translateX(250px) translateY(15px) rotate(8deg) scale(0.98);
    background: var(--glass-border);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Specific Card Themes */
.card-pink {
    background: linear-gradient(145deg, rgba(255, 123, 123, 0.08), rgba(0, 0, 0, 0.2));
}

.card-yellow {
    background: linear-gradient(145deg, rgba(255, 237, 123, 0.08), rgba(0, 0, 0, 0.2));
}

.card-green {
    background: linear-gradient(145deg, rgba(123, 255, 184, 0.08), rgba(0, 0, 0, 0.2));
}

.card-pink:hover {
    box-shadow: 0 10px 50px -10px rgba(255, 123, 123, 0.3);
}

.card-yellow:hover {
    box-shadow: 0 10px 50px -10px rgba(255, 237, 123, 0.3);
}

.card-green:hover {
    box-shadow: 0 10px 50px -10px rgba(123, 255, 184, 0.3);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Specific Card Themes */
.card-pink {
    background: linear-gradient(145deg, rgba(255, 123, 123, 0.05), rgba(0, 0, 0, 0));
}

.card-yellow {
    background: linear-gradient(145deg, rgba(255, 237, 123, 0.05), rgba(0, 0, 0, 0));
}

.card-green {
    background: linear-gradient(145deg, rgba(123, 255, 184, 0.05), rgba(0, 0, 0, 0));
}


/* Vision Section Styles */
.vision-marquee {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

.marquee-left .marquee-track {
    animation: visionScrollLeft 50s linear infinite;
}

.marquee-right .marquee-track {
    animation: visionScrollRight 55s linear infinite;
}

@keyframes visionScrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes visionScrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.vision-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.vision-card img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

/* Client Specifics: Pill Shape */
.client-card {
    border-radius: 50px;
    padding: 6px 20px 6px 6px;
    min-width: 200px;
}

.client-card .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.client-card .rating {
    color: #FFD700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Team Specifics: Rectangular with Theme */
.team-card {
    border-radius: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    min-width: 220px;
}

.team-card .name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.team-card .role {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 2px;
}

/* Team Themes */
.team-card.theme-green {
    border-color: rgba(123, 255, 184, 0.4);
    box-shadow: 0 4px 20px rgba(123, 255, 184, 0.1);
}

.team-card.theme-green .role {
    color: #7BFFB8;
}

.team-card.theme-purple {
    border-color: rgba(224, 195, 252, 0.4);
    box-shadow: 0 4px 20px rgba(224, 195, 252, 0.1);
}

.team-card.theme-purple .role {
    color: #E0C3FC;
}

.team-card.theme-orange {
    border-color: rgba(255, 210, 123, 0.4);
    box-shadow: 0 4px 20px rgba(255, 210, 123, 0.1);
}

.team-card.theme-orange .role {
    color: #FFD27B;
}

.team-card.theme-blue {
    border-color: rgba(160, 255, 230, 0.4);
    box-shadow: 0 4px 20px rgba(160, 255, 230, 0.1);
}

.team-card.theme-blue .role {
    color: #A0FFE6;
}

/* Vision Marquee - Enhanced Padding for Hover Lift */
.vision-marquee {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    padding: 30px 0;
    /* Significant padding to prevent clipping of scale(1.05) */
    margin: 20px 0;
}

/* Generic Hover for Client Cards Only */
.client-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

/* Legacy hover styles removed */

.team-card:hover .team-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.team-bio {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.4;
    display: block;
}

.portfolio-btn {
    display: block;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.portfolio-btn:hover {
    background: #fff;
    color: #000;
}

/* AI Automation Specifics */
/* Automation grid uses shared styles with Marketing Grid now */


.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 50px;
    bottom: 50px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-automation), transparent);
    z-index: 0;
}

.step {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Gradient Text */
.gradient-text-marketing {
    background: linear-gradient(90deg, #FF7B7B, #FFD27B);
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-automation {
    background: linear-gradient(90deg, #7BFFB8, #7BD2FF);
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 800px;
    margin: 30px auto 0;
    opacity: 0.7;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding: 0 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.separator {
    opacity: 0.3;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 80px 0 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 15vw;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

footer p {
    position: relative;
    z-index: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .toggle-container {
        width: 300px;
    }

    .toggle-bg {
        width: 145px;
    }

    .toggle-container.automation-active .toggle-bg {
        transform: translateX(145px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .marketing-grid,
    .automation-grid {
        flex-direction: column;
        height: auto;
        gap: 30px;
        display: flex;
        /* Ensure flex is set */
    }

    .card {
        position: relative !important;
        transform: none !important;
        width: 100%;
        margin: 0 !important;
        left: auto !important;
        top: auto !important;
    }

    .card.pos-left,
    .card.pos-center,
    .card.pos-right {
        transform: none !important;
        /* Reset stack transforms */
    }

    .process-steps::before {
        left: 20px;
    }

    .step {
        flex-direction: column;
        gap: 15px;
    }

    .marquee-container {
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
}

/* Team Card Overlay - "Pop Out" */
/* Team Card Hover - Simple Scale */
.team-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    /* Ensure no text selection on rapid clicks */
    user-select: none;
}

.team-card:hover {
    /* Reduced scale slightly to avoid aggression and clipping */
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    background: rgba(30, 30, 30, 0.9);
    /* Visual boost */
}

/* Modal Styles */
.team-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.team-modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.team-modal {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    /* Prevent overflow on small screens */
    overflow-y: auto;
    /* Scroll internal content if needed */
    padding: 40px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 1);
    text-align: center;
    box-sizing: border-box;
}

.team-modal-backdrop.active .team-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.modal-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.modal-role {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
}

.modal-bio {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-action {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-action:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Process Steps Section */
.process-section {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.5;
    font-weight: 600;
    min-width: 30px;
    padding-top: 5px;
}

.step-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex: 1;
}

.step-icon {
    background: rgba(255, 255, 255, 0.05);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .step-content {
        flex-direction: column;
    }

    .process-step {
        align-items: flex-start;
    }
}

/* ROI Calculator Section */
.roi-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.roi-calculator {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Add a subtle green glow effect */
.roi-calculator::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.roi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.roi-header h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
}

.icon-box-small {
    background: rgba(0, 255, 136, 0.1);
    color: var(--color-accent);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roi-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Inputs Column */
.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group label span {
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

/* Custom Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range]:focus {
    outline: none;
}

/* Webkit Slider Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Webkit Slider Thumb */
input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
    /* Centers thumb on track */
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Mozilla Slider Track */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Mozilla Slider Thumb */
input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.roi-note {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Outputs Column */
.roi-outputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.output-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.output-card:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.output-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.output-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.output-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.output-value {
    font-size: 1.8rem;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 500;
}

@media (max-width: 768px) {
    .roi-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .roi-calculator {
        padding: 25px;
    }
}

/* ROI Comparison & CTA */
.roi-comparison {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bar-label {
    width: 100px;
    font-size: 0.9rem;
    color: #aaa;
    text-align: right;
}

.bar-track {
    flex-grow: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #444;
    /* Default for "Without Us" */
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.bar-value {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 600;
    font-family: var(--font-heading);
}

.without-us .bar-fill {
    background: #333;
}

.with-us .bar-fill {
    background: var(--color-accent);
    /* Green */
}

/* Content Marketing Overrides */
#content-marketing-section .with-us .bar-fill {
    background: #4081ec;
    /* Blue */
}

.roi-cta {
    margin-top: 40px;
    text-align: center;
}

.roi-cta p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-roi {
    background: #fff;
    color: #000;
    padding: 15px 30px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-roi:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Architecture of Flow Section */
.flow-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-section h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.flow-section h2 span {
    color: #fff;
    font-weight: 600;
}

.flow-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    flex-wrap: wrap;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 160px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Stagger delays handled by .reveal logic or custom here if needed */
.flow-node.active {
    opacity: 1;
    transform: translateY(0);
}

.icon-box-glow {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    /* Default to automation green */
    position: relative;
    background: rgba(0, 20, 10, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.flow-node:hover .icon-box-glow {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.8);
}

.flow-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
    line-height: 1.4;
}

/* Specific theme colors */
#content-marketing-section .icon-box-glow {
    border-color: rgba(64, 129, 236, 0.3);
    color: #4081ec;
    background: rgba(10, 20, 40, 0.3);
}

#content-marketing-section .flow-node:hover .icon-box-glow {
    box-shadow: 0 0 30px rgba(64, 129, 236, 0.2);
    border-color: rgba(64, 129, 236, 0.8);
}

/* Connector Lines */
.flow-container::before {
    content: '';
    position: absolute;
    top: 40px;
    /* Center of icon box (80px height) */
    left: 80px;
    /* Start after first half width? No, this is tricky with flex. Let's try a simpler approach if needed. */
    right: 80px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%);
    z-index: -1;
}

@media (max-width: 900px) {
    .flow-container {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        /* More gap for vertical flow */
    }

    .flow-container::before {
        width: 1px;
        height: 100%;
        left: 50%;
        top: 0;
        bottom: 0;
        right: auto;
        background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }

    .flow-node {
        width: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 30px;
    }

    .flow-label {
        text-align: left;
        width: 150px;
    }
}

/* Results/Impact Section */
.results-section {
    padding: 60px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.result-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.result-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 5px;
}

#ai-automation-section .result-icon {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

#content-marketing-section .result-icon {
    color: #4081ec;
    background: rgba(64, 129, 236, 0.05);
}


.result-metric {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
    margin-bottom: 5px;
}

.result-desc {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
    flex-grow: 1;
}

.result-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.result-bar {
    height: 100%;
    background: #00ff88;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animate bar when card is revealed */
.result-card.revealed .result-bar {
    transform: scaleX(1);
}

/* Make sure .revealed is applied via JS scroll logic or just rely on .reveal */
.reveal.active .result-bar {
    transform: scaleX(1);
}

#content-marketing-section .result-bar {
    background: #4081ec;
}

/* Transition to Flow Section */
.transition-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.transition-subtitle {
    color: #888;
    margin-bottom: 40px;
    font-size: 1rem;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: ew-resize;
    user-select: none;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-before {
    z-index: 1;
}

.comparison-after {
    z-index: 2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    /* Start at 50% */
}

/* Simulated UI Grid */
.simulated-ui-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.ui-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 80%;
}

.ui-line.short {
    width: 50%;
}

/* Manual State Styling */
.grid-manual .ui-card {
    opacity: 0.4;
    filter: blur(0.5px);
    transform: rotate(1deg);
    /* Slight chaos */
}

.overlay-dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dim the 'before' side */
    pointer-events: none;
}

/* AI Flow State Styling */
.grid-ai .ui-card {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.grid-ai .ui-line {
    background: rgba(0, 255, 136, 0.2);
}

.grid-ai .ui-accent {
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 136, 0.4);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Content Labels */
.comparison-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 40%;
    padding: 20px;
    z-index: 5;
}

.content-before {
    left: 5%;
}

.content-after {
    right: 5%;
}

.comparison-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.comparison-content p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.content-before h3 {
    color: #888;
}

.content-after h3 {
    color: #00ff88;
}

/* Default green for AI Automation */

.icon-stack,
.icon-bolt {
    margin-bottom: 15px;
    opacity: 0.8;
}

.content-before .icon-stack {
    color: #888;
}

.content-after .icon-bolt {
    color: #00ff88;
}


/* Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    /* Start at 50% */
    width: 4px;
    background: #00ff88;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    pointer-events: none;
    /* Let parent handle interaction */
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

/* Content Marketing Specifics */
#content-marketing-section .grid-ai .ui-card {
    background: rgba(64, 129, 236, 0.05);
    border-color: rgba(64, 129, 236, 0.2);
    box-shadow: 0 0 20px rgba(64, 129, 236, 0.05);
}

#content-marketing-section .grid-ai .ui-line {
    background: rgba(64, 129, 236, 0.2);
}

#content-marketing-section .grid-ai .ui-accent {
    background: rgba(64, 129, 236, 0.4);
    box-shadow: 0 0 10px rgba(64, 129, 236, 0.4);
}

#content-marketing-section .content-after h3 {
    color: #4081ec;
}

#content-marketing-section .content-after .icon-bolt {
    color: #4081ec;
}

#content-marketing-section .slider-handle {
    background: #4081ec;
    box-shadow: 0 0 15px rgba(64, 129, 236, 0.5);
}

#content-marketing-section .handle-circle {
    background: #4081ec;
    box-shadow: 0 0 20px rgba(64, 129, 236, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-slider {
        height: 350px;
    }

    .comparison-content h3 {
        font-size: 1.2rem;
    }

    .comparison-content {
        width: 35%;
    }

    .handle-circle {
        width: 32px;
        height: 32px;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.faq-left {
    position: sticky;
    top: 100px;
}

.faq-header h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Support Card */
.faq-support-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.support-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
}

.faq-support-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.faq-support-card p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.cta-faq {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.cta-faq:hover {
    background: #fff;
    color: #000;
}

/* FAQ Accordion */
.faq-item {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 30, 30, 0.5);
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #eee;
    user-select: none;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #888;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    padding-bottom: 25px;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

/* Active State */
.faq-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    color: #fff;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Approximate max height */
    opacity: 1;
}

/* Section Specific Colors */
#content-marketing-section .faq-tag {
    color: #4081ec;
    border-color: rgba(64, 129, 236, 0.3);
    background: rgba(64, 129, 236, 0.05);
}

#content-marketing-section .support-icon {
    color: #4081ec;
    background: rgba(64, 129, 236, 0.1);
}

#ai-automation-section .faq-tag {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

#ai-automation-section .support-icon {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-left {
        position: static;
        text-align: center;
    }

    .faq-support-card {
        max-width: 400px;
        margin: 20px auto 0;
        text-align: left;
    }
}

/* --- FAQ Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    /* Changed from just opactiy to display flex when active */
    opacity: 1;
}

.modal-content {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #fff;
    text-align: center;
}

.modal-content p {
    color: #888;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(64, 129, 236, 0.5);
    background: rgba(64, 129, 236, 0.05);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Success Message State */
.modal-content.success {
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 20px;
}

/* Ask Question Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

.ask-header {
    text-align: center;
    margin-bottom: 25px;
}

.ask-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.ask-header p {
    color: #888;
    font-size: 0.9rem;
}

/* ROI Popup */
/* ROI Popup Enhanced */
/* ROI Popup Enhanced v2 */
.roi-popup {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Increased padding and Min Width */
    padding: 24px 32px;
    min-width: 360px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    /* Initial state for pop animation */
    transform: translateY(40px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring transition */
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.roi-popup::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Base Pulse */
@keyframes attentionPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    }
}

.roi-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    /* Gentle attention grabber loop */
    animation: attentionPulse 4s infinite ease-in-out;
}

.roi-popup-icon {
    width: 50px;
    /* Bigger Icon */
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.roi-popup-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.roi-popup-content h4 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    /* Larger Title */
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.roi-popup-content p {
    margin: 4px 0 0 0;
    color: #aaa;
    font-size: 0.9rem;
    /* Larger Desc */
    font-weight: 400;
}

/* Content Mode Styles (Blue/Purple) */
.roi-popup.mode-content {
    border-color: rgba(64, 129, 236, 0.4);
}

.roi-popup.mode-content.visible {
    box-shadow: 0 20px 60px rgba(64, 129, 236, 0.15);
}

.roi-popup.mode-content .roi-popup-icon {
    background: linear-gradient(135deg, rgba(64, 129, 236, 0.2), rgba(162, 89, 255, 0.2));
    color: #4081ec;
    box-shadow: 0 0 20px rgba(64, 129, 236, 0.3);
}

/* Automation Mode Styles (Cyan/Green) */
.roi-popup.mode-automation {
    border-color: rgba(0, 255, 136, 0.4);
}

.roi-popup.mode-automation.visible {
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.15);
}

.roi-popup.mode-automation .roi-popup-icon {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 200, 255, 0.2));
    color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.roi-popup:hover {
    transform: translateY(-5px) scale(1.03) !important;
    /* Override animation transform */
    border-color: rgba(255, 255, 255, 0.4);
}

.roi-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.roi-popup-close:hover {
    background: #FF7B7B;
    color: #fff;
    transform: rotate(90deg);
}