/* Auragic Tech Design System - Dark Minimalist Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --hero-glow: var(--primary);
    --background: 220 20% 97%;
    --foreground: 220 20% 10%;
    --card: 0 0% 100%;
    --card-foreground: 220 20% 10%;
    --popover: 0 0% 100%;
    --popover-foreground: 220 20% 10%;
    --primary: 220 66% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 15% 90%;
    --secondary-foreground: 220 20% 10%;
    --muted: 220 15% 92%;
    --muted-foreground: 220 10% 45%;
    --accent: 220 66% 50%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 220 15% 88%;
    --input: 220 15% 88%;
    --ring: 220 66% 50%;
    --radius: 1rem;
}

.dark {
    --hero-glow: var(--primary);
    --background: 220 25% 6%;
    --foreground: 220 10% 95%;
    --card: 220 20% 10%;
    --card-foreground: 220 10% 95%;
    --popover: 220 20% 10%;
    --popover-foreground: 220 10% 95%;
    --primary: 220 66% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 20% 15%;
    --secondary-foreground: 220 10% 90%;
    --muted: 220 15% 18%;
    --muted-foreground: 220 10% 70%;
    --accent: 220 66% 50%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 62% 30%;
    --destructive-foreground: 0 0% 100%;
    --border: 220 15% 18%;
    --input: 220 15% 20%;
    --ring: 220 66% 50%;
}

* {
    border-color: hsl(var(--border) / 1);
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.glass {
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsl(var(--border) / 0.5);
}

.glass-strong {
    background-color: hsl(var(--card) / 0.8);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid hsl(var(--border) / 0.6);
}

.gradient-text {
    background: linear-gradient(to right, hsl(var(--primary)), #60a5fa, hsl(var(--primary)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glow {
    box-shadow: 0 0 60px -12px hsl(var(--primary) / 0.4);
}

.glow-sm {
    box-shadow: 0 0 30px -8px hsl(var(--primary) / 0.3);
}

.text-balance {
    text-wrap: balance;
}

/* Custom Modal Transitions */
#demo-modal,
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(20px);
}

.modal-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

#mobile-menu.menu-hidden {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.menu-visible {
    height: auto;
    opacity: 1;
}

/* Form step transitions */
.form-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-hidden {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.step-visible {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Progress bar transition */
.progress-bar-segment {
    transition: all 0.3s ease;
}

/* Service Engagement Section */
.engagement-card {
    perspective: 1000px;
}

.engagement-card>div {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.engagement-card:hover>div {
    transform: scale(1.05);
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 0 0 40px -10px hsl(var(--primary) / 0.3);
}

/* Chatarik Card (Future Product) */
.chatarik-card:hover>div {
    border-color: rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 0 40px -10px rgba(168, 85, 247, 0.4) !important;
}

.chatarik-card ul li i {
    color: #a855f7 !important;
}

/* FAQ Accordion */
.faq-item.active {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 0 20px -5px hsl(var(--primary) / 0.2);
}

.faq-icon.rotate {
    transform: rotate(180deg);
    color: hsl(var(--primary));
}

.faq-answer {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

/* Custom Utilities */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-from), var(--tw-gradient-to));
}


/* Hero Service Items (Ambient Glow Behind Text) */
.service-item {
    color: hsl(var(--foreground));
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    cursor: default;
}

@media (max-width: 1023px) {
    .service-item {
        cursor: pointer;
    }
}

.service-item:hover,
.service-item.active {
    /* More pronounced diffuse ambient glow behind the text */
    text-shadow: 0 0 20px hsl(var(--hero-glow) / 0.8), 0 0 35px hsl(var(--hero-glow) / 0.4);
}

.service-item::before {
    content: '';
    position: absolute;
    inset: -10px -20px;
    background: radial-gradient(circle at center, hsl(var(--hero-glow) / 0.3), transparent 75%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    border-radius: inherit;
    filter: blur(12px);
}

.service-item:hover::before,
.service-item.active::before {
    opacity: 1;
}

/* Hero Visual Showcase */
.visual-showcase-container {
    background-color: hsl(var(--card) / 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: all 0.5s cubic-bezier(0.4, 0, 1, 1);
}

.visual-stage-wrapper {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slide In Animation */
.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* AI Automation: Flow Diagram */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 600px;
}

.flow-node {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.flow-line {
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--primary) / 0.1), hsl(var(--primary) / 0.4), hsl(var(--primary) / 0.1));
    flex-grow: 1;
    position: relative;
    min-width: 60px;
}

.flow-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: hsl(var(--primary));
    border-radius: 50%;
    top: -3px;
    left: 0;
    box-shadow: 0 0 15px hsl(var(--primary));
    animation: flowPulse 2s infinite linear;
}

@keyframes flowPulse {
    0% {
        left: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Web App: Browser Mockup */
.browser-window {
    width: 100%;
    max-width: 700px;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.browser-header {
    height: 40px;
    background: hsl(var(--muted) / 0.4);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-main {
    display: flex;
    height: 300px;
}

.browser-sidebar {
    width: 200px;
    border-right: 1px solid hsl(var(--border) / 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.browser-content {
    flex-grow: 1;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.browser-placeholder {
    background: hsl(var(--muted) / 0.2);
    border-radius: 0.75rem;
}

/* Mobile App: Phone Mockup */
.phone-frame {
    width: 240px;
    height: 480px;
    background: #050505;
    border: 8px solid #1a1a1a;
    border-radius: 3.5rem;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    padding: 12px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: hsl(var(--background));
    border-radius: 2.5rem;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    gap: 16px;
    overflow: hidden;
}

.phone-card {
    height: 70px;
    background: hsl(var(--muted) / 0.3);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.phone-avatar {
    width: 40px;
    height: 40px;
    background: hsl(var(--primary) / 0.2);
    border-radius: 0.75rem;
}

.phone-nav {
    margin-top: auto;
    height: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid hsl(var(--border) / 0.3);
}

.phone-icon {
    width: 24px;
    height: 24px;
    background: hsl(var(--muted) / 0.4);
    border-radius: 6px;
}

@media (max-width: 768px) {
    .flow-node {
        width: 60px;
        height: 60px;
        border-radius: 1rem;
    }

    .flow-node i {
        width: 24px !important;
        height: 24px !important;
    }

    .flow-line {
        min-width: 30px;
    }

    .phone-frame {
        width: 200px;
        height: 400px;
        transform: scale(0.9);
    }

    .browser-main {
        height: 200px;
    }

    .browser-sidebar {
        width: 80px;
    }

    .browser-content {
        padding: 12px;
        gap: 10px;
    }

    .pricing-comparison-table th:first-child,
    .pricing-comparison-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: hsl(var(--background));
    }
}

/* Chatarik Commerce Agent Animations */
.glass-chat {
    background: linear-gradient(135deg, hsl(270 70% 50% / 0.1), hsl(270 70% 30% / 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid hsl(270 70% 50% / 0.2);
}

.glow-purple {
    box-shadow: 0 0 30px -5px hsl(270 70% 50% / 0.4);
}

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

@keyframes float {

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

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

.typing-dot {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.bubble-pop {
    animation: bubblePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bubblePop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Shine Animation */
@keyframes shine {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.animate-shine {
    animation: shine 0.8s ease-in-out;
}

@keyframes flowHorizontal {
    0% {
        left: 0%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.animate-flow-horizontal {
    animation: flowHorizontal 3s linear infinite;
}

/* Workflow Connector System (Responsive Z-Path) */
.workflow-connector-container {
    padding: 2rem;
}

.workflow-dot {
    top: 50%;
    left: 12.5%;
    transform: translate(-50%, -50%);
    animation: flow-path-desktop 4s linear infinite;
    z-index: 20;
}

@media (max-width: 767px) {
    .workflow-dot {
        animation: flow-path-mobile 6s linear infinite;
    }

    .workflow-line-z {
        position: absolute;
        top: 25%;
        left: 25%;
        right: 25%;
        bottom: 25%;
        pointer-events: none;
    }

    /* Horizontal Line 1 (1->2) */
    .workflow-line-z::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        border-top: 2px dashed rgba(255, 255, 255, 0.1);
    }

    /* Horizontal Line 2 (3->4) */
    .workflow-line-z::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        border-top: 2px dashed rgba(255, 255, 255, 0.1);
    }

    /* Diagonal Line (2->3) */
    .workflow-line-z-diagonal {
        position: absolute;
        top: 25%;
        left: 75%;
        width: 70.7%;
        height: 1px;
        background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 4px, transparent 4px, transparent 8px);
        transform: rotate(135deg);
        transform-origin: top left;
    }
}

/* Keyframes for Mobile Z-Path */
@keyframes flow-path-mobile {

    /* Node 1 to Node 2 (Top Row) */
    0% {
        top: 25%;
        left: 25%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        top: 25%;
        left: 75%;
    }

    /* Jump from Node 2 to Node 3 (Diagonal) */
    30% {
        top: 25%;
        left: 75%;
    }

    55% {
        top: 75%;
        left: 25%;
    }

    /* Node 3 to Node 4 (Bottom Row) */
    60% {
        top: 75%;
        left: 25%;
    }

    85% {
        top: 75%;
        left: 75%;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 75%;
        left: 75%;
        opacity: 0;
    }
}

/* Keyframes for Desktop Horizontal Path */
@keyframes flow-path-desktop {
    0% {
        left: 12.5%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    100% {
        left: 87.5%;
        opacity: 0;
    }
}

/* Horizontal Connector Lines for Desktop */
.workflow-line-horizontal {
    position: absolute;
    top: 50%;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

/* --- E-Commerce Cinema Construction (10s Loop) --- */

/* Base Logic: High Performance Timeline */
@keyframes ecommerceTimeline {

    0%,
    5% {
        opacity: 0;
    }

    8%,
    94% {
        opacity: 1;
    }

    98%,
    100% {
        opacity: 0;
    }
}

/* Component Styles Transitioning */
@keyframes liveTransitionHeader {

    0%,
    15% {
        background-color: rgba(255, 255, 255, 0.02);
        border: 2px dashed rgba(255, 255, 255, 0.1);
    }

    18%,
    100% {
        background-color: #030712;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@keyframes liveTransitionSidebar {

    0%,
    18% {
        background-color: rgba(255, 255, 255, 0.02);
        border: 2px dashed rgba(255, 255, 255, 0.1);
        transform: translateX(-10px);
    }

    22%,
    100% {
        background-color: #111827;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateX(0);
    }
}

@keyframes liveTransitionHero {

    0%,
    22% {
        background: rgba(255, 255, 255, 0.02);
        border: 2px dashed rgba(255, 255, 255, 0.1);
        scale: 0.98;
    }

    25%,
    100% {
        background: linear-gradient(to right, #7c3aed, #4f46e5);
        border: none;
        scale: 1;
    }
}

@keyframes liveTransitionCard {

    0%,
    27% {
        background-color: rgba(255, 255, 255, 0.02);
        border: 2px dashed rgba(255, 255, 255, 0.1);
        transform: scale(0.95);
    }

    30%,
    100% {
        background-color: #1f2937;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transform: scale(1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
}

/* Content Visibility */
@keyframes contentReveal {

    0%,
    18% {
        opacity: 0;
        transform: translateY(4px);
    }

    21% {
        opacity: 1;
        transform: translateY(0);
    }

    94% {
        opacity: 1;
    }

    98%,
    100% {
        opacity: 0;
    }
}

@keyframes contentRevealSidebar {

    0%,
    21% {
        opacity: 0;
    }

    24%,
    94% {
        opacity: 1;
    }

    98%,
    100% {
        opacity: 0;
    }
}

@keyframes contentRevealHero {

    0%,
    24% {
        opacity: 0;
        scale: 0.9;
    }

    27%,
    94% {
        opacity: 1;
        scale: 1;
    }

    98%,
    100% {
        opacity: 0;
    }
}

@keyframes contentRevealCard {

    0%,
    29% {
        opacity: 0;
        transform: scale(0.8);
    }

    32%,
    94% {
        opacity: 1;
        transform: scale(1);
    }

    98%,
    100% {
        opacity: 0;
    }
}

/* Micro-Interactions */
@keyframes virtualCursorCinema {

    0%,
    40% {
        opacity: 0;
        transform: translate(120px, 120px) scale(0.5);
    }

    42% {
        opacity: 1;
        transform: translate(120px, 120px) scale(1);
    }

    50% {
        transform: translate(0, 0);
    }

    /* Over Add Button */
    52% {
        transform: translate(0, 0) scale(0.85);
    }

    /* Click Add */
    55% {
        transform: translate(0, 0) scale(1.1);
    }

    62% {
        transform: translate(var(--cart-x, 260px), var(--cart-y, -230px));
    }

    /* Move to Cart */
    64% {
        transform: translate(var(--cart-x, 260px), var(--cart-y, -230px)) scale(0.85);
    }

    /* Click Cart */
    67% {
        transform: translate(var(--cart-x, 260px), var(--cart-y, -230px)) scale(1);
    }

    88% {
        opacity: 1;
        transform: translate(calc(var(--cart-x) + 10px), calc(var(--cart-y, -230px) + 10px));
    }

    92% {
        opacity: 0;
        transform: translate(calc(var(--cart-x) + 20px), calc(var(--cart-y, -230px) + 20px));
    }

    100% {
        opacity: 0;
    }
}

:root {
    --cart-x: 20px;
    --cart-y: -380px;
}

@media (min-width: 768px) {
    :root {
        --cart-x: 260px;
        --cart-y: -230px;
    }
}

@keyframes cartSuccessCinema {

    0%,
    51% {
        background-color: #3b82f6;
        transform: scale(1);
    }

    53% {
        background-color: #10b981;
        transform: scale(1.1);
    }

    60%,
    94% {
        background-color: #10b981;
        transform: scale(1);
    }

    98%,
    100% {
        background-color: #3b82f6;
    }
}

@keyframes cartBadgeCinema {

    0%,
    54% {
        opacity: 0;
        transform: scale(0);
    }

    57% {
        opacity: 1;
        transform: scale(1.1);
    }

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

    98%,
    100% {
        opacity: 0;
    }
}

@keyframes successToastCinema {

    0%,
    52% {
        opacity: 0;
        transform: translate(-50%, 15px) scale(0.95);
    }

    55% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    60%,
    88% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    92%,
    100% {
        opacity: 0;
        transform: translate(-50%, -10px) scale(0.98);
    }
}

@keyframes iconPlusCinema {

    0%,
    51% {
        opacity: 1;
        transform: scale(1);
    }

    53%,
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes iconCheckCinema {

    0%,
    51% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }

    54%,
    94% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }

    98%,
    100% {
        opacity: 0;
    }
}

@keyframes cartDropdownCinema {

    0%,
    65% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        pointer-events: none;
    }

    68% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    94% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    98%,
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Application Classes */
.animate-ecommerce-stage {
    animation: ecommerceTimeline 10s infinite;
}

.animate-cinema-header {
    animation: liveTransitionHeader 10s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-cinema-sidebar {
    animation: liveTransitionSidebar 10s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-cinema-hero {
    animation: liveTransitionHero 10s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-cinema-card {
    animation: liveTransitionCard 10s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-cinema-header {
    animation: contentReveal 10s infinite;
}

.reveal-cinema-sidebar {
    animation: contentRevealSidebar 10s infinite;
}

.reveal-cinema-hero {
    animation: contentRevealHero 10s infinite;
}

.reveal-cinema-card {
    animation: contentRevealCard 10s infinite;
}

.cinema-cursor {
    animation: virtualCursorCinema 10s infinite;
    pointer-events: none;
}

.cinema-btn-success {
    animation: cartSuccessCinema 10s infinite;
}

.cinema-badge-pop {
    animation: cartBadgeCinema 10s infinite;
}

.cinema-success-toast {
    animation: successToastCinema 10s infinite;
}

.cinema-icon-plus {
    animation: iconPlusCinema 10s infinite;
}

.cinema-icon-check {
    animation: iconCheckCinema 10s infinite;
}

.cinema-cart-dropdown {
    animation: cartDropdownCinema 10s infinite;
}

.browser-screen {
    width: 600px;
    height: 337.5px;

    @media (min-width: 768px) {
        width: 800px;
        height: 450px;
    }
}

.blueprint-bg {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.tab-content {
    transition: all 0.5s ease;
}

.tab-content.hidden {
    display: none;
    opacity: 0;
}

.tab-content.active {
    display: flex;
    opacity: 1;
}

/* --- Custom Employee App Visual (6s Loop) --- */
.employee-phone-frame {
    width: 280px;
    height: 500px;
    background: #0a0a0a;
    border: 4px solid #262626;
    border-radius: 2rem;
    position: relative;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* --- Interactive Showcase Carousel (Refactored) --- */

.process-nav-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

@media (min-width: 768px) {
    .process-nav-container {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.process-tab-btn {
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pagination Dots */
.process-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.process-dot.active {
    width: 24px;
    background-color: hsl(var(--primary));
    opacity: 1;
}

/* Slider Stage */
.process-slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.process-slide {
    width: 33.333333%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

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

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

/* Navigation Arrow Hint (Mobile) */
.nav-arrow-hint {
    animation: arrowBounce 2s infinite;
}

@keyframes arrowBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(-4px);
    }

    60% {
        transform: translateX(4px);
    }
}


.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 16px;
    background: #000;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    z-index: 50;
}

.phone-status-bar {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 40;
    pointer-events: none;
}

.phone-time {
    font-size: 10px;
    font-weight: 600;
    color: white;
    opacity: 0.8;
}

.phone-screen-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out;
}

.phase-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.phase-visible {
    opacity: 1 !important;
    pointer-events: auto;
}

/* Phase 1: GPS */
.gps-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-color: #111;
}

.pin-drop {
    animation: pinDrop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pinDrop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.radar-pulse-container {
    position: absolute;
    bottom: 220px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2.5px solid rgba(249, 115, 22, 0.5);
    border-radius: 50%;
    animation: radarPulse 2.5s infinite;
}

.pulse-circle:nth-child(2) {
    animation-delay: 0.8s;
}

.pulse-circle:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes radarPulse {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

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

/* Phase 2: Biometric */
.camera-feed {
    position: absolute;
    inset: 0;
    background: #141414;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    box-shadow: 0 0 20px #3b82f6;
    z-index: 10;
    animation: scanMove 2.5s infinite ease-in-out;
}

@keyframes scanMove {

    0%,
    100% {
        top: 25%;
    }

    50% {
        top: 75%;
    }
}

.face-mesh {
    opacity: 0.2;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
    width: 60% !important;
    height: auto !important;
}

/* Phase 3: Success */
.success-bg {
    position: absolute;
    inset: 0;
    background: #080808;
}

.success-pop {
    animation: springPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes springPop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.toast-slide-up {
    position: absolute;
    bottom: 40px;
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.4);
    animation: toastSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlide {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

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

.phase-text {
    position: absolute;
    bottom: 100px;
    font-size: 15px;
    font-weight: 600;
    color: #a3a3a3;
    letter-spacing: 0.05em;
    text-align: center;
    width: 100%;
}

/* --- Tech Stack Marquee --- */
.tech-marquee-section {
    background-color: #050505;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.tech-marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
    position: relative;
}

.tech-marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 4rem;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    animation: marqueeScroll 40s linear infinite;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 4rem));
    }
}

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

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(1);
    opacity: 0.4;
    cursor: default;
    white-space: nowrap;
}

.tech-item:hover {
    filter: grayscale(0);
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.tech-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
}

.tech-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: white;
}

/* Specific Tech Colors */
.tech-react:hover .tech-icon {
    color: #61DAFB;
}

.tech-nextjs:hover .tech-icon {
    color: #ffffff;
}

.tech-typescript:hover .tech-icon {
    color: #3178C6;
}

.tech-n8n:hover .tech-icon {
    color: #FF6D5B;
}

.tech-openai:hover .tech-icon {
    color: #10A37F;
}

.tech-supabase:hover .tech-icon {
    color: #3ECF8E;
}

.tech-postgres:hover .tech-icon {
    color: #336791;
}

.tech-tailwind:hover .tech-icon {
    color: #06B6D4;
}

.tech-docker:hover .tech-icon {
    color: #2496ED;
}

.tech-aws:hover .tech-icon {
    color: #FF9900;
}

/* Masking Gradient for smooth fade on edges */
.tech-marquee-section::before,
.tech-marquee-section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15rem;
    z-index: 2;
    pointer-events: none;
}

.tech-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, #050505 0%, transparent 100%);
}

.tech-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, #050505 0%, transparent 100%);
}

/* --- Chatarik Product Teaser --- */
.chatarik-teaser-section {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(217, 70, 239, 0.05), transparent 40%);
}

.chatarik-teaser-card {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(134, 25, 143, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 3rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding: 5rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .teaser-grid {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        gap: 3rem;
        text-align: center;
    }
}

.teaser-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 9999px;
    color: #c084fc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.teaser-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.teaser-subtext {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    max-width: 500px;
}

@media (max-width: 1024px) {
    .teaser-subtext {
        margin-left: auto;
        margin-right: auto;
    }
}

.waitlist-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
}

@media (max-width: 640px) {
    .waitlist-form {
        flex-direction: column;
    }
}

.waitlist-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.waitlist-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.waitlist-submit {
    background: #a855f7;
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.waitlist-submit:hover {
    background: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(168, 85, 247, 0.4);
}

.waitlist-submit:active {
    transform: translateY(0);
}

/* Brain Visual */
.brain-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: brainGlowPulse 4s ease-in-out infinite;
}

@keyframes brainGlowPulse {

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

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

.brain-icon-wrapper {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 3rem;
    padding: 4rem;
    animation: brainFloat 6s ease-in-out infinite;
}

@keyframes brainFloat {

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

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

.brain-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #a855f7;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(2px);
    animation: particleFloat var(--duration) linear infinite;
}

@keyframes particleFloat {
    from {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    to {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Soft Colored Shadows */
.shadow-ambient-blue {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.1), 0 0 30px -5px rgba(59, 130, 246, 0.05);
}

/* Enterprise Highlight Pulsing Border */
.enterprise-highlight {
    position: relative;
    border-color: hsl(var(--primary) / 0.5) !important;
    animation: pulseBorder 3s infinite;
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.badge-vibrant {
    background: linear-gradient(135deg, hsl(var(--primary)), #3b82f6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    animation: badgeBounce 2s infinite ease-in-out;
}

@keyframes badgeBounce {

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

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

/* Deliverable Card Hover Overlay */
.deliverable-card .group-hover\:opacity-100 {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(4px);
}

.deliverable-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}