/* Cropsicles - Bright Candy Match-3 (Candy Crush Saga playbook, B-movie crop twist) */

:root {
    /* Bright candy-twilight field, not a dark SaaS page */
    --sky: #ff4fa3;
    --grape: #7b2ff7;
    --grape-deep: #3a0f88;
    --lime: #a6f34a;           /* radioactive saucer lime */
    --lime-deep: #4e9c12;
    --magenta: #ff4fa3;        /* B-movie candy magenta */
    --magenta-deep: #c11f6e;
    --corn: #ffd23f;
    --tangerine: #ff9f1c;
    --berry: #b34fff;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.82);
    --card: rgba(255, 255, 255, 0.12);
    --card-line: rgba(255, 255, 255, 0.30);
}

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

body {
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -8%, rgba(200, 206, 216, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 100% 25%, rgba(255, 79, 163, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 0% 55%, rgba(166, 243, 74, 0.22) 0%, transparent 42%),
        linear-gradient(180deg, #2b2f38 0%, #22242c 48%, #14161b 100%);
    background-attachment: fixed;
}

.logo, .hero h1, .world-text h3 { font-family: 'Press Start 2P', monospace; }

/* Nav */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(26, 28, 35, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(166, 243, 74, 0.4);
}
.nav-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 1.5rem;
}
.logo {
    text-decoration: none; color: var(--text);
    font-size: 0.8rem; letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 0.5rem;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}
.logo-img {
    display: block; height: 30px; width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-link {
    color: var(--text-dim); text-decoration: none;
    font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
    transition: color 0.15s;
}
.nav-link:hover { color: var(--corn); }
@media (max-width: 480px) {
    .nav-links { gap: 0.75rem; }
    .nav-link { font-size: 0.8rem; }
}
/* Glossy lime pill */
.btn-play {
    background: linear-gradient(180deg, #c4ff7a 0%, var(--lime) 45%, var(--lime-deep) 100%);
    color: #143d00;
    padding: 0.6rem 1.3rem; border-radius: 9999px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    text-decoration: none; letter-spacing: 0.02em;
    box-shadow: 0 4px 0 var(--lime-deep), 0 6px 14px rgba(0,0,0,0.3),
                inset 0 2px 2px rgba(255,255,255,0.7);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lime-deep), 0 10px 20px rgba(0,0,0,0.35), inset 0 2px 2px rgba(255,255,255,0.7); }
.btn-play:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--lime-deep), inset 0 2px 2px rgba(255,255,255,0.6); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem 3rem;
    overflow: hidden;
}
/* Hero backdrop = the four world-level splash arts, crossfading. Bg art only
   (locked design: no overlays/tagline/CTA). Each layer holds one world and the
   four stagger through a 32s loop (8s each: fade in, hold, fade out). */
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    background-color: #14161b;
    background-image: url('https://prodmedia.tyga.host/public/tyga.cloud/landing/cropsicles.com/cropsicles_ingame_widescreen_4.jpg');
}

/* UFO overlay: sits above the field art, below the bottom vignette so the
   gradient tints the craft into the scene. Never intercepts clicks. */
.hero-ufo {
    position: absolute; inset: 0; z-index: 2;
    width: 100%; height: 100%;
    pointer-events: none;
    display: block;
}

/* Hero music toggle: bottom-right, above the vignette. Default = off. */
.hero-audio-toggle {
    position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 5;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.9rem; cursor: pointer;
    border: 2px solid var(--card-line); border-radius: 9999px;
    background: rgba(20, 22, 27, 0.6); backdrop-filter: blur(6px);
    color: var(--text-dim); font-family: 'Fredoka', sans-serif;
    font-size: 0.8rem; letter-spacing: 0.02em;
    transition: color 0.15s, border-color 0.15s, transform 0.12s;
}
.hero-audio-toggle:hover { transform: translateY(-1px); border-color: var(--sky); color: var(--text); }
.hero-audio-toggle .ha-icon { font-size: 1rem; line-height: 1; }
.hero-audio-toggle.is-on { color: var(--corn); border-color: var(--sky); }
.hero-audio-toggle.is-on .ha-icon { color: var(--sky); }
@media (max-width: 480px) { .hero-audio-toggle .ha-label { display: none; } }

/* Candy sparkle drift */
.stars {
    position: absolute; inset: 0;
    background:
        radial-gradient(5px 5px at 18% 26%, #fff 60%, transparent 62%),
        radial-gradient(4px 4px at 78% 18%, var(--corn) 60%, transparent 62%),
        radial-gradient(6px 6px at 64% 72%, var(--magenta) 60%, transparent 62%),
        radial-gradient(4px 4px at 30% 66%, var(--lime) 60%, transparent 62%),
        radial-gradient(5px 5px at 88% 55%, #fff 60%, transparent 62%),
        radial-gradient(4px 4px at 22% 84%, var(--berry) 60%, transparent 62%);
    opacity: 0.9;
    animation: drift 9s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateY(-24px); } }

/* Flying saucer + tractor beam (brightened) */
.saucer {
    position: absolute; top: 15%; left: 50%;
    width: 140px; height: 46px; margin-left: -70px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 25%, #fff 0%, var(--magenta) 45%, #7a1450 100%);
    box-shadow: 0 0 50px rgba(255, 79, 163, 0.5), inset 0 -6px 12px rgba(0,0,0,0.35);
    animation: hover 6s ease-in-out infinite;
}
.saucer::before {
    content: ''; position: absolute; top: -16px; left: 50%;
    width: 60px; height: 34px; margin-left: -30px;
    border-radius: 50% 50% 40% 40%;
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.95), rgba(166,243,74,0.4));
    box-shadow: 0 0 22px rgba(166,243,74,0.7);
}
@keyframes hover {
    0%, 100% { transform: translateY(0) translateX(-10px); }
    50%      { transform: translateY(-14px) translateX(10px); }
}
.beam {
    position: absolute; top: 20%; left: 50%;
    width: 220px; height: 58%; margin-left: -110px;
    background: linear-gradient(to bottom, rgba(166,243,74,0.42) 0%, rgba(166,243,74,0.10) 60%, transparent 100%);
    clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
    filter: blur(2px);
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Crop circle rings on the ground */
.crop-rings {
    position: absolute; bottom: -60px; left: 50%;
    width: 520px; height: 520px; margin-left: -260px;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        0 0 0 3px rgba(166,243,74,0.28),
        0 0 0 60px rgba(166,243,74,0.06),
        inset 0 0 0 40px rgba(166,243,74,0.12),
        inset 0 0 0 120px rgba(166,243,74,0.06);
    transform: rotateX(70deg);
    opacity: 0.8;
    animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotateX(70deg) rotate(360deg); } }

.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(20,22,27,0.15) 55%,
        rgba(20,22,27,0.5) 100%
    );
}

.hero h1 {
    font-size: 3.4rem;
    color: var(--corn);
    letter-spacing: 0.05em;
    text-shadow:
        0 0 40px rgba(255,210,63,0.5),
        3px 3px 0 var(--magenta),
        6px 6px 0 rgba(0,0,0,0.35);
    margin-bottom: 1.2rem;
}
.hero h1 .tm { font-size: 1rem; vertical-align: top; color: var(--lime); }

.tagline {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0 auto 2rem;
    max-width: 480px;
}

/* Blinking cursor */
.cursor {
    display: inline-block;
    width: 0.5em; height: 1em;
    background: var(--corn);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Glossy candy-magenta PLAY pill */
.btn-primary {
    display: inline-block;
    background: linear-gradient(180deg, #ff8cc4 0%, var(--magenta) 45%, var(--magenta-deep) 100%);
    color: #ffffff;
    padding: 1.1rem 2.8rem;
    border-radius: 9999px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 6px 0 var(--magenta-deep), 0 10px 22px rgba(0,0,0,0.4),
                inset 0 2px 3px rgba(255,255,255,0.6);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--magenta-deep), 0 16px 30px rgba(0,0,0,0.45), inset 0 2px 3px rgba(255,255,255,0.6);
}
.btn-primary:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 var(--magenta-deep), inset 0 2px 3px rgba(255,255,255,0.5);
}

.hero-note {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 1.1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Feature tiles */
/* World cards: the four splash images as feature cards, game-feature copy laid
   over a bottom gradient (splash art has its own UFO, unlike the hero). */
.worlds {
    padding: 4rem 1.5rem;
}
.worlds-inner {
    max-width: 1040px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.world-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--card-line);
    background-size: cover; background-position: center;
    background-color: #14161b;
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.world-card:hover {
    transform: translateY(-5px);
    border-color: var(--corn);
    box-shadow: 0 14px 34px rgba(0,0,0,0.4), 0 0 30px rgba(255,210,63,0.22);
}
.world-card.w1 { background-image: url('https://prodmedia.tyga.host/public/tyga.cloud/landing/cropsicles.com/cropsicles_splash_widescreen_1.jpg'); }
.world-card.w2 { background-image: url('https://prodmedia.tyga.host/public/tyga.cloud/landing/cropsicles.com/cropsicles_splash_widescreen_2.jpg'); }
.world-card.w3 { background-image: url('https://prodmedia.tyga.host/public/tyga.cloud/landing/cropsicles.com/cropsicles_splash_widescreen_3.jpg'); }
.world-card.w4 { background-image: url('https://prodmedia.tyga.host/public/tyga.cloud/landing/cropsicles.com/cropsicles_splash_widescreen_4.jpg'); }
.world-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,11,15,0.92) 0%, rgba(10,11,15,0.55) 38%, rgba(10,11,15,0) 68%);
}
.world-text {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.4rem 1.5rem;
    text-align: left;
}
.world-text h3 {
    font-size: 0.9rem; color: var(--corn);
    margin-bottom: 0.6rem; letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.world-text p {
    font-size: 0.95rem; color: var(--text);
    line-height: 1.55;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* Hook Section */
.hook {
    padding: 4rem 1.5rem 5rem;
    text-align: center;
}
.hook-inner { max-width: 640px; margin: 0 auto; }
.fragment {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0 auto 2rem;
    max-width: 520px;
    font-weight: 500;
    text-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.fragment.last { margin-bottom: 2.5rem; }

.btn-secondary {
    display: inline-block;
    background: linear-gradient(180deg, #c4ff7a 0%, var(--lime) 45%, var(--lime-deep) 100%);
    color: #143d00;
    padding: 1rem 2.4rem;
    border-radius: 9999px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 5px 0 var(--lime-deep), 0 8px 18px rgba(0,0,0,0.35), inset 0 2px 2px rgba(255,255,255,0.6);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--lime-deep), 0 14px 26px rgba(0,0,0,0.4), inset 0 2px 2px rgba(255,255,255,0.6); }
.btn-secondary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--lime-deep), inset 0 2px 2px rgba(255,255,255,0.5); }

/* Footer */
footer {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    background: rgba(26, 28, 35, 0.7);
    border-top: 2px solid rgba(166, 243, 74, 0.28);
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--corn); }
footer .sep { margin: 0 0.5rem; opacity: 0.4; }
.footer-powered { margin-top: 0.6rem; }
.footer-powered a { color: var(--corn); text-decoration: underline; font-weight: 600; }
.footer-powered a:hover { color: var(--magenta); }
.footer-powered .studio { color: var(--text-dim); }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .tagline { font-size: 1rem; }
    .btn-primary { font-size: 1.05rem; padding: 0.9rem 2rem; }
    .worlds-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; letter-spacing: 0.03em; }
    .tagline { font-size: 0.9rem; }
}
