/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-deep: #07040a;
    /* Deep plum-black */
    --bg-surface: #120b1f;
    /* Violet-charcoal */
    --text-main: #fff7ed;
    --text-muted: #a78bfa;

    /* Liquid Gradients */
    --gradient-1: #ff6a00;
    /* Plasma orange */
    --gradient-2: #ff00aa;
    /* Magenta */
    --gradient-3: #7c3aed;
    /* Electric violet */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.045);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(24px);

    /* Layout */
    --container: 1240px;
    --header-height: 90px;
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 40px;

    /* Typography */
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Transitions */
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation Wrapper */
.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-2);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: white;
    line-height: 1.1;
    font-weight: 800;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-pad {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    padding: 16px 32px;
    border-radius: 50px;
    background: white;
    color: black;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s var(--ease-elastic);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   2. HEADER & NAV
   ========================================= */
.site-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.4s;
}

.nav-pill {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.logo img {
    height: 45px;
    filter: invert(1);
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.mobile-trigger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    z-index: 2;
    position: relative;
}

/* Text Gradient Animation */
.gradient-text {
    background: linear-gradient(to right, #ff00cc, #3333ff, #00ffff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: inline-flex;
}

.stat-block strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.stat-block span {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   4. SERVICES STACK
   ========================================= */
.services-section {
    position: relative;
}

.service-card {
    position: sticky;
    top: 150px;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: var(--radius-lg);
    margin-bottom: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    transform-origin: center top;
    transition: transform 0.5s ease;
}

/* Alternate order for visuals */
.service-card:nth-child(even) .service-content {
    order: 2;
}

.service-card:nth-child(even) .service-visual {
    order: 1;
}

.service-visual {
    height: 300px;
    background: linear-gradient(135deg, var(--glass-bg), transparent);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-tags span {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* =========================================
   5. ANALYTICS DASHBOARD MOCKUP
   ========================================= */
.dashboard-wrapper {
    background: #0a0a0e;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    transform: perspective(1000px) rotateX(10deg);
    transition: transform 0.5s ease;
    margin-top: 2rem;
}

.dashboard-wrapper:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 120px);
    gap: 1rem;
}

.dash-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dash-card.wide {
    grid-column: span 2;
    grid-row: span 2;
}

.chart-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-3));
    margin-top: auto;
    position: relative;
}

.chart-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(255, 0, 204, 0.1), transparent);
}

/* =========================================
   6. ROI CALCULATOR
   ========================================= */
.calculator-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.input-slider {
    margin-bottom: 2.5rem;
}

.label-flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.results-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.result-item {
    margin-bottom: 2rem;
}

.result-item:last-child {
    margin-bottom: 0;
}

.res-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.res-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.res-number.highlight {
    color: var(--gradient-3);
}

/* =========================================
   7. CONTACT & LEGAL
   ========================================= */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    min-height: 800px;
}

.contact-visual {
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1000&q=80') center/cover;
    position: relative;
}

.contact-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(3, 3, 5, 0.3), var(--bg-deep));
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--gradient-1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Legal Text */
.legal-page {
    max-width: 800px;
    margin: 150px auto 100px;
    padding: 0 20px;
}

.legal-page h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.legal-page h3 {
    color: var(--gradient-3);
    margin-top: 2rem;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .service-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-card:nth-child(even) .service-content {
        order: 0;
    }

    .calc-row {
        grid-template-columns: 1fr;
    }

    .contact-split {
        grid-template-columns: 1fr;
        height: auto;
    }

    .contact-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-trigger {
        display: block;
    }

    .hero-stats {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .dash-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .dash-card.wide {
        grid-column: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}