/* ======================= */
/* BASE VARIABLES & RESET  */
/* ======================= */
:root {
    --bg-dark: #070707;
    /* Ultra deep black, not flat #121212 */
    --text-light: #F4F4F0;
    /* Bone white / off-white, easier on eyes */
    --bg-light: #E8E8E3;
    /* Classy warm stone gray */
    --text-dark: #070707;
    --purple-brand: #9C93E8;

    --font-primary: 'Sohne Breit Test Kraftig', 'Inter', sans-serif;
    --font-secondary: 'Times New Roman', Times, serif;
    /* Fallback for Arizona Mix */

    --padding-x: 6vw;
    /* Generous side padding */
    --padding-y: 20vh;
    /* Massive vertical breathing room */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
    /* Hide default cursor */
}

/* ======================= */
/* PREMIUM EFFECTS         */
/* ======================= */
#noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    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)"/%3E%3C/svg%3E');
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-light);
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: width 0.3s cubic-bezier(0.2, 1, 0.3, 1),
        height 0.3s cubic-bezier(0.2, 1, 0.3, 1),
        background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-outline.hover-active {
    width: 80px;
    height: 80px;
    background-color: var(--text-light);
    border-color: transparent;
}

/* ======================= */
/* HEADER                  */
/* ======================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--padding-x);
    display: flex;
    justify-content: center; /* Centered now that MENU is gone */
    align-items: center;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through if empty */
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.main-header.hidden {
    transform: translateY(0); /* Don't hide the header anymore */
}

.menu-btn,
.logo {
    pointer-events: auto;
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ======================= */
/* HERO SECTION            */
/* ======================= */
.hero-section {
    position: relative;
    height: 100vh; /* Normal height since there's no pinned scrolling anymore */
    width: 100%;
    background-color: var(--bg-dark);
}

.hero-mask-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    /* We use mask-image to clip the container. 
       GSAP will animate the mask-size */
    -webkit-mask-image: url('logo_mask.svg');
    mask-image: url('logo_mask.svg');
    -webkit-mask-size: 5000%;
    /* Start huge */
    mask-size: 5000%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    overflow: hidden;
    background-color: var(--purple-brand);
    /* Fill the masked area if empty */
}

/* Ensure the video/image fills the mask container entirely */
.hero-video-bg,
.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-mask-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.15) 0%, rgba(7, 7, 7, 0.45) 100%);
    /* Professional gradient overlay */
    z-index: 1;
}

.hero-mask-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}
.hero-title.subtle {
    font-size: clamp(1.5rem, 3vw, 3.5rem); /* Much smaller */
    font-weight: 300; /* Lighter weight */
    letter-spacing: 0.05em; /* Elegantly spaced out */
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-line {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.hero-line-inner {
    display: inline-block;
    transform: translateY(110%);
}

.hero-subtitle.subtle {
    font-size: clamp(0.9rem, 1vw, 1.2rem);
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 400;
    opacity: 0.7;
    text-align: center;
    max-width: 400px;
    margin: 0 auto 4rem auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Scroll Indicator Arrows */
.scroll-indicator {
    position: absolute;
    bottom: 6vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -8px; /* overlap slightly */
    color: var(--text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    display: block;
    width: 28px;
    height: 28px;
    animation: scrollDown 2s infinite cubic-bezier(0.2, 1, 0.3, 1);
}

.scroll-arrow:nth-child(1) { animation-delay: 0s; opacity: 0.2; }
.scroll-arrow:nth-child(2) { animation-delay: 0.15s; opacity: 0.5; margin-top: -14px;}
.scroll-arrow:nth-child(3) { animation-delay: 0.3s; opacity: 1; margin-top: -14px;}

@keyframes scrollDown {
    0% { transform: translateY(-10px); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(-10px); }
}
/* ======================= */
.spotlight-section {
    position: relative;
    height: 150vh;
    width: 100%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    z-index: 10;
    /* Ensure it stays above the hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20vh;
    border-top-left-radius: 40px;
    /* Slight rounding for elegant overlap */
    border-top-right-radius: 40px;
    margin-top: 0;
}

.spotlight-content {
    width: 80%;
    max-width: 800px;
    text-align: center;
}

.spotlight-content h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.spotlight-content p {
    font-size: clamp(1.2rem, 2vw, 2.5rem);
    font-weight: 300;
    line-height: 1.4;
}



/* ======================= */
/* BENEFITS SECTION        */
/* ======================= */
.benefits-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--padding-y) var(--padding-x);
    z-index: 10;
}

.benefits-title {
    font-size: clamp(3rem, 6vw, 7rem);
    /* Match problem-text size */
    font-weight: 300;
    margin-bottom: 12vh;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
    /* More space */
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-card .emoji {
    font-size: 3.5rem;
    /* Larger */
}

.benefit-card h3 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    /* Larger */
    font-weight: 400;
    /* Subtle weight reduction */
    letter-spacing: -0.02em;
}

.benefit-card p {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    opacity: 0.7;
    /* Slightly darker */
    line-height: 1.6;
    font-weight: 300;
}



/* ======================= */
/* USE CASES (HORIZONTAL)  */
/* ======================= */
.cases-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Will be pinned by GSAP */
    background-color: var(--bg-dark);
    overflow: hidden; /* Hide horizontal overflow initially */
    z-index: 10;
}

.cases-wrapper {
    display: flex;
    height: 100%;
    width: max-content; /* Let it grow horizontally as much as needed */
    will-change: transform;
}

.case-panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    flex-shrink: 0; /* Prevent shrinking */
    background-color: var(--bg-dark);
}

.case-media {
    position: absolute;
    top: 5vh;
    left: 5vw;
    width: 90vw;
    height: 90vh; /* Slight margin to look elegant like an exhibition */
    overflow: hidden;
    border-radius: 12px;
}

.case-media img,
.case-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.case-group {
    display: flex;
    position: relative;
    height: 100vh;
}

/* Elegant typography overlay for cases */
.case-info {
    position: absolute; /* Using GSAP to translate instead of CSS sticky */
    top: 0;
    left: 8vw;
    height: 100vh;
    z-index: 5;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 8vh;
    gap: 0.5rem;
    mix-blend-mode: difference; /* Awwwards premium touch */
    pointer-events: none;
}

.case-number {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    font-style: italic;
    opacity: 0.8;
}

.case-name {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.case-desc {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    max-width: 400px;
}

/* ======================= */
/* FINAL CTA SECTION       */
/* ======================= */
.final-cta-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark); /* Now dark to match the video */
    color: var(--text-light); /* White text now */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--padding-y) var(--padding-x);
    z-index: 10;
    text-align: center;
    overflow: hidden;
}

.tools-cta-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.6; /* Slight transparency so text pops more */
}

.tools-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(7, 7, 7, 0.4) 30%, rgba(7, 7, 7, 0.4) 70%, var(--bg-dark) 100%);
    z-index: 1;
}

.final-cta-wrapper {
    position: relative;
    z-index: 2; /* Above the video and overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem; /* Reduced gap since text is smaller */
}

.final-cta-wrapper h2 {
    font-size: clamp(3rem, 7vw, 8rem); /* Much smaller than before (15rem) */
    font-weight: 400; /* Slightly lighter */
    line-height: 0.95;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    color: var(--text-light); /* Ensure it's white */
}

.final-cta-wrapper .line {
    overflow: hidden;
    padding-bottom: 2%;
}

.final-cta-wrapper .word {
    display: inline-block;
    transform: translateY(110%);
}

.large-cta {
    font-size: 2rem;
    padding: 1rem 3rem;
    border: none;
    background-color: #d0d2d3;
    border-radius: 50px;
    color: #ff2a2a;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
}

.large-cta:hover {
    background-color: #c0c2c3;
    color: #ff2a2a;
}

/* Base button style (for hero) */
.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: var(--text-light);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Desktop specifics */
@media (min-width: 1024px) {
    .before-after-container {
        flex-direction: row;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ======================= */
/* FOOTER IMAGE SECTION    */
/* ======================= */
.footer-image-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Making it occupy the full viewport height */
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* Full bleed usually looks best for a final image */
    z-index: 10;
    overflow: hidden;
}

.footer-tacaca-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 7, 0.4); /* Dark elegant overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.footer-overlay h2 {
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 0.95;
    text-align: center;
}
