/* ==========================================================================
   CSS VARIABLES & THEME SETUP: CREATIVE STUDIO (MAGENTA/ORANGE)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Color Palette */
    --clr-bg-base: #09090E;
    /* Deep Midnight */
    --clr-bg-surface: #14141F;
    /* Dark Indigo Surface */
    --clr-bg-glass: rgba(20, 20, 31, 0.6);

    /* Vibrant Accents */
    --clr-primary: #FF2A5F;
    /* Neon Magenta */
    --clr-primary-glow: rgba(255, 42, 95, 0.4);
    --clr-secondary: #FF8A00;
    /* Sunset Orange */
    --clr-tertiary: #8A2BE2;
    /* Deep Purple */

    /* Gradients */
    --grad-main: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    --grad-text: linear-gradient(to right, #FF2A5F, #FF8A00, #FF2A5F);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Text Colors */
    --clr-text-light: #FFFFFF;
    --clr-text-muted: #A0A0B0;

    /* Borders & Shadows */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px var(--clr-primary-glow);

    /* Layout */
    --header-height: 90px;
    --container-max: 1200px;

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-medium: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --trans-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-primary) var(--clr-bg-base);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-primary);
    border-radius: 4px;
}

::selection {
    background: var(--clr-primary);
    color: #FFF;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-base);
    color: var(--clr-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.grad-text {
    background: var(--grad-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    display: inline-block;
}

.section-subtitle {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 42, 95, 0.1);
    color: var(--clr-primary);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 42, 95, 0.3);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--trans-medium);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--grad-main);
    color: #FFF;
    box-shadow: 0 10px 20px var(--clr-primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--clr-secondary) 0%, var(--clr-primary) 100%);
    z-index: -1;
    transition: opacity var(--trans-medium);
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 138, 0, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: #FFF;
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: #FFF;
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   GLOBAL HEADER (STRICTLY CONSISTENT)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(9, 9, 14, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: var(--border-glass);
    z-index: 9999;
    transition: var(--trans-medium);
}

.site-header.scrolled {
    height: 70px;
    background: rgba(9, 9, 14, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container img {
    height: 50px;
    filter: brightness(0) invert(1);
    transition: transform var(--trans-fast);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--clr-text-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--grad-main);
    transition: width var(--trans-fast);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--clr-primary);
}

.header-cta {
    background: rgba(255, 42, 95, 0.1);
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--trans-fast);
}

.header-cta:hover {
    background: var(--clr-primary);
    color: #FFF;
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ==========================================================================
   GLOBAL FOOTER (STRICTLY CONSISTENT)
   ========================================================================== */
.site-footer {
    background: var(--clr-bg-surface);
    padding: 6rem 0 2rem;
    border-top: var(--border-glass);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 55px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-title {
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    transition: color var(--trans-fast), transform var(--trans-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--clr-primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: var(--border-glass);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   HERO SECTION & ORGANIC BLOBS
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Organic Blobs Background */
.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatBlob 15s infinite alternate ease-in-out;
}

.blob-1 {
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--clr-tertiary);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--clr-primary);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--clr-secondary);
    animation-delay: -10s;
    opacity: 0.2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Floating Glass Cards */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.glass-card {
    position: absolute;
    background: var(--grad-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-glass);
    transform-style: preserve-3d;
}

.card-main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 320px;
    z-index: 3;
    animation: floatCards 6s infinite ease-in-out;
}

.card-main h3 {
    font-size: 3rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.card-main p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.card-sub-1 {
    top: 10%;
    left: 10%;
    width: 200px;
    transform: translateZ(-50px);
    background: rgba(255, 138, 0, 0.1);
    border-color: rgba(255, 138, 0, 0.3);
    animation: floatCards 7s infinite ease-in-out reverse;
}

.card-sub-2 {
    bottom: 10%;
    right: 5%;
    width: 220px;
    transform: translateZ(50px);
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
    animation: floatCards 5s infinite ease-in-out 1s;
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: scrollText 30s linear infinite;
    gap: 4rem;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    transition: color var(--trans-fast);
}

.marquee-item:hover {
    color: var(--clr-primary);
}

/* ==========================================================================
   STATS / ABOUT
   ========================================================================== */
.stats-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-box {
    background: var(--clr-bg-surface);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--trans-medium);
}

.stat-box:hover {
    transform: translateY(-10px);
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
}

.stat-num {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SERVICES (Glowing Cards)
   ========================================================================== */
.services-section {
    padding: 8rem 0;
    background: var(--clr-bg-surface);
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--clr-bg-base);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--trans-medium);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--trans-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 42, 95, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-muted);
}

/* ==========================================================================
   CAMPAIGN REPORTS / ANALYTICS
   ========================================================================== */
.analytics-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.analytics-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.chart-container {
    background: var(--clr-bg-surface);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-glass);
}

.css-bar-chart {
    height: 300px;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    background: var(--grad-main);
    border-radius: 6px 6px 0 0;
    position: relative;
    transform-origin: bottom;
    animation: growBar 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.bar:hover {
    opacity: 0.8;
    cursor: pointer;
}

.bar-label {
    margin-top: 1rem;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   INDUSTRIES (3D Flip Cards)
   ========================================================================== */
.industries-section {
    padding: 8rem 0;
    background: var(--clr-bg-surface);
    position: relative;
    z-index: 2;
}

.flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.flip-card {
    background: transparent;
    height: 350px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: var(--border-glass);
}

.flip-card-front {
    background: var(--clr-bg-base);
}

.flip-card-front h3 {
    font-size: 1.8rem;
    color: #FFF;
}

.flip-card-back {
    background: var(--grad-main);
    transform: rotateY(180deg);
    color: #FFF;
}

.flip-card-back h3 {
    margin-bottom: 1rem;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   ROI CALCULATOR (Glass UI)
   ========================================================================== */
.calculator-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.calc-glass {
    background: var(--grad-glass);
    backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: 24px;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    box-shadow: var(--shadow-glass);
}

.range-wrap {
    margin-bottom: 3rem;
}

.range-wrap label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.range-val {
    color: var(--clr-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--clr-primary);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    background: var(--clr-bg-surface);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(255, 42, 95, 0.3);
}

.calc-results h4 {
    color: var(--clr-text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.calc-results .big-num {
    font-size: 3.5rem;
    color: #FFF;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.calc-results .big-num.gradient {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
    padding: 8rem 0;
    background: var(--clr-bg-surface);
    position: relative;
    z-index: 2;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testi-card {
    background: var(--clr-bg-base);
    padding: 3rem;
    border-radius: 16px;
    border: var(--border-glass);
    position: relative;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(255, 42, 95, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.testi-card p {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testi-client {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-av {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 4rem;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 21px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-step h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--clr-primary);
}

/* ==========================================================================
   CONTACT / CTA
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    background: var(--clr-bg-surface);
    position: relative;
    z-index: 2;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--clr-bg-base);
    border-radius: 24px;
    border: var(--border-glass);
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: rgba(255, 42, 95, 0.05);
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--clr-primary);
}

.contact-form {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    background: var(--clr-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 8px;
    color: #FFF;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border var(--trans-fast);
}

.form-input:focus {
    border-color: var(--clr-primary);
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-btn {
    width: 65px;
    height: 65px;
    background: var(--grad-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform var(--trans-fast);
}

.chat-btn:hover {
    transform: scale(1.1);
}

.chat-btn svg {
    fill: #FFF;
    width: 30px;
    height: 30px;
}

.chat-box {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    background: var(--clr-bg-surface);
    border: var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--trans-medium);
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--grad-main);
    padding: 1.2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 600;
}

.chat-body {
    padding: 1.5rem;
    height: 250px;
    overflow-y: auto;
}

.msg {
    background: rgba(255, 42, 95, 0.1);
    padding: 1rem;
    border-radius: 8px 8px 8px 0;
    font-size: 0.9rem;
}

.chat-footer {
    padding: 1rem;
    border-top: var(--border-glass);
    display: flex;
}

.chat-footer input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFF;
    outline: none;
}

.chat-footer button {
    background: transparent;
    border: none;
    color: var(--clr-primary);
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.page-hero {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.legal-content-section {
    padding: 4rem 0 8rem;
    position: relative;
    z-index: 2;
}

.legal-box {
    background: var(--clr-bg-surface);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 4rem;
}

.legal-box h2 {
    font-size: 2rem;
    color: var(--clr-primary);
    margin: 2.5rem 0 1rem;
}

.legal-box p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-box ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

@keyframes floatCards {

    0%,
    100% {
        transform: translate(-50%, -50%) translateZ(0) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateZ(0) translateY(-20px);
    }
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes growBar {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {

    .hero-grid,
    .analytics-layout,
    .calc-glass,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--clr-bg-surface);
        flex-direction: column;
        justify-content: center;
        transition: left var(--trans-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .flip-grid {
        grid-template-columns: 1fr;
    }

    .calc-glass,
    .contact-info,
    .contact-form,
    .legal-box {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}