/* ═══════════════════════════════════════════
   Saleonic – Landing Page Styles
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

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

html,
body {
    background: #000;
    overflow-x: clip;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

/* ── Canvas & Scroll Host ── */
#scene {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
}

#scroll-host {
    height: auto;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

#scroll-hint {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.18);
    font: 500 11px/1 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.6s ease;
}

#scroll-hint.hidden {
    opacity: 0;
}

/* ═══════════════════════════════════════════
   HEADER – Glassmorphism Navigation
   ═══════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 28px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.site-header.scrolled {
    transform: translateY(0);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 8px 12px 24px;
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled .header-inner {
    background: rgba(5, 3, 26, 0.65);
    border-color: rgba(109, 92, 241, 0.15);
    box-shadow:
        0 8px 40px rgba(43, 32, 254, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(109, 92, 241, 0.3));
    transition: filter 0.3s ease;
}

.header-logo:hover img {
    filter: drop-shadow(0 0 14px rgba(109, 92, 241, 0.5));
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: color 0.25s ease, background 0.25s ease;
    letter-spacing: 0.01em;
    position: relative;
}

.desktop-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2B20FE, #6D5CF1);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.desktop-nav a:hover::after {
    width: 20px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #2B20FE 0%, #6D5CF1 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow:
        0 2px 16px rgba(43, 32, 254, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    letter-spacing: 0.01em;
    font-family: inherit;
    white-space: nowrap;
}

.btn-dashboard:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 6px 28px rgba(43, 32, 254, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
}

.btn-dashboard:active {
    transform: translateY(0) scale(0.98);
}

.btn-dashboard .arrow {
    display: inline-flex;
    transition: transform 0.25s ease;
}

.btn-dashboard:hover .arrow {
    transform: translateX(3px);
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    transition: background 0.2s ease;
    position: relative;
    z-index: 1002;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease,
        width 0.25s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════
   MOBILE NAV OVERLAY
   ═══════════════════════════════════════════ */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 3, 26, 0.97);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.45s;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
}

.mobile-nav-header .header-logo img {
    height: 28px;
}

.mobile-nav-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-nav-close .x-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px 60px;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav-overlay.open .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger entrance */
.mobile-nav-overlay.open .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.08s;
}

.mobile-nav-overlay.open .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.14s;
}

.mobile-nav-overlay.open .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.20s;
}

.mobile-nav-overlay.open .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.26s;
}

.mobile-nav-overlay.open .mobile-nav-links li:nth-child(5) {
    transition-delay: 0.32s;
}

.mobile-nav-overlay.open .mobile-nav-links li:nth-child(6) {
    transition-delay: 0.38s;
}

.mobile-nav-links a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 18px 0;
    font-family: 'Urbanist', 'Inter', sans-serif;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 500;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.25s ease, padding-left 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #fff;
    padding-left: 8px;
}

.mobile-nav-links .link-num {
    font-size: 12px;
    font-weight: 500;
    color: rgba(109, 92, 241, 0.6);
    font-family: 'Inter', sans-serif;
    min-width: 22px;
    letter-spacing: 0;
}

.mobile-nav-footer {
    padding: 0 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}

.mobile-nav-overlay.open .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-footer .divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-footer .local-time {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

.mobile-nav-footer .btn-dashboard {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
    border-radius: 14px;
}

/* ═══════════════════════════════════════════
   HERO SECTION – Premium Interactive Hero
   ═══════════════════════════════════════════ */
.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    text-align: center;
    padding: 0 24px;
}

.hero-content {
    pointer-events: auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 62px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}



.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    max-width: 680px;
    margin: 0 auto;
}

.btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 8px 8px 8px 24px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.btn-get-started:hover {
    background: #06041a;
    border-color: rgba(109, 92, 241, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(43, 32, 254, 0.15);
}

.btn-arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.btn-get-started:hover .btn-arrow-circle {
    transform: rotate(45deg);
    background-color: #fff;
    border-color: #fff;
    color: #000;
}

.btn-arrow {
    width: 18px;
    height: 18px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 200ms;
}

.delay-2 {
    animation-delay: 450ms;
}

/* Responsiveness for Hero */
@media (max-width: 900px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-container {
        padding: 0 16px;
    }
}

/* ═══════════════════════════════════════════
   3D CYLINDER CARDS
   ═══════════════════════════════════════════ */
.cylinder-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: none;
    perspective: 1200px;
}

.cylinder-viewport {
    width: 100%;
    max-width: 900px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.cylinder-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.cylinder-card {
    position: absolute;
    width: 520px;
    height: 160px;
    left: calc(50% - 260px);
    top: calc(50% - 80px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    pointer-events: auto;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cylinder-card:hover {
    border-color: rgba(109, 92, 241, 0.3);
    box-shadow:
        0 15px 50px rgba(109, 92, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-glass-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(109, 92, 241, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.cylinder-card:hover .card-glass-glow {
    opacity: 1;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.card-icon-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(109, 92, 241, 0.06);
    border: 1px solid rgba(109, 92, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 4px 12px rgba(109, 92, 241, 0.3));
}

.card-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.card-stat {
    font-family: 'Urbanist', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.card-description {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
}

/* responsive card */
@media (max-width: 600px) {
    .cylinder-card {
        width: 340px;
        height: 200px;
        left: calc(50% - 170px);
        top: calc(50% - 100px);
        padding: 16px;
    }

    .card-content {
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .card-icon-wrap {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .card-icon {
        width: 24px;
        height: 24px;
    }

    .card-stat {
        font-size: 22px;
    }

    .card-label {
        font-size: 14px;
    }

    .card-description {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .header-actions .btn-dashboard {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .site-header {
        padding: 12px 16px;
    }

    .header-inner {
        padding: 10px 6px 10px 18px;
        border-radius: 14px;
    }
}

@media (min-width: 901px) {
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 380px) {
    .mobile-nav-body {
        padding: 0 24px 40px;
    }

    .mobile-nav-footer {
        padding: 0 24px 32px;
    }

    .mobile-nav-links a {
        font-size: 26px;
        padding: 14px 0;
    }
}

/* ═══════════════════════════════════════════
   CAPABILITIES STACK SECTION
   ═══════════════════════════════════════════ */
.stack-section {
    position: relative;
    margin-top: 280vh;
    /* push section down past the cylinder animation range naturally in flow */
    width: 100%;
    padding: 0 24px 100vh 24px;
    /* 100vh padding-bottom forces cards to remain stacked in the center together! */
    z-index: 20;
    pointer-events: auto;
}

.stack-header {
    text-align: center;
    margin: 0 auto 80px auto;
    max-width: 900px;
    pointer-events: auto;
}

.stack-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8a7aff;
    display: block;
    margin-bottom: 12px;
}

.stack-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.stack-card {
    position: -webkit-sticky;
    position: sticky;
    width: 100%;
    max-width: 900px;
    height: 380px;
    background: rgba(5, 3, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    display: flex;
    overflow: hidden;
    /* Added upward shadow to separate layers clearly */
    box-shadow:
        0 -15px 30px rgba(0, 0, 0, 0.3),
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin: 0 auto 80px auto;
    /* Centered block elements in vertical flow */
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.stack-card:hover {
    border-color: rgba(109, 92, 241, 0.35);
    box-shadow:
        0 -15px 30px rgba(0, 0, 0, 0.3),
        0 35px 80px rgba(109, 92, 241, 0.08),
        0 15px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Stacking top offsets for 7 cards (each card stops in the center of viewport, next cards offset downwards) */
.stack-card:nth-child(2) {
    top: calc(50vh - 190px);
    z-index: 1;
}

.stack-card:nth-child(3) {
    top: calc(50vh - 190px + 24px);
    z-index: 2;
}

.stack-card:nth-child(4) {
    top: calc(50vh - 190px + 48px);
    z-index: 3;
}

.stack-card:nth-child(5) {
    top: calc(50vh - 190px + 72px);
    z-index: 4;
}

.stack-card:nth-child(6) {
    top: calc(50vh - 190px + 96px);
    z-index: 5;
}

.stack-card:nth-child(7) {
    top: calc(50vh - 190px + 120px);
    z-index: 6;
}

.stack-card:nth-child(8) {
    top: calc(50vh - 190px + 144px);
    z-index: 7;
}

.card-image-panel {
    width: 46%;
    height: 100%;
    padding: 24px;
    flex-shrink: 0;
}

.card-stack-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-text-panel {
    width: 54%;
    height: 100%;
    padding: 48px 48px 48px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    text-align: left;
}

.card-stack-meta {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
}

.card-stack-heading {
    font-family: 'Urbanist', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    letter-spacing: -0.01em;
}

.card-stack-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments for stack cards */
@media (max-width: 820px) {
    .stack-section {
        max-width: 540px;
        padding-bottom: 60px;
    }

    .stack-card {
        flex-direction: column;
        height: auto;
        max-width: 480px;
        margin-bottom: 60px;
    }

    /* Disable sticky overlaps on mobile since viewport is small */
    .stack-card {
        position: relative !important;
        top: 0 !important;
    }

    .card-image-panel {
        width: 100%;
        height: 240px;
        padding: 16px;
    }

    .card-text-panel {
        width: 100%;
        padding: 24px;
        gap: 12px;
    }

    .card-stack-heading {
        font-size: 22px;
    }

    .card-stack-desc {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════
   PRICING PLANS SECTION
   ═══════════════════════════════════════════ */
.pricing-section {
    position: relative;
    margin-top: 15vh;
    /* sits below the stack section with a clean gap */
    width: 100%;
    padding: 120px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    /* transparent to reveal the fixed logo behind */
    z-index: 10;
    pointer-events: auto;
    overflow: hidden;
}

.pricing-bg-logo {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    opacity: 0.9;
    height: 480px;
    pointer-events: none;
    z-index: 1;
    display: none;
    will-change: transform, opacity, filter;
}

.pricing-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    z-index: 2;
    /* sits in front of the blurry logo */
}

.pricing-header-wrap {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8a7aff;
    display: block;
    margin-bottom: 12px;
}

.pricing-main-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.pricing-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    width: 100%;
}

.pricing-card {
    flex: 1;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

    /* Initially hidden for fade-in scroll animation */
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Popular pricing card style boost */
.pricing-card.popular {
    background: rgba(109, 92, 241, 0.03);
    border-color: rgba(109, 92, 241, 0.3);
    box-shadow:
        0 25px 50px rgba(109, 92, 241, 0.05),
        0 15px 35px rgba(0, 0, 0, 0.4);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8a7aff 0%, #2B20FE 100%);
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(43, 32, 254, 0.3);
}

.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.plan-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.plan-price-wrap {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.plan-price {
    font-family: 'Urbanist', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.plan-original-price {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.plan-period {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.plan-features li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #8a7aff;
}

.pricing-action {
    width: 100%;
}

.btn-pricing-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.pricing-card.popular .btn-pricing-cta {
    background: linear-gradient(135deg, #8a7aff 0%, #2B20FE 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(43, 32, 254, 0.2);
}

.btn-pricing-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pricing-card.popular .btn-pricing-cta:hover {
    background: linear-gradient(135deg, #998cff 0%, #3b30ff 100%);
    box-shadow: 0 6px 20px rgba(43, 32, 254, 0.3);
}

/* Staggered animation delays */
.pricing-card:nth-child(1) {
    transition-delay: 100ms;
}

.pricing-card:nth-child(2) {
    transition-delay: 250ms;
}

.pricing-card:nth-child(3) {
    transition-delay: 400ms;
}

/* Responsive adjustments for pricing plans */
@media (max-width: 960px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .pricing-card {
        width: 100%;
        max-width: 380px;
    }
}

/* ═══════════════════════════════════════════
   REVIEWS SECTION
   ═══════════════════════════════════════════ */
.reviews-section {
    position: relative;
    width: 100%;
    height: 360vh;
    /* gives plenty of scroll area for 3 card groups */
    background: #141414;
    z-index: 10;
    pointer-events: auto;
}

.reviews-viewport {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reviews-bg-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', 'Georgia', serif;
    font-style: italic;
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 400;
    line-height: 0.9;
    text-align: center;
    color: #fff;
    /* solid white, opacity is controlled via JS to avoid double-dimming */
    pointer-events: none;
    z-index: 1;
}

.reviews-stars-wrap {
    position: absolute;
    left: 8%;
    top: 20%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.reviews-stars {
    font-family: 'Urbanist', sans-serif;
    font-size: 24px;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffc37a 0%, #fe9320 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reviews-stars-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
}

.reviews-stats-wrap {
    position: absolute;
    right: 8%;
    bottom: 10%;
    z-index: 2;
    display: flex;
    gap: 60px;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.reviews-stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reviews-stat-number {
    font-family: 'Urbanist', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.reviews-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
}

/* Review Cards Staggered Layout */
.review-card {
    position: absolute;
    width: 36%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, opacity;
}

.review-card.card-left {
    left: 10%;
    top: 38%;
    /* lower in position */
    border-left: 2px solid rgba(109, 92, 241, 0.2);
    /* subtle colored left border accent */
}

.review-card.card-right {
    right: 10%;
    top: 16%;
    /* higher in position */
    border-right: 2px solid rgba(138, 122, 255, 0.2);
    /* subtle colored right border accent */
}

.review-card-num {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #8a7aff;
    letter-spacing: 0.05em;
}

.review-card-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.review-card-author {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

/* Mobile responsive styling for reviews */
@media (max-width: 768px) {
    .reviews-viewport {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 140px;
    }

    .reviews-bg-title {
        font-size: 60px;
    }

    .reviews-stars-wrap {
        left: 24px;
        top: 24px;
    }

    .reviews-stats-wrap {
        right: 24px;
        bottom: 24px;
        gap: 30px;
    }

    .review-card {
        width: calc(100% - 48px);
        max-width: none;
    }

    .review-card.card-left {
        left: 24px;
        top: 180px;
    }

    .review-card.card-right {
        right: 24px;
        top: 400px;
    }
}

/* ═══════════════════════════════════════════
   KEY FEATURES SECTION
   ═══════════════════════════════════════════ */
.features-overview-section {
    position: relative;
    margin-top: 100vh;
    /* sits below the absolute hero section */
    width: 100%;
    padding: 100px 24px;
    background: transparent;
    /* transparent to let the flames render behind */
    z-index: 10;
    pointer-events: auto;
}

.features-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

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

.features-main-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.features-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.features-top-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
}

.features-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 30px;
}

.feature-widget-card {
    background: rgba(5, 3, 26, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;

    /* Reveal animation */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.feature-widget-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-top: 12px;
}

.feature-widget-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 4px;
    line-height: 1.5;
}

/* --- Widget 1: Inbox list styling --- */
.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inbox-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.inbox-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.inbox-item-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.inbox-item-sub {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.inbox-btn-view {
    background: linear-gradient(135deg, rgba(138, 122, 255, 0.15) 0%, rgba(43, 32, 254, 0.15) 100%);
    border: 1px solid rgba(138, 122, 255, 0.25);
    color: #8a7aff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.inbox-btn-view:hover {
    background: linear-gradient(135deg, rgba(138, 122, 255, 0.25) 0%, rgba(43, 32, 254, 0.25) 100%);
    border-color: rgba(138, 122, 255, 0.4);
    color: #fff;
}

/* --- Widget 2: Chat styling --- */
.chat-mock {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
}

.chat-bubble.customer {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.ai {
    background: linear-gradient(135deg, #8a7aff 0%, #2B20FE 100%);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(43, 32, 254, 0.2);
}

/* --- Widget 3: Growth styling --- */
.growth-visual {
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.growth-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: auto;
}

.growth-rate {
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.growth-percent {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.growth-svg-container {
    width: 100%;
    height: 90px;
}

/* --- Widget 4: Speedometer gauge styling --- */
.gauge-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px;
    position: relative;
}

.gauge-svg {
    width: 180px;
    height: 90px;
}

.gauge-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Urbanist', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.gauge-subtext {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Widget 5: Bar chart styling --- */
.bar-chart-visual {
    height: 140px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 10px;
    gap: 12px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.chart-bar {
    width: 100%;
    max-width: 20px;
    background: linear-gradient(180deg, #8a7aff 0%, rgba(43, 32, 254, 0.2) 100%);
    border-radius: 6px 6px 0 0;
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    height: 0;
    /* starts at 0, animates in viewport */
}

/* Bar Chart target heights when widget is visible */
.feature-widget-card.visible #bar-jan {
    height: 40px !important;
}

.feature-widget-card.visible #bar-feb {
    height: 75px !important;
}

.feature-widget-card.visible #bar-mar {
    height: 60px !important;
}

.feature-widget-card.visible #bar-apr {
    height: 110px !important;
}

.feature-widget-card.visible #bar-may {
    height: 95px !important;
}

.chart-bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
    .features-top-grid {
        grid-template-columns: 1fr;
    }

    .features-bottom-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   FOOTER SECTION
   ═══════════════════════════════════════════ */
.footer-section {
    position: relative;
    width: 100%;
    background: #000;
    padding: 100px 24px 0 24px;
    z-index: 25;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: auto;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(43, 32, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

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

.social-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(138, 122, 255, 0.3);
    color: #8a7aff;
    transform: translateY(-2px);
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

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

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #8a7aff;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: #8a7aff;
}

.footer-massive-text {
    width: 100%;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(80px, 18vw, 300px);
    font-weight: 800;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.06);
    user-select: none;
    pointer-events: none;
    margin-top: 40px;
    padding-bottom: 20px;
    letter-spacing: -0.03em;
    /* text-transform: uppercase; */
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════
   CUSTOM INTERACTIVE CURSOR
   ═══════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {

    html,
    body,
    a,
    button,
    input,
    select,
    textarea,
    [role="button"],
    .btn-get-started,
    .btn-pricing-cta,
    .inbox-btn-view,
    .social-link {
        cursor: none !important;
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 24px;
        height: 24px;
        pointer-events: none;
        z-index: 99999;
        transform: translate3d(-100px, -100px, 0);
        will-change: transform;
        display: block;
    }
}

/* Fallback or non-hover screen hides cursor container */
@media (hover: none),
(pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
}

/* Click Spark Animation styling */
.click-spark {
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    animation: spark-explode 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.spark-line {
    stroke: #8a7aff;
    stroke-width: 3.5px;
    stroke-linecap: round;
    opacity: 0.9;
}

@keyframes spark-explode {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   PRELOADER OVERLAY SYSTEM
   ═══════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #0a062c 0%, #010005 100%);
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), 
                transform 0.8s cubic-bezier(0.77, 0, 0.175, 1),
                filter 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: opacity, transform, filter;
}

.preloader.loaded {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(10px);
    pointer-events: none;
}

.preloader-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.preloader-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    opacity: 0.8;
}

.preloader-glow-top {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(109, 92, 241, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.preloader-glow-bottom {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(43, 32, 254, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
    z-index: 2;
    max-width: 90%;
}

.preloader-logo-wrap {
    opacity: 0;
    transform: translateY(25px);
    animation: preloaderFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.preloader-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(109, 92, 241, 0.5));
    user-select: none;
    pointer-events: none;
}

.preloader-counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 320px;
    opacity: 0;
    transform: translateY(20px);
    animation: preloaderFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.preloader-percentage-wrap {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.03em;
    user-select: none;
}

.preloader-percent-symbol {
    font-size: 32px;
    font-weight: 500;
    color: #6D5CF1;
    margin-left: 2px;
    vertical-align: super;
}

.preloader-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2B20FE 0%, #6D5CF1 50%, #8a7aff 100%);
    background-size: 200% 200%;
    border-radius: 100px;
    box-shadow: 0 0 16px rgba(109, 92, 241, 0.7);
    transition: width 0.15s cubic-bezier(0.1, 0.8, 0.1, 1);
    animation: preloaderShimmer 2.5s linear infinite;
}

.preloader-status-container {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(15px);
    animation: preloaderFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.preloader-status-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: pulseText 2s ease-in-out infinite;
}

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

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

@keyframes pulseText {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}

@media (max-width: 480px) {
    .preloader-counter-container {
        width: 260px;
    }
    .preloader-percentage-wrap {
        font-size: 64px;
    }
    .preloader-percent-symbol {
        font-size: 24px;
    }
}