/* Dynamic CSS Design System using HSL Variables */
:root {
    /* Default: Blue theme (Plumbing) */
    --primary-h: 220;
    --primary-s: 90%;
    --primary-l: 56%;
    
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.35);
    --primary-dark: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 10%));
    --primary-light: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) + 15%));
    
    /* Premium glow ambient highlights */
    --primary-glow-subtle: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.12);
    --primary-glow-heavy: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.6);
    
    /* Sleek Dark Mode Colors */
    --bg-dark: #07090e;
    --bg-card: rgba(15, 19, 29, 0.55);
    --bg-card-border: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(23, 29, 44, 0.75);
    --bg-card-border-hover: rgba(255, 255, 255, 0.15);
    
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* Helper Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.mb-5 { margin-bottom: 5px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.block { display: block; }
.flex-1 { flex: 1; }
.flex { display: flex; }

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.55);
    filter: brightness(1.1);
}

.btn-primary:hover::after {
    left: 125%;
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline-light:hover {
    background: var(--text-white);
    color: var(--bg-dark);
    transform: translateY(-2px) scale(1.02);
}

.btn-block {
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.01));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--bg-card-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), 0 0 20px var(--primary-glow-subtle);
}

/* Scroll entry reveals motion design */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        @keyframes reveal-in {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.96);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        .scroll-reveal {
            animation: reveal-in auto linear both;
            animation-timeline: view();
            animation-range: entry 10% entry 85%;
        }
    }
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 0;
    transition: var(--transition-smooth);
}

/* Scroll-Driven Header Animations */
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
        @keyframes shrink-header {
            to {
                padding: 10px 0;
                background: rgba(7, 9, 14, 0.9);
                border-bottom: 1px solid hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
            }
        }
        .header {
            animation: shrink-header auto linear both;
            animation-timeline: scroll(block root);
            animation-range: 0px 100px;
        }
    }
}

/* Fallback class for browsers without scroll-driven animation support */
.header.header-scrolled {
    padding: 10px 0;
    background: rgba(7, 9, 14, 0.9);
    border-bottom: 1px solid hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo i {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.star-color {
    color: #f59e0b;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-badge-card {
    position: absolute;
    top: -45px;
    left: -100px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    max-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.pulse-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0);
    }
    100% {
        box-shadow: 0 0 0 0 hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0);
    }
}

.hero-card {
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
}

.hero-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text-white);
}

/* Forms */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
}

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

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: var(--primary-glow);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

/* Call To Action Banner */
.cta-banner {
    background: linear-gradient(135deg, hsl(var(--primary-h), var(--primary-s), 15%), hsl(var(--primary-h), var(--primary-s), 5%));
    border-top: 1px solid var(--primary-glow);
    border-bottom: 1px solid var(--primary-glow);
    padding: 60px 0;
}

.cta-banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-banner-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.cta-banner-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.cta-banner-actions {
    display: flex;
    gap: 15px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
}

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

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #f59e0b;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 25px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.reviewer h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-link {
    font-size: 1.1rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--primary);
}

.contact-form-panel {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-form-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: #050608;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* AI Chatbot Widget Styles */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: var(--text-white);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 25px var(--primary-glow);
    transition: var(--transition-smooth);
    position: relative;
}

.chat-toggle-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.chat-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--bg-dark);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
    transition: var(--transition-smooth);
}

.chatbot-widget.active .chat-window {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 13, 20, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-glow);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--primary);
}

.chat-agent-info h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.agent-status {
    font-size: 0.72rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-close-btn:hover {
    color: var(--text-white);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(8, 10, 15, 0.95);
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.system-msg {
    align-self: center;
    max-width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 6px 12px;
}

.bot-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-top-left-radius: 2px;
}

.user-msg {
    align-self: flex-end;
    background: var(--primary);
    color: var(--text-white);
    border-top-right-radius: 2px;
}

.chat-input-area {
    padding: 14px 20px;
    background: rgba(10, 13, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary);
    border: none;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-send-btn:hover {
    background: var(--primary-light);
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image-container {
        margin-top: 20px;
        flex-direction: column;
    }
    .mockup-badge-card {
        position: relative;
        top: 0;
        left: 0;
        right: auto;
        margin: 0 auto 25px auto;
        max-width: 320px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    .cta-banner-container {
        flex-direction: column;
        text-align: center;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0;
        display: flex;
        align-items: center;
    }
    .header-container {
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .nav {
        gap: 15px;
    }
    .nav-link {
        display: none; /* Hide text links for clean premium mobile UI */
    }
    .logo {
        font-size: 1.25rem;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .mockup-badge-card {
        position: relative;
        top: 0;
        left: 0;
        right: auto;
        margin: 0 auto 20px auto;
        max-width: 100%;
        padding: 12px 18px;
    }
    .services-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

/* ==================================================
   B2B PROMO BANNER & CHECKOUT DIALOG
   ================================================== */

/* Sticky Promo Banner at top */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, #1e1b4b, #0f172a, #311042);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.promo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    gap: 15px;
}

.promo-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-text strong {
    color: #f59e0b;
    font-weight: 700;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 20px;
    font-family: var(--font-heading);
}

.promo-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.promo-close-btn:hover {
    color: var(--text-white);
    transform: scale(1.1);
}

/* Adjustments when Promo Banner is active */
body.has-promo-banner {
    padding-top: 48px;
}

body.has-promo-banner .header {
    top: 48px;
}

/* Premium Dialog Modal styling */
.claim-modal {
    margin: auto;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(13, 17, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px;
    color: var(--text-light);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    outline: none;
}

.claim-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--text-white);
}

.modal-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-subtitle strong {
    color: var(--text-white);
}

/* Forms inside modal */
.claim-form .form-group {
    margin-bottom: 20px;
}

.claim-form label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px;
    margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    text-transform: none !important;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.modal-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.modal-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modal-footer i {
    color: #22c55e;
}

/* Success State styling */
.claim-success-state {
    padding: 20px 10px;
}

.success-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.claim-success-state h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.claim-success-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .promo-banner {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        padding: 6px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }
    .promo-container {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 0;
    }
    .promo-text {
        font-size: 0.78rem;
        line-height: 1.2;
    }
    .promo-actions .btn-sm {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    body.has-promo-banner {
        padding-top: 130px; /* 70px banner + 60px header */
    }
    body.has-promo-banner .header {
        top: 70px;
    }
}

/* ==================================================
   TIMO AGENCY PORTAL MODE (NO QUERY PARAMS)
   ================================================== */

/* Toggle Visibility by View Mode */
body.agency-mode .mockup-only {
    display: none !important;
}
body.mockup-mode .agency-only {
    display: none !important;
}

/* Agency Color System Overwrite */
body.agency-mode {
    --primary-h: 265;
    --primary-s: 85%;
    --primary-l: 57%; /* Premium Purple/Violet Theme */
}

/* Agency Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.pricing-card.featured::after {
    content: "BEST VALUE";
    position: absolute;
    top: 18px;
    right: -30px;
    background: var(--primary);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 30px;
    transform: rotate(45deg);
    letter-spacing: 0.1em;
    z-index: 5;
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 5px;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 15px 0 10px;
}

.pricing-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 20px 0 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.pricing-features i {
    color: var(--primary-light);
    font-size: 0.95rem;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

/* Instant Generator Card */
.generator-card {
    background: rgba(18, 22, 33, 0.85) !important;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 15px 40px var(--primary-glow) !important;
}

.generator-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

.generator-card h3 i {
    color: var(--primary-light);
}

/* Loading overlay for dynamic generation transition */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 11, 16, 0.96);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 20px;
    text-align: center;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 20px;
}

.loading-text {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Interactive Neon Scanner Experience */
.scanner-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 100px;
    overflow: hidden;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.scanner-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    box-shadow: 0 0 12px var(--primary), 0 0 20px var(--primary);
    animation: laser-sweep 2s infinite ease-in-out;
}

@keyframes laser-sweep {
    0% { top: 0%; opacity: 0.4; }
    50% { top: 100%; opacity: 1; }
    100% { top: 0%; opacity: 0.4; }
}

.scanner-steps {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin: 0 auto;
    padding: 0 10px;
}

.scanner-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.scanner-step.pending {
    color: var(--text-muted);
    opacity: 0.4;
}

.scanner-step.active {
    color: var(--primary-light);
    font-weight: 600;
    opacity: 1;
}

.scanner-step.active .step-status i {
    color: var(--primary-light);
}

.scanner-step.completed {
    color: #22c55e;
    opacity: 1;
}

.scanner-step.completed .step-status i {
    color: #22c55e;
}

/* Chatbot Typing Indicator styles */
.typing-indicator-bubble {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 2px !important;
    padding: 12px 16px !important;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 12px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: bounceDot 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes bounceDot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); background-color: var(--primary-light); }
}

/* Message Bubble Appearance Transitions */
@keyframes bubble-appear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.93);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message {
    animation: bubble-appear 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bot-msg {
    transform-origin: top left;
}

.user-msg {
    transform-origin: top right;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

