:root {
    --bg: #e0e5ec;
    --bg-cta: linear-gradient(145deg, #6c63ff, #5a52d5);

    --color: #5a5a5a;
    --muted: #7a7a7a;
    --color-primary: #6c63ff;
    --color-cta: #e0e5ec;

    --shadow-l: 20px 20px 60px #bec3c9, -20px -20px 60px #ffffff;
    --shadow-m: 6px 6px 12px #bec3c9, -6px -6px 12px #ffffff;
    --shadow-m-hover: 5px 5px 8px #bec3c9, -5px -5px 8px #ffffff;
    --shadow-m-inset: inset 6px 6px 12px #bec3c9, inset -6px -6px 12px #ffffff;
    --shadow-m-inset-hover: inset 5px 5px 10px #bec3c9, inset -5px -5px 10px #ffffff;
    --shadow-s: 2px 2px 4px #bec3c9, -2px -2px 4px #ffffff;
    --shadow-cta: 4px 4px 8px #8380c4, -4px -4px 8px #b2aefa;
    --shadow-cta-hover: 2px 2px 4px #7f7cc9, -2px -2px 4px #aaa5fe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 15px;
    background: var(--bg);
    color: var(--color);
    padding: 12px 30px;
    box-shadow: var(--shadow-m);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: var(--shadow-m-hover);
    border-radius: 5px;
}

.btn-cta {
    background: var(--bg-cta);
    color: var(--color-cta);
    box-shadow: var(--shadow-cta);
}

.btn-cta:hover {
    box-shadow: var(--shadow-cta-hover);
}

.btn-main {
    font-size: 18px;
    padding: 15px 40px;
}

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(190, 195, 201, 0.3);
}

.mobile-only {
    display: none;
}

.menu-toggle {
    width: 50px;
    height: 50px;
    background: #e0e5ec;
    border: none;
    border-radius: 15px;
    box-shadow: 8px 8px 16px #bec3c9, -8px -8px 16px #ffffff;
    cursor: pointer;
    font-size: 24px;
    color: #5a5a5a;
    transition: all 0.3s;
}

.menu-toggle:hover {
    box-shadow: 6px 6px 12px #bec3c9, -6px -6px 12px #ffffff;
}

.menu-toggle:active {
    box-shadow: inset 4px 4px 8px #bec3c9, inset -4px -4px 8px #ffffff;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color);
    font-weight: 600;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7f7cc9, #5a52d5);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.more-links {
    position: relative;
    cursor: pointer;
    font-weight: 600;
}

.more-links label:hover {
    color: var(--color-primary);
}

.nested-links {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background: var(--bg);
    box-shadow: 0 10px 30px rgba(190, 195, 201, 0.3);
    border-radius: 10px;
    padding: 15px;
    flex-direction: column;
    gap: 10px;
    z-index: 110;
}

.more-links input:checked + .nested-links {
    display: flex;
}

.auth-btns .sign-up {
    margin-right: 10px;
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--color);
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 22px;
    color: var(--muted);
    margin: 40px auto;
    max-width: 700px;
}

.hero-visual {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-card {
    width: 300px;
    background: var(--bg);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 20px 20px 60px #bec3c9, -20px -20px 60px #ffffff;
    animation: float 6s ease-in-out infinite;
}

.hero-card:nth-child(2) {
    animation-delay: 2s;
}

.hero-card:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 8px 8px 16px #bec3c9, -8px -8px 16px #ffffff;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color);
}

.card-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--color);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 20px 20px 60px #bec3c9, -20px -20px 60px #ffffff;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 25px 25px 70px #bec3c9, -25px -25px 70px #ffffff;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    background: var(--bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 8px 8px 16px #bec3c9, -8px -8px 16px #ffffff;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color);
}

.feature-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #6c63ff;
    box-shadow: 12px 12px 24px #bec3c9, -12px -12px 24px #ffffff;
}

.step:hover .step-number {
    box-shadow: inset 6px 6px 12px #bec3c9, inset -6px -6px 12px #ffffff,
                12px 12px 24px #bec3c9, -12px -12px 24px #ffffff;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--color);
}

.step p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pricing-card {
    background: var(--bg);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 20px 20px 60px #bec3c9, -20px -20px 60px #ffffff;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 25px 25px 70px #bec3c9, -25px -25px 70px #ffffff;
}

.pricing-card.featured {
    background: linear-gradient(145deg, #6c63ff, #5a52d5);
    color: white;
}

.pricing-card.featured .grid-size,
.pricing-card.featured .price,
.pricing-card.featured li {
    color: white;
}

.grid-size {
    font-size: 32px;
    font-weight: 700;
    color: var(--color);
    margin-bottom: 20px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: #6c63ff;
    margin-bottom: 10px;
}

.pricing-card.featured .price {
    color: white;
}

.price-label {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 30px;
}

.pricing-card.featured .price-label {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--muted);
    font-size: 15px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--bg);
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--color);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 40px;
}

.coin-bonus {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--bg);
    border-radius: 20px;
    box-shadow: inset 8px 8px 16px #bec3c9, inset -8px -8px 16px #ffffff;
    margin: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color);
}

.coin-icon {
    background: linear-gradient(145deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 8px #bec3c9, -4px -4px 8px #ffffff;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    background: var(--bg);
    border-top: 1px solid #d0d5dc;
}

footer p {
    color: var(--muted);
    font-size: 14px;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 {
    transition-delay: 0.1s;
}

.fade-in.delay-2 {
    transition-delay: 0.2s;
}

.fade-in.delay-3 {
    transition-delay: 0.3s;
}

.fade-in.delay-4 {
    transition-delay: 0.4s;
}

.fade-in.delay-5 {
    transition-delay: 0.5s;
}

.fade-in.delay-6 {
    transition-delay: 0.6s;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #6c63ff, #5a52d5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 10px 10px 30px #bec3c9, -10px -10px 30px #ffffff;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 35px #bec3c9, -12px -12px 35px #ffffff;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    nav {
        flex-wrap: wrap; /* Allows menu to drop to next line */
    }

    .nav-links {
        display: none; /* Collapsed by default */
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        gap: 20px;
        order: 3; /* Places it below the logo and toggle */
        border-top: 1px solid rgba(0,0,0,0.05);
        margin-top: 15px;
    }

    /* Top Collapsible trigger class */
    .nav-links.active {
        display: flex;
    }

    .more-links > label {
        display: none;
    }

    .nested-links {
        position: static; /* Flow naturally in mobile menu */
        box-shadow: none;
        padding: 0;
        display: flex;
        gap: 20px;
        background: transparent;
    }

    .more-label {
        color: var(--color-primary);
        font-size: 0.9em;
    }

    .auth-btns {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .auth-btns .btn {
        width: 100%;
        margin: 0;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-visual {
        flex-direction: column;
        align-items: center;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}