/* InnovAIte Solutions - Unified Modern Aesthetic v8 */

:root {
    --bg-dark: #000000;
    --card-bg: rgba(30, 30, 30, 0.7);
    --primary: #55CDFC;
    --accent: #F7A8B8;
    --accent-dim: rgba(247, 168, 184, 0.1);
    --text-main: #FFFFFF;
    --text-dim: #aaaaaa;
    --border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Screen-reader only — accessible labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
}

section {
    padding: 5rem 0;
}

/* --- Background --- */

.background-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #000;
}

.grid-lines {
    position: absolute;
    inset: -50%;
    background-image: 
        linear-gradient(rgba(85, 205, 252, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 205, 252, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    from { transform: perspective(500px) rotateX(60deg) translateY(0); }
    to { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

/* Floating Particles */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    opacity: 0.5;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh);
        opacity: 0;
    }
    5% {
        opacity: 0.5;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-20vh);
        opacity: 0;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .grid-lines,
    .particle,
    .fade-in-section,
    .gradient-orb {
        animation: none !important;
        transition: none !important;
    }
    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--accent); bottom: -50px; left: -50px; }

/* --- Navigation --- */

nav:not(.toc) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .ai-accent {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-main); }

.nav-cta {
    background: var(--primary);
    color: #000 !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent) !important;
    color: #000 !important;
}

/* Hamburger menu icon — hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */

.hero {
    text-align: center;
    padding: 4rem 0 6rem;
}

.hero.small-hero {
    padding: 3rem 0 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
        line-height: 1.15;
        margin-bottom: 1rem;
    }
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: 0.9rem;
    color: var(--text-dim);
    opacity: 0.8;
}

/* --- Buttons --- */

.btn-primary, .btn-secondary, .btn-small {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(85, 205, 252, 0.3);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-secondary:hover { background: rgba(255,255,255,0.05); }

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* --- Components --- */

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.audit-card {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    max-width: 900px;
    margin: 4rem auto;
}

.audit-icon { font-size: 3.5rem; margin-bottom: 1.5rem; filter: drop-shadow(0 0 10px var(--primary)); }

.audit-includes {
    text-align: left;
    display: inline-block;
    margin: 1.5rem 0 2rem;
    list-style: none;
}

.audit-includes li { margin: 0.8rem 0; color: var(--text-dim); }

/* --- Grids --- */

.service-grid, .why-us-grid, .pricing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Z Fold 4 front & narrow screens: force single column */
@media (max-width: 400px) {
    .service-grid, .why-us-grid, .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-card, .pricing-card {
        min-height: auto;
        padding: 1.5rem;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Override for service detail pages that need exactly 3 columns */
.service-content .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
    .service-content .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.service-card, .why-us-card, .pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 440px;
}

.service-card:hover, .pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(85, 205, 252, 0.4);
}

.why-us-card {
    cursor: default;
    min-height: auto;
}

.featured { border-color: var(--primary); }

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.service-icon, .why-us-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3, .pricing-card h3 { margin-bottom: 0.5rem; }

.service-features, .pricing-card ul.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-dim);
    flex-grow: 1;
}

.service-features li, .pricing-card ul li { margin: 0.5rem 0; }

.service-price, .pricing-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.service-pricing-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.service-setup {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
}

.price-monthly {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: -0.25rem 0 1rem;
    font-weight: 500;
}

.article-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* --- Industries --- */

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.industry-tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* --- Articles / Insights --- */

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Newsletter --- */

.newsletter-signup {
    background: linear-gradient(135deg, rgba(85,205,252,0.1) 0%, rgba(247,168,184,0.1) 100%);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.newsletter-signup h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.newsletter-signup p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

#newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

#newsletter-form input {
    flex: 1;
}

.newsletter-note {
    font-size: 0.8rem !important;
    opacity: 0.7;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

@media (max-width: 600px) {
    #newsletter-form { flex-direction: column; }
    .newsletter-signup { padding: 1.5rem; }
}

/* --- Articles Grid --- */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 400px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .main-articles-grid .article-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .main-articles-grid .article-card .article-tag {
        width: auto;
        grid-row: auto;
        text-align: left;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}

.article-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

.main-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .main-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1023px) {
    .main-articles-grid .article-card {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;
    }

    .main-articles-grid .article-card .article-tag {
        grid-row: 1 / 3;
        margin-bottom: 0;
        width: 80px;
        text-align: center;
    }

    .main-articles-grid .article-card h3 {
        margin-bottom: 0.25rem;
        font-size: 1.1rem;
    }

    .main-articles-grid .article-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }
    
    .main-articles-grid .article-card .article-link {
        font-size: 0.8rem;
    }
}

.article-tag {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.article-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.article-link:hover {
    text-decoration: underline;
}

/* --- Contact --- */

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

@media (max-width: 480px) {
    #contact-form {
        padding: 0 0.5rem;
    }
    input, select, textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

input, select, textarea {
    background: #111; /* Solid dark background for inputs */
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    color: #fff;
    width: 100%;
}

select option {
    background: #111;
    color: #fff;
}

textarea { min-height: 120px; }

/* --- Footer --- */

footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a { text-decoration: none; color: var(--text-dim); font-size: 0.8rem; }

/* --- Modal / Popups --- */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    margin: 10% auto;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 30px rgba(85, 205, 252, 0.2);
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        padding: 2rem 1.25rem;
        width: 95%;
        border-radius: 16px;
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dim);
}

.modal-list {
    list-style: none;
    margin: 2rem 0;
}

.modal-list li {
    margin: 1rem 0;
    color: var(--text-dim);
}

.modal-footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.modal-footer p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.pricing-card {
    cursor: pointer;
}

/* ── Live Chat Widget (Premium Redesign) ── */

.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1500;
    font-family: 'Inter', sans-serif;
}

/* ── Floating Chat Bubble Button ── */

.chat-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #55CDFC 0%, #F7A8B8 100%);
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 8px 32px rgba(85, 205, 252, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    outline: none;
    font-family: inherit;
}

.chat-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.chat-toggle:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 40px rgba(85, 205, 252, 0.45);
}

.chat-toggle:active {
    transform: translateY(-1px) scale(0.98);
}

.chat-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    flex-shrink: 0;
}

.chat-toggle-label {
    font-size: 0.92rem;
    letter-spacing: 0.3px;
}

/* ── Chat Window ── */

.chat-widget .chat-window {
    display: none;
    flex-direction: column;
    width: 380px;
    height: 560px;
    background: rgba(18, 18, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(85, 205, 252, 0.25);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(85, 205, 252, 0.08),
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(85, 205, 252, 0.08);
    position: absolute;
    bottom: 80px;
    right: 0;
    animation: chatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

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

/* ── Chat Header ── */

.chat-header {
    background: linear-gradient(135deg, rgba(85, 205, 252, 0.08), rgba(247, 168, 184, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(85, 205, 252, 0.12);
    border-radius: 12px;
    flex-shrink: 0;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.chat-header-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #4ade80;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(74, 222, 128, 0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 2px rgba(74, 222, 128, 0.2); }
}

.chat-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.2s;
    line-height: 1;
    font-family: inherit;
}

.chat-close:hover {
    background: rgba(247, 168, 184, 0.15);
    border-color: rgba(247, 168, 184, 0.3);
    color: #F7A8B8;
}

/* ── Chat Messages Area ── */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}

/* ── Individual Messages ── */

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    animation: msgFadeIn 0.25s ease;
}

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

.chat-message.user {
    flex-direction: row-reverse;
}

/* Bot avatar icon */
.msg-avatar.bot-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(85, 205, 252, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 2px;
}

/* Bot message bubble */
.msg-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 4px;
    word-wrap: break-word;
}

.chat-message.bot .msg-bubble {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}

/* Bot greeting */
.bot-greeting {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.bot-wave {
    display: inline-block;
    animation: waveHand 0.6s ease 0.3s;
}

@keyframes waveHand {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(12deg); }
    75% { transform: rotate(-5deg); }
}

.bot-greeting strong {
    color: #fff;
    font-weight: 700;
}

.msg-bubble p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.msg-bubble strong {
    color: #55CDFC;
    font-weight: 600;
}

/* User message bubble */
.chat-message.user .msg-bubble {
    background: linear-gradient(135deg, #55CDFC, #3db8e8);
    color: #000;
    border: none;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

/* Typing bubble */
.typing-bubble {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom-left-radius: 4px !important;
    padding: 0.9rem 1rem !important;
    min-width: 50px;
}

/* ── Typing Dots ── */

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #55CDFC;
    border-radius: 50%;
    animation: typingBounce 1.3s infinite;
    opacity: 0.3;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-6px);
    }
}

/* ── Quick Replies ── */

.quick-replies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.75rem !important;
    background: transparent !important;
    border: none !important;
    flex-shrink: 0;
}

.quick-replies button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    color: var(--text-main);
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}

.quick-replies button svg {
    flex-shrink: 0;
    opacity: 0.6;
    color: #55CDFC;
}

.quick-replies button:hover {
    border-color: rgba(85, 205, 252, 0.4);
    background: rgba(85, 205, 252, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(85, 205, 252, 0.1);
}

.quick-replies button:active {
    transform: translateX(2px) scale(0.98);
}

/* ── Chat Input Row ── */

.chat-input-row {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.chat-input-row form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#chat-input-field {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

#chat-input-field::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

#chat-input-field:focus {
    border-color: rgba(85, 205, 252, 0.5);
    background: rgba(85, 205, 252, 0.04);
    box-shadow: 0 0 0 3px rgba(85, 205, 252, 0.06);
}

#chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #55CDFC, #3db8e8);
    color: #000;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(85, 205, 252, 0.25);
}

#chat-send-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(85, 205, 252, 0.35);
    background: linear-gradient(135deg, #66d9ff, #55CDFC);
}

#chat-send-btn:active {
    transform: translateY(0) scale(0.95);
}

#chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Chat CTA Footer ── */

.chat-cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    animation: msgFadeIn 0.3s ease;
}

.cta-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.chat-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, #55CDFC, #F7A8B8);
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(85, 205, 252, 0.25);
}

.chat-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 205, 252, 0.35);
}

.cta-arrow {
    transition: transform 0.2s;
}

.chat-cta-btn:hover .cta-arrow {
    transform: translateX(3px);
}

/* ── Responsive ── */

/* Collapse chat bubble on small mobile (Z Fold 4 front, 320-400px) */
@media (max-width: 420px) {
    .chat-toggle {
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
        gap: 0.4rem;
        bottom: 1rem !important;
        right: 1rem;
    }
    .chat-toggle-icon {
        width: 22px;
        height: 22px;
    }
    .chat-toggle-label {
        font-size: 0.78rem;
    }
    /* Prevent chat bubble from overlapping back-to-top button */
    #back-to-top {
        bottom: 5rem !important;
    }
}

/* Icon-only chat bubble for very narrow screens (Z Fold 4 front: 320px) */
@media (max-width: 360px) {
    .chat-toggle {
        padding: 0.65rem;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        justify-content: center;
        bottom: 1rem !important;
    }
    .chat-toggle-label {
        display: none;
    }
    .chat-toggle-icon {
        margin: 0;
    }
    /* Shift back-to-top above chat bubble */
    #back-to-top {
        bottom: 4.5rem !important;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 0;
        right: 0;
        left: 0;
    }

    .chat-toggle {
        position: fixed;
        bottom: 1.25rem;
        right: 1.25rem;
        border-radius: 50px;
        padding: 0.85rem 1.25rem;
        box-shadow: 0 8px 32px rgba(85, 205, 252, 0.4);
    }

    .chat-widget .chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        animation: mobileChatUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .chat-header {
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    }

    .chat-messages {
        padding-bottom: 0.5rem;
    }

    .chat-input-row {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .msg-bubble {
        max-width: 85%;
    }
}

/* ── Exit Intent Popup ── */

.exit-modal .modal-content {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(247, 168, 184, 0.15);
}

/* Back to Top Button — sits above the chat bubble */
#back-to-top {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    background: var(--primary);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(85, 205, 252, 0.3);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(85, 205, 252, 0.4);
}

@media (max-width: 480px) {
    #back-to-top {
        bottom: 4.5rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1.2rem;
    background: rgba(85, 205, 252, 0.05);
    border: 1px solid rgba(85, 205, 252, 0.2);
    border-radius: 50px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(85, 205, 252, 0.15);
    border-color: var(--primary);
    transform: translateX(-5px);
    color: #fff;
}

/* --- Stats Banner --- */

#stats {
    padding: 3rem 0;
}

.stats-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(85, 205, 252, 0.08) 0%, rgba(247, 168, 184, 0.08) 100%);
    border: 1px solid rgba(85, 205, 252, 0.2);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
    margin: 0 2rem;
}

/* --- Client Logo Bar --- */

#clients {
    padding: 2rem 0;
    text-align: center;
}

.trusted-by-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.logo-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    align-items: center;
}

.client-logo {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dim);
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
    cursor: default;
    white-space: nowrap;
}

.client-logo:hover {
    opacity: 0.9;
    filter: grayscale(0%);
}

/* --- Testimonials --- */

#testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.featured-testimonial {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(85, 205, 252, 0.05) 0%, rgba(247, 168, 184, 0.05) 100%);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

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

.author-business {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.stars {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* --- Trust Badges --- */

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
}

/* --- AI Agent Dashboard --- */

.agent-dashboard {
    background: linear-gradient(135deg, rgba(85,205,252,0.06) 0%, rgba(247,168,184,0.06) 100%);
    border: 1px solid rgba(85, 205, 252, 0.25);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.agent-dashboard-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.agent-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.agent-dashboard-title {
    color: var(--text-main);
    flex: 1;
}

.agent-live-badge {
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.agent-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.agent-metric {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
}

.agent-metric-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.agent-metric-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agent-dashboard-footer {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

/* --- Narrow screen text alignment fix --- */
@media (max-width: 480px) {
    .hero,
    .hero-content,
    .section-title,
    .section-subtitle,
    .pricing-note,
    footer,
    .audit-card {
        text-align: left;
    }
    .hero .hero-trust-bar { align-items: flex-start !important; }
    .section-subtitle { margin-left: 0; }
    .audit-includes { text-align: left; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    nav:not(.toc) { padding: 1rem 1.25rem; }
    .logo { font-size: 1.3rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; align-items: center; gap: 0.6rem; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; padding: 0.7rem 1.2rem; }
    .hero p { font-size: 0.95rem; padding: 0 0.5rem; }
    .hero-trust-bar { flex-direction: column; gap: 0.5rem !important; align-items: center; }
    .footer-links { flex-direction: column; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
    .footer-locations { line-height: 1.8 !important; }
    .footer-social { flex-direction: column; align-items: center; gap: 0.6rem; }
    .stats-banner {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    .stat-divider {
        width: 60px;
        height: 1px;
        margin: 0;
    }
    .stat-number { font-size: 2.2rem; }
    .logo-bar { gap: 1.5rem 2rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .hero-trust-bar { flex-direction: column; gap: 0.5rem !important; align-items: flex-start; }
}

@media (max-width: 400px) {
    .stats-banner {
        padding: 1.25rem 1rem;
        gap: 1.25rem;
        border-radius: 12px;
    }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.7rem; letter-spacing: 0.5px; }
    .section-title { font-size: 1.8rem; }
    section { padding: 3rem 0; }
    /* Sasha audit: footer locations stacking */
    .footer-locations {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        line-height: 1.6 !important;
    }
    /* Sasha audit: CTA buttons on ultra-narrow */
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0 0.5rem;
    }
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

/* Sasha audit: ultra-narrow screens (Z Fold 4 front = 320px) */
@media (max-width: 320px) {
    .hero h1 {
        font-size: clamp(1.4rem, 8vw, 1.8rem);
        line-height: 1.15;
    }
    .hero p {
        font-size: 0.85rem;
        padding: 0 0.25rem;
    }
    .hero-btns {
        padding: 0 0.25rem;
    }
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        padding: 0.7rem 0.75rem;
        font-size: 0.82rem;
        border-radius: 6px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .container {
        padding: 0 0.5rem;
    }
    nav:not(.toc) {
        padding: 0.75rem 0.75rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .chat-widget .chat-toggle {
        width: 48px;
        height: 48px;
        right: 10px;
        bottom: 10px;
    }
    .chat-toggle-label {
        display: none;
    }
    .chat-toggle-icon {
        font-size: 1.3rem;
    }
    .service-grid, .why-us-grid, .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Exit Intent Modal --- */

#exit-intent-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.exit-intent-content {
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    border-radius: 24px;
    padding: 3rem;
    max-width: 520px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 60px rgba(85, 205, 252, 0.25);
    animation: popIn 0.3s ease;
}

@media (max-width: 480px) {
    .exit-intent-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        width: 95%;
    }
    .exit-intent-content h2 { font-size: 1.4rem; }
    .exit-intent-form {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.exit-intent-icon { font-size: 3rem; margin-bottom: 1rem; }

.exit-intent-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.exit-intent-content p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.exit-intent-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.exit-intent-form input {
    flex: 1;
    background: #111;
    border: 1px solid var(--border);
    padding: 0.9rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.exit-intent-form input:focus { outline: none; border-color: var(--primary); }

.close-exit-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-exit-modal:hover { color: var(--text-main); }



/* --- AI Employee Dashboard Counter --- */

#ai-dashboard {
    padding: 2rem 0;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(85,205,252,0.08) 0%, rgba(247,168,184,0.06) 100%);
    border: 1px solid rgba(85, 205, 252, 0.25);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-icon { font-size: 2.5rem; }

.dashboard-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: left;
}

.dashboard-subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: left;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dash-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.dash-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.dash-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.dashboard-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.6;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .dash-number { font-size: 1.8rem; }
    .agent-dashboard { padding: 1.5rem 1rem; }
    .agent-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .agent-metric { padding: 1rem 0.5rem; }
    .agent-metric-value { font-size: 1.6rem; }
}

/* --- Case Study: Before/After --- */

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

.before-col {
    background: rgba(255, 80, 80, 0.05);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.before-title, .after-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.before-col .before-title { color: #ff6b6b; }
.after-col .after-title { color: #4ade80; }

.before-col ul, .after-col ul {
    list-style: none;
    padding: 0;
}

.before-col ul li, .after-col ul li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    line-height: 1.4;
}

.before-col ul li:last-child, .after-col ul li:last-child {
    border-bottom: none;
    padding-top: 1rem;
    font-weight: 700;
}

.before-col ul li strong { color: #ff6b6b; }
.after-col ul li strong { color: #4ade80; }

.after-col {
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

/* ROI Callout */
.roi-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(85,205,252,0.08) 0%, rgba(247,168,184,0.06) 100%);
    border: 1px solid rgba(85,205,252,0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.roi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.roi-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roi-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.roi-divider {
    font-size: 1.5rem;
    color: var(--text-dim);
    opacity: 0.4;
}

.roi-highlight .roi-value { color: #4ade80; }

@media (max-width: 768px) {
    .before-after { grid-template-columns: 1fr; }
    .roi-callout { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .roi-divider { display: none; }
    .roi-value { font-size: 1.3rem; }
}

/* --- Social Share Buttons (Articles) --- */

.share-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    margin-right: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border);
    color: var(--text-dim);
    background: rgba(255,255,255,0.03);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.linkedin:hover {
    border-color: #0A66C2;
    color: #0A66C2;
    background: rgba(10, 102, 194, 0.08);
}

.share-btn.twitter:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(85, 205, 252, 0.08);
}

.share-btn.facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
    background: rgba(24, 119, 242, 0.08);
}

/* --- LinkedIn Follow Button in Footer --- */

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(85,205,252,0.05);
}

/* --- Service-Specific Industry CTA --- */

.industry-cta {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.industry-cta-icon { font-size: 3rem; }

.industry-cta-text { flex: 1; min-width: 200px; }

.industry-cta-text h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

.industry-cta-text p { color: var(--text-dim); font-size: 0.92rem; }
