@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;600;700&display=swap');

/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #07090F;
    /* Deep Midnight */
    --bg-panel: #111424;
    --text-light: #F4F4F0;
    /* Cream White */
    --text-muted: #8E93A4;
    --accent-neon: #FF4500;
    /* Vibrant Orange */
    --accent-hover: #FF6A33;
    --border-color: rgba(244, 244, 240, 0.1);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --header-height: 100px;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: 0.8s var(--ease-out-expo);
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Magnetic Cursor */
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Noise Overlay for Premium Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   MAGNETIC CUSTOM CURSOR
   ========================================================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-neon);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 69, 0, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover-active {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 69, 0, 0.1);
    border-color: var(--accent-neon);
    backdrop-filter: blur(2px);
}

/* ==========================================================================
   STRICT IDENTICAL 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 4vw;
    z-index: 9000;
    background: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition-fast);
}

.site-header.scrolled-up {
    transform: translateY(0);
}

.site-header.scrolled-down {
    transform: translateY(-100%);
}

.logo-container img {
    height: 55px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3vw;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
    overflow: hidden;
    display: inline-block;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-neon);
    transform: translateX(-101%);
    transition: transform var(--transition-fast);
}

.nav-links li a:hover::before {
    transform: translateX(0);
}

.header-cta {
    padding: 14px 28px;
    background-color: var(--text-light);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-neon);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-fast);
    z-index: -1;
}

.header-cta:hover {
    color: var(--text-light);
}

.header-cta:hover::before {
    transform: scaleY(1);
}

/* ==========================================================================
   GLOBAL ANIMATIONS & REVEALS
   ========================================================================== */
.reveal-text {
    overflow: hidden;
    display: inline-block;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s var(--ease-out-expo), opacity 1s var(--ease-out-expo);
}

.reveal-text.is-inview span {
    transform: translateY(0);
    opacity: 1;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.fade-up.is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   INDEX SECTIONS
   ========================================================================== */
.section {
    padding: 8vw 4vw;
    position: relative;
}

/* 1. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-height);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: clamp(4rem, 10vw, 12rem);
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 2vw;
}

.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3vw;
    font-weight: 300;
}

/* 2. Kinetic Marquee */
.marquee-wrapper {
    background-color: var(--accent-neon);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.marquee-track {
    display: flex;
    animation: scrollMarquee 15s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-right: 40px;
    text-transform: uppercase;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 3. About / Philosophy */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    align-items: end;
}

.about-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.3;
}

/* 4. Services Grid (Hover Reveal) */
.service-list {
    border-top: 1px solid var(--border-color);
    margin-top: 5vw;
}

.service-item {
    padding: 4vw 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: padding var(--transition-fast);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-panel);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-slow);
    z-index: -1;
}

.service-item:hover {
    padding: 4vw 2vw;
}

.service-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service-item h3 {
    font-size: clamp(2rem, 5vw, 4rem);
    transition: color var(--transition-fast);
}

.service-item:hover h3 {
    color: var(--accent-neon);
}

.service-desc {
    max-width: 400px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 5. Interactive SVG Campaign Chart */
.chart-section {
    background-color: var(--bg-panel);
    border-radius: 20px;
    padding: 5vw;
    margin: 5vw 4vw;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.svg-chart-container {
    width: 100%;
    height: 400px;
    position: relative;
}

.line-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-path {
    fill: none;
    stroke: var(--accent-neon);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2.5s var(--ease-out-expo);
}

.chart-path.is-inview {
    stroke-dashoffset: 0;
}

/* 6. Advanced ROI Calculator */
.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.calc-display {
    text-align: center;
    margin-bottom: 50px;
}

.calc-display h2 {
    font-size: 5rem;
    color: var(--accent-neon);
}

.calc-display p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.slider-container {
    position: relative;
    width: 100%;
}

input[type=range].custom-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range].custom-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: var(--border-color);
}

input[type=range].custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: var(--accent-neon);
    margin-top: -14px;
    cursor: none;
    transition: transform 0.1s;
}

input[type=range].custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* 7. Industries (Hover Image Reveal) */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.industry-card {
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all var(--transition-fast);
}

.industry-card:hover {
    background: var(--accent-neon);
    border-color: var(--accent-neon);
    transform: translateY(-10px);
}

.industry-card:hover h4 {
    color: var(--bg-dark);
}

/* 8. Testimonials (Editorial Layout) */
.testimonial-block {
    display: flex;
    flex-direction: column;
    gap: 2vw;
    padding-left: 4vw;
    border-left: 2px solid var(--accent-neon);
    margin-bottom: 4vw;
}

.testimonial-block p {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-family: var(--font-heading);
    line-height: 1.4;
}

.testimonial-block span {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 9. Live Chat Floating Promo */
.live-chat-promo {
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.1"/%3E%3C/svg%3E'), linear-gradient(135deg, var(--bg-panel), var(--bg-dark));
    border: 1px solid var(--border-color);
    padding: 4vw;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   STRICT IDENTICAL FOOTER
   ========================================================================== */
.site-footer {
    background-color: #030407;
    padding: 6vw 4vw 2vw;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4vw;
    margin-bottom: 6vw;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 400px;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a {
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-neon);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2vw;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   LEGAL & CONTACT PAGES
   ========================================================================== */
.page-header {
    padding: 15vw 4vw 5vw;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-panel);
}

.page-header h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--accent-neon);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 5vw 4vw;
}

.legal-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-light);
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6vw;
    padding: 5vw 4vw;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info-block {
    background: var(--bg-panel);
    padding: 4vw;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-info-block h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-neon);
}

.contact-info-block p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-neon);
}

.btn-submit {
    background: var(--accent-neon);
    color: var(--bg-dark);
    border: none;
    padding: 20px 40px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: none;
    transition: background var(--transition-fast);
}

.btn-submit:hover {
    background: var(--accent-hover);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .about-grid,
    .contact-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .live-chat-promo {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}