/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0a0a0f;
    background-color: #0a0a0f;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(60, 60, 100, 0.15) 0%, transparent 60%);
}

.hero h1 {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 400px;
    margin: 0 auto;
}

/* Apps Section with 3D Carousel */
.apps-section {
    padding: 60px 0 120px;
    perspective: 1200px;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 480px;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 320px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.carousel-item:nth-child(1) { --base-color: #0080ff; }
.carousel-item:nth-child(2) { --base-color: #d4a574; }
.carousel-item:nth-child(3) { --base-color: #8b4a5e; }
.carousel-item:nth-child(4) { --base-color: #00ff66; }

.app-card {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 28, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 36px;
    text-align: center;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(var(--glow-rgb, 100, 100, 255), 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.carousel-item[data-app="goalpin"] .app-card {
    --glow-rgb: 0, 128, 255;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 128, 255, 0.15);
}

.carousel-item[data-app="lovewidgets"] .app-card {
    --glow-rgb: 212, 165, 116;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(212, 165, 116, 0.15);
}

.carousel-item[data-app="pocketverse"] .app-card {
    --glow-rgb: 139, 74, 94;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(139, 74, 94, 0.2);
}

.carousel-item[data-app="protocol"] .app-card {
    --glow-rgb: 0, 255, 102;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 255, 102, 0.15);
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.app-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.app-category {
    display: inline-block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.app-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.6;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.store-buttons a {
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-buttons a:hover {
    transform: scale(1.05);
}

.store-badge {
    height: 54px;
    width: auto;
    border-radius: 8px;
}

.store-buttons img:not(a img) {
    opacity: 0.5;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.nav-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.carousel-arrow.prev {
    left: max(20px, calc(50% - 280px));
}

.carousel-arrow.next {
    right: max(20px, calc(50% - 280px));
}

/* About Section */
.about {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 30, 0.5) 100%);
}

.about h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    text-align: center;
}

.contact h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-btn-large {
    display: inline-block;
    background: #ffffff;
    color: #0a0a0f;
    padding: 18px 48px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 60px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .carousel {
        height: 420px;
    }

    .carousel-item {
        width: 280px;
    }

    .app-card {
        padding: 28px;
    }

    .app-icon {
        width: 80px;
        height: 80px;
    }

    .app-card h3 {
        font-size: 22px;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .about, .contact {
        padding: 60px 0;
    }

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

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .contact-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .carousel-item {
        width: 260px;
    }

    .carousel-arrow {
        display: none;
    }
}
