:root {
    /* Color Palette */
    --bg-color: #121212;
    --primary-accent: #CCFF00;

    /* Fix for Typebot z-index to stay above sticky footer */
    --typebot-z-index: 2000;

    /* Neon Lime */
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
    --card-bg: #1E1E1E;
    --overlay-bg: rgba(18, 18, 18, 0.8);

    /* Fonts */
    --font-title: 'Pretendard', sans-serif;
    --font-body: 'Pretendard', sans-serif;

    /* Spacing */
    --section-padding: 100px 20px;
    --mobile-padding: 60px 20px;
}

/* Dify Chatbot Positioning */
#dify-chatbot-bubble-button {
    background-color: var(--primary-accent) !important;
    position: fixed !important;
    bottom: 25px !important;
    left: 25px !important;
    right: auto !important;
    /* Ensure it doesn't default to right */
    z-index: 2100 !important;
    /* Same level as custom launcher */
    width: 75px !important;
    height: 75px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4) !important;
}

#dify-chatbot-bubble-window {
    width: 24rem !important;
    height: 40rem !important;
    left: 25px !important;
    right: auto !important;
    bottom: 110px !important;
    /* Above the button */
}

/* Dify Tooltip */
.dify-tooltip-wrapper {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 2200;
    /* Above the button */
    pointer-events: none;
    /* Let clicks pass through to the button area if needed, though mostly for the text above */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 85px;
    /* Offset height of button + gap */
}

.dify-tooltip {
    background-color: var(--primary-accent);
    color: #000;
    /* Black text for contrast on neon lime */
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: float-tooltip 3s ease-in-out infinite;
    animation-delay: 1.5s;
    /* Offset animation from the other one */
}

.dify-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 35px;
    /* Point to the left side */
    width: 12px;
    height: 12px;
    background-color: var(--primary-accent);
    transform: rotate(45deg);
}

/* Custom Typebot Launcher */
#custom-launcher-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#launcher-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: var(--primary-accent);
    border: none;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: pulse-neon 2s infinite;
}

#launcher-btn:hover {
    transform: scale(1.1);
}

#launcher-btn .icon {
    font-size: 2.5rem;
}

.launcher-tooltip {
    background-color: #1D1D1D;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: float-tooltip 3s ease-in-out infinite;
}

.launcher-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 35px;
    width: 12px;
    height: 12px;
    background-color: #1D1D1D;
    transform: rotate(45deg);
}

@keyframes pulse-neon {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(204, 255, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0);
    }
}

@keyframes float-tooltip {

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

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

/* Ensure Typebot is above sticky elements */
typebot-bubble {
    z-index: 2000 !important;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Common Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.neon-text {
    color: var(--primary-accent);
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-accent);
    color: #000;
    padding: 18px 40px;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(204, 255, 0, 0.3);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Common Styling */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-accent);
}

.btn-primary-small {
    background: var(--primary-accent);
    color: #000;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: radial-gradient(circle at center, #1e1e1e 0%, #121212 100%);
}

#hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

#hero .main-title {
    font-size: 5rem;
    line-height: 1.1;
    margin: 20px 0;
}

#hero .sub-title {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
}

#hero .desc {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

#hero .hero-visual img {
    width: 100%;
    filter: drop-shadow(0 0 50px rgba(204, 255, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

/* Problem Section */
#problem {
    background-color: #000;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.problem-item {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-item .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Solution Section */
#solution {
    text-align: center;
}

.solution-visual img {
    max-width: 600px;
    margin: 60px auto;
    filter: drop-shadow(0 0 80px rgba(204, 255, 0, 0.15));
}

/* Product Detail */
#product-detail {
    background-color: #1a1a1a;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-card {
    background: #252525;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(204, 255, 0, 0.1);
}

.product-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-accent);
    color: #000;
    padding: 4px 12px;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 2px;
}

.product-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-card .product-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.stat-item {
    margin-bottom: 15px;
}

.stat-item span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--text-muted);
}

.bar-bg {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-accent);
    box-shadow: 0 0 10px var(--primary-accent);
}

/* Demo Slider */
#demo .slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    cursor: ew-resize;
}

.before-after-slider .after-image,
.before-after-slider .before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.before-after-slider .before-image {
    width: 50%;
    /* Initial split */
    border-right: 4px solid var(--primary-accent);
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary-accent);
    z-index: 3;
    transform: translateX(-50%);
}

.slider-handle::after {
    content: "◀▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-accent);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.demo-caption {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Social Proof */
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.review-card {
    background: #1e1e1e;
    padding: 30px;
    border-left: 4px solid var(--primary-accent);
}

.review-card .user-info {
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-accent);
}

.review-card .stat-hex {
    margin-top: 20px;
    font-size: 0.9rem;
    background: rgba(204, 255, 0, 0.1);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

/* Offer Box */
.offer-box {
    background: linear-gradient(135deg, #1e1e1e 0%, #000 100%);
    padding: 80px 40px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(204, 255, 0, 0.2);
    position: relative;
}

.badge-discount {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-accent);
    color: #000;
    padding: 10px 30px;
    font-weight: 900;
    font-size: 1.5rem;
    border-radius: 50px;
}

.offer-price-info {
    margin: 30px 0;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.final-price {
    font-size: 4rem;
    font-weight: 900;
}

.timer {
    font-family: monospace;
    font-size: 2rem;
    margin-bottom: 40px;
    background: #111;
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #333;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
    /* Show for mobile or specific scroll */
}

.sticky-cta.visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    #hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #hero .main-title {
        font-size: 3rem;
    }

    .product-grid,
    .problem-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .sticky-cta {
        display: block;
    }
}