/* ==========================================================================
   CSS Variables & Light Theme Settings
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Premium Light Theme */
    --bg-main: #F8FAFC;
    /* Light slate/gray background */
    --bg-card: #FFFFFF;
    --bg-header-footer: #0F172A;

    --primary: #4338CA;
    /* Deep Indigo */
    --primary-light: #EEF2FF;
    --secondary: #F97316;
    /* Vibrant Orange */
    --secondary-light: #FFF7ED;
    --accent: #14B8A6;
    /* Teal */

    /* Typography Colors */
    --text-heading: #0F172A;
    --text-body: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #F8FAFC;

    /* Structural Elements */
    --border-light: #E2E8F0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 40px -5px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 25px 50px -12px rgba(67, 56, 202, 0.15);

    /* Typography Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Layout & Animation */
    --max-width: 1280px;
    --nav-height: 85px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --section-padding: 120px 5%;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.2rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.15rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Master Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-header-footer);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    height: 70px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo img {
    height: 55px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-inverse);
    opacity: 0.9;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--secondary);
}

.btn-primary {
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(67, 56, 202, 0.2);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: #3730A3;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(67, 56, 202, 0.3);
    color: #fff;
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-inverse);
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section (Light & Bright with Parallax)
   ========================================================================== */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(67, 56, 202, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(249, 115, 22, 0.05), transparent 25%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-inline: auto;
}

/* 3D Floating Elements in Hero */
.hero-3d-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    perspective: 1000px;
    z-index: 1;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.1s;
}

.fc-1 {
    top: 20%;
    left: 10%;
    animation: floatY 6s ease-in-out infinite;
}

.fc-2 {
    bottom: 20%;
    right: 10%;
    animation: floatY 8s ease-in-out infinite reverse;
}

.fc-3 {
    top: 30%;
    right: 15%;
    animation: floatY 7s ease-in-out infinite;
}

.float-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.client-logos {
    padding: 40px 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
}

.client-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #CBD5E1;
    margin: 0 3rem;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.client-logo:hover {
    color: var(--text-heading);
}

/* ==========================================================================
   About & Bento Grid Stats
   ========================================================================== */
.about {
    padding: var(--section-padding);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--text-heading);
    color: var(--bg-card);
}

.bento-item:nth-child(1) h3 {
    color: var(--bg-card);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bento-item:nth-child(1) p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-stat {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.bento-label {
    font-weight: 600;
    color: var(--text-body);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
    padding: var(--section-padding);
    background: #FFFFFF;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-main);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--primary-light), transparent);
    z-index: -1;
    transition: height var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
    height: 100%;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Campaign Reports (Pure CSS Charts)
   ========================================================================== */
.reports {
    padding: var(--section-padding);
}

.report-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.report-visual {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.css-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 250px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
    margin-top: 2rem;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, var(--primary), #818CF8);
    border-radius: 8px 8px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.report-visual.active .bar-fill {
    transform: scaleY(1);
}

.bar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   Interactive ROI Calculator
   ========================================================================== */
.calculator {
    padding: var(--section-padding);
    background: var(--primary-light);
    border-top: 1px solid #E0E7FF;
    border-bottom: 1px solid #E0E7FF;
}

.calc-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.slider-container {
    margin-bottom: 2.5rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.slider-labels label {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 1.1rem;
}

.slider-labels span {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.calc-outputs {
    display: flex;
    justify-content: space-between;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.output-item h4 {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.output-item p {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ==========================================================================
   Industry Verticals
   ========================================================================== */
.industries {
    padding: var(--section-padding);
    background: #FFFFFF;
}

.ind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ind-card {
    padding: 2.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-fast);
    cursor: default;
}

.ind-card:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.ind-card:hover h3 {
    color: #fff;
}

.ind-card h3 {
    font-size: 1.25rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: var(--section-padding);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.test-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
}

.quote-mark {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-light);
    line-height: 1;
}

.test-text {
    font-size: 1.15rem;
    color: var(--text-heading);
    font-weight: 500;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.test-client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-light);
}

/* ==========================================================================
   Contact & Live Chat
   ========================================================================== */
.contact {
    padding: var(--section-padding);
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--bg-main);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

textarea.input-field {
    height: 150px;
    resize: vertical;
}

/* Chat Mockup - Apple Style */
.chat-window {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-dot {
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
}

.bubble.agent {
    background: var(--bg-main);
    color: var(--text-heading);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bubble.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* ==========================================================================
   Legal Pages Specific
   ========================================================================== */
.legal-page {
    padding: calc(var(--nav-height) + 80px) 5% 100px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    min-height: 80vh;
}

.legal-page h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.legal-page h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary);
}

.legal-page p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Master Footer 
   ========================================================================== */
.site-footer {
    background: var(--bg-header-footer);
    color: var(--text-inverse);
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-inverse);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes floatY {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item:nth-child(1) {
        grid-column: span 2;
    }

    .report-wrapper,
    .contact-layout,
    .test-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-header-footer);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-smooth);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-3d-wrapper {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .calc-outputs {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}