/* 
===========================================
  CSS VARIABLES & THEME
=========================================== 
*/
@font-face {
    font-family: 'Futura Condensed Extra Bold';
    src: url('../assets/fonts/FuturaCondensedExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Host Grotesk';
    src: url('../assets/fonts/HostGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

:root {
    /* Colors */
    --bg-primary: #07001B;
    --bg-secondary: #07001B;
    --bg-light: #F8EFFB;
    --purple-primary: #7144F6;
    --green-accent: #CCF347;

    /* Typography */
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #0A0026;

    /* Fonts */
    --font-heading: 'Futura Condensed Extra Bold', 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Host Grotesk', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --container-padding: 2rem;
    --section-spacing: 120px;

    /* Border Radius & Shadows */
    --radius-sm: 4px;
    --radius-md: 16px;
    --radius-lg: 12px;
    --radius-xl: 40px;

    --shadow-soft: 0 10px 40px rgba(113, 68, 246, 0.15);
    --shadow-glow: 0 0 30px rgba(204, 243, 71, 0.4);
}

/* 
===========================================
  RESET & GLOBAL STYLES
=========================================== 
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -5px;
    padding-right: 8px;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* 
===========================================
  COMPONENTS
=========================================== 
*/
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--green-accent);
    color: var(--bg-primary);
    padding: 6px;
    padding-left: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(204, 243, 71, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 243, 71, 0.4);
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    margin-left: 0;
}

.arrow-circle svg {
    width: 16px;
    height: 16px;
}

.btn-nav {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    padding: 8px 16px;
}

.btn-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 12px;
    margin-right: -12px;
}

.mt-xl {
    margin-top: 60px;
}

.mb-lg {
    margin-bottom: 40px;
}

/* 
===========================================
  SECTIONS
=========================================== 
*/
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 44px;
    height: 44px;
}

.nav-actions-wrapper {
    display: flex;
    align-items: center;
    background: #0f0826;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    gap: 12px;
}

.btn-nav-text {
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 20px;
    width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.btn-nav-text span {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-text::after {
    content: attr(data-text);
    position: absolute;
    color: var(--bg-primary);
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-text:hover {
    background-color: var(--green-accent);
}

.btn-nav-text:hover span {
    transform: translateY(-150%);
}

.btn-nav-text:hover::after {
    transform: translateY(0);
}

.menu-toggle-box {
    background: #fff;
    color: var(--bg-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-toggle-box:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Dropdown Navigation */
.dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 340px;
    background-color: #fff;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    /* Animation base state */
    opacity: 0;
    visibility: hidden;
    transform-origin: top right;
    transform: translateX(100%) translateY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.6s;
    z-index: 1000;
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}

.nav-dropdown a {
    position: relative;
    display: flex;
    align-items: center;
    color: #1a1e23;
    font-size: 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.nav-dropdown a::before {
    content: '→';
    position: absolute;
    left: 20px;
    opacity: 0;
    font-weight: 400;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-dropdown a:hover {
    background-color: #F4F6F7;
    padding-left: 52px;
}

.nav-dropdown a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Menu Toggle Animation */
.menu-toggle-box svg line {
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle-box.active .line-top {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle-box.active .line-middle {
    opacity: 0;
}

.menu-toggle-box.active .line-bottom {
    transform: translateY(-6px) rotate(-45deg);
}

/* Progressive Blur Top */
.scroll-blur-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    z-index: 999;
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

/* Hero Section */
.hero-sticky-wrapper {
    position: relative;
    height: 130vh;
}

.hero {
    position: sticky;
    top: 0;
    padding: 160px 0 0px;
    text-align: center;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

/* ASCII canvas background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #07001B;
    overflow: hidden;
}

#ascii-canvas {
    width: 100%;
    height: 100%;
    display: block;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center top, rgba(88, 50, 189, 0.9) 0%, rgba(7, 0, 27, 0.7) 65%, rgba(7, 0, 27, 1) 100%);
    pointer-events: none;
    z-index: -1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 0 12px rgba(113, 68, 246, 0.4);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-badge:hover {
    background: rgba(113, 68, 246, 0.4);
    border-color: rgba(204, 243, 71, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(113, 68, 246, 0.4);
}

.review-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.review-badge:hover::before {
    left: 200%;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars svg {
    width: 12px;
    height: 12px;
}

.review-badge span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    margin-bottom: 12px;
    line-height: 0.9;
    letter-spacing: -5px;
}

.hero-title .anim-word, .hero-title .word {
    background: linear-gradient(to bottom, #ffffff 20%, #8771bc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 5px; /* Prevent clipping descenders during animation */
    padding-right: 12px;
    margin-right: -12px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #9c92b3;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Hero Dashboard Image */
.hero-mockup-img-container {
    margin-top: 50px;
}

.hero-dashboard-img {
    width: 100%;
    max-width: 750px;
    display: block;
    margin: 0 auto;
    will-change: transform;
}

.logos-section {
    padding: calc(var(--section-spacing) + 120px) 0 calc(var(--section-spacing) - 60px);
    background: var(--bg-secondary);
    overflow-x: clip;
}

.logos-text-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.logos-text-lines {
    position: absolute;
    top: -20px;
    bottom: -20px;
    left: 40px;
    right: 40px;
    border-left: 1px solid;
    border-right: 1px solid;
    border-image: linear-gradient(to bottom, transparent, rgba(201, 188, 242, 0.25) 20%, rgba(201, 188, 242, 0.25) 80%, transparent) 1;
    pointer-events: none;
    z-index: 1;
    transform-origin: center;
    transform: scaleY(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.logos-text-wrapper.animate-in .logos-text-lines {
    transform: scaleY(1);
}

.logos-text-content {
    position: relative;
    z-index: 2;
}

.desktop-text {
    display: block;
}

.mobile-text {
    display: none;
}

.logos-text-content p {
    margin: 0;
    padding: 6px 0;
    font-size: clamp(1.4rem, 3.2vw, 2.8rem);
    text-align: center;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.1;
    position: relative;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logos-text-wrapper.animate-in .logos-text-content p {
    opacity: 1;
    transform: translateY(0);
}

.logos-text-content p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -40px;
    right: -40px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 188, 242, 0.25) 20%, rgba(201, 188, 242, 0.25) 80%, transparent);
    transform-origin: center;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.logos-text-wrapper.animate-in .logos-text-content p::after {
    transform: scaleX(1);
}

/* Staggering delays */
.logos-text-content p:nth-child(1) {
    transition-delay: 0.6s;
}

.logos-text-content p:nth-child(1)::after {
    transition-delay: 0.2s;
}

.logos-text-content p:nth-child(2) {
    transition-delay: 0.8s;
}

.logos-text-content p:nth-child(2)::after {
    transition-delay: 0.4s;
}

.logos-text-content p:nth-child(3) {
    transition-delay: 1.0s;
}

.logos-text-content p:nth-child(3)::after {
    transition-delay: 0.6s;
}

.logos-text-content p:nth-child(4) {
    transition-delay: 1.2s;
}

.logos-text-content p:nth-child(4)::after {
    transition-delay: 0.8s;
}

.logos-text-content p:nth-child(5) {
    transition-delay: 1.4s;
}

.logos-text-content p:nth-child(5)::after {
    transition-delay: 1.0s;
}

.logos-text-content .highlight {
    color: #c9bcf2;
    font-weight: 400;
}

.logos-text-content .hover-img-trigger {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.logos-text-content .hover-img-trigger:hover {
    color: #fff;
}

.logos-text-content .hover-img-trigger::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(20px) rotate(8deg);
    width: 140px;
    height: 140px;
    background-color: #E2E6E7;
    background-image: var(--hover-img);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.logos-text-content .hover-img-trigger:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) rotate(-6deg);
}

.logos-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0 10px;
    margin-top: 10px;
    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);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 1.2s;
}

.logos-text-wrapper.animate-in .logos-marquee {
    opacity: 1;
    transform: translateY(0);
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scrollLogos 35s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.logos-track:hover {
    animation-play-state: paused;
}

.logos-track .logo-item {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: 0.5;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.logos-track .logo-item:hover {
    opacity: 1;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0) translateZ(0);
    }

    100% {
        transform: translateX(calc(-50% - 40px)) translateZ(0);
    }
}

.logo-item {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services-section {
    padding: var(--section-spacing) 0;
    background: linear-gradient(to bottom, transparent 55%, var(--bg-light) 55%);
}

.services-wrapper {
    background: transparent;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    max-width: 1600px;
    width: 96%;
    margin: 0 auto;
}

.services-top-panel {
    background: var(--purple-primary);
    padding: 80px 80px 60px;
    border-radius: 40px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}


.services-header {
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

.section-kicker {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: 60px;
    line-height: 0.95;
    letter-spacing: -5px;
}

.services-cards {
    position: relative;
    z-index: 1;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    height: 480px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px 20px;
    background: #111;
}

/* Initial state before scroll reveal */
.services-section .service-card {
    opacity: 0;
    transform: translateY(60px);
}

/* Scroll Reveal States */
.services-section.animate-in .service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-section.animate-in .service-card:nth-child(1) { transition-delay: 0s; }
.services-section.animate-in .service-card:nth-child(2) { transition-delay: 0.15s; }
.services-section.animate-in .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-section.animate-in .service-card:nth-child(4) { transition-delay: 0.45s; }

/* Hover effect overrides entrance transition to keep hover fast and snappy */
.services-section.animate-in .service-card:hover {
    transform: translateY(-10px);
    transition: transform 0.4s ease;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.service-card:hover .card-bg {
    transform: scale(1.05);
}

/* Service Images */
.card-bg-1 {
    background: url('../assets/images/Service1 (1).png') no-repeat center center / cover;
}

.card-bg-2 {
    background: url('../assets/images/Service1 (2).png') no-repeat center center / cover;
}

.card-bg-3 {
    background: url('../assets/images/Service1 (3).png') no-repeat center center / cover;
}

.card-bg-4 {
    background: url('../assets/images/Service1 (4).png') no-repeat center center / cover;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
}

.card-title {
    position: relative;
    z-index: 1;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    color: #fff;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

.services-bottom-panel {
    background: #150052;
    border-radius: 0 0 40px 40px;
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -40px;
    padding-top: 80px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(-80px);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.services-bottom-panel.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stats-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 350px;
    line-height: 1.4;
}

.stats-numbers {
    display: flex;
    gap: 60px;
}

.stat-item h4 {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 0px;
    line-height: 1;
    letter-spacing: -2px;
}

.stat-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.stat-item.duplicate {
    display: none;
}

@media (max-width: 768px) {
    .services-bottom-panel {
        flex-direction: column;
        padding: 40px 0;
        align-items: center;
        overflow: hidden;
    }

    .stats-text {
        text-align: center;
        max-width: 90%;
        margin-bottom: 20px;
    }

    .stats-numbers {
        display: flex;
        width: max-content;
        animation: marquee 15s linear infinite;
        gap: 40px;
    }

    .stat-item.duplicate {
        display: block;
    }

    .stat-item h4 {
        font-size: 2.5rem;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

/* Problem Statement Section */
.problem-section {
    position: relative;
    z-index: 10;
    /* Ensures the massive shadow casts OVER the subsequent video-section */
    height: 450vh;
    /* Increased scroll track for pinning text reveal + cards stacking */
    background: var(--bg-light);
    color: var(--bg-primary);
    margin-top: -2px;
    /* Fixes sub-pixel line from section above */
}

.problem-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed to flex-start for desktop as well */
    align-items: center;
    box-sizing: border-box;
    padding: 20vh 20px 40px;
    /* Explicit top space */
}

.problem-kicker {
    color: rgba(10, 0, 38, 0.5);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem !important;
    /* Bigger on desktop */
    text-transform: none;
    letter-spacing: 0px !important;
    margin-bottom: clamp(12px, 2vh, 24px);
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
    .problem-kicker {
        font-size: 0.75rem !important;
        /* Small on mobile */
    }
}

.problem-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.9;
    letter-spacing: -2px;
    color: var(--bg-secondary);
    margin-bottom: clamp(20px, 4vh, 40px);
    background: linear-gradient(90deg, #150052 0%, #7144F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reveal-word {
    display: inline-block;
    -webkit-text-fill-color: #c0bccf;
    /* Solid light slate-purple */
    transition: -webkit-text-fill-color 0.15s ease;
    will-change: -webkit-text-fill-color;
}

.problem-cards-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 550px;
    /* Massively increased to encapsulate shadow */
    margin: 0 auto;
}

@media (max-width: 768px) {
    .problem-section {
        height: 250vh;
        /* Reduced for mobile to speed up scroll */
    }

    .problem-sticky-wrapper {
        justify-content: flex-start;
        padding-top: 15vh;
        height: auto;
        padding-bottom: 40px;
    }

    .problem-title br {
        display: none;
    }

    .problem-title {
        font-size: clamp(2.5rem, 10vw, 3.2rem);
        word-wrap: break-word;
    }

    .problem-cards-container {
        height: 250px;
        /* Reduced to remove the gap below cards */
        margin-top: 20px;
    }
}

.problem-cards-container .card-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform-origin: center bottom;
    will-change: transform, opacity, filter;
    margin-bottom: 150px;
    /* Expands compositor bounding box to prevent shadow clipping */
}

#card-1 {
    z-index: 1;
}

#card-2 {
    z-index: 2;
}

#card-3 {
    z-index: 3;
}

.alert-mockup {
    background: #07001B;
    border-radius: 20px;
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    /* Moved main shadow to ::before to bypass Safari clipping bugs */
    box-shadow: inset 0 0 30px rgba(113, 68, 246, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: 200px solid transparent;
}

.alert-mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.alert-mockup-bg {
    display: none;
}

.alert-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px 25px 40px;
    background: radial-gradient(100% 120% at 50% 0%, rgba(113, 68, 246, 0.6) 0%, transparent 100%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* The dark dividing shadow/line */
.alert-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    width: 84%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0.6) 90%, transparent 100%);
}

.alert-title {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 300;
    font-family: var(--font-body);
    letter-spacing: -0.5px;
}

.alert-icon {
    width: 46px;
    height: 46px;
}

.alert-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    padding: 25px 40px 25px 40px;
    margin: 0;
    font-weight: 300;
}

/* Video Section */
.video-section {
    position: relative;
    height: 200vh;
    /* Scroll track for zoom */
    background: var(--bg-light);
    margin-top: -2px;
    /* Fixes 1px sub-pixel gap line */
}

.video-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.video-container {
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(10, 0, 38, 0.15);
    transform-origin: center center;
    transition: transform 0.05s ease-out, border-radius 0.05s ease-out;
    will-change: transform, border-radius;
    position: relative;
    overflow: hidden;
}

.video-footer {
    position: absolute;
    bottom: -40px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bg-primary);
    opacity: 1;
    transition: opacity 0.15s ease-out;
    will-change: opacity;
    font-size: 0.9rem;
    font-weight: 500;
}

.video-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.purple-square {
    width: 12px;
    height: 12px;
    background: var(--purple-primary);
    display: inline-block;
}

@media (max-width: 768px) {
    .video-section {
        height: 180vh;
        /* Shorter scroll track for mobile */
    }

    .video-sticky-wrapper {
        align-items: flex-start;
        padding-top: 8vh;
    }

    .video-footer {
        font-size: 0.8rem;
    }

    .video-placeholder {
        border-radius: 12px;
        /* Smoother initial radius on small screens */
    }
}

.video-action {
    color: rgba(10, 0, 38, 0.6);
}

/* Scrolling Section */
.scrolling-section {
    padding: var(--section-spacing) 0 60px 0;
    margin-top: -2px;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .scrolling-section {
        padding-top: 20px;
        /* Removes massive white gap below zoomed video */
    }
}

.scrolling-header {
    margin-bottom: 60px;
}

.scrolling-header .section-title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 35%, #7144F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
    font-family: var(--font-heading);
}

.scrolling-subtitle {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    font-weight: 300;
    font-family: var(--font-body);
    line-height: 1.4;
    margin-top: 25px;
    margin-bottom: 60px;
}

.scrolling-container {
    width: 100%;
    overflow: hidden;
    /* Hide scrollbars completely to prevent hijacking page scroll */
    padding-bottom: 40px;
    perspective: 1500px;
}

.scrolling-container::-webkit-scrollbar {
    display: none;
}

.scrolling-perspective-wrapper {
    transform-style: preserve-3d;
    transform: rotateY(15deg);
    transform-origin: 0% 50%;
}

.scrolling-track {
    display: flex;
    gap: 20px;
    padding: 0 var(--container-padding);
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.scrolling-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0) translateZ(0);
    }

    100% {
        transform: translateX(calc(-13 * (320px + 20px))) translateZ(0);
    }
}

.scrolling-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 320px;
}

.scrolling-item .service-card {
    width: 100%;
    height: 480px;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}

.scrolling-item .service-card::after {
    display: none;
}

.scrolling-item .service-card:hover {
    transform: none;
    /* Disable the default upward movement */
}

.scrolling-item .service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

/* Grayscale effect for un-hovered images */
.scrolling-track:has(.scrolling-item:hover) .scrolling-item:not(:hover) img {
    filter: grayscale(100%);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    background: #fff;
    color: #111;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    font-family: var(--font-body);
}

.card-footer-text {
    position: relative;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 300;
    font-family: var(--font-body);
}

/* Bento Grid */
.bento-section {
    padding: 60px 0 var(--section-spacing) 0;
}

.bento-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    padding: 80px 40px 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    background: #08021c;
    /* Deep dark purple-blue */
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background-image: radial-gradient(circle at center top, rgba(113, 68, 246, 0.15) 0%, transparent 80%);
    box-shadow: inset 0 0 120px rgba(112, 68, 246, 0.333);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.bento-section.animate-in .bento-card {
    opacity: 1;
    transform: translateY(0);
}

/* Interactivity (Hover) */
.bento-section.animate-in .bento-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: inset 0 0 150px rgba(113, 68, 246, 0.8), 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
    transition-duration: 0.4s, 0.4s, 0.4s, 0.4s;
    transition-delay: 0s, 0s, 0s, 0s;
}

.bento-1 {
    grid-column: span 5;
    transition-delay: 0.1s, 0.1s, 0s, 0s;
}

.bento-2 {
    grid-column: span 7;
    transition-delay: 0.25s, 0.25s, 0s, 0s;
}

.bento-3 {
    grid-column: span 7;
    transition-delay: 0.4s, 0.4s, 0s, 0s;
}

.bento-4 {
    grid-column: span 5;
    transition-delay: 0.55s, 0.55s, 0s, 0s;
}


.bento-title {
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 16px;
    z-index: 2;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.05;
    text-transform: capitalize;
    letter-spacing: -1.5px;
}

.bento-desc {
    color: #80899e;
    font-size: 1.05rem;
    max-width: 85%;
    z-index: 2;
    font-family: var(--font-body);
    font-weight: 300;
}

.bento-graphic {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 60%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Graphic 1: Logo Stack */
.graphic-1 {
    justify-content: center;
    align-items: flex-end;
}

.logo-stack {
    position: relative;
    width: 200px;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.stack-back,
.stack-mid,
.stack-front {
    position: absolute;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    width: 120px;
    height: 120px;
}

.stack-back {
    background: rgba(113, 68, 246, 0.2);
    transform: translateY(-40px) scale(0.8);
}

.stack-mid {
    background: rgba(113, 68, 246, 0.5);
    transform: translateY(-20px) scale(0.9);
}

.stack-front {
    background: var(--purple-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -10px 30px rgba(113, 68, 246, 0.4);
}

.contact-hero-section {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 80px;
    width: 100%;
}

.contact-info-card {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(113, 68, 246, 0.2);
}

.contact-info-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(204, 243, 71, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--green-accent);
}

.contact-info-card .icon-circle svg {
    width: 24px;
    height: 24px;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.contact-info-card a,
.contact-info-card p {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--green-accent);
}

.contact-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(113, 68, 246, 0.3);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(204, 243, 71, 0.2);
    bottom: -10%;
    right: -10%;
}

@media (max-width: 900px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-hero-section {
        padding: 140px 0 60px;
    }
}

.b-mark-bento {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* Graphic 2: Table */
.graphic-2 {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 40px;
}

.mock-table {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 20px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.table-row.head {
    color: #fff;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.table-row span:nth-child(2) {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Graphic 3: Stats */
.graphic-3 {
    justify-content: flex-start;
    padding: 40px;
}

.stats-card-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.mini-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mini-val {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trend.up {
    color: var(--green-accent);
    font-size: 0.8rem;
    font-weight: normal;
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%237144F6" fill-opacity="0.2" d="M0,160L48,170.7C96,181,192,203,288,208C384,213,480,203,576,176C672,149,768,107,864,117.3C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/cover no-repeat;
}

/* Graphic 4: Lightning */
.graphic-4 {
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
}

.ripple-circle {
    width: 100px;
    height: 100px;
    background: var(--purple-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 0 20px rgba(113, 68, 246, 0.2), 0 0 0 40px rgba(113, 68, 246, 0.1);
}

/* Animated Statement */
.statement-section {
    padding: var(--section-spacing) 0;
}

.statement-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.statement-white-box {
    background: #ffffff;
    border-radius: 40px;
    padding: 20px;
    width: 96%;
    max-width: 1600px;
    margin: 0 auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.statement-section.reveal-up .statement-white-box {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.statement-section.animate-in .statement-white-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.green-block {
    background: var(--green-accent);
    width: 100%;
    border-radius: 30px;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.animated-text {
    text-align: center;
    font-family: var(--font-heading);
    line-height: 0.95;
}

.animated-text.slot-machine {
    position: relative;
    height: 350px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.slot-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: absolute;
    top: 0;
    width: 100%;
}

.slot-word {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -5px;
    color: rgba(40, 50, 20, 0.3);
    filter: blur(3px);
    position: relative;
    display: inline-flex;
    padding: 10px 45px;
    margin: 5px 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: scale(0.9);
}

.slot-word.active {
    color: #1A103C;
    filter: blur(0px);
    transform: scale(1);
}

.crop {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 5px solid #1A103C;
    opacity: 0;
    transition: opacity 0.8s;
}

.slot-word.active .crop {
    opacity: 1;
}

.crop-tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.crop-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.crop-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.crop-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.animated-text .line-3 {
    color: rgba(40, 50, 20, 0.6);
    -webkit-mask-image: linear-gradient(to top, transparent 10%, black 90%);
    mask-image: linear-gradient(to top, transparent 10%, black 90%);
    filter: blur(2px);
}

.team-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 0 15px;
}

.avatars {
    display: flex;
}

.avatar,
.avatar-count {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -12px;
    overflow: hidden;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-count {
    background: #333333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-body);
}

.team-text {
    color: #1A103C;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.team-text strong {
    font-weight: 900;
}

/* Case Study Section */
.case-study-section {
    padding: var(--section-spacing) 0 calc(var(--section-spacing) - 20px);
}

.case-study-header {
    margin-bottom: 40px;
}

.case-study-header .section-kicker {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.6);
    text-transform: none;
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: block;
}

.case-study-header .section-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 15px !important;
}

.case-study-header .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.4;
    font-family: var(--font-body);
    margin-bottom: 0;
}

.case-card {
    background: #fff;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 120px;
}

.case-content {
    padding: 40px 60px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.case-category {
    color: #CAB59E;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 25px;
    display: block;
}

.case-title {
    font-size: 3.5rem;
    color: #3B1C10;
    margin-bottom: 25px;
    letter-spacing: -2px;
    line-height: 0.95;
    font-family: var(--font-body);
    text-transform: none;
}

.case-desc {
    color: #888;
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 300;
}

.case-stats {
    margin-top: 30px;
    background: #FDECE4;
    padding: 30px 40px;
    border-radius: 16px;
    overflow: hidden;
}

.case-stats-track {
    display: flex;
    width: 100%;
}

.case-stats-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.mobile-clone {
    display: none;
}

.case-stats .stat h4 {
    font-size: 2.5rem;
    color: #A33B18;
    margin-bottom: 5px;
    letter-spacing: -1px;
    font-weight: 900;
    text-transform: none;
    font-family: var(--font-body);
}

.case-stats .stat p {
    font-size: 0.85rem;
    color: #D1846A;
    font-weight: 500;
    margin: 0;
    font-family: var(--font-body);
}

.case-image-wrapper {
    background: #E8501D;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 500px;
}

.laptop-mockup-placeholder {
    width: 130%;
    margin-left: 15%;
    margin-top: 20%;
    position: relative;
    transform: perspective(1000px) rotateX(5deg);
}

.screen-content {
    background: #fff;
    width: 90%;
    margin: 0 auto;
    aspect-ratio: 16/10;
    border-radius: 12px 12px 0 0;
    border: 12px solid #111;
    border-bottom: 20px solid #000;
    position: relative;
    overflow: hidden;
}

.screen-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/hero deshboard.svg') center/cover;
    opacity: 0.8;
}

.base {
    background: #333;
    height: 16px;
    width: 100%;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

/* Testimonials Section */
.testimonials-section {
    padding: calc(var(--section-spacing) - 30px) 0 calc(var(--section-spacing) + 60px) 0;
}

.testimonials-header {
    margin-bottom: 60px;
}

.testimonials-header .section-kicker {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: -0.5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
    font-size: 1.15rem;
    margin-bottom: 15px;
    display: block;
}

.testimonials-header .section-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -2px;
    line-height: 1;
    color: #fff;
    margin-bottom: 0;
}

.testimonials-wrapper {
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.testimonials-track {
    display: flex;
    width: max-content;
    animation: testimonialMarquee 60s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonials-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

@keyframes testimonialMarquee {
    0% {
        transform: translateX(0) translateZ(0);
    }

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

.test-card {
    flex: 0 0 450px;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.cta-card {
    background: linear-gradient(135deg, #a78bfa 0%, #825cf6 100%);
}

.review-card {
    background: #0f0822;
    /* Dark background matching image */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.review-card:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #825cf6 100%);
}

.review-card:hover .test-text {
    color: #111;
    font-weight: 400;
}

.review-card:hover .test-author {
    color: rgba(17, 17, 17, 0.7);
}

.review-card:hover .test-author strong {
    color: #111;
}

.review-card:hover .stars span {
    color: #111 !important;
}

.cta-card .stars {
    margin-bottom: 15px;
}

.cta-card .stars svg {
    width: 24px;
    height: 24px;
}

.review-card .stars {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.test-title {
    font-family: var(--font-body);
    font-size: 2.8rem;
    color: #fff;
    margin: 10px 0 30px;
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -1.5px;
    text-transform: none;
}

.btn-white {
    background: #fff;
    color: #666;
    margin-top: auto;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 500;
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
}

.test-text {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 10px 0 auto;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.5px;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.test-author {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-family: var(--font-body);
    line-height: 1.4;
    margin-top: 30px;
    transition: color 0.3s ease;
}

.test-author strong {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* CTA Block Section */
.cta-block-section {
    padding: 0 0 var(--section-spacing);
}

.cta-glass-block {
    background: var(--purple-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 100px 40px 40px;
    text-align: center;
    box-shadow: inset 0 20px 60px rgba(255, 255, 255, 0.05), 0 40px 80px rgba(0, 0, 0, 0.5);
}

#cta-default-content {
    padding-bottom: 40px;
}

.cta-heading {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 50px;
    text-transform: none;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons .btn-outline-purple {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    text-align: center;
    padding: 18px 20px; /* Reduced side padding so it fits well */
}

.btn-outline-purple {
    background: var(--text-dark);
    color: #fff;
    border: 1px solid var(--text-dark);
    border-radius: 8px;
    padding: 18px 48px;
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.btn-outline-purple:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-2px);
}

/* Footer Section */
.footer {
    position: relative;
    padding: 220px 0 0;
    margin-top: -2px;
    overflow: hidden;
    background: var(--bg-primary);
    /* Dark matching the app background */
    border-top: none;
}

.footer-bg-text {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(150px, 25vw, 350px);
    font-weight: 800;
    background: linear-gradient(180deg, transparent 0px, transparent 2px, #d1d5db 4px, #374151 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    clip-path: inset(2px 0 0 0);
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    padding-top: 10px;
    margin-top: -10px;
}

.footer-container {
    position: relative;
    z-index: 1;
    background: #D4F75B;
    /* Lime green */
    border-radius: 20px;
    padding: 60px;
    width: 96%;
    max-width: 1600px;
    margin: -60px auto 15px;
}

/* Footer Scroll Reveal Animation */
.footer .footer-bg-text {
    opacity: 0;
    transform: translateX(-50%) translateY(30px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer .footer-container {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease 0.25s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.footer.animate-in .footer-bg-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.footer.animate-in .footer-container {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Word & Element Staggered Reveal */
.footer-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer.animate-in .footer-word {
    opacity: 1;
    transform: translateY(0);
}

.footer-phone,
.footer-email,
.footer-nav a,
.footer-legal,
.footer-go-box {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer.animate-in .footer-phone {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.footer.animate-in .footer-email {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}

.footer.animate-in .footer-nav a:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}
.footer.animate-in .footer-nav a:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.72s;
}
.footer.animate-in .footer-nav a:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.79s;
}

.footer.animate-in .footer-legal {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.85s;
}

.footer.animate-in .footer-go-box {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.95s;
}

.footer-top {
    display: flex;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-address {
    color: #555;
    font-size: 1rem;
    max-width: 300px;
    margin-bottom: 50px;
    line-height: 1.4;
    font-family: var(--font-body);
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 60px;
}

.footer-phone,
.footer-email {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #222;
    font-weight: 400;
    letter-spacing: -1.5px;
    font-family: var(--font-body);
    text-decoration: none;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
    width: fit-content;
    line-height: 1.1;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-phone:hover,
.footer-email:hover {
    color: #000;
    border-color: #000;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: #222;
    font-size: 1.25rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #555;
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-legal {
    text-align: right;
    color: #555;
    font-size: 0.95rem;
    font-family: var(--font-body);
    margin-bottom: 50px;
}

.legal-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 5px;
}

.footer-legal a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #222;
}

.footer-go-box {
    width: 300px;
    height: 300px;
    background: #252b0f;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-go-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 15px;
    line-height: 1;
}

.footer-go-btn {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer-go-btn:hover {
    background: var(--green-accent);
    color: #07001B;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(204, 243, 71, 0.3);
}

.footer-go-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-go-btn:hover svg {
    transform: translateX(6px) scale(1.1);
}

/* 
===========================================
  CTA MULTI-STEP FORM
=========================================== 
*/
#cta-form-content {
    width: 100%;
    position: relative;
    text-align: center;
    color: var(--text-dark);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-kicker {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
}

.modal-step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-step.active {
    opacity: 1;
    transform: translateY(0);
}

.modal-title {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-transform: none;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.pill-btn {
    background: var(--text-dark);
    color: #fff;
    border: 1px solid var(--text-dark);
    padding: 16px 36px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill-btn:hover {
    transform: translateY(-2px);
    background: #000;
    border-color: #000;
}

.pill-btn.active {
    background: #fff;
    color: var(--text-dark);
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-input {
    background: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: #fff;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.modal-input:focus {
    background: #000;
    border-color: #fff;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-input.full-width {
    grid-column: 1 / -1;
    resize: none;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    width: 100%;
}

.modal-nav-btn {
    background: var(--text-dark);
    color: #fff;
    border: 1px solid var(--text-dark);
    padding: 16px 32px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-nav-btn svg {
    width: 18px;
    height: 18px;
}

.modal-nav-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* Word-by-word animation classes */
.word-span {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: pre;
}

.word-fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.word-fade-in-init {
    opacity: 0;
    transform: translateY(10px);
}

.word-fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

.delayed-fade-init {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.delayed-fade-active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   SUCCESS POPUP
=========================================== */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 0, 27, 0.9);
    /* Dark background matching --bg-primary */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.success-popup-overlay.active {
    opacity: 1;
}

.success-popup-content {
    background: #D4F75B;
    color: var(--text-dark);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.success-popup-overlay.active .success-popup-content {
    transform: translateY(0);
}

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--text-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
}

.success-icon svg {
    width: 35px;
    height: 35px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.success-message {
    font-family: var(--font-body);
    font-size: 1.15rem;
    margin-bottom: 35px;
}

.close-popup-btn {
    width: 100%;
}

/* ===========================================
   MOBILE RESPONSIVENESS (CTA SECTION)
=========================================== */
@media (max-width: 768px) {
    .cta-glass-block {
        padding: 50px 20px 30px;
        border-radius: 16px;
    }

    .cta-heading {
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-outline-purple {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.15rem;
    }

    #cta-form-content {
        min-height: auto;
    }

    .modal-title {
        margin-bottom: 25px;
    }

    .pill-group {
        gap: 10px;
    }

    .pill-btn {
        padding: 12px 24px;
        font-size: 1.05rem;
        flex: 1 1 auto;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-input {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .modal-nav {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .modal-nav-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1.05rem;
    }

    .modal-nav-btn.go-back-btn {
        order: 2;
    }

    .modal-nav-btn.continue-btn {
        order: 1;
    }
}

/* Cookie Consent Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: rgba(7, 0, 27, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(113, 68, 246, 0.1);
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-popup.show {
    bottom: 20px;
}

.cookie-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
    font-family: var(--font-body);
    letter-spacing: normal;
    text-transform: none;
    font-weight: 600;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .cookie-popup {
        left: 10px;
        right: 10px;
        padding: 20px;
    }
    .cookie-popup.show {
        bottom: 10px;
    }
    .cookie-actions {
        flex-direction: column;
    }
    .cookie-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--green-accent);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

body.page-loaded #preloader {
    transform: translateY(-100%);
}

.preloader-logo {
    width: 120px;
    height: auto;
    filter: invert(1); /* Invert white logo to black for contrast against neon green */
    animation: pulseBlink 1.2s infinite ease-in-out;
}

@keyframes pulseBlink {
    0%, 100% { opacity: 0.2; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Site Wrapper Animation */
#site-wrapper {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease-out 0.3s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

body.page-loaded #site-wrapper {
    opacity: 1;
    transform: translateY(0);
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--green-accent);
}

.contact-info-card .icon-circle svg {
    width: 24px;
    height: 24px;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.contact-info-card a,
.contact-info-card p {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--green-accent);
}

.contact-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(113, 68, 246, 0.3);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(204, 243, 71, 0.2);
    bottom: -10%;
    right: -10%;
}

@media (max-width: 768px) {
    .contact-hero-section {
        padding: 140px 0 60px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
