/* Custom variables for IALCO if needed, otherwise inherit from style.css */
.ialco-bg {
    background: var(--bg);
}

/* WhatsApp Simulator Styles */
.phone-container {
    width: 100%;
    max-width: 340px;
    height: 560px;
    background: rgba(255, 255, 255, 0.07);
    border: 12px solid var(--bd2);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(98, 182, 206, 0.15);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.phone-header {
    background: #1f2c34;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pur);
    color: #0e1724;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: .95rem;
}

.phone-chat-body {
    flex: 1;
    background: var(--ialco-simulator-bg-image);
    background-color: var(--ialco-simulator-bg-color);
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-bubble {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: .82rem;
    line-height: 1.45;
    word-break: break-word;
}

.wa-bubble.ai {
    background: #202c33;
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.wa-bubble.user {
    background: #005c4b;
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.phone-footer {
    background: #1f2c34;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.phone-input {
    flex: 1;
    background: #2a3942;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: #fff;
    font-size: .85rem;
}

.phone-input:focus {
    outline: none;
}

.phone-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #00a884;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

.phone-send-btn:hover {
    transform: scale(1.05);
}

/* Digital Console Styles */
.console-wrapper {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--bd2);
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

/* Additional mascot position classes */
.mascot-pos-1 {
    /* original position */
}

.mascot-pos-2 {
    top: 10px;
    left: 10px;
    width: 120px;
    animation: floatMascot 5s ease-in-out infinite;
}

.mascot-pos-3 {
    bottom: 20px;
    right: 20px;
    width: 130px;
    animation: floatMascot 4s ease-in-out infinite;
}

.console-header {
    background: var(--bg3);
    padding: 18px 24px;
    border-bottom: 1px solid var(--bd);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.console-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 520px;
}

@media (max-width: 991px) {
    .console-grid {
        grid-template-columns: 1fr;
    }

    .console-sidebar {
        border-right: none !important;
        border-bottom: 1px solid var(--bd);
        flex-direction: row !important;
        overflow-x: auto;
        padding: 10px !important;
    }

    .console-nav-btn {
        white-space: nowrap;
    }
}

.console-sidebar {
    background: var(--bg2);
    border-right: 1px solid var(--bd);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.console-nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--tx2);
    text-align: left;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 500;
    transition: all .25s;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.console-nav-btn:hover {
    color: var(--tx);
    background: rgba(98, 182, 206, 0.08);
}

.console-nav-btn.active {
    color: #fff;
    background: var(--grad);
    border: none;
    box-shadow: 0 4px 15px rgba(237, 110, 55, 0.25);
}

.console-panel {
    display: none;
    padding: 24px;
    background: var(--sf);
    animation: fadeIn .3s ease;
}

.console-panel.active {
    display: block;
}

/* Wompi Checkout Modal Simulation */
.wompi-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 24, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wompi-box {
    background: #ffffff;
    color: #1b2c46;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    animation: toastSlideIn .3s ease;
}

.wompi-header {
    background: #111;
    color: #fff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wompi-body {
    padding: 24px;
}

.wompi-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: .9rem;
    color: #1b2c46;
    background: #f8fafc;
    transition: border-color .2s;
}

.wompi-input:focus {
    outline: none;
    border-color: #ed6e37;
    background: #fff;
}

.wompi-btn {
    width: 100%;
    background: #ed6e37;
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-size: .95rem;
    box-shadow: 0 4px 12px rgba(237, 110, 55, 0.3);
}

.wompi-btn:hover {
    background: #d65c2b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(237, 110, 55, 0.4);
}

/* Fraud Suspension Screen Overlay */
.fraud-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 23, 36, 0.98);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(15px);
    border-radius: 18px;
}

.fraud-title {
    color: #f87171;
    font-weight: bold;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

/* Timeline flow styles for RAG */
.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.process-card {
    flex: 1;
    min-width: 190px;
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform .3s;
}

.process-card:hover {
    transform: translateY(-4px);
    border-color: rgba(98, 182, 206, 0.3);
}

.process-card::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pur);
    font-size: 1.2rem;
    opacity: 0.5;
}

.process-card:last-child::after {
    display: none;
}

@media (max-width: 991px) {
    .process-card::after {
        display: none;
    }
}

/* Other helper styles */
.text-cyan {
    color: var(--pur) !important;
}

.text-orange {
    color: var(--blu) !important;
}

.text-yellow {
    color: var(--yel) !important;
}

.border-cyan {
    border-color: var(--bd2) !important;
}

.badge-active {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.badge-suspended {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

/* Floating Mascot Styles */
.mascot-floating {
    position: absolute;
    pointer-events: none;
    z-index: 105;
    transition: all 0.3s ease;
}

.mascot-floating img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

/* Specific Positions (Aligned to match layout from screenshots) */
.phone-mascot {
    bottom: 0px;
    left: -150px;
    /* Adjusted for stronger overlap */
    top: auto;
    width: 175px;
    animation: floatMascot 4.5s ease-in-out infinite;
}

.console-mascot {
    bottom: -40px;
    /* Lowered slightly to match the cutoff in the screenshot */
    left: -95px;
    /* Stands on the bottom-left of the console */
    top: auto;
    width: 160px;
    animation: floatMascot 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.hero-mascot {
    bottom: 0px;
    right: 40px;
    /* Stands on the right side of the hero text */
    top: auto;
    width: 220px;
    animation: floatMascot 5s ease-in-out infinite;
    animation-delay: 0.2s;
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-mascot {
        right: 20px;
        width: 170px;
    }
}

@media (max-width: 991px) {
    .phone-mascot {
        width: 110px;
        left: -45px;
        bottom: 10px;
    }

    .console-mascot {
        width: 100px;
        left: -35px;
        bottom: -5px;
    }

    .hero-mascot {
        display: none;
        /* Hide on tablets and mobile to focus on text */
    }
}

@media (max-width: 576px) {
    .phone-mascot {
        width: 90px;
        left: -25px;
        bottom: 5px;
    }

    .console-mascot {
        width: 80px;
        left: -20px;
        bottom: -5px;
    }
}

/* Premium Phone Mockup inside Launch Status Section with 3D Perspective (Flipped) */
.phone-3d-perspective-container {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
    position: relative;
}

.phone-shadow-ground {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
    width: 170px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    filter: blur(12px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.95);
    z-index: 1;
    pointer-events: none;
    animation: groundShadow 6s ease-in-out infinite;
}

.launch-phone-mockup {
    width: 250px;
    height: 420px;
    background: #0b141a;
    border: 12px solid #09090b;
    border-radius: 40px;
    position: relative;
    overflow: visible; /* Support absolute side buttons */
    transform: rotateY(18deg) rotateX(12deg) rotateZ(3deg);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    animation: floatPhone 6s ease-in-out infinite, phoneGlow 4s ease-in-out infinite;
    outline: 1.5px solid rgba(255, 255, 255, 0.08); /* Dark steel bezel overlay */
}

.launch-phone-mockup:hover {
    transform: rotateY(5deg) rotateX(5deg) rotateZ(0deg) translateY(-8px);
    /* Keep the glow animation running but align the device */
    animation: phoneGlow 4s ease-in-out infinite;
}

/* Realistic physical side buttons for the iPhone chassis (Space Black Edition) */
.iphone-btn {
    position: absolute;
    background: #18181b;
    border-radius: 3px;
    z-index: -2;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
    outline: 0.5px solid rgba(255, 255, 255, 0.1);
}

.volume-up {
    width: 4px;
    height: 35px;
    left: -16px;
    top: 100px;
}

.volume-down {
    width: 4px;
    height: 35px;
    left: -16px;
    top: 145px;
}

.power-btn {
    width: 4px;
    height: 55px;
    right: -16px;
    top: 120px;
    box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Floating Dynamic Island for realistic iPhone layout */
.launch-phone-notch {
    width: 65px;
    height: 18px;
    background: #101010;
    border-radius: 20px;
    position: absolute;
    top: 10px; /* Floating capsule */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    box-shadow: inset 0 0.5px 1px rgba(255, 255, 255, 0.25), 0 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Camera lens inside the Dynamic Island */
.camera-lens {
    width: 7px;
    height: 7px;
    background: #090f1a;
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: inset 0 0 2.5px rgba(34, 211, 238, 0.7);
    display: inline-block;
    position: relative;
}

.camera-lens::before {
    content: '';
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: 1.5px;
    left: 1.5px;
}

/* Sensor inside the Dynamic Island */
.sensor-dot {
    width: 5px;
    height: 5px;
    background: #151515;
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
}

.launch-phone-screen {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    background-image: var(--ialco-simulator-bg-image);
    background-color: var(--ialco-simulator-bg-color);
    background-repeat: repeat;
    background-size: auto;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    overflow: hidden;
}

/* Glossy reflection sheen sweep across the screen */
.launch-phone-screen::after {
    content: '';
    position: absolute;
    top: -100%; left: -100%; right: -100%; bottom: -100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.15) 55%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 15;
    transform: translate(-30%, -30%);
    animation: sweepGlare 8s ease-in-out infinite;
}

.phone-screen-state {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.phone-screen-state.active {
    display: flex;
}

.phone-screen-header {
    background: #1f2c34;
    padding: 30px 10px 8px 10px; /* space for floating Dynamic Island */
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-screen-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pur);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.phone-screen-title {
    font-weight: 700;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

.phone-screen-body {
    flex: 1;
    padding: 12px 10px 30px 10px; /* bottom padding for Home indicator */
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    justify-content: flex-start;
}

.phone-msg {
    max-width: 90%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.72rem;
    line-height: 1.35;
}

.phone-msg.msg-ai {
    background: #202c33;
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.phone-lock-badge {
    margin-top: auto;
    margin-bottom: 10px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px dashed var(--bd2);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

@keyframes pulseLock {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 1; text-shadow: 0 0 10px rgba(251,191,36,0.5); }
}

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

.qr-link-wrapper {
    display: block;
    transition: transform 0.25s, filter 0.25s;
}

.qr-link-wrapper:hover {
    transform: scale(1.04);
}

.qr-img-glow {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.15);
    transition: box-shadow 0.3s;
}

.qr-link-wrapper:hover .qr-img-glow {
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
}

/* Home Indicator Bar for iPhone look */
.iphone-home-indicator {
    width: 90px;
    height: 4px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.lm .iphone-home-indicator {
    background: rgba(0, 0, 0, 0.25);
}

/* Subtle floating animations for the 3D phone */
@keyframes floatPhone {
    0%, 100% {
        transform: rotateY(18deg) rotateX(12deg) rotateZ(3deg) translateY(0);
    }
    50% {
        transform: rotateY(16deg) rotateX(14deg) rotateZ(4deg) translateY(-8px);
    }
}

/* Pulsating Neon Flash Aura Glow around the Phone Bezel */
@keyframes phoneGlow {
    0%, 100% {
        box-shadow: 
            1px 1px 0px #030303,
            2px 2px 0px #030303,
            15px 25px 40px rgba(0, 0, 0, 0.7), 
            0 0 20px rgba(34, 211, 238, 0.25); /* Cyan Glow Aura */
        border-color: #09090b;
    }
    50% {
        box-shadow: 
            1px 1px 0px #000,
            2px 2px 0px #000,
            15px 30px 45px rgba(0, 0, 0, 0.75), 
            0 0 35px rgba(139, 92, 246, 0.45), /* Violet Light Flash */
            0 0 15px rgba(34, 211, 238, 0.35);
        border-color: #180828; /* Indigo/Violet bezel reflection */
    }
}

/* Diagonal glass reflection sheen sweep animation */
@keyframes sweepGlare {
    0% {
        transform: translate(-30%, -30%) rotate(0deg);
    }
    25%, 100% {
        transform: translate(30%, 30%) rotate(0deg);
    }
}

/* Dynamic Fading Text transition styling */
.text-fade {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.text-fade.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

/* Animated title with color gradients */
.launch-title-animated {
    background: linear-gradient(135deg, #22d3ee, #a855f7, #3b82f6, #22d3ee);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 4s linear infinite;
    display: block;
}

@keyframes textGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 150% 50%; }
    100% { background-position: 300% 50%; }
}

/* Light mode overrides for launch status section */
.lm #ialco-launch-status .gc {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(27, 44, 70, 0.15) !important;
    box-shadow: 0 15px 35px rgba(27, 44, 70, 0.08) !important;
}

.lm #ialco-launch-status h3:not(.launch-title-animated) {
    color: #1b2c46 !important;
}

.lm #ialco-launch-status p {
    color: #212529 !important;
}

.lm .launch-phone-mockup {
    background: #f0f3f6;
    border-color: #09090b;
    outline-color: rgba(0, 0, 0, 0.12);
    animation: floatPhone 6s ease-in-out infinite, phoneGlow 4s ease-in-out infinite;
    box-shadow: 
        1px 1px 0px #27272a,
        2px 2px 0px #27272a,
        15px 25px 40px rgba(15, 23, 42, 0.18),
        0 0 25px rgba(37, 99, 235, 0.25);
}

.lm .launch-phone-notch {
    background: #101010;
}

.lm .iphone-btn {
    background: #18181b;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.15);
}

.lm .launch-phone-screen {
    background-color: #efeae2 !important;
    background-image: var(--ialco-simulator-bg-image);
}

.lm .phone-screen-header {
    background: #e2e8f0;
    color: #1b2c46;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.lm .phone-screen-title {
    color: #1b2c46;
}

.lm .phone-msg.msg-ai {
    background: #e2e8f0;
    color: #212529;
}

.lm .phone-lock-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1b2c46;
}

/* Ground shadow animation synchronized with phone float animation */
@keyframes groundShadow {
    0%, 100% {
        transform: translateX(-50%) rotateX(75deg) scale(1);
        opacity: 0.85;
        filter: blur(12px);
    }
    50% {
        transform: translateX(-50%) rotateX(75deg) scale(0.8);
        opacity: 0.45;
        filter: blur(16px);
    }
}