/* Water Sort Challenge - #070c2e + Dopamine palette */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070c2e;
    --bg-soft: #0d1442;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    /* Dopamine accents */
    --pink: #ff6b9d;
    --cyan: #00e5cc;
    --yellow: #ffd93d;
    --orange: #ff8c42;
    --purple: #b388ff;
    --green: #00e676;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 12, 46, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cyan);
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--pink);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-soft);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 20s infinite ease-in-out;
}

.orb-pink {
    width: 400px;
    height: 400px;
    background: var(--pink);
    top: -100px;
    right: -100px;
}

.orb-cyan {
    width: 350px;
    height: 350px;
    background: var(--cyan);
    bottom: -80px;
    left: -80px;
    animation-delay: -7s;
}

.orb-yellow {
    width: 280px;
    height: 280px;
    background: var(--yellow);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    max-width: 520px;
}

.hero-description {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--cyan);
    border: 2px solid var(--cyan);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 204, 0.3);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Screenshots */
.screenshots {
    background: var(--bg-soft);
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 229, 204, 0.2);
}

@media (max-width: 768px) {
    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* How to Play */
.how-to-play {
    background: var(--bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.step-num {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Features */
.features-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border-left: 4px solid var(--pink);
    color: var(--text-muted);
}

.features-list .bullet {
    flex-shrink: 0;
}

/* Why you'll love it */
.why-love {
    background: var(--bg-soft);
}

.love-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.love-card {
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.1), rgba(255, 107, 157, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.love-card .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
}

/* Download */
.download {
    padding: 80px 0 100px;
}

.download-cta {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.download-btn.google-play {
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.download-btn.app-store {
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* Download modal */
.download-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.download-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.download-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.download-modal-box {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.download-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.download-modal-close:hover {
    color: var(--pink);
    background: rgba(255, 255, 255, 0.08);
}

.download-modal-icon {
    font-size: 3rem;
    color: var(--cyan);
    margin-bottom: 16px;
}

.download-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.download-modal-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.download-modal-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.35);
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-brand {
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 8px;
}

.footer-links {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-sep {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}
