/* --- 1. FONTS & BRAND VARIABLES --- */
/* Importing Urbanist for Headlines and DM Sans for Body Text */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --brand-black: #000000;
    --brand-yellow: #95D934;
    --brand-bg: #F9FAFC;
}

body {
    font-family: 'DM Sans', sans-serif;
    /* Global Body Font */
    background-color: var(--brand-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Headline Specific Font */
h1,
h2,
h3,
h4,
.font-headline {
    font-family: 'Urbanist', sans-serif;
    letter-spacing: -0.02em;
}

/* --- 2. HEADER --- */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

/* --- 3. UNIFIED BUTTONS (Exactly 280px width) --- */
.btn-genius-base {
    font-family: 'DM Sans', sans-serif;
    /* Keeping buttons readable */
    font-weight: 700;
    padding: 1.1rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid var(--brand-black);
    width: 280px;
    max-width: 100%;
}

/* --- THE TACTILE GENIUS BUTTON --- */
.btn-genius-primary {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-black) !important;
    border: none;
    /* Use a 'springy' cubic-bezier for a premium feel */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        background-color 0.1s ease;
}

/* HOVER: No transparency, just lift and grow */
.btn-genius-primary:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3);
}

/* CLICK (ACTIVE): Snap down and change color to Black */
.btn-genius-primary:active {
    background-color: var(--brand-black) !important;
    color: white !important;
    transform: translateY(0) scale(0.96);
    /* Visual feedback of a 'press' */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ARROW SLIDE: The subtle detail */
.btn-genius-primary span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-genius-primary:hover span {
    transform: translateX(10px);
    /* Slides arrow right on hover */
}

/* --- 4. TRUST BAR --- */
/* --- SECURE INFINITE SCROLL --- */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Moves exactly half the width of the double-set */
}

.logos-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-slide {
    display: flex;
    width: fit-content;
    animation: 25s scroll linear infinite;
}

/* Pause on hover so people can actually read the logos */
.logos-slide:hover {
    animation-play-state: paused;
}

.logos-slide span {
    margin: 0 40px;
    font-family: 'Urbanist', sans-serif;
    /* Logos look better in Urbanist */
    font-weight: 800;
    font-size: 0.8rem;
    color: #000;
    opacity: 0.4;
}

/* Styling the Active Bar when the accordion is open */
.accordion-btn.border-slate-400 {
    border-left-color: #fbbf24 !important;
    /* Forces the left border to your brand yellow */
    border-left-width: 4px !important;
}

/* Slider Utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Transparent Arrow Animations */
@keyframes arrow-left-pulse {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }
}

@keyframes arrow-right-pulse {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.animate-pulse-left {
    animation: arrow-left-pulse 2s infinite ease-in-out;
}

.animate-pulse-right {
    animation: arrow-right-pulse 2s infinite ease-in-out;
}

/* Testimonial Sharp Design */
.testimonial-card {
    transition: border-color 0.4s ease;
    cursor: grab;
}

.testimonial-card:active {
    cursor: grabbing;
}

.testimonial-card:hover {
    border-color: #7C3AED;
}

/* --- 5. MOBILE MENU (RELIABILITY FIX) --- */
/* Dark cinematic takeover — same slate-950 as the footer & final CTA */
#mobile-menu {
    background-color: #020617 !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#mobile-menu.flex {
    display: flex !important;
}

#mobile-menu .menu-nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    /* slate-900 */
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-bottom: 1px solid #f8fafc !important;
    width: 100% !important;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
}

#mobile-menu .menu-sub-item {
    display: inline-block !important;
    padding: 12px 0 !important;
    margin-left: 32px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    /* slate-500 */
    text-transform: uppercase !important;
    background: transparent;
    transition: color 0.2s ease;
}

#mobile-menu .menu-sub-item:hover {
    color: #000000 !important;
}

/* Accordion Transitions */
[id^="mobile-accordion-"] {
    transition: all 0.3s ease-in-out;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loop Scrolling logos ticker styling */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.logo-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 48px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #94a3b8; /* slate-400 */
}
.logo-ticker-item img {
  height: 28px !important;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}
.logo-ticker-item img:hover {
  opacity: 0.95;
  filter: grayscale(0%);
}

/* --- 6. CINEMATIC LAYER (3D scroll, reveals, parallax) --- */
/* Everything below is additive. Brand palette only: #95D934 / #F9FAFC / black.
   Initial hidden states apply ONLY under html.js-anim — if the animation layer
   fails to boot, js/animations.js removes the class and the page renders fully. */

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-yellow), #7cb728);
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 200;
    pointer-events: none;
}

/* Hero elements wait for the intro timeline */
.js-anim .anim-hide {
    opacity: 0;
    visibility: hidden;
}

/* 3D stage for card grids */
.persp {
    perspective: 1400px;
}

.persp > * {
    transform-style: preserve-3d;
}

.tilt-card {
    will-change: transform;
}

/* Split-headline word masks */
.split-h1,
.split-h2 {
    perspective: 900px;
}

.word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}

.word-mask .word {
    display: inline-block;
    transform-origin: 50% 100%;
    will-change: transform;
}

/* Hero cinematic backdrop */
.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: -10% 0;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 75%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.hero-orb--a {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -140px;
    background: radial-gradient(circle, rgba(149, 217, 52, 0.35), rgba(149, 217, 52, 0) 70%);
}

.hero-orb--b {
    width: 560px;
    height: 560px;
    bottom: -220px;
    left: -180px;
    background: radial-gradient(circle, rgba(149, 217, 52, 0.22), rgba(149, 217, 52, 0) 70%);
}


/* Final CTA (dark finale) glow orbs */
#final-cta .final-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    will-change: transform;
}

#final-cta .final-orb--a {
    width: 520px;
    height: 520px;
    top: -180px;
    left: -160px;
    background: radial-gradient(circle, rgba(149, 217, 52, 0.16), rgba(149, 217, 52, 0) 70%);
}

#final-cta .final-orb--b {
    width: 440px;
    height: 440px;
    bottom: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(149, 217, 52, 0.12), rgba(149, 217, 52, 0) 70%);
}

/* Magnetic CTA */
.magnetic {
    will-change: transform;
}

/* Mobile menu: oversized numbered links + glow */
.menu-orb {
    position: absolute;
    width: 460px;
    height: 460px;
    top: -140px;
    right: -160px;
    border-radius: 50%;
    filter: blur(100px);
    background: radial-gradient(circle, rgba(149, 217, 52, 0.18), rgba(149, 217, 52, 0) 70%);
    pointer-events: none;
}

.menu-link-mask {
    overflow: hidden;
}

.menu-link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 0.28em 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    font-size: clamp(2.1rem, 9vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #ffffff;
    /* color only — GSAP owns this element's transform */
    transition: color 0.25s ease;
    will-change: transform;
}

.menu-link:hover,
.menu-link:active {
    color: var(--brand-yellow);
}

.menu-link .menu-index {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--brand-yellow);
}

/* Motion-sensitive users get the static site */
@media (prefers-reduced-motion: reduce) {
    .js-anim .anim-hide {
        opacity: 1;
        visibility: visible;
    }

    #scroll-progress {
        display: none;
    }

    .animate-marquee {
        animation: none;
    }
}