/* =============================================
   NEEBIFY WALKTHROUGH — CLEAN RESPONSIVE CSS
   ============================================= */

:root {
    --sky: #0ea5e9;
    --sky-light: rgba(14,165,233,0.12);
    --slate-950: #020617;
    --transition-panel: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

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

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

.animated-cursor {
    position: absolute;
    z-index: 999;
    left: 78.5447%;
    top: 24.8083%;
    animation: cursorMove 10s infinite ease-in-out;
}

.cursor-svg {
    filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.24));
    animation: cursorPulse 0.1s infinite ease-in-out;
}

/* Cursor Pulse */
@keyframes cursorPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes cursorMove {

    0% {
        left: 78.5447%;
        top: 24.8083%;
    }

    20% {
        left: 23.5447%;
        top: 47.8083%;
    }

    40% {
        left: 60.5447%;
        top: 47.8083%;
    }

    60% {
        left: 78.5447%;
        top: 68.8083%;
    }

    100% {
        left: 78.5447%;
        top: 24.8083%;
    }
}

/* ── Section ────────────────────────────────── */


/* ── Mobile panel overrides ──────────────────── */
@media (max-width: 767px) {
    .mobile-hero-title {
        font-size: 35px !important;
    }
}



/* Custom styles for smooth walkthrough */
#features {
    position: relative;
}

/* Desktop: 500vh for the five-step scroll trigger */
@media (min-width: 1024px) {
    #features {
        height: 500vh;
    }
}

/* Sticky container styles */
.sticky-container {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: visible;
}

/* Mobile adjustments */
@media (max-width: 1023px) {
    .sticky-container {
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        padding-top: 0.75rem !important;
        overflow: hidden !important;
    }

    #features {
        height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .walkthrough-indicator {
        display: none !important;
    }
}

/* Transition styles for steps and panels */
.walkthrough-step,
.walkthrough-panel {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Dot indicator styles */
.walkthrough-dot {
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    z-index: 20;
}

    .walkthrough-dot:hover {
        transform: translate(-50%, -50%) scale(1.3);
        background-color: #0ea5e9 !important;
    }

    .walkthrough-dot.active {
        background-color: #0ea5e9 !important;
        box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.15);
        transform: translate(-50%, -50%) scale(1.3);
    }

.indicator-ring {
    left: 50%;
    transform: translate(-50%, -50%);
    transition: top 0.18s linear;
    z-index: 15;
    will-change: top;
}

.indicator-progress {
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.18s linear;
    will-change: transform;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Desktop positioning */
@media (min-width: 1024px) {
    .walkthrough-step {
        position: absolute;
        inset: 0;
    }

    .walkthrough-panel {
        position: absolute;
        inset: 0;
    }

    .panel-stage {
        display: flex;
        align-items: flex-start;
        padding-top: 3rem;
        overflow: visible !important;
    }

    .walkthrough-panel {
        display: flex;
        align-items: flex-start;
        overflow: visible !important;
    }

    .walkthrough-grid {
        margin-top: 3.75rem !important;
    }

    .panel-stage {
        min-height: min(560px, calc(100svh - 230px)) !important;
        overflow: visible;
    }

    .walkthrough-panel > div {
        /* max-height: min(560px, calc(100svh - 230px)); */
        overflow: hidden !important;
        transform: scale(1);
        transform-origin: top center;
        width: 100%;
    }

        .walkthrough-panel > div > div {
            overflow: hidden !important;
        }

    .walkthrough-panel[data-panel="3"] > div {
        transform: scale(1);
        width: 100%;
    }
}

@media (min-width: 1024px) and (max-height: 760px) {
    .sticky-container {
        align-items: center;
        min-height: 100svh;
        padding-top: 0;
    }

    .mx-auto.max-w-3xl.text-center {
        margin-bottom: 0 !important;
    }

    .walkthrough-heading {
        font-size: clamp(2rem, 5.2vh, 2.35rem) !important;
        line-height: 1.14 !important;
    }

    .walkthrough-grid {
        margin-top: 3.25rem !important;
        gap: 1.5rem !important;
    }

    .walkthrough-indicator {
        height: 470px !important;
        transform: scaleY(0.88);
        transform-origin: top center;
    }

    .text-stage {
        min-height: 390px !important;
    }

    .panel-stage {
        min-height: 430px !important;
        padding-top: 2rem;
    }

    .walkthrough-panel > div {
        transform: scale(0.9);
        transform-origin: top center;
        width: 100%;
    }

    .walkthrough-panel[data-panel="3"] > div {
        transform: scale(0.9);
        width: 100%;
    }
}

/* Mobile positioning */
@media (max-width: 1023px) {
    .text-stage {
        min-height: clamp(290px, 42vh, 360px) !important;
    }

    .panel-stage {
        height: auto !important;
        aspect-ratio: 1.48 / 1 !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .walkthrough-grid {
        margin-top: 0.5rem !important;
        gap: 0.75rem !important;
    }

    .walkthrough-step,
    .walkthrough-panel {
        position: absolute !important;
        inset: 0 !important;
        margin-bottom: 0;
    }

    .lg\:grid-cols-\[10px_0\.56fr_1\.39fr\] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .walkthrough-step .premium-action,
    .animated-gradient-bg .premium-action {
        width: 100%;
        justify-content: center;
    }

    .walkthrough-heading {
        font-size: clamp(1.65rem, 8vw, 2.1rem) !important;
    }

    .walkthrough-step {
        padding-right: 0;
    }

    .walkthrough-panel {
        padding-right: 0;
    }

    .walkthrough-step h3 {
        margin-top: 0.7rem !important;
        font-size: clamp(1.65rem, 8vw, 2.05rem) !important;
        line-height: 1.08 !important;
    }

    .walkthrough-step p {
        margin-top: 0.5rem !important;
        line-height: 1.55 !important;
    }

    .walkthrough-step .premium-action {
        margin-top: 0.75rem !important;
    }

    .walkthrough-panel > div {
        width: 100% !important;
        border-radius: 18px !important;
        padding: 0.5rem !important;
        /* margin-top: 50px !important; */
        overflow: hidden !important;
    }

    .walkthrough-panel img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: top center !important;
    }

    .walkthrough-panel > div > div {
        border-radius: 18px !important;
        padding: 0.8rem !important;
    }

    .walkthrough-panel .grid {
        gap: 0.5rem !important;
    }

    .walkthrough-panel .text-xl {
        font-size: 1rem !important;
        line-height: 1.25rem !important;
    }

    .walkthrough-panel .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.6rem !important;
    }

    .walkthrough-panel button {
        white-space: nowrap;
    }
}

@media (max-width: 400px) {
    .sticky-container {
        height: 760px !important;
    }

    #features {
        height: 900px !important;
    }
}

@media (max-width: 640px) {
    .sticky-container {
        height: 760px !important;
        min-height: 0 !important;
        padding-top: 0.25rem !important;
    }

    #features {
        height: 900px !important;
        padding-bottom: 1.5rem !important;
    }

    .walkthrough-grid {
        gap: 0.5rem !important;
    }

    .walkthrough-step h3 {
        font-size: clamp(1.45rem, 7vw, 1.85rem) !important;
    }

    .walkthrough-step p {
        font-size: 0.9rem !important;
    }

    .panel-stage {
        height: auto !important;
        aspect-ratio: 1.48 / 1 !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .text-stage {
        min-height: clamp(285px, 50vh, 355px) !important;
    }
}




/*animetion part */
* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #f9fcff 0%, #f0f7fe 100%);
    overflow-x: hidden;
}
/* Glass morphism + custom animations */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.1);
}

.animated-gradient-bg {
    background: radial-gradient(circle at 20% 30%, rgba(14,165,233,0.08), transparent 55%), radial-gradient(circle at 85% 70%, rgba(20,184,166,0.08), transparent 60%);
}
/* floating elements */
@keyframes float-slow {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.float-element {
    animation: float-slow 8s ease-in-out infinite;
}

.float-element-reverse {
    animation: float-slow 9s ease-in-out infinite reverse;
}

.btn-hover-lift {
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

    .btn-hover-lift:hover {
        transform: translateY(-3px);
        box-shadow: 0 25px 30px -18px rgba(14,165,233,0.45);
    }

.input-fancy {
    transition: all 0.2s ease;
    background-color: white;
    border: 1px solid #e2e8f0;
}

    .input-fancy:focus {
        border-color: #38bdf8;
        box-shadow: 0 0 0 3px rgba(56,189,248,0.2);
        outline: none;
    }

.invalid-input {
    border-color: #e11d48 !important;
    background-color: #fff5f7 !important;
}

.error-text {
    font-size: 0.7rem;
    margin-top: 0.3rem;
    color: #e11d48;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.success-toast {
    background: #ecfdf5;
    color: #047857;
    border-left: 4px solid #10b981;
}

.error-toast {
    background: #fff1f2;
    color: #be123c;
    border-left: 4px solid #e11d48;
}

@keyframes gentlePulse {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-card {
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-6px);
        background: rgba(255,255,255,0.9);
        border-color: #bae6fd;
    }

.video-overlay {
    border-radius: 1.5rem;
    box-shadow: 0 35px 68px -32px rgba(2,6,23,0.25);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

section {
    position: relative;
}

.marquee-feature {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}

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

    100% {
        background-position: 200%;
    }
}

.shine-text {
    background: linear-gradient(120deg, #0c4e6e, #0284c7, #0d9488);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:rotate-6 {
    transform: rotate(6deg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(4px);
}

.hover\:shadow-3xl:hover {
    box-shadow: 0 35px 45px -20px rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.35;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:scale-x-100 {
    transform: scaleX(1);
}

.group:hover .group-hover\:-translate-y-2 {
    transform: translateY(-8px);
}

.group:hover .group-hover\:shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes slow-float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-20px) translateX(8px);
        opacity: 0.6;
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.04);
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0.5;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.45;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

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

.animate-pulse-ring {
    animation: pulse-ring 3.5s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 4.5s ease-in-out infinite;
}

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

.pointer-events-auto {
    pointer-events: auto;
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(4px);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.badge-pulse {
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

/* Mobile conversion and overflow guardrails
   Keep the desktop scroll walkthrough intact, but present a normal stacked
   workflow on tablet and phone so content stays readable without horizontal scroll. */
@media (max-width: 1023px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    #features {
        height: auto !important;
        overflow: hidden !important;
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    .sticky-container {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
        overflow: visible !important;
        padding-top: 0 !important;
    }

    .walkthrough-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }

    .walkthrough-indicator {
        display: none !important;
    }

    .text-stage,
    .panel-stage {
        display: grid !important;
        gap: 1rem !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        overflow: visible !important;
    }

    .walkthrough-step,
    .walkthrough-panel {
        position: relative !important;
        inset: auto !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        margin: 0 !important;
    }

    .walkthrough-step {
        border: 1px solid #dbeafe;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        padding: 1.05rem !important;
        box-shadow: 0 24px 70px -58px rgba(15, 23, 42, 0.45);
    }

    .walkthrough-step h3 {
        font-size: clamp(1.45rem, 6.2vw, 1.9rem) !important;
        line-height: 1.12 !important;
    }

    .walkthrough-step p {
        max-width: none !important;
    }

    .walkthrough-step .premium-action {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    .walkthrough-panel > div {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 22px !important;
        padding: 0.5rem !important;
        overflow: hidden !important;
    }

    .walkthrough-panel img,
    .animated-gradient-bg img,
    .glass-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .animated-gradient-bg .premium-action,
    .animated-gradient-bg a[href*="sign-up"] {
        min-height: 48px;
    }

    .grid,
    .flex {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .animated-gradient-bg h1 {
        max-width: 24rem;
    }

    .stat-card {
        min-height: 92px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .walkthrough-panel > div > div {
        padding: 0.75rem !important;
    }
}

@media (max-width: 430px) {
    .animated-gradient-bg h1 {
        font-size: 2.2rem !important;
        line-height: 1.08 !important;
    }
}

@media (max-width: 360px) {
    .animated-gradient-bg h1 {
        font-size: 2rem !important;
    }
}
