.shape-1 {
    --shape-w: 600px;
    --shape-h: 140px;
    --shape-rotate: 12deg;
    --shape-delay: 0.3s;
    will-change: transform;
}

.shape-2 {
    --shape-w: 500px;
    --shape-h: 120px;
    --shape-rotate: -15deg;
    --shape-delay: 0.5s;
}

.shape-3 {
    --shape-w: 300px;
    --shape-h: 80px;
    --shape-rotate: -8deg;
    --shape-delay: 0.4s;
}

.shape-4 {
    --shape-w: 200px;
    --shape-h: 60px;
    --shape-rotate: 20deg;
    --shape-delay: 0.6s;
}

.shape-5 {
    --shape-w: 150px;
    --shape-h: 40px;
    --shape-rotate: -25deg;
    --shape-delay: 0.7s;
}

/* Infinite Logo Marquee */
.marquee-mask {
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    animation: scroll-left 30s linear infinite;
    display: flex;
    width: max-content;
    will-change: transform;
    transform: translateZ(0);
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-fast-left {
    animation: scroll-left 30s linear infinite;
}

.marquee-fast-right {
    animation: scroll-right 20s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes scroll-right {
    from {
        transform: translate3d(-50%, 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

/* ── Logoloop: Performance-Optimized Infinite Scroll ── */
.logoloop {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    contain: layout style;
    transform: translateZ(0);
}

.logoloop__track {
    display: flex;
    width: max-content;
    animation: scroll-left var(--logoloop-speed, 20s) linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.logoloop:hover .logoloop__track {
    animation-play-state: paused;
}

/* Disable hover-pause on touch devices (causes stutter) */
@media (hover: none) {
    .logoloop:hover .logoloop__track {
        animation-play-state: running;
    }
}

.logoloop__list {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
    list-style: none;
    margin: 0;
}

@media (max-width: 767px) {
    .logoloop__list {
        gap: 2.5rem;
        padding: 0 1rem;
    }
}

@media (min-width: 768px) {
    .logoloop__list {
        gap: 8rem;
    }
}

.logoloop__item {
    flex-shrink: 0;
    transform: translateZ(0);
}

.logoloop-dynamic {
    --logoloop-speed: var(--speed, 20s);
}

.pricing-btn .pricing-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: btn-ripples 0.6s linear forwards;
    pointer-events: none;
}

@keyframes btn-ripples {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

@keyframes scroll-up {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

.animate-scroll-up {
    animation: scroll-up 20s linear infinite;
}

.animate-scroll-up-fast {
    animation: scroll-up 15s linear infinite;
}

.animate-scroll-up-slow {
    animation: scroll-up 25s linear infinite;
}

/* ── Testimonials Grid: blur-in scroll animation ── */
.anim-blur-in {
    opacity: 0;
    /* filter: blur(4px); */
    /* Expensive on mobile */
    transform: translateY(-10px) translateZ(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.anim-blur-in.in-view {
    opacity: 1;
    /* filter: blur(0px); */
    transform: translateY(0) translateZ(0);
}

.anim-blur-in:nth-child(1) {
    transition-delay: 0.05s;
}

.anim-blur-in:nth-child(2) {
    transition-delay: 0.15s;
}

.anim-blur-in:nth-child(3) {
    transition-delay: 0.25s;
}

.anim-blur-in:nth-child(4) {
    transition-delay: 0.35s;
}

.anim-blur-in:nth-child(5) {
    transition-delay: 0.45s;
}

.anim-blur-in:nth-child(6) {
    transition-delay: 0.55s;
}

/* Testimonial card: SVG grid pattern overlay */
.testimonial-card-pattern {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -80px;
    margin-top: -8px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(white, transparent);
    mask-image: linear-gradient(white, transparent);
    opacity: 0.6;
}

.testimonial-card-pattern svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: overlay;
}

/* Testimonial star rating colour */
.star-gold {
    color: #f59e0b;
}

/* Testimonial platform badge */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    border-radius: 4px;
    padding: 2px 8px;
}

/* ═══════════════════════════════════════════════
   HERO SECTION — Particle Canvas Animation
   ═══════════════════════════════════════════════ */

/* Canvas fills the section and sits behind all content */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
    backface-visibility: hidden;
    will-change: content;
}

/* ═══════════════════════════════════════════════
   HERO IMAGE ACCORDION
   ═══════════════════════════════════════════════ */

#hero-accordion {
    height: 290px;
    /* Base height for 16:9 golden ratio calculation */
}

/* Theme Toggle Icon Logic */
.theme-icon-light, .theme-icon-dark {
    display: none !important;
}
html:not(.dark) .theme-icon-light {
    display: block !important;
}
html.dark .theme-icon-dark {
    display: block !important;
}

.hero-acc-item {
    position: relative;
    height: 290px;
    width: 70px;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-acc-item.active {
    width: 515px;
    /* Exactly 16:9 ratio against 290px height */
}

.hero-acc-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-acc-item:hover img,
.hero-acc-item.active img {
    transform: scale(1.04);
}

.hero-acc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    border-radius: inherit;
}

.hero-acc-label {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px) rotate(-90deg);
    transform-origin: left center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
    opacity: 0.85;
}

.hero-acc-item.active .hero-acc-label {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    font-size: 0.875rem;
}

.hero-acc-item.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

/* ── Mobile Responsiveness for Hero Accordion ── */
@media (max-width: 1023px) {
    #hero-accordion {
        height: 220px;
        width: 100%;
        margin-top: 2rem;
        display: flex;
        justify-content: center;
        overflow-x: visible;
        /* Prevent clipping during flex-center overflow */
    }

    .hero-acc-item {
        height: 220px;
        width: 45px;
        border-radius: 1rem;
    }

    .hero-acc-item.active {
        width: 300px;
        /* Balanced width for tablets/mobile */
    }

    .hero-acc-label {
        opacity: 0;
    }

    .hero-acc-item.active .hero-acc-label {
        opacity: 1;
        font-size: 0.8rem;
        bottom: 1rem;
    }
}

@media (max-width: 640px) {
    #hero-accordion {
        height: 180px;
        gap: 0.5rem;
    }

    .hero-acc-item {
        height: 180px;
        width: 35px;
        border-radius: 0.75rem;
    }

    .hero-acc-item.active {
        width: 220px;
        /* Fit within 360px screen: 220 + 4*35 + gaps = ~380px (Still slightly over, but better) */
    }
}

@media (max-width: 400px) {
    #hero-accordion {
        height: 150px;
        gap: 0.35rem;
    }

    .hero-acc-item {
        height: 150px;
        width: 22px;
    }

    .hero-acc-item.active {
        width: 180px;
        /* Fits 320px screen: 180 + 4*22 + gaps = 180 + 88 + 15 = 283px (Fits perfectly!) */
    }

    .hero-acc-item.active .hero-acc-label {
        font-size: 0.7rem;
        bottom: 0.6rem;
    }
}

/* ── Custom Utilities ── */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

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

.touch-pan-x {
    touch-action: pan-x;
}

.snap-x-proximity {
    scroll-snap-type: x proximity;
}

.snap-center {
    scroll-snap-align: center;
}

/* ═══════════════════════════════════════════════
   THEME STYLES (Moved from Components)
   ═══════════════════════════════════════════════ */
:root {
    --background: #fdfdfd;
    --on-background: #0e0e0e;
    --surface: #ffffff;
    --on-surface: #0e0e0e;
    --on-surface-variant: #6b6b6b;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f9f9f9;
    --surface-container: #f2f2f2;
    --surface-container-high: #ebebeb;
    --surface-container-highest: #e0e0e0;
    --outline-variant: rgba(0, 0, 0, 0.08);
    --primary: #fc9354;
}

.dark {
    --background: #0e0e0e;
    --on-background: #e6e1e0;
    --surface: #121211;
    --on-surface: #ffffff;
    --on-surface-variant: #adaaaa;
    --surface-container-lowest: #0b0b0b;
    --surface-container-low: #1a1a19;
    --surface-container: #20201f;
    --surface-container-high: #252524;
    --surface-container-highest: #2a2a29;
    --outline-variant: #484847;
    --primary: #fc9354;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Fix: Remove global side/bottom padding from main container to allow full-bleed backgrounds and prevent footer white margin */
main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

html:not(.dark) .text-white {
    color: var(--on-surface) !important;
}

html:not(.dark) .hero-gradient .text-white,
html:not(.dark) button.hero-gradient {
    color: white !important;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-card {
    background: rgba(var(--surface-container-highest-rgb, 255, 255, 255), 0.7);
    backdrop-filter: blur(12px);
    /* Reduced for performance */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--outline-variant);
    transform: translateZ(0);
}

.dark .glass-card {
    background: rgba(252, 147, 84, 0.05);
}

.hero-gradient {
    background: linear-gradient(135deg, #fc9354 0%, #ff725a 100%);
}

.ghost-border {
    border: 1px solid var(--outline-variant);
}

.ember-glow {
    box-shadow: 0 0 50px -15px rgba(252, 147, 84, 0.4);
}

/* Mobile nav drawer */
#mobile-menu {
    display: none;
}

#mobile-menu.open {
    display: flex;
}

/* Hero Edge Blurs */
.hero-edge-blur-l {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7) 0%, transparent 100%);
}

.dark .hero-edge-blur-l {
    background: linear-gradient(to right, rgba(14, 14, 14, 0.9) 0%, transparent 100%) !important;
}

.hero-edge-blur-r {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.7) 0%, transparent 100%);
}

.dark .hero-edge-blur-r {
    background: linear-gradient(to left, rgba(14, 14, 14, 0.9) 0%, transparent 100%) !important;
}

/* Review Cards Container */
.review-cards-mask {
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    max-height: 760px;
}

/* Performance Hints */
.will-change-transform {
    will-change: transform;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize Backdrop Blur for Scrolling */
.backdrop-blur-fix {
    transform: translateZ(0);
}

/* ═══════════════════════════════════════════════
   GRADIENT CARDS — Premium Hover Animations
   ═══════════════════════════════════════════════ */

.gradient-card-container {
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s ease;
    will-change: transform;
}

.gradient-card-container:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

.gradient-card-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
    filter: brightness(0.6) saturate(1.2);
}

.dark .gradient-card-bg-image {
    opacity: 0.35;
}

/* Overlay to ensure text visibility */
.gradient-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--background) 20%, transparent 80%);
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 1023px) {
    .gradient-card-overlay {
        background: linear-gradient(to bottom, var(--background) 40%, transparent 100%);
        opacity: 0.8;
    }
}


.gradient-card-orange {
    background: linear-gradient(135deg, rgba(252, 147, 84, 0.15) 0%, rgba(255, 114, 90, 0.05) 100%);
}

.gradient-card-gray {
    background: linear-gradient(135deg, rgba(107, 107, 107, 0.15) 0%, rgba(173, 170, 170, 0.05) 100%);
}

.gradient-card-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.gradient-card-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.dark .gradient-card-orange {
    background: linear-gradient(135deg, rgba(252, 147, 84, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.dark .gradient-card-gray {
    background: linear-gradient(135deg, rgba(107, 107, 107, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.dark .gradient-card-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.dark .gradient-card-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.gradient-card-badge {
    background: rgba(var(--background-rgb), 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════
   MAGNETIC CARDS — GSAP Powered 3D Animation
   ═══════════════════════════════════════════════ */
.magnetic-container {
    perspective: 1200px;
}

.magnetic-card {
    will-change: transform;
    transform-style: preserve-3d;
}

.magnetic-card img {
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Mobile: reduce compositing overhead for magnetic cards */
@media (max-width: 767px) {
    .magnetic-container {
        perspective: none;
    }
    .magnetic-card {
        will-change: auto;
        transform-style: flat;
        contain: content;
    }
    .magnetic-card img {
        will-change: auto;
        transition: none;
    }
}

/* ═══════════════════════════════════════════════
   MIGRATED INLINE STYLES
   ═══════════════════════════════════════════════ */

.isolation-isolate {
    isolation: isolate;
}

.animate-duration-10s {
    animation-duration: 10s !important;
}




.testimonials-section-border {
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.z-index-3 {
    z-index: 3;
}

.z-index-4 {
    z-index: 4;
}

.z-index-5 {
    z-index: 5;
}

.z-index-6 {
    z-index: 6;
}

.z-index-7 {
    z-index: 7;
}

.z-index-8 {
    z-index: 8;
}

.z-index-9 {
    z-index: 9;
}

.z-index-10 {
    z-index: 10;
}

.hero-faq-box {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    background: var(--bg-100);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: 1.2rem 1.5rem;
    text-align: left;
}

.star-amber-400 {
    color: var(--amber-400);
}

.border-t-subtle {
    border-top-color: var(--border-subtle);
}

.text-teal-400 {
    color: var(--teal-400);
}

.icon-1rem {
    width: 1rem;
    height: 1rem;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-600 {
    max-width: 600px;
}

.text-1_05rem {
    font-size: 1.05rem;
}

.lh-1_6 {
    line-height: 1.6;
}

.lh-1_7 {
    line-height: 1.7;
}

.lh-1_8 {
    line-height: 1.8;
}

.avatar-48 {
    width: 48px;
    height: 48px;
}

.z-index-dynamic {
    z-index: var(--z-index);
}

.text-gradient-dual {
    background: var(--grad-dual);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-svg-size {
    width: var(--icon-size, 1.1rem);
    height: var(--icon-size, 1.1rem);
    display: inline-block;
    vertical-align: middle;
}

.logoloop-dynamic {
    --logoloop-speed: var(--speed, 20s);
}

.aspect-16-10 {
    aspect-ratio: 16/10;
    object-fit: cover;
}

.py-0_25 {
    padding-top: 1px;
    padding-bottom: 1px;
}

.px-1_5 {
    padding-left: 6px;
    padding-right: 6px;
}

.text-0_65rem {
    font-size: 0.65rem;
}

.text-1_1rem {
    font-size: 1.1rem;
}

.text-3_5rem {
    font-size: 3.5rem;
}

.animate-duration-10s {
    animation-duration: 10s !important;
}

.mb-2rem {
    margin-bottom: 2rem;
}

.w-1_1rem {
    width: 1.1rem;
}

.h-1_1rem {
    height: 1.1rem;
}

.align-middle-mr-6 {
    vertical-align: middle;
    margin-right: 6px;
}

.p-0_9-2_4 {
    padding: .9rem 2.4rem;
}

.p-0_9-1_8 {
    padding: .9rem 1.8rem;
}

.p-0_5-1_1 {
    padding: .5rem 1.1rem;
}

.text-0_8rem {
    font-size: .8rem;
}

.w-0_85rem {
    width: .85rem;
}

.h-0_85rem {
    height: .85rem;
}

.gap-0_4 {
    gap: .4rem;
}

.w-0_9rem {
    width: .9rem;
}

.h-0_9rem {
    height: .9rem;
}

.h-auto {
    height: auto;
}

.opacity-100 {
    opacity: 1;
}

.max-w-480 {
    max-width: 480px;
}

.compare-banner-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: var(--max-w, 480px);
    margin-left: auto;
    margin-right: auto;
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.box-shadow-md {
    box-shadow: var(--shadow-md);
}

.tpl-thumb-dynamic {
    background: var(--thumb-bg);
    height: 180px;
}

.grid-mistakes {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ── Optimized Pricing Animations (Mobile-friendly) ── */
.pricing-card-wrapper {
    perspective: 1000px;
}

.pricing-squishy-bgs {
    pointer-events: none;
    z-index: 0;
}

.pricing-squishy-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
    opacity: 0.18;
    filter: blur(1px);
    mix-blend-mode: normal;
}

.dark .pricing-squishy-svg {
    opacity: 0.22;
}

.pricing-bg-1, .pricing-bg-2, .pricing-bg-3 {
    display: none;
}

/* Tier-specific Vibrancy */
.pricing-card-wrapper:nth-child(1) .pricing-bg-1 { 
    display: block; 
    color: #fc9354; /* Aesthetic Orange */
}
.pricing-card-wrapper:nth-child(2) .pricing-bg-2 { 
    display: block; 
    color: #818cf8; /* Electric Indigo */
}
.pricing-card-wrapper:nth-child(3) .pricing-bg-3 { 
    display: block; 
    color: #10b981; /* Premium Emerald */
}

/* Subtle Opacity Fade on Desktop Hover (Desktop only) */
@media (hover: hover) and (pointer: fine) {
    .pricing-card-wrapper:hover .pricing-squishy-svg {
        opacity: 0.28;
    }
    .dark .pricing-card-wrapper:hover .pricing-squishy-svg {
        opacity: 0.35;
    }
}

.squishy-path {
    transform-origin: center;
    transform-box: fill-box;
    fill: currentColor;
}

/* Removed heavy morphing animations - SVG shapes stay static */
.squishy-1-circle, .squishy-1-ellipse,
.squishy-2-rect1, .squishy-2-rect2,
.squishy-3-path1, .squishy-3-path2, .squishy-3-path3 {
    /* No transitions - shapes are static */
}

/* Simplified Card Scale Animation (Desktop only, disabled on mobile/tablet) */
.pricing-card-inner {
    transition: box-shadow 0.4s ease-in-out, border-color 0.4s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
    .pricing-card-inner {
        transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out, border-color 0.4s ease-in-out;
    }
    .pricing-card-wrapper:hover .pricing-card-inner {
        transform: scale(1.02);
    }
}

/* Respect prefers-reduced-motion globally */
@media (prefers-reduced-motion: reduce) {
    .pricing-card-inner,
    .pricing-squishy-svg {
        transition: none !important;
    }
    .pricing-card-wrapper:hover .pricing-card-inner {
        transform: none !important;
    }
}

.pricing-card-inner {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.pricing-card-wrapper:hover .pricing-card-inner {
    box-shadow: 0 12px 48px 0 rgba(252, 147, 84, 0.12);
}

/* ── Premium Button Shine Effect ── */
.pricing-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.pricing-btn:hover .btn-shine {
    left: 150%;
}

.pricing-btn:hover {
    box-shadow: 0 10px 25px -5px rgba(252, 147, 84, 0.4);
}

html:not(.dark) .pricing-btn:hover {
    background-color: #fc9354 !important; /* solid primary */
    color: #0e0e0e !important; /* var(--on-surface) */
}

.dark .pricing-btn:hover {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.template-card-js.is-active,
.template-card-js:active {
    transform: scale(1.02) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4) !important;
}

/* Ensure the overlay becomes visible on active mobile state */
.template-card-js.is-active .absolute.inset-0.bg-primary\/20,
.template-card-js:active .absolute.inset-0.bg-primary\/20 {
    opacity: 1 !important;
}

.template-card-js.is-active .template-btn-js,
.template-card-js:active .template-btn-js {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 20px -5px rgba(252, 147, 84, 0.4) !important;
}

.template-card-js.is-active img,
.template-card-js:active img {
    transform: scale(1.05) !important;
}
/* ── Ultimate Guide Stacking Cards ── */
.ultimate-stack-container {
    background: var(--background);
    contain: layout paint;
}

.ug-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ug-bg-img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ug-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

.overlay-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(14, 14, 14, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.dark .overlay-vignette {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
}

@media (min-width: 768px) {
    .dark .overlay-vignette {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
    }
}

.cinematic-reveal {
    /* Explicit stacking context for GSAP */
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Fallback visibility before JS initialization */
.ug-first-chapter {
    opacity: 1 !important;
    z-index: 10 !important;
}

/* Marquee Utility Polylines (Missing Tailwind Classes) */
.h-28 { height: 7rem; }
.h-48 { height: 12rem; }
.w-\[200px\] { width: 200px; }
.w-\[380px\] { width: 380px; }
.bg-surface-dim { background-color: #111418; }
.rounded-\[1rem\] { border-radius: 1rem; }
.rounded-\[1.5rem\] { border-radius: 1.5rem; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }

@media (min-width: 768px) {
    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .md\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.empty-slot-desktop { display: none; }
@media (min-width: 1024px) {
    .empty-slot-desktop { display: block; }
}

.gap-x-8 { column-gap: 2rem; }
.gap-y-3 { row-gap: 0.75rem; }
.gap-y-16 { row-gap: 4rem; }
/* ═══════════════════════════════════════════════
   INSTITUTIONAL AUTHORITY HIGHLIGHTS
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  .md\:col-span-6 {
    grid-column: span 6 / span 6;
  }
}

.authority-highlight {
    color: var(--primary);
    font-weight: 800 !important;
    text-decoration: none;
    background: linear-gradient(to right, var(--primary), #ff725a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.authority-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(to right, var(--primary), #ff725a);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.4s ease;
    opacity: 0.6;
}

.authority-highlight:hover {
    filter: brightness(1.2);
}

.authority-highlight:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.authority-badge {
    background: linear-gradient(135deg, rgba(252, 147, 84, 0.2), rgba(255, 114, 90, 0.1));
    border: 1px solid rgba(252, 147, 84, 0.3);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(4px);
}

/* Fix the small gap between the header and the hero on mobile responsiveness across all landing pages */
@media (max-width: 767px) {
    #hero-gemini {
        margin-top: -64px !important;
        padding-top: 72px !important;
    }
}
