/* ============================================
   OCCUPLUS LANDING PAGE - MOBILE-FIRST CSS
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES (Mobile Default: 375px+)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --navy: #273580;
    --orange: #FF3F1A;
    --lavender: #E9ECFD;
    --white: #F6F6F6;
    --off-white: #E1E3E7;
    --black: #000000;

    /* Responsive Spacing */
    --section-padding: 60px;
    --container-max: 1200px;

    /* Typography */
    --font-primary: 'Rubik', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--off-white);
    color: var(--black);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Remove last-child margins to prevent gaps */
body > *:last-child {
    margin-bottom: 0;
}

/* ============================================
   2. NAVIGATION (Mobile-First)
   ============================================ */

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: calc(100% - 20px);
    background: rgba(250, 251, 252, 0.7);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

.logo {
    height: 28px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}

/* Mobile Menu Toggle (Visible on mobile) */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Drawer */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 2rem 2rem;
    gap: 2rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    list-style: none;
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 400;
    font-size: 18px;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(39, 53, 128, 0.1);
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-cta {
    background: var(--navy);
    color: var(--white);
    padding: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    border-bottom: none;
}

.nav-cta:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 63, 26, 0.3);
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Backdrop overlay */
.nav-links.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* ============================================
   FEATURES DROPDOWN MENU (Bonsai-style)
   ============================================ */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%) translateY(-10px);
    z-index: 1001;
    min-width: 500px;
}

/* Bridge the gap between trigger and menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--lavender);
    transform: translateX(4px);
}

.dropdown-icon {
    flex-shrink: 0;
    color: var(--navy);
}

.dropdown-item span {
    white-space: nowrap;
}

/* Mobile: Hide dropdown on mobile, show in regular nav */
@media (max-width: 767px) {
    .nav-dropdown-menu {
        display: none;
    }
    
    .nav-dropdown-trigger {
        pointer-events: none;
    }
}

/* ============================================
   3. HERO SECTION (Mobile-First)
   ============================================ */

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 5% 80px;
    position: relative;
    text-align: center;
    overflow: hidden;
     background: var(--white);    /* Add this line */
     z-index: 1;
}

/* Dotted Grid Background 
.hero-dotted-grid {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: radial-gradient(circle, rgba(39, 53, 128, 0.2) 3px, transparent 3px);
    background-size: 30px 30px;
    z-index: -10;
    animation: driftUpward 10s linear infinite;
    pointer-events: none;
}*/

@keyframes driftUpward {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-80px);
    }
}

.hero > * {
    position: relative;
    z-index: 2;
}

.invite-only-text {
    margin-bottom: 1.5rem;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards, colorShift 3s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@keyframes colorShift {
    0%, 100% {
        color: rgba(39, 53, 128, 0.5);
    }
    50% {
        color: rgba(61, 74, 160, 0.7);
    }
}

.beta-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(
        -45deg,
        #e8fcff 0%,
        #f4f6ff 20%,
        #f2e2ff 40%,
        #dfeefc 60%,
        #E8EBFD 80%,
        #e5f4ff 100%
    );
    background-size: 300% 300%;
    animation: gradientFlow 6s ease infinite, fadeInUp 0.8s ease 0.3s forwards;
    position: relative;
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: #1E2875;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
    opacity: 0;
    overflow: visible;
    box-shadow:
        -4px -4px 12px rgba(255, 255, 255, 0.9),
        4px 4px 16px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.beta-badge:hover {
    box-shadow:
        -6px -6px 16px rgb(243, 229, 255),
        6px 6px 20px rgba(124, 126, 245, 0.35),
        inset 0 1px 0 rgb(141, 205, 255);
    transform: translateY(-2px);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    max-width: 900px;
}

.hero h1 .highlight {
    color: var(--navy);
}

.hero h1 .gradient-shimmer {
    color: var(--navy);
}

/* TEXT ROTATOR - CENTER ALIGNED */
.text-rotator {
    display: inline-block;
    position: relative;
    color: var(--navy);
    width: 100%;
    max-width: 500px;
    text-align: center;
    vertical-align: top;
    height: 1.3em;
    min-height: 40px;
}

.text-rotator .rotator-word {
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    white-space: nowrap;
    width: max-content;
}

.text-rotator .rotator-word.active {
    opacity: 1;
}

.text-rotator .rotator-word.exit {
    opacity: 0;
}

.hero-subheading {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
    line-height: 1.5;
}

.cta-button {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 53, 128, 0.2);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.cta-button:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 63, 26, 0.3);
}

/* Hero Reviews */
.hero-reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.1s forwards;
}

.review-stars {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.review-text {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 4rem;
    margin-bottom: 60px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.1s forwards;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 20px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    position: relative; /* For gradient pseudo-elements */
    scroll-snap-type: x proximity; /* Snap assistance without forcing - allows smooth JS scrolling */
}

.feature-buttons::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Gradient indicators on mobile to show scrollability */
.feature-buttons::before,
.feature-buttons::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 2;
}

.feature-buttons::before {
    left: 0;
    background: linear-gradient(to right, rgba(243, 240, 252, 1), rgba(243, 240, 252, 0));
}

.feature-buttons::after {
    right: 0;
    background: linear-gradient(to left, rgba(243, 240, 252, 1), rgba(243, 240, 252, 0));
}

.feature-btn {
    padding: 12px 20px;
    background: transparent;
    color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: center; /* Snap to center when scrolling */
}

.feature-btn:hover {
    color: var(--navy);
    background: rgba(39, 53, 128, 0.05);
}

.feature-btn.active {
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 4px 12px rgba(39, 53, 128, 0.25);
}

.feature-btn.active::after {
    display: none;
}

/* Mobile: Single-row scrollable layout for feature buttons */
@media (max-width: 767px) {
    .feature-buttons::before,
    .feature-buttons::after {
        display: none;  /* Hide gradient indicators - they don't work with scrolling */
    }

    .feature-buttons {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        width: 100%;                           /* KEY FIX: Constrain to parent width */
        height: auto;
        max-height: none;
        overflow-x: scroll;                    /* Use scroll for consistent behavior */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;     /* Momentum scrolling on iOS */
        gap: 0.5rem;
        padding: 0 30px;
    }

    .feature-btn {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* ============================================
   4. MVP SCREENS SECTION - WITH FIXED BACKGROUND
   ============================================ */

.mvp-screens-section {
    padding: 0 5% 60px;
    background: var(--white);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.screens-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.3s forwards;
    border: 1px solid rgba(39, 53, 128, 0.08);
}

/* NEW: Fixed background frame */
.screen-frame-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/screen-frame-bg.png'); /* Your background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none; /* Allows clicks to pass through */
}

.screen-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Above the background frame */
}

.screen-item.active {
    opacity: 1;
}

/* Adjust screen images to fit within frame if needed */
.screen-item img {
    width: 90%; /* Adjust this to fit within your frame */
    height: 90%; /* Adjust this to fit within your frame */
    object-fit: contain;
}

/* TABLET: 480px and up */
@media (min-width: 480px) {
    .screens-container {
        height: 400px;
    }
}

/* TABLET LANDSCAPE: 768px and up */
@media (min-width: 768px) {
    .mvp-screens-section {
        margin-top: -140px;
    }

    .screens-container {
        height: 550px;
    }
    
    .screen-item img {
        width: 85%; /* Fine-tune based on your frame */
        height: 85%;
    }
}

/* ============================================
   5. LOGO CAROUSEL SECTION
   ============================================ */

.logo-carousel-section {
    padding: 60px 5%;
    background: var(--white);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.carousel-logo {
    height: 35px;
    width: auto;
    margin: 0 40px;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}

.carousel-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* ============================================
   5.5 INTEGRATION FUNNEL SECTION
   ============================================ */

.integration-section {
    padding: 60px 5% 80px;
    background: var(--lavender);
    position: relative;
    overflow: hidden;
}

.integration-dotted-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(39, 53, 128, 0.30) 3px, transparent 3px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.integration-section > * {
    position: relative;
    z-index: 1;
}

.integration-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    min-height: auto;
}

/* Funnel Wrapper - Left Side */
.funnel-wrapper {
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
    display: flex;
    justify-content: center;
    width: 100%;
}

.integration-section.animated .funnel-wrapper {
    opacity: 1;
    transform: scale(1);
    animation: funnelAppear 1s ease 0.3s forwards;
}

@keyframes funnelAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.funnel-image {
    width: 280px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(39, 53, 128, 0.15));
}

/* Floating Logos - Curved flow from top-right to funnel top */
.floating-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.float-logo {
    position: absolute;
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Logo animations */
.integration-section.animated .float-logo {
    animation: logoAppear 0.6s ease forwards;
}

/* Mobile: Curved path from top-right flowing down and left to funnel top-center */
/* Logo 1 - Start at top right */
.integration-section.animated .logo-1 {
    top: 13%;
    right: 38%;
    animation-delay: 0.5s;
}

/* Logo 2 */
.integration-section.animated .logo-2 {
    top: 14%;
    right: 55%;
    animation-delay: 0.6s;
}

/* Logo 3 */
.integration-section.animated .logo-3 {
    top: -8%;
    right: 35%;
    animation-delay: 0.7s;
}

/* Logo 4 */
.integration-section.animated .logo-4 {
    top: 1%;
    right: 56%;
    animation-delay: 0.8s;
}

/* Logo 5 */
.integration-section.animated .logo-5 {
    top: 9%;
    right: 45%;
    animation-delay: 0.9s;
}

/* Logo 6 */
.integration-section.animated .logo-6 {
    top: 1%;
    right: 65%;
    animation-delay: 1.0s;
}

/* Logo 7 */
.integration-section.animated .logo-7 {
    top: -3%;
    right: 75%;
    animation-delay: 1.1s;
}

/* Logo 8 */
.integration-section.animated .logo-8 {
    top: 2%;
    right: 36%;
    animation-delay: 1.2s;
}

/* Logo 9 */
.integration-section.animated .logo-9 {
    top: 5%;
    right: 44%;
    animation-delay: 1.3s;
}

/* Logo 10 - End at funnel top center */
.integration-section.animated .logo-10 {
    top: 95%;
    left: 105%;
    transform: translateX(-50%) scale(0.5);    
    animation-delay: 1.4s;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Special animation for logo-10 to maintain centering */
.integration-section.animated .logo-10 {
    animation: logoAppearCentered 0.6s ease forwards;
    animation-delay: 1.4s;
}

@keyframes logoAppearCentered {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* Funnel Layers - Stacked vertically on right (mobile: below funnel) */
.funnel-layers {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 400px;
}

.funnel-layer {
    opacity: 0;
    transform: translateY(20px);
}

.funnel-layer h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.funnel-layer p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Layer animations - staggered appearance */
.integration-section.animated .layer-1 {
    animation: layerSlideUp 0.6s ease forwards;
    animation-delay: 1.6s;
}

.integration-section.animated .layer-2 {
    animation: layerSlideUp 0.6s ease forwards;
    animation-delay: 1.8s;
}

.integration-section.animated .layer-3 {
    animation: layerSlideUp 0.6s ease forwards;
    animation-delay: 2.0s;
}

@keyframes layerSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   5.6 INTEGRATIONS CAROUSEL SECTION
   ============================================ */

.integrations-carousel-section {
    padding: 60px 5%;
    background: var(--white);
    overflow: hidden;
}

.integrations-heading {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.integrations-carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
}

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

.integration-logo {
    height: 40px;
    width: auto;
    margin: 0 40px;
    transition: all 0.3s ease;
}

.integration-logo:hover {
    transform: scale(1.1);
}

/* Desktop */
@media (min-width: 768px) {
    .integrations-heading {
        font-size: 32px;
        margin-bottom: 3rem;
    }
    
    .integration-logo {
        height: 50px;
        margin: 0 50px;
    }
}

/* ============================================
   5.7 NEW FEATURE SECTIONS (Mobile-First)
   ============================================ */

.new-features-wrapper {
    background: var(--white);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.new-feature-section {
    padding: 50px 5%; /* Reduced from 80px for mobile */
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    background: var(--white);
}

.new-feature-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.new-feature-dotted-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(39, 53, 128, 0.12) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

.new-feature-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px; /* Reduced from 40px for mobile */
    align-items: center;
    position: relative;
    z-index: 1;
}

.new-feature-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.new-feature-text h2 {
    font-family: var(--font-display);
    font-size: 28px; /* Reduced from 32px for mobile */
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem; /* Increased from 0.5rem for better spacing */
}

.feature-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced from 1rem for mobile */
}

.feature-point {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    padding-left: 25px; /* Reduced from 30px for mobile */
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

/* Pointer mark (pill-shaped bullet) */
.feature-point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 9px;
    background: var(--navy);
    border-radius: 10px;
    flex-shrink: 0;
}

/* Animation state when visible */
.feature-point.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.feature-point h4 {
    font-family: var(--font-display);
    font-size: 16px; /* Reduced from 18px for mobile */
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

.feature-point p {
    font-size: 14px; /* Reduced from 16px for mobile */
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

.feature-cta-btn {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px; /* Reduced from 15px for mobile */
    padding: 14px 24px; /* Reduced horizontal padding for mobile */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 53, 128, 0.2);
    align-self: flex-start;
    width: 100%; /* Full-width on mobile */
    max-width: 300px; /* But limited to 300px */
}

.feature-cta-btn:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 63, 26, 0.3);
}

.new-feature-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto; /* Remove fixed height on mobile */
    padding: 0; /* No padding on mobile */
}

.new-feature-image img {
    width: 100%;
    max-width: 100%; /* Full width on mobile */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Lighter shadow on mobile */
    transition: transform 0.3s ease;
}

.new-feature-image img:hover {
    transform: translateY(-5px);
}

/* Tablet Breakpoint */
@media (min-width: 480px) {
    .new-feature-section {
        padding: 60px 5%;
    }

    .new-feature-container {
        gap: 30px;
    }

    .new-feature-text h2 {
        font-size: 36px;
    }

    .feature-point h4 {
        font-size: 17px;
    }

    .feature-point p {
        font-size: 15px;
    }

    .feature-cta-btn {
        width: auto; /* Reset to auto on tablet */
        font-size: 15px;
    }
}

/* Desktop Layout - Side by Side */
@media (min-width: 768px) {
    .new-feature-section {
        padding: 100px 5%;
    }
    
    .new-feature-container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .new-feature-text h2 {
        font-size: 48px;
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }

    .feature-points {
        gap: 1rem; /* Restore desktop gap */
    }

    .feature-point {
        padding-left: 30px; /* Restore desktop padding */
    }

    .feature-point h4 {
        font-size: 20px;
        line-height: 1.35;
    }

    .feature-point p {
        font-size: 18px;
        line-height: 1.55;
    }
    
    .new-feature-image {
        min-height: 550px;
    }
    
    .new-feature-image img {
        max-width: 850px;
    }
    
    /* Reverse layout for Feature 2 */
    .new-feature-section.reverse .new-feature-container {
        direction: rtl;
    }
    
    .new-feature-section.reverse .new-feature-text,
    .new-feature-section.reverse .new-feature-image {
        direction: ltr;
    }
}

/* ============================================
   6. FEATURE SECTIONS (Mobile-First)
   ============================================ */

.features-wrapper {
    position: relative;
    background: var(--lavender);
    overflow: hidden;
    width: 100%;
    isolation: isolate;
}

.feature-section {
    padding: var(--section-padding) 5%;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.feature-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Neumorphic Divider Between Feature Sections */
.feature-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--lavender);
    box-shadow:
        inset 2px 2px 5px rgba(39, 53, 128, 0.2),
        inset -2px -2px 5px rgba(255, 255, 255, 0.7),
        0px 1px 2px rgba(255, 255, 255, 0.9);
}

.feature-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.feature-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.feature-subheading {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.feature-content p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-cta {
    background: var(--navy);
    color: var(--white);
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-cta:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 63, 26, 0.3);
}

.feature-visual {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dotted Grid Background */
.features-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-image: radial-gradient(circle, rgba(39, 53, 128, 0.15) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   7. FEATURE 1: HUB ILLUSTRATION (Mobile-First)
   ============================================ */

.hub-illustration {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 350px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin: 0 auto;
}

#featureHubCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    transform-origin: center center;
    max-width: 100%;
    overflow: visible;
}

#hubLogoAnimation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease;
    margin: 0;
}

/* Ensure proper centering on very small screens */
@media (max-width: 500px) {
    .feature-visual {
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .hub-illustration {
        margin: 0 auto;
        padding: 0 10px;
    }

    #featureHubCanvas {
        left: 39% !important;
        right: auto;
    }

    /* Feature 2: Document Generation Mobile Optimization */
    .document-generation-illustration {
        height: 400px;
    }

    #documentCanvas {
        transform: translate(-50%, -50%) scale(0.6);
        transform-origin: center center;
    }

    .document-cards-wrapper {
        transform: scale(0.6);
        transform-origin: center center;
    }

    /* Feature 3: Encryption Illustration Mobile Optimization */
    .encryption-illustration {
        height: 630px !important;
        min-height: 630px !important;
        padding: 20px 10px !important;
    }

    .encryption-card {
        width: 180px !important;
        height: 240px !important;
    }

    .input-card {
        top: 40px !important;
    }

    .encrypt-card {
        top: 180px !important;
    }

    .store-card {
        top: 380px !important;
    }

    .encryption-badge {
        left: -50px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 10px !important;
        padding: 8px 14px !important;
        gap: 6px !important;
    }

    .encryption-badge svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Dotted lines - positioned above INPUT card, use dotted-line2.png on mobile */
    .dotted-lines {
        position: absolute !important;
        left: 50% !important;
        top: 160px !important;
        transform: translateX(-50%) !important;
        width: 90px !important;
        height: 65px !important;
        z-index: 45 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.8s ease !important;
        background-image: url('/assets/illustration-3/dotted-line2.png') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .dotted-lines .dotted-image {
        display: none !important;
    }

    /* Fade in dotted lines after ENCRYPT card appears (phase-3) */
    .encryption-illustration.phase-3 .dotted-lines,
    .encryption-illustration.phase-4 .dotted-lines {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

#hubLogoAnimation.pulse-animation {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.9;
    }
}

/* ============================================
   8. FEATURE 2: DOCUMENT GENERATION (Mobile-First)
   ============================================ */

.document-generation-illustration {
    position: relative;
    width: 100%;
    height: 500px;
    z-index: 1;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

#documentCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    max-width: 100%;
    z-index: 1;
}

.document-cards-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.document-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    width: 240px;
    height: 360px;
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.form-card {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 30;
    padding: 1.5rem 1.25rem;
}

.form-card.slide-left {
    left: 20%;
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 10;
}

.form-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--lavender);
}

.form-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-card-subtitle {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
}

.form-field {
    margin-bottom: 1rem;
}

.field-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-value {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 500;
    padding: 0.6rem;
    background: var(--lavender);
    border-radius: 8px;
}

.generate-button {
    width: 100%;
    padding: 0.8rem;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 53, 128, 0.3);
}

.generate-button:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 63, 26, 0.4);
}

.generate-button .button-icon {
    margin-left: 0.5rem;
}

.processing-card {
    top: 50%;
    left: 150%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(39, 53, 128, 0.95) 0%,
        rgba(99, 102, 241, 0.9) 50%,
        rgba(167, 139, 250, 0.85) 100%
    );
    overflow: hidden;
}

.processing-card.active {
    left: 50%;
    opacity: 1;
    z-index: 30;
}

.processing-card.slide-left {
    left: 20%;
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 10;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
}

.processing-subtext {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.processing-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.final-document-card {
    top: 50%;
    left: 150%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 10;
    padding: 1.5rem 1.25rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.final-document-card.active {
    left: 50%;
    opacity: 1;
    z-index: 30;
    transform: translate(-50%, -50%) scale(1);
}

.final-document-card.slide-right {
    left: 80%;
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 20;
}

.doc-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.doc-logo-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

.doc-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--navy);
}

.doc-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.doc-date {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.6);
}

.doc-content {
    margin-bottom: 1.5rem;
}

.doc-field {
    display: flex;
    margin-bottom: 0.75rem;
    font-size: 11px;
}

.doc-field-label {
    font-weight: 600;
    color: var(--navy);
    min-width: 80px;
}

.doc-field-value {
    color: rgba(0, 0, 0, 0.85);
}

.doc-body {
    font-size: 10px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
    margin: 1rem 0;
}

.doc-signature {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.signature-line {
    width: 120px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
    font-size: 9px;
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
}

.doc-status {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.final-document-card.active .doc-status {
    opacity: 1;
}

.status-icon {
    width: 16px;
    height: 16px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

/* Fanned State - Mobile uses flexbox center */
.document-cards-wrapper.fanned .form-card {
    left: 30%;
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.95) rotate(1deg);
    z-index: 10;
}

.document-cards-wrapper.fanned .processing-card {
    left: 50%;
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.95) rotate(1deg);
    z-index: 20;
}

.document-cards-wrapper.fanned .final-document-card {
    left: 70%;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.95) rotate(1deg);
    z-index: 30;
}

/* ============================================
   9. FEATURE 3: ENCRYPTION ILLUSTRATION (Mobile-First)
   ============================================ */

.encryption-illustration {
    position: relative;
    width: 100%;
    height: 680px;
    min-height: 680px;
    padding: 30px 15px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.encryption-card {
    position: absolute;
    width: 220px;
    height: 290px;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.encryption-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* VERTICAL STACKING for Mobile */
.input-card {
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
}

.encrypt-card {
    top: 220px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.store-card {
    top: 460px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Dotted Lines */
.dotted-lines {
    position: absolute;
    left: 50%;
    top: 180px;
    transform: translateX(-50%) rotate(0deg);
    width: 100px;
    height: 70px;
    z-index: 45;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.dotted-lines .dotted-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Animated gradient effect using filters */
.encryption-illustration.phase-3 .dotted-lines .dotted-image {
    animation: dataFlow 3s ease-in-out infinite;
}

/* Data flowing animation */
@keyframes dataFlow {
    0% {
        filter:
            brightness(1)
            saturate(1)
            hue-rotate(0deg)
            drop-shadow(0 0 0px rgba(139, 92, 246, 0));
    }
    50% {
        filter:
            brightness(2)
            saturate(3)
            hue-rotate(45deg)
            drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
    }
    100% {
        filter:
            brightness(1)
            saturate(1)
            hue-rotate(0deg)
            drop-shadow(0 0 0px rgba(139, 92, 246, 0));
    }
}

/* Glassmorphic Badges */
.encryption-badge {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow:
        0 8px 32px rgba(39, 53, 128, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 100;
}

.encryption-badge svg {
    color: var(--navy);
    width: 14px;
    height: 14px;
}

/* Animation States */
.encryption-illustration.phase-1 .input-card,
.encryption-illustration.phase-1 #inputBadge {
    opacity: 1;
}

.encryption-illustration.phase-2 .encrypt-card {
    opacity: 1;
    top: 260px;
    left: 50%;
    transform: translateX(-50%);
}

.encryption-illustration.phase-2 #encryptBadge {
    opacity: 1;
}

.encryption-illustration.phase-3 .dotted-lines {
    opacity: 1;
    z-index: 35;
}

.encryption-illustration.phase-4 .store-card {
    opacity: 1;
    top: 480px;
    left: 50%;
    transform: translateX(-50%);
}

.encryption-illustration.phase-4 #storeBadge {
    opacity: 1;
}

/* ============================================
   10. TESTIMONIALS SECTION (Mobile-First)
   ============================================ */

.testimonials-section {
    padding: var(--section-padding) 0;
    padding-bottom: 0;
    background: var(--lavender);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.testimonials-header {
    text-align: center;
    padding: 0 5%;
    margin-bottom: 3rem;
}

.testimonials-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.testimonials-header p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

.testimonial-strip {
    display: flex;
    width: max-content;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.testimonial-strip.left-to-right {
    animation: scrollLeft 40s linear infinite;
}

.testimonial-strip.right-to-left {
    animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.testimonial-strip:hover {
    animation-play-state: paused;
}

.testimonial-card-html {
    width: 320px;
    height: 110px;
    margin: 0 1rem;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    cursor: pointer;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 12px;
}

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(39, 53, 128, 0.1);
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testimonial-quote {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
    transition: color 0.4s ease;
}

.testimonial-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-name {
    font-family: var(--font-primary);
    font-size: 9px;
    font-style: italic;
    color: #000000;
    transition: color 0.4s ease;
}

.testimonial-location-stars {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-location {
    font-family: var(--font-primary);
    font-size: 8px;
    color: rgba(0, 0, 0, 0.7);
    transition: color 0.4s ease;
}

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

.star {
    color: #FFB800;
    font-size: 10px;
}

.star.half {
    position: relative;
    display: inline-block;
}

.testimonial-card-html:hover {
    background: var(--navy);
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        -8px -8px 24px rgba(159, 218, 248, 0.8),
        8px 8px 24px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(114, 93, 252, 0.9);
}

.testimonial-card-html:hover .testimonial-quote,
.testimonial-card-html:hover .testimonial-name,
.testimonial-card-html:hover .testimonial-location {
    color: #FFFFFF;
}

.testimonial-card-html:hover .star {
    color: #FFB800;
}

/* ============================================
   11. BUILT FOR SECTION (Mobile-First)
   ============================================ */

.built-for-section {
    padding: 80px 5%;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.built-for-dotted-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(39, 53, 128, 0.12) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

.built-for-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.built-for-header {
    text-align: center;
    margin-bottom: 3rem;
}

.built-for-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.built-for-header p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.built-for-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.built-for-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.built-for-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.built-for-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    line-height: 1.3;
}

.card-content p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Desktop: 2 columns */
@media (min-width: 768px) {
    .built-for-section {
        padding: 100px 5%;
    }
    
    .built-for-header {
        margin-bottom: 3.5rem;
    }
    
    .built-for-header h2 {
        font-size: 40px;
        line-height: 1.15;
        margin-bottom: 1.25rem;
    }
    
    .built-for-header p {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .built-for-cards {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-content {
        padding: 2rem;
    }
    
    .card-content h3 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .card-content p {
        font-size: 18px;
        line-height: 1.55;
    }
}

/* ============================================
   11.5 BENEFITS SECTION
   ============================================ */

.benefits-section {
    padding: 80px 5%;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Metric text styling */
.metric-text {
    font-style: italic;
    color: var(--navy);
    font-weight: 600;
    margin-top: 1rem;
}

.count-up {
    display: inline-block;
    font-style: normal;
    color: var(--orange);
    font-size: 1.1em;
}

/* Desktop: same responsive styling as Built For */
@media (min-width: 768px) {
    .benefits-section {
        padding: 100px 5%;
    }
}

/* ============================================
   11.6 SEAMLESS SWITCH SECTION
   ============================================ */

.seamless-switch-section {
    padding: 80px 5%;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.seamless-switch-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.seamless-switch-header {
    text-align: center;
    margin-bottom: 3rem;
}

.seamless-switch-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.seamless-switch-header p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.5;
}

.seamless-switch-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.switch-card {
    background: #F5F5F5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.switch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.switch-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}


.switch-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover effect */
.switch-card:hover .switch-image img {
    transform: scale(1.05);
}

.switch-content {
    padding: 2rem;
}

.switch-content p {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.switch-content p strong {
    color: var(--navy);
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

/* Desktop: 3 columns */
@media (min-width: 768px) {

    .switch-image {
        height: 220px;
    }
    
    .switch-content {
        padding: 2.5rem;
    }
    
    .seamless-switch-section {
        padding: 100px 5%;
    }
    
    .seamless-switch-header {
        margin-bottom: 3.5rem;
    }
    
    .seamless-switch-header h2 {
        font-size: 40px;
        line-height: 1.15;
        margin-bottom: 1rem;
    }
    
    .seamless-switch-header p {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .seamless-switch-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .switch-content p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ============================================
   12. CTA SECTION
   ============================================ */

.cta-section {
    padding: 40px 5% 40px;
    background: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* CTA Text Column */
.cta-text {
    flex: 1;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.cta-small-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-primary {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 53, 128, 0.2);
}

.cta-button-primary:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 63, 26, 0.3);
}

.cta-button-secondary {
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    padding: 14px 32px;
    border: 2px solid var(--navy);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 53, 128, 0.2);
}

/* Desktop */
@media (min-width: 768px) {
    .cta-section {
        padding: 40px 5% 40px;
    }
    
    .cta-content h2 {
        font-size: 38px;
        line-height: 1.15;
        margin-bottom: 1.25rem;
    }
    
    .cta-description {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .cta-small-text {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 2.5rem;
    }
    
    .cta-buttons {
        gap: 1.5rem;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        font-size: 17px;
        padding: 16px 40px;
    }
}
/* ============================================
   CTA FORM CONTAINER STYLING
   ============================================ */

.cta-form-container {
    max-width: 650px;
    width: 100%;
    margin: 2rem auto 0;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(39, 53, 128, 0.08);
    min-height: 540px;
    position: relative;
    overflow: hidden;
}

/* Subtle dotted background for brand consistency */
.cta-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(39, 53, 128, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure iframe is above background */
.cta-form-container iframe {
    position: relative;
    z-index: 1;
    border-radius: 12px;
}

/* Mobile: Reduce padding */
@media (max-width: 767px) {
    .cta-form-container {
        padding: 1.25rem;
        margin: 1.5rem auto 0;
        min-height: 500px;
    }
}

/* Tablet and up: More breathing room */
@media (min-width: 768px) {
    .cta-form-container {
        padding: 2.5rem;
        margin: 2.5rem auto 0;
        min-height: 560px;
    }
}

/* Desktop: Maximum elegance - Two Column Layout */
@media (min-width: 1024px) {
    .cta-content {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
        text-align: left;
    }

    .cta-text {
        flex: 1;
        max-width: 450px;
        text-align: left;
    }

    .cta-text h2 {
        text-align: left;
    }

    .cta-text .cta-description,
    .cta-text .cta-small-text {
        text-align: left;
    }

    .cta-form-container {
        flex: 1;
        max-width: 600px;
        padding: 3rem;
        margin: 0;
    }
}

/* ============================================
   13. FOOTER (Mobile-First)
   ============================================ */

/* ============================================
   13. FOOTER - BONSAI STYLE (Mobile-First)
   ============================================ */

footer {
    background: var(--navy);
    color: var(--white);
    padding: 0;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* Main Footer Container */
.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Brand Section (Logo + Taglines) */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 350px;
}

.footer-enterprise {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-style: italic;
}

/* Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-3px);
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 5%;
}

.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* Desktop Layout - Bonsai Style */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1.5fr 2fr;
        gap: 4rem;
        padding: 5rem 5%;
    }

    .footer-brand {
        gap: 1.25rem;
    }

    .footer-logo {
        height: 60px;
        margin-bottom: 1rem;
    }

    .footer-tagline {
        font-size: 16px;
        max-width: 400px;
    }

    .footer-enterprise {
        font-size: 15px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .footer-heading {
        font-size: 17px;
    }

    .footer-links a {
        font-size: 15px;
    }

    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-copyright {
        font-size: 14px;
    }

    .footer-legal {
        gap: 1rem;
    }

    .footer-legal a {
        font-size: 14px;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 1.2fr 2fr;
    }

    .footer-logo {
        height: 70px;
    }
}

/* Ensure no extra spacing */
footer,
footer * {
    margin-bottom: 0;
}

footer::after,
body::after {
    content: none;
    display: none;
}

/* ============================================
   14. UTILITIES
   ============================================ */

.section-accent {
    width: 60px;
    height: 3px;
    background: var(--navy);
    margin: 0 auto 1.5rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ============================================
   15. RESPONSIVE MEDIA QUERIES (min-width)
   ============================================ */

/* TABLET: 480px and up */
@media (min-width: 480px) {
    :root {
        --section-padding: 80px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    .text-rotator {
        max-width: 480px;
    }

    .hero-subheading {
        font-size: 16px;
        line-height: 1.5;
    }

    .beta-badge {
        padding: 12px 24px;
        font-size: 13px;
    }

    .invite-only-text {
        font-size: 14px;
    }

    .feature-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .screens-container {
        height: 400px;
    }

    .document-card {
        width: 280px;
        height: 420px;
    }

    .encryption-illustration {
        height: 850px;
        min-height: 850px;
    }

    .encryption-card {
        width: 280px;
        height: 360px;
    }

    .input-card {
        top: 80px;
    }

    .encrypt-card {
        top: 320px;
    }

    .store-card {
        top: 560px;
    }

    .dotted-lines {
        top: 200px;
        width: 120px;
        height: 80px;
    }

    .hub-illustration {
        height: 400px;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #featureHubCanvas {
        transform: translate(-50%, -50%) scale(0.7);
        transform-origin: center center;
    }

    #hubLogoAnimation {
        width: 70px;
        height: 70px;
    }

    .testimonial-card-html {
        width: 400px;
        height: 120px;
        padding: 15px 18px;
        gap: 15px;
        margin: 0 1rem;
    }

    .testimonial-photo {
        width: 60px;
        height: 60px;
    }

    .testimonial-quote {
        font-size: 13px;
        line-height: 1.3;
    }

    .testimonial-name {
        font-size: 11px;
    }

    .testimonial-location {
        font-size: 10px;
    }

    .star {
        font-size: 12px;
    }
}

/* TABLET LANDSCAPE: 768px and up */
@media (min-width: 768px) {
    :root {
        --section-padding: 100px;
    }

    nav {
        padding: 1rem 2.5rem;
        width: calc(90% - 40px);
    }

    .logo {
        height: 32px;
    }

    .logo-text {
        font-size: 24px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        gap: 2.5rem;
        box-shadow: none;
        align-items: center;
    }

    .nav-links a {
        font-size: 15px;
        padding: 0;
        border-bottom: none;
    }

    .nav-links .nav-cta {
        padding: 0.7rem 1.8rem;
        width: auto;
        color: var(--white);
        background: var(--navy);
        border-bottom: none;
    }

    .nav-links.active::before {
        display: none;
    }

    .hero {
        padding: 140px 5% 120px;
    }

    .hero h1 {
        font-size: 48px;
        line-height: 1.15;
        margin-bottom: 1.25rem;
    }

    .text-rotator {
        max-width: 650px;
    }

    .hero-subheading {
        font-size: 18px;
        line-height: 1.5;
    }

    .cta-button {
        font-size: 15px;
        padding: 14px 32px;
    }

    .review-stars,
    .review-text {
        font-size: 14px;
    }

    .feature-buttons {
        margin-bottom: 40px;
        justify-content: center;
        padding: 0 40px;
    }

    /* Hide gradient indicators on desktop where buttons are centered */
    .feature-buttons::before,
    .feature-buttons::after {
        display: none;
    }

    .feature-btn {
        font-size: 14px;
        padding: 13px 24px;
    }

    .mvp-screens-section {
        margin-top: -140px;
    }

    .screens-container {
        height: 550px;
    }

    .carousel-logo {
        height: 50px;
        margin: 0 60px;
    }

    /* Integration Section - Desktop */
    .integration-section {
        padding: 80px 5% 100px;
    }

    .integration-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 60px;
        min-height: 500px;
    }

    .funnel-wrapper {
        flex: 0 0 auto;
        width: auto;
    }

    .funnel-image {
        width: 350px;
    }

    .float-logo {
        width: 50px;
        height: 50px;
    }

    /* Desktop Logo Positions - Curved flow from top-right to funnel top */
    .integration-section.animated .logo-1 {
        top: 20%;
        right: -12%;
    }
    .integration-section.animated .logo-2 {
        top: 14%;
        right: -6%;
        
    }
    .integration-section.animated .logo-3 {
        top: 6%;
        right: 2%;
       
    }
    .integration-section.animated .logo-4 {
        top: -3%;
        right: 11%;
    }
    .integration-section.animated .logo-5 {
        top: -10%;
        right: 20%;
       
    }
    }
    .integration-section.animated .logo-6 {
        top: -12%;
        right: 28%;
        
    }
    .integration-section.animated .logo-7 {
        top: -11%;
        right: 38%;
         
    }
    .integration-section.animated .logo-8 {
        top: -4%;
        right: 50%;
        
    }
    .integration-section.animated .logo-9 {
        top: 6%;
        right: 60%;
        
    }
    .integration-section.animated .logo-10 {
        top: 23%;
        left: 30%;
        transform: translateX(-50%);
    }

    .funnel-layers {
        flex: 0 0 auto;
        max-width: 380px;
        gap: 28px;
    }

    .funnel-layer h3 {
        font-size: 24px;
    }

    .funnel-layer p {
        font-size: 15px;
    }

    .feature-content h2 {
        font-size: 48px;
    }

    .feature-subheading {
        font-size: 18px;
    }

    .feature-content p {
        font-size: 18px;
    }

    .feature-visual {
        min-height: 500px;
    }

    .hub-illustration {
        height: 550px;
        padding: 30px 20px 50px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #featureHubCanvas {
        transform: translate(-50%, -50%) scale(1);
        transform-origin: center center;
    }

    #hubLogoAnimation {
        width: 90px;
        height: 90px;
        top: 50%;
        left: 50%;
        margin: 0;
    }

    .document-generation-illustration {
        height: 600px;
    }

    .document-card {
        width: 350px;
        height: 520px;
    }

    .form-card {
        padding: 2rem 1.75rem;
    }

    .form-card-title {
        font-size: 24px;
    }

    .form-card-subtitle {
        font-size: 14px;
    }

    .form-field {
        margin-bottom: 1.25rem;
    }

    .field-label {
        font-size: 13px;
    }

    .field-value {
        font-size: 16px;
        padding: 0.75rem;
    }

    .generate-button {
        padding: 1rem;
        font-size: 16px;
        margin-top: 1.5rem;
    }

    .processing-spinner {
        width: 80px;
        height: 80px;
    }

    .processing-text {
        font-size: 24px;
    }

    .processing-subtext {
        font-size: 32px;
    }

    .final-document-card {
        padding: 1.75rem 1.5rem;
    }

    .doc-logo-text {
        font-size: 18px;
    }

    .doc-title {
        font-size: 20px;
    }

    .doc-date {
        font-size: 12px;
    }

    .doc-field {
        font-size: 13px;
    }

    .doc-field-label {
        min-width: 100px;
    }

    .doc-body {
        font-size: 12px;
    }

    .signature-line {
        width: 150px;
        font-size: 11px;
    }

    .doc-status {
        font-size: 13px;
    }

    .status-icon {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }

    .document-cards-wrapper.fanned .form-card {
        left: 35%;
    }

    .document-cards-wrapper.fanned .processing-card {
        left: 40%;
    }

    .document-cards-wrapper.fanned .final-document-card {
        left: 80%;
    }

    /* HORIZONTAL LAYOUT for Encryption */
    .encryption-illustration {
        height: 500px;
        min-height: 500px;
        padding: 0;
    }

    .encryption-card {
        width: 320px;
        height: 420px;
    }

    .input-card {
        left: 50%;
        top: 45%;
        transform: translate(-110%, -50%);
        z-index: 40;
    }

    .encrypt-card {
        left: 50%;
        top: 55%;
        transform: translate(-40%, -50%);
        z-index: 30;
    }

    .store-card {
        left: 50%;
        top: 65%;
        transform: translate(30%, -50%);
        z-index: 20;
    }

    .dotted-lines {
        left: 45%;
        top: 45%;
        transform: translate(-50%, -50%) rotate(0deg);
        width: 150px;
        height: 430px;
    }


    .encryption-badge {
        top: -50px;
        padding: 12px 24px;
        font-size: 14px;
    }

    .encryption-badge svg {
        width: 16px;
        height: 16px;
    }

    .encryption-illustration.phase-2 .encrypt-card {
        left: 50%;
        top: 55%;
        transform: translate(-40%, -50%);
    }

    .encryption-illustration.phase-4 .store-card {
        left: 50%;
        top: 65%;
        transform: translate(30%, -50%);
    }

    .testimonials-header h2 {
        font-size: 40px;
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    .testimonials-header p {
        font-size: 18px;
        line-height: 1.5;
    }

    .testimonial-card-html {
        width: 600px;
        height: 150px;
        padding: 20px 25px;
        gap: 20px;
        margin: 0 1rem;
    }

    .testimonial-photo {
        width: 80px;
        height: 80px;
        border: 3px solid rgba(39, 53, 128, 0.1);
    }

    .testimonial-quote {
        font-size: 16px;
        line-height: 1.4;
    }

    .testimonial-name {
        font-size: 14px;
    }

    .testimonial-location {
        font-size: 13px;
    }

    .testimonial-stars {
        gap: 3px;
    }

    .star {
        font-size: 16px;
    }

    .cta-section {
        padding: 40px 5%;
    }

    .cta-content h2 {
        font-size: 48px;
    }

    .cta-content p {
        font-size: 18px;
    }

    .footer-main {
        grid-template-columns: 2fr 1fr 1.5fr;
        gap: 4rem;
        padding: 4rem 5%;
    }

    .footer-logo {
        height: 60px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-copyright {
        font-size: 14px;
        text-align: left;
    }

    .footer-legal-link {
        font-size: 14px;
    }


/* DESKTOP: 1024px and up */
@media (min-width: 1024px) {
    :root {
        --section-padding: 140px;
    }

    .hero h1 {
        font-size: 52px;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }

    .hub-illustration {
        height: 720px;
        padding: 40px 20px 60px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #featureHubCanvas {
        transform: translate(-50%, -50%) scale(1);
        transform-origin: center center;
    }

    #hubLogoAnimation {
        width: 120px;
        height: 120px;
        top: 50%;
        left: 58%;
        margin: 0;
    }

    /* Split layout for features */
    .feature-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    /* Integration Section - Large Desktop */
    .integration-container {
        gap: 80px;
    }

    .funnel-image {
        width: 400px;
    }

    .float-logo {
        width: 55px;
        height: 55px;
    }

    .funnel-layers {
        max-width: 420px;
        gap: 32px;
    }

    .funnel-layer h3 {
        font-size: 26px;
    }

    .funnel-layer p {
        font-size: 16px;
    }
}

/* LARGE DESKTOP: 1440px and up */
@media (min-width: 1440px) {
    .encryption-illustration {
        height: 500px;
    }
}
/* Services Dropdown - Single Column, Narrow Width */
.nav-dropdown-menu.services-dropdown {
    min-width: 200px !important;
}

.nav-dropdown-menu.services-dropdown .dropdown-grid {
    grid-template-columns: 1fr !important;
}

/* ── Contact Sales Modal (shared: index + pricing) ── */
.sales-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sales-modal-overlay.active {
    display: flex;
}

.sales-modal {
    background: #fff;
    border-radius: 20px;
    padding: 36px 36px 28px;
    width: 100%;
    max-width: 580px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    max-height: 90vh;
    overflow-y: auto;
}

.sales-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.sales-modal-close:hover {
    color: var(--navy);
}

.sales-modal-heading {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.sales-modal-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}