:root {
    --bg-color: #0b0711;
    --card-bg: rgba(26, 17, 39, 0.7);
    --border-color: rgba(255, 117, 140, 0.15);
    --text-primary: #f0ecf6;
    --text-secondary: #b5a9c6;
    --primary-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    --secondary-gradient: linear-gradient(135deg, #8a2be2 0%, #da70d6 100%);
    --glow-color: rgba(255, 117, 140, 0.3);
    --accent-color: #ff758c;
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 117, 140, 0.12) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Background Animations */
.bubble {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 117, 140, 0.08) 0%, rgba(138, 43, 226, 0.08) 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 25s infinite linear;
    z-index: -1;
}

.floating-candy-bg {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: floatCandy 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-20vh) rotate(360deg) scale(1.2); opacity: 0; }
}

@keyframes floatCandy {
    0% { transform: translateY(110vh) rotate(0deg); }
    100% { transform: translateY(-10vh) rotate(720deg); }
}

/* Glassmorphism Common */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 7, 17, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 117, 140, 0.1);
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--glow-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.btn-nav-cta {
    background: var(--primary-gradient);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.6);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 117, 140, 0.1);
    border: 1px solid rgba(255, 117, 140, 0.2);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.hero-title span {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 14px 28px;
    border-radius: 16px;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px rgba(255, 117, 140, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-download.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 117, 140, 0.5);
}

.btn-download.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 117, 140, 0.4);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.btn-download svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.hero-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    animation: bounce 6s infinite ease-in-out;
}

.hero-mockup {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 117, 140, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.05);
}

.hero-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 60%);
    z-index: -1;
    filter: blur(20px);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}

/* Sections Common styling */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 117, 140, 0.08), transparent 50%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 117, 140, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 117, 140, 0.05);
}

.feature-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 117, 140, 0.1);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 117, 140, 0.15);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-gradient);
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 117, 140, 0.3);
}

.feature-icon-wrapper img {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interactive sorting teaser */
.sorter-container {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.sorter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sorter-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sorter-stat img {
    width: 20px;
    height: 20px;
}

#sorter-combo {
    color: var(--accent-color);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.sorter-belt-area {
    position: relative;
    height: 180px;
    background-image: url('images/industrial_belt.png');
    background-size: contain;
    background-repeat: repeat-x;
    background-position: center bottom;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sorter-candy {
    position: absolute;
    width: 64px;
    height: 64px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: transform 0.15s ease, opacity 0.3s ease;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
    z-index: 10;
}

.sorter-candy:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.sorter-candy img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sorter-boxes-area {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.sorter-box-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.sorter-box {
    width: 100%;
    max-width: 140px;
    height: 140px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px;
}

.sorter-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.sorter-box.drag-over {
    background: rgba(255, 117, 140, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(255, 117, 140, 0.2);
}

.sorter-box.drag-over img {
    transform: scale(1.08);
}

.sorter-box-label {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sorter-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

.sorter-feedback.success {
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.sorter-feedback.error {
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.sorter-feedback.active {
    animation: feedbackAnim 0.8s forwards;
}

@keyframes feedbackAnim {
    0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    70% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(0.9); }
}

.sorter-instructions {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 30px;
    font-style: italic;
}

/* Modifiers / Obstacles Showcase */
.obstacles-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.obstacle-card {
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.obstacle-img-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.obstacle-img-wrapper img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.obstacle-card-content h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.obstacle-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Screenshots Gallery (Carousel) */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #06040a;
}

.carousel-slide img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    padding: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(26, 17, 39, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(255, 117, 140, 0.4);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-color);
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(255, 117, 140, 0.4);
}

/* Call to Action Banner */
.cta-banner {
    padding: 80px 40px;
    margin: 80px auto;
    max-width: 1000px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 117, 140, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-banner .hero-ctas {
    justify-content: center;
}

/* Footer Section */
.footer {
    border-top: 1px solid rgba(255, 117, 140, 0.1);
    background: #06040a;
    padding: 60px 20px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

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

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links-grid {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 20px;
}

/* Mobile Responsiveness styling */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
        gap: 40px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links-grid {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section {
        padding: 60px 20px;
    }

    .sorter-container {
        padding: 20px 15px;
    }

    .sorter-boxes-area {
        gap: 10px;
    }

    .sorter-box {
        height: 100px;
    }

    .sorter-belt-area {
        height: 150px;
    }

    .sorter-candy {
        width: 48px;
        height: 48px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
