@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ==========================================================================
   GLOBAL VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    --bg-base: #030712; /* Deep Slate / Near Black */
    --bg-surface: #111827; /* Slightly lighter slate */
    --bg-surface-glass: rgba(17, 24, 39, 0.7);
    
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    
    --accent-blue: #2563EB;
    --accent-cyan: #06B6D4;
    --accent-glow: rgba(6, 182, 212, 0.15);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.2);
    
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    
    --transition-snappy: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom Corporate Cursor */
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
    /* Subtle Data Grid Background */
    background-image: 
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor-main {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
    transition-timing-function: ease-out;
}

.cursor-hover .cursor-main {
    background: var(--accent-cyan);
}

.cursor-hover .cursor-follower {
    width: 60px; height: 60px;
    background: rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(2px);
}

/* ==========================================================================
   STRICT IDENTICAL GLOBAL HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 9000;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: transform var(--transition-smooth), background var(--transition-smooth);
}

.site-header.hide {
    transform: translateY(-100%);
}

.logo-container img {
    height: 50px;
    object-fit: contain;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-snappy);
    position: relative;
}

.nav-links li a:hover {
    color: var(--text-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0%; height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-snappy);
    border-radius: 2px;
}

.nav-links li a:hover::after {
    width: 100%;
}

.header-cta {
    padding: 10px 24px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-snappy);
    position: relative;
    overflow: hidden;
}

.header-cta:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    background: rgba(6, 182, 212, 0.05);
}

/* ==========================================================================
   GLOBAL ANIMATIONS & UTILITIES
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-cyan { color: var(--accent-cyan); }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 100px;
    border: none;
    transition: transform var(--transition-snappy), box-shadow var(--transition-snappy);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

/* Mouse-Tracking Glow Card Container */
.glow-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-snappy);
}
.glow-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(6, 182, 212, 0.06), transparent 40%);
    z-index: 0;
    pointer-events: none;
}
.glow-card > * { position: relative; z-index: 1; }
.glow-card:hover { border-color: var(--border-highlight); }

/* ==========================================================================
   INDEX SECTIONS
   ========================================================================== */
section {
    padding: 100px 5%;
    position: relative;
}

/* 1. Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
}
.hero h1 {
    font-size: clamp(3rem, 6vw, 6.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    max-width: 1000px;
}
.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

/* 2. Client Marquee */
.client-marquee {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(17, 24, 39, 0.3);
    overflow: hidden;
    display: flex;
}
.marquee-track {
    display: flex;
    gap: 80px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}
.marquee-track span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    opacity: 0.5;
    text-transform: uppercase;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 3. Services Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    margin-top: 60px;
}
.bento-item {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bento-item.large {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(37,99,235,0.1) 100%);
}
.bento-item h3 { font-size: 1.8rem; margin-bottom: 16px; }
.bento-item p { color: var(--text-secondary); }
.bento-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-cyan);
}

/* 4. Interactive Campaign Analytics */
.analytics-dashboard {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 60px;
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}
.data-counters { display: flex; flex-direction: column; gap: 40px; }
.counter-box h4 { font-size: 3.5rem; color: var(--text-primary); margin-bottom: 8px; font-weight: 800; }
.counter-box p { color: var(--accent-cyan); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

/* SVG Chart Animation */
.chart-wrap { position: relative; width: 100%; height: 300px; }
.chart-grid { stroke: var(--border-subtle); stroke-width: 1; }
.chart-line {
    fill: none;
    stroke: url(#chartGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-out;
}
.chart-line.animated { stroke-dashoffset: 0; }
.chart-area {
    fill: url(#areaGradient);
    opacity: 0;
    transition: opacity 1s 1s ease-out;
}
.chart-area.animated { opacity: 1; }

/* 5. ROI Calculator */
.calc-container {
    max-width: 800px; margin: 60px auto 0;
}
.slider-group { margin-bottom: 40px; }
.slider-header { display: flex; justify-content: space-between; margin-bottom: 20px; font-weight: 600; font-size: 1.1rem; }
.range-slider {
    -webkit-appearance: none;
    width: 100%; height: 6px;
    background: var(--bg-surface);
    border-radius: 10px; outline: none;
    border: 1px solid var(--border-subtle);
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 4px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6,182,212,0.5);
    transition: transform 0.2s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-result-box {
    text-align: center; padding: 40px;
    background: linear-gradient(to bottom, rgba(6,182,212,0.05), transparent);
    border-radius: var(--radius-lg); border: 1px solid var(--border-highlight);
}
.calc-result-box h3 { font-size: 4rem; color: var(--accent-cyan); margin-top: 10px; }

/* 6. Industry Expertise Tabs */
.industry-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px;
}
.industry-card {
    padding: 30px; text-align: center;
    border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
    background: var(--bg-surface); transition: all var(--transition-snappy);
}
.industry-card:hover { border-color: var(--accent-cyan); transform: translateY(-5px); background: rgba(6,182,212,0.05); }

/* 7. Testimonials Masonry */
.testimonial-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 60px;
}
.testimoinal-card {
    padding: 40px; background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
}
.quote-mark { font-size: 4rem; color: var(--accent-cyan); line-height: 0; opacity: 0.3; margin-bottom: 20px; font-family: serif; }

/* 8. Live Chat Modern UI Promo */
.chat-promo {
    background: var(--bg-surface);
    border-radius: var(--radius-lg); border: 1px solid var(--border-highlight);
    padding: 60px; display: flex; justify-content: space-between; align-items: center; margin-top: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   STRICT IDENTICAL GLOBAL FOOTER
   ========================================================================== */
.site-footer {
    background: #02040A; /* Darker than base */
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-subtle);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px;
}
.footer-brand img { height: 32px; margin-bottom: 24px; }
.footer-brand p { color: var(--text-secondary); max-width: 350px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 24px; color: var(--text-primary); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-secondary); transition: color var(--transition-snappy); }
.footer-col ul li a:hover { color: var(--accent-cyan); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 30px; border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary); font-size: 0.9rem;
}

/* ==========================================================================
   LEGAL & CONTACT PAGES
   ========================================================================== */
.page-header {
    padding: 180px 5% 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(37,99,235,0.1), transparent);
    border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 20px; }
.page-header p { color: var(--text-secondary); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

.legal-content {
    max-width: 800px; margin: 80px auto; padding: 0 5%;
}
.legal-content h2 { margin: 40px 0 20px; font-size: 1.8rem; color: var(--text-primary); }
.legal-content p { margin-bottom: 20px; color: var(--text-secondary); font-size: 1.05rem; }

/* Corporate Contact Form */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px;
    max-width: 1200px; margin: 80px auto; padding: 0 5%;
}
.contact-info h3 { font-size: 2rem; margin-bottom: 10px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 30px; }
.info-item { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-subtle); }
.info-item span { display: block; font-size: 0.9rem; color: var(--accent-cyan); margin-bottom: 5px; text-transform: uppercase; font-weight: 600; }
.info-item strong { font-size: 1.2rem; font-weight: 500; }

.corporate-form {
    background: var(--bg-surface); padding: 50px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 16px;
    background: var(--bg-base); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); color: var(--text-primary);
    font-family: var(--font-body); font-size: 1rem;
    transition: all var(--transition-snappy); outline: none;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan); box-shadow: 0 0 0 4px rgba(6,182,212,0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-item.large { grid-column: span 2; }
    .analytics-dashboard, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .bento-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .bento-item.large { grid-column: span 1; }
    .chat-promo { flex-direction: column; text-align: center; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
}