/* ==========================================================================
   Base & Typography (Kinetic Editorial Theme)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syncopate:wght@400;700&display=swap');

:root {
    --bg-light: #F4F4F0;
    --bg-dark: #050505;
    --bg-gray: #E5E5E0;
    --text-dark: #050505;
    --text-light: #F4F4F0;
    --text-muted: #888888;
    --accent-red: #FF2A00;
    --accent-red-hover: #CC2200;
    --border-dark: rgba(5, 5, 5, 0.15);
    --border-light: rgba(244, 244, 240, 0.15);
    --font-head: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --transition-snappy: all 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-light);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

/* Kinetic Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image:
        linear-gradient(to right, var(--border-dark) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-dark) 1px, transparent 1px);
    background-size: 4vw 4vw;
    pointer-events: none;
    opacity: 0.5;
}

.dark-section .bg-grid {
    background-image:
        linear-gradient(to right, var(--border-light) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-light) 1px, transparent 1px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

section {
    position: relative;
    padding: 8rem 5%;
    border-bottom: 1px solid var(--border-dark);
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   Dynamic Morphing Cursor
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background 0.3s, border-radius 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.6rem;
    color: transparent;
    overflow: hidden;
}

.hover-link .cursor-dot {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--accent-red);
    mix-blend-mode: difference;
}

.hover-drag .cursor-dot {
    width: 80px;
    height: 80px;
    background: var(--accent-red);
    color: var(--text-light);
    border-radius: 50%;
}

.hover-drag .cursor-dot::after {
    content: "DRAG";
    color: white;
}

/* ==========================================================================
   Strictly Consistent Header & Footer
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--bg-dark);
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 1rem 5%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 50px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 4rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition-snappy);
}

.nav-links a:hover::after {
    left: 0;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.btn-solid {
    background: var(--accent-red);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-snappy);
    z-index: 1;
}

.btn-solid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-light);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition-snappy);
}

.btn-solid:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.btn-solid:hover {
    color: var(--bg-dark);
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: scale(0.95);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.active {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Index Page Layout
   ========================================================================== */
/* 1. Kinetic Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    padding-top: 150px;
    background: var(--bg-light);
    position: relative;
}

.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: clamp(4rem, 11vw, 12rem);
    line-height: 0.9;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.05em;
}

.hero-sub {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 2px solid var(--text-dark);
    padding-top: 2rem;
    margin-top: 4rem;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.5;
    font-weight: 500;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    font-family: var(--font-head);
    font-size: 1rem;
    text-align: center;
    animation: rotateBadge 10s linear infinite;
}

@keyframes rotateBadge {
    100% {
        transform: rotate(360deg);
    }
}

/* 2. Aggressive Marquee */
.marquee-sec {
    background: var(--accent-red);
    color: var(--text-light);
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    border: none;
}

.marquee-track {
    display: inline-block;
    animation: scrollLeft 15s linear infinite;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-track span {
    margin: 0 3rem;
    color: var(--bg-dark);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 3. The Manifesto */
.manifesto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.manifesto h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1;
}

.manifesto p {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 4. Sticky Sticky Scroll Services */
.services-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.services-sticky {
    position: sticky;
    top: 150px;
    width: 40%;
}

.services-sticky h2 {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.services-list {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-item {
    padding: 4rem;
    background: var(--bg-gray);
    border: 1px solid var(--border-dark);
    border-radius: 0;
    transition: var(--transition-snappy);
}

.service-item:hover {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--border-light);
    transform: translateX(-20px);
}

.service-item:hover p {
    color: var(--text-light);
}

.s-num {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 2rem;
    display: block;
}

.service-item h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-item p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 5. Brutalist Calculator */
.calc-section {
    border-top: 1px solid var(--border-light);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: stretch;
}

.calc-input-area {
    padding: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
}

.calc-input-area h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.range-group {
    margin-top: 4rem;
}

.range-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border-light);
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background: var(--accent-red);
    cursor: pointer;
    transition: 0.2s;
    border-radius: 0;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2) rotate(45deg);
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--accent-red);
    color: var(--text-light);
}

.res-block {
    margin-bottom: 4rem;
}

.res-block:last-child {
    margin-bottom: 0;
}

.res-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.res-val {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
}

/* 6. Hover Industry Image Switcher */
.industries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ind-list {
    display: flex;
    flex-direction: column;
}

.ind-item {
    padding: 2rem 0;
    border-bottom: 2px solid var(--border-dark);
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--text-muted);
    cursor: none;
    transition: var(--transition-snappy);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ind-item:hover {
    color: var(--text-dark);
    padding-left: 2rem;
    border-bottom-color: var(--accent-red);
}

.ind-item span {
    font-size: 1rem;
    color: var(--accent-red);
    opacity: 0;
    transition: var(--transition-snappy);
}

.ind-item:hover span {
    opacity: 1;
}

.ind-image {
    height: 600px;
    background: var(--bg-gray);
    border: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ind-image::before {
    content: 'HOVER LIST';
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--text-muted);
    position: absolute;
}

.ind-img-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ind-img-layer.active {
    opacity: 1;
    z-index: 2;
}

/* 7. Data Reports / CSS Charts */
.reports {
    border-top: 1px solid var(--border-light);
}

.chart-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 500px;
    padding: 4rem 2rem 0;
    margin-top: 4rem;
    border-bottom: 2px solid var(--border-light);
}

.bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 18%;
    position: relative;
}

.bar {
    width: 100%;
    background: var(--text-light);
    position: relative;
    transform-origin: bottom;
    animation: growBrutal 1s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

.bar:hover {
    background: var(--accent-red);
}

.bar-val {
    font-family: var(--font-head);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeBrutal 0.5s 1s forwards;
}

.bar-label {
    position: absolute;
    bottom: -40px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.2rem;
}

@keyframes growBrutal {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes fadeBrutal {
    to {
        opacity: 1;
    }
}

/* 8. Horizontal Drag Testimonials */
.testi-section {
    overflow: hidden;
}

.testi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.testi-track {
    display: flex;
    gap: 2rem;
    cursor: grab;
    padding-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.testi-track::-webkit-scrollbar {
    display: none;
}

.testi-card {
    min-width: 500px;
    background: var(--bg-gray);
    padding: 4rem;
    border: 1px solid var(--border-dark);
}

.testi-card p {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 3rem;
    font-weight: 500;
}

.testi-author {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--accent-red);
}

/* 9. Aggressive CTA */
.cta-section {
    background: var(--accent-red);
    color: var(--text-light);
    text-align: center;
    padding: 12rem 5%;
    border: none;
}

.cta-shape {
    width: 150px;
    height: 150px;
    background: var(--bg-dark);
    margin: 0 auto 3rem;
    animation: spinShape 10s linear infinite;
}

.cta-section h2 {
    font-size: 8rem;
    margin-bottom: 2rem;
    line-height: 0.9;
}

@keyframes spinShape {
    100% {
        transform: rotate(360deg);
    }
}

/* 10. Minimal Brutal Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.form-group {
    margin-bottom: 3rem;
}

.form-input {
    width: 100%;
    border: none;
    border-bottom: 3px solid var(--border-dark);
    background: transparent;
    padding: 1.5rem 0;
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-snappy);
}

.form-input:focus {
    border-bottom-color: var(--accent-red);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 1.2rem;
}

/* ==========================================================================
   Footer 
   ========================================================================== */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 8rem 5% 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 2rem;
    max-width: 400px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.footer-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-snappy);
    font-size: 1.1rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-red);
    transform: translateX(10px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Legal Pages Specific
   ========================================================================== */
.legal-main {
    padding-top: 200px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.legal-main h1 {
    font-size: 6rem;
    margin-bottom: 4rem;
    text-align: left;
    line-height: 0.9;
}

.legal-content h2 {
    font-size: 3rem;
    margin: 5rem 0 2rem;
    color: var(--accent-red);
}

.legal-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.legal-content ul {
    padding-left: 2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 6rem;
    }

    .hero-sub {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .manifesto,
    .services-wrapper,
    .calc-grid,
    .industries-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 4rem;
    }

    .services-sticky {
        position: relative;
        top: 0;
        width: 100%;
    }

    .services-list {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 6rem 5%;
    }

    .chart-wrapper {
        height: 300px;
    }

    .calc-input-area,
    .calc-results {
        padding: 2rem;
    }

    .cta-section h2 {
        font-size: 4rem;
    }
}