@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@400;600;700;800&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-light: #f4f4f0;
    --color-bg-dark: #080b12;
    --color-bg-panel: #121620;
    --color-text-dark: #080b12;
    --color-text-light: #ffffff;
    --color-text-muted: #8a8d98;
    --color-accent: #d1ff27;
    /* Cyber Lime */

    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1600px;
    --padding-x: 5vw;
    --section-y: 150px;

    /* Animation Easing */
    --ease-custom: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Z-Layers */
    --z-cursor: 9999;
    --z-header: 1000;
    --z-chat: 900;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom follower */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--color-bg-light);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    display: block;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(4rem, 10vw, 10rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}

.text-accent {
    color: var(--color-accent);
}

.dark-section {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* ==========================================================================
   CUSTOM CURSOR (BLENDING MODE)
   ========================================================================== */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background: #fff;
}

/* ==========================================================================
   MAGNETIC BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 100px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-text-dark);
}

.btn-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
}

.magnetic-wrap {
    display: inline-block;
    position: relative;
}

.magnetic-area {
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    z-index: 10;
}

/* ==========================================================================
   HEADER (STRICT CONSISTENCY - DARK)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: var(--z-header);
    background: rgba(8, 11, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-light);
    transition: transform 0.4s var(--ease-custom);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper img {
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.main-nav {
    display: flex;
    gap: 50px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--color-accent);
    transition: top 0.3s var(--ease-custom);
}

.main-nav a:hover::before {
    top: 0;
}

.main-nav a span {
    display: block;
    transition: transform 0.3s var(--ease-custom);
}

.main-nav a:hover span {
    transform: translateY(-100%);
}

/* ==========================================================================
   HERO SECTION (KINETIC TYPOGRAPHY)
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-title-wrap {
    line-height: 0.9;
    perspective: 1000px;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-line span {
    display: block;
    transform: translateY(100%) rotateX(-20deg);
    opacity: 0;
    animation: textReveal 1.2s var(--ease-custom) forwards;
}

.hero-title-line:nth-child(2) span {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(3) span {
    animation-delay: 0.4s;
}

@keyframes textReveal {
    to {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 80px;
    border-top: 1px solid rgba(8, 11, 18, 0.1);
    padding-top: 40px;
}

.hero-desc {
    max-width: 400px;
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

/* ==========================================================================
   MARQUEE SECTION
   ========================================================================== */
.marquee-section {
    padding: 60px 0;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    overflow: hidden;
    transform: rotate(-2deg) scale(1.05);
    margin: 100px 0;
}

.marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 20s linear infinite;
}

.marquee-inner span {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 40px;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

.marquee-inner span.filled {
    color: var(--color-accent);
    -webkit-text-stroke: 0;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Requires duplicated content */
}

/* ==========================================================================
   METRICS / ABOUT
   ========================================================================== */
.metrics-section {
    padding: var(--section-y) 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    border-top: 2px solid var(--color-text-dark);
    padding-top: 60px;
}

.metric-item h3 {
    font-size: 5rem;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.metric-item p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   SERVICES (STICKY SCROLL LAYOUT)
   ========================================================================== */
.services-section {
    padding: var(--section-y) 0;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.services-layout {
    display: flex;
    align-items: flex-start;
    gap: 100px;
}

.services-left {
    flex: 1;
    position: sticky;
    top: 150px;
}

.services-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-card {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:last-child {
    border: none;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

/* ==========================================================================
   INTERACTIVE DATA CHART / REPORTS
   ========================================================================== */
.reports-section {
    padding: var(--section-y) 0;
}

.chart-wrapper {
    margin-top: 80px;
    background: var(--color-bg-dark);
    border-radius: 30px;
    padding: 80px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 500px;
    position: relative;
}

.chart-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.chart-bar {
    width: 100%;
    background: var(--color-text-light);
    border-radius: 10px 10px 0 0;
    height: 0;
    /* Animated */
    transition: height 1.5s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, transparent, rgba(209, 255, 39, 0.8));
    opacity: 0;
    transition: opacity 0.5s;
}

.chart-bar:hover::after {
    opacity: 1;
}

.chart-label {
    margin-top: 20px;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==========================================================================
   INDUSTRIES (HOVER MASK EFFECTS)
   ========================================================================== */
.industries-section {
    padding: var(--section-y) 0;
    background: var(--color-bg-panel);
    color: var(--color-text-light);
}

.industry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 80px;
}

.industry-item {
    position: relative;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.industry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-custom);
    z-index: 0;
}

.industry-item:hover .industry-bg {
    transform: translateY(0);
}

.industry-content {
    position: relative;
    z-index: 1;
    transition: color 0.4s;
}

.industry-item:hover .industry-content {
    color: var(--color-text-dark);
}

.industry-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   ROI CALCULATOR
   ========================================================================== */
.calculator-section {
    padding: var(--section-y) 0;
}

.calc-box {
    background: #fff;
    border: 2px solid var(--color-text-dark);
    padding: 80px;
    box-shadow: 20px 20px 0 var(--color-text-dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.range-wrap {
    margin-bottom: 40px;
}

.range-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-text-dark);
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    border: 2px solid var(--color-text-dark);
    border-radius: 0;
    /* Brutalist square thumb */
    cursor: none;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-output {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid var(--color-text-dark);
    padding-left: 80px;
}

.calc-total {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-text-dark);
    line-height: 1;
}

/* ==========================================================================
   TESTIMONIALS (DRAGGABLE/SCROLL)
   ========================================================================== */
.testimonials-section {
    padding: var(--section-y) 0;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    overflow: hidden;
}

.testi-track {
    display: flex;
    gap: 60px;
    margin-top: 80px;
    width: max-content;
    padding: 0 var(--padding-x);
    animation: scrollTesti 40s linear infinite;
}

.testi-card {
    width: 500px;
    padding: 60px;
    background: var(--color-bg-panel);
    border-top: 4px solid var(--color-accent);
}

.testi-quote {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-style: italic;
}

.testi-author h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    letter-spacing: 0;
    color: var(--color-accent);
}

@keyframes scrollTesti {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   CONTACT CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 200px 0;
    text-align: center;
}

.cta-huge {
    font-size: clamp(5rem, 12vw, 15rem);
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 2px var(--color-text-dark);
    transition: all 0.5s var(--ease-custom);
}

.cta-section:hover .cta-huge {
    color: var(--color-text-dark);
    -webkit-text-stroke: 0;
}

/* ==========================================================================
   FOOTER (STRICT CONSISTENCY - DARK)
   ========================================================================== */
.site-footer {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 120px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-text-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   LIVE CHAT
   ========================================================================== */
.chat-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: var(--z-chat);
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    color: var(--color-text-dark);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 10px 10px 0 var(--color-text-dark);
    transition: transform 0.2s;
}

.chat-toggle:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0 var(--color-text-dark);
}

.chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--color-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-spring);
}

.chat-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-head {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.chat-body {
    padding: 20px;
    height: 250px;
    overflow-y: auto;
}

.chat-foot {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
}

.chat-foot input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
}

/* ==========================================================================
   LEGAL / INNER PAGES
   ========================================================================== */
.inner-hero {
    padding: 200px 0 100px;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.inner-content {
    padding: 100px 0;
    max-width: 900px;
}

.inner-content h2 {
    font-size: 2.5rem;
    margin: 60px 0 20px;
    color: var(--color-text-dark);
}

.inner-content p,
.inner-content ul {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 20px;
}

.inner-content ul {
    padding-left: 20px;
    list-style: square;
}

/* Contact Form Specific */
.contact-form-wrap {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 80px;
}

.c-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 40px;
    outline: none;
    transition: border-color 0.3s;
}

.c-input:focus {
    border-color: var(--color-accent);
}

/* Animation Reveal Utility */
.anim-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s var(--ease-custom);
}

.anim-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media(max-width: 1024px) {
    .services-layout {
        flex-direction: column;
    }

    .services-left {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .metrics-grid,
    .industry-grid,
    .calc-box,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .calc-box {
        padding: 40px;
    }

    .chat-wrapper {
        display: none;
    }
}