html,
body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Restore cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {

    *,
    *::before,
    *::after {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }
}

/* Safari/iOS Performance Optimizations */
@supports (-webkit-touch-callout: none) {

    /* Reduce heavy blur effects on Safari */
    .blur-heavy {
        filter: blur(40px) !important;
    }

    /* Disable animations on blurred elements */
    .blur-no-animate {
        animation: none !important;
    }

    /* Hardware acceleration for smooth scrolling */
    .gpu-accelerate {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Mobile performance - reduce blur intensity */
@media (max-width: 768px) {
    .mobile-blur-reduce {
        filter: blur(30px) !important;
    }

    .mobile-no-animate {
        animation: none !important;
    }

    /* Reduce heavy backdrop-blur on mobile */
    .backdrop-blur-xl {
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    .backdrop-blur-lg {
        -webkit-backdrop-filter: blur(8px) !important;
        backdrop-filter: blur(8px) !important;
    }

    .backdrop-blur-md {
        -webkit-backdrop-filter: blur(6px) !important;
        backdrop-filter: blur(6px) !important;
    }

    /* Disable spinning animations on cards for mobile */
    .animate-\[spin_4s_linear_infinite\] {
        animation: none !important;
    }
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {

    /* Reduce all backdrop blur on Safari iOS */
    .backdrop-blur-xl,
    .backdrop-blur-lg,
    .backdrop-blur-md,
    .backdrop-blur-sm {
        -webkit-backdrop-filter: blur(4px) !important;
        backdrop-filter: blur(4px) !important;
    }
}

/* Mobile: Disable ALL heavy visual effects for performance */
@media (max-width: 768px) {

    /* Hide large decorative blur elements (not nav/UI elements) */
    .blur-3xl,
    .blur-\[60px\],
    .blur-\[80px\],
    .blur-\[100px\],
    .blur-\[120px\],
    .blur-\[150px\],
    .blur-\[180px\] {
        display: none !important;
    }

    /* Disable animate-ping on mobile - very expensive */
    .animate-ping {
        animation: none !important;
        opacity: 0.75 !important;
    }

    /* Disable animations except for essential UI, logo wall, and ticker */
    *:not(nav):not(nav *):not(.mobile-menu):not(.mobile-menu *):not(.animate-scrolling):not(.animate-ticker-slow):not(.sponsor-ticker *),
    *:not(nav):not(nav *)::before,
    *:not(nav):not(nav *)::after {
        animation: none !important;
    }

    /* Disable transitions except nav */
    *:not(nav):not(nav *):not(.mobile-menu):not(.mobile-menu *) {
        transition: none !important;
    }

    /* Nav: keep glossy backdrop blur */
    nav [class*="backdrop-blur"],
    .mobile-menu,
    .nav-container {
        -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
        backdrop-filter: blur(10px) saturate(180%) !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    /* Other elements: disable backdrop blur */
    *:not(nav):not(nav *):not(.mobile-menu)[class*="backdrop-blur"] {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* Hide heavy decorative overlays only (keep dotted backgrounds) */
    .absolute.inset-0.pointer-events-none:not([class*="bg-\[radial-gradient"]),
    [class*="bg-\[linear-gradient"][class*="pointer-events-none"]:not([class*="from-white"]) {
        display: none !important;
    }

    /* Simplify shadows (not on nav) */
    *:not(nav):not(nav *)[class*="shadow-2xl"],
    *:not(nav):not(nav *)[class*="shadow-xl"] {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }

    /* Disable transforms on decorative elements only (except icons and ticker) */
    [class*="rotate-"]:not(nav *):not(.icon-rotate):not(.sponsor-ticker),
    section [class*="-translate-"]:not(.badge):not(nav *) {
        transform: none !important;
    }

    /* Hide video section glow effects */
    .absolute.-inset-1 {
        display: none !important;
    }

    /* Simplify reveal section on mobile */
    .reveal-section .bg-image-blurred {
        display: none !important;
    }

    /* FORCE logo wall animation on mobile Safari - must be last */
    .animate-scrolling,
    div.animate-scrolling,
    .flex.animate-scrolling {
        animation: scrolling 20s linear infinite !important;
        -webkit-animation: scrolling 20s linear infinite !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Fix partner logos grid on mobile - 3 columns instead of 6 */
    .partners-logo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem 0.5rem !important;
    }

    .partners-logo-grid img {
        max-width: 70px !important;
        height: auto !important;
        max-height: 24px !important;
    }

    .partners-logo-grid p {
        grid-column: span 3;
        margin-top: 1rem;
    }

    .partners-logo-grid > div:empty {
        display: none;
    }
}

/* Reveal Section Styles */
.reveal-section {
    position: relative;
    overflow: hidden;
}

.reveal-section .bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.reveal-section .bg-image-blurred {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(1.05) saturate(1.3);
    z-index: 2;
    transform: scale(1.08);
}

.reveal-section .glassy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 3;
    pointer-events: none;
}

.reveal-section .content-wrapper {
    position: relative;
    z-index: 10;
}

/* FAQ Accordion Styles */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #EF2E9A;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    opacity: 1;
}

/* Gallery Carousel Styles */
.gallery-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-carousel:active {
    cursor: grabbing;
}

.gallery-carousel .gallery-item {
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-carousel .gallery-item:hover {
    transform: scale(1.03);
}

.gallery-carousel .gallery-item .glass-frame {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.gallery-carousel .gallery-item:hover .glass-frame {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(239, 46, 154, 0.3);
    box-shadow: 0 12px 40px rgba(239, 46, 154, 0.25);
}

.gallery-carousel .gallery-item .glass-frame img {
    border-radius: 12px;
}

/* Custom Scrollbar Track */
.carousel-scrollbar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.carousel-scrollbar-thumb {
    height: 100%;
    background: linear-gradient(90deg, #EF2E9A, #ff6b6b);
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    transition: box-shadow 0.2s ease;
    min-width: 60px;
}

.carousel-scrollbar-thumb:hover,
.carousel-scrollbar-thumb:active {
    box-shadow: 0 0 15px rgba(239, 46, 154, 0.5);
}

.carousel-scrollbar-thumb:active {
    cursor: grabbing;
}

.mask-radial-faded {
    mask-image: radial-gradient(circle at center 40%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center 40%, black 20%, transparent 80%);
}

.text-glow {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.animate-scrolling {
    animation: scrolling 25s linear infinite;
}

/* Keep logo wall animation on mobile but optimize */
@media (max-width: 768px) {
    .animate-scrolling {
        animation: scrolling 20s linear infinite !important;
        will-change: transform;
    }
}

.logo-white {
    filter: brightness(0) invert(1);
}

.logo-white-alt {
    filter: grayscale(1) contrast(0) brightness(2);
}

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

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* New styles for comparison table */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

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

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Sponsor Section Styles */
.tab-button {
    transition: all 0.3s;
    background: white;
    color: #0e103c;
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.tab-button:not(.active):hover {
    background: linear-gradient(135deg, rgba(255, 0, 168, 0.08), rgba(14, 16, 60, 0.08));
    border-color: #ff00a8;
    color: #0e103c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 168, 0.15);
}

.tab-button.active {
    background: linear-gradient(135deg, #ff00a8, #0e103c);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(255, 0, 168, 0.3);
    transform: translateY(-2px);
}

.tab-button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-card-simple {
    transition: all 0.3s;
}

.package-card-simple:hover {
    transform: translateY(-4px);
}

.gradient-border {
    position: relative;
    transition: all 0.3s ease;
}

.gradient-border:hover {
    box-shadow: 0 0 0 2px #ff00a8, 0 4px 20px rgba(255, 0, 168, 0.15);
}

/* What You Get Section Styles */
.wet-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        inset 0 2px 0 0 rgba(255, 255, 255, 0.9),
        inset 0 0 20px 0 rgba(255, 255, 255, 0.5),
        0 20px 40px -10px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wet-glass:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-4px) scale(1.005);
    box-shadow:
        inset 0 2px 0 0 rgba(255, 255, 255, 1),
        inset 0 0 30px 0 rgba(255, 255, 255, 0.8),
        0 30px 60px -12px rgba(239, 46, 154, 0.15),
        0 0 0 1px rgba(239, 46, 154, 0.3);
}

.wet-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.6;
}

.glass-inner {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.nav-btn .nav-inner {
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-btn.active .nav-inner {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(239, 46, 154, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0) rotate(var(--tw-rotate));
    }

    50% {
        transform: translateY(-10px) rotate(var(--tw-rotate));
    }
}

.animate-float-slow {
    animation: float-card 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-card 5s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-card 4s ease-in-out infinite;
}

/* Mobile Menu Styles */
/* Mobile nav pill adjustments for smaller screens */
@media (max-width: 420px) {
    #nav-logo-mobile-img {
        height: 2.5rem !important;
        min-width: 110px !important;
    }
    #nav-cta-mobile {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.75rem !important;
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    #mobile-menu-btn {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    #mobile-menu-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 375px) {
    #nav-logo-mobile-img {
        height: 2.35rem !important;
        min-width: 105px !important;
    }
    #nav-cta-mobile {
        font-size: 0.68rem !important;
        padding: 0.38rem 0.7rem !important;
        margin-left: 0.35rem !important;
        margin-right: 0.35rem !important;
    }
    #mobile-menu-btn {
        width: 2.1rem !important;
        height: 2.1rem !important;
    }
    #mobile-menu-btn svg {
        width: 17px !important;
        height: 17px !important;
    }
}

/* Urgency bar adjustments for smaller screens */
@media (max-width: 420px) {
    #urgency-bar > div > div {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        gap: 0.5rem !important;
    }
    #urgency-bar .flex-shrink-0.w-10 {
        width: 2rem !important;
        height: 2rem !important;
    }
    #urgency-bar .flex-shrink-0.w-10 svg {
        width: 14px !important;
        height: 14px !important;
    }
    #urgency-bar span.text-sm {
        font-size: 0.8rem !important;
    }
    #urgency-bar a.flex-shrink-0 {
        font-size: 0.65rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}

@media (max-width: 375px) {
    #urgency-bar > div > div {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        gap: 0.4rem !important;
    }
    #urgency-bar .flex-shrink-0.w-10 {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }
    #urgency-bar .flex-shrink-0.w-10 svg {
        width: 12px !important;
        height: 12px !important;
    }
    #urgency-bar span.text-sm {
        font-size: 0.7rem !important;
    }
    #urgency-bar a.flex-shrink-0 {
        font-size: 0.6rem !important;
        padding: 0.35rem 0.5rem !important;
    }
}

/* Comparison table mobile adjustments */
@media (max-width: 767px) {
    .overflow-x-auto table td {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .overflow-x-auto table td .flex.items-start {
        gap: 0.5rem !important;
    }
    .overflow-x-auto table td p.font-bold {
        font-size: 0.875rem !important;
    }
    .overflow-x-auto table td p.text-slate-600,
    .overflow-x-auto table td p.text-slate-300 {
        font-size: 0.75rem !important;
    }
}

/* Hero form container adjustments for smaller screens */
@media (max-width: 640px) {
    #hero-form-container {
        max-width: calc(100% - 0.5rem) !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 375px) {
    #hero-form-container {
        max-width: calc(100% - 1.25rem) !important;
    }
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 450px;
    opacity: 1;
}

.hamburger-line {
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile tabs scrollbar hint */
.tabs-scroll-container {
    position: relative;
}

.tabs-scroll-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
}

.tabs-scroll-container.scrolled-end::after {
    opacity: 0;
}

@media (min-width: 1024px) {
    .tabs-scroll-container::after {
        display: none;
    }
}

/* Sponsor Ticker Animation */
@keyframes ticker-slow {
    0% {
        transform: translateX(0);
    }

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

.animate-ticker-slow {
    display: flex;
    width: fit-content;
    animation: ticker-slow 30s linear infinite;
    will-change: transform;
}

/* Summit Section Drift Animation */
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(20px, -20px) scale(1.05); opacity: 0.8; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
}

.animate-drift {
    animation: drift 15s ease-in-out infinite;
}

.animate-drift-slow {
    animation: drift 20s ease-in-out infinite reverse;
}

/* Summit Card Styles */
.summit-card {
    transition: all 0.5s ease-out;
}

.summit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.04);
}

.summit-card:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.summit-card img {
    filter: grayscale(20%);
    transition: all 0.7s;
}

/* Premium Container Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}