/* Color Snake Sort – palette taken from the game art: deep blue board
   tiles, lime/green snakes and houses, candy accent colors. */
:root {
    --bg: #0c2266;
    --bg-deep: #081848;
    --tile: #15348f;
    --tile-edge: #1d43ad;
    --panel: #ffffff;
    --text: #eef2ff;
    --text-muted: #b6c3f0;
    --ink: #1b2350;
    --ink-muted: #4d5785;
    --lime: #8ee03a;
    --lime-dark: #4fa81a;
    --purple: #b45cf0;
    --orange: #ff9a2e;
    --sky: #34b4ff;
    --radius: 22px;
    --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    /* Soft board-tile grid, like the game's background. */
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(80, 140, 255, 0.35), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.035) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 2px, transparent 2px);
    background-size: 100% 900px, 72px 72px, 72px 72px;
    background-repeat: no-repeat, repeat, repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

a { color: var(--lime); }
a:hover { color: #b8f27a; }

h1, h2, h3 {
    font-family: "Baloo 2", "Nunito", sans-serif;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 16px;
}

/* Header / footer */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 24, 72, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner, .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header-inner { min-height: 64px; }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: "Baloo 2", sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
}
.brand:hover { color: #fff; }
.brand img { border-radius: 10px; }

.nav { display: flex; gap: 20px; }
.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
}
.nav a:hover { color: #fff; }

.site-footer {
    background: var(--bg-deep);
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 24px 0;
    margin-top: 48px;
}

/* Hero */
.hero { padding: 48px 0 32px; }

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-logo {
    display: block;
    width: 360px;
    margin: -24px 0 0 -20px;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.tagline {
    font-family: "Baloo 2", sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 12px;
}

.lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 28px;
    max-width: 34em;
}

.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.store-btn {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    padding: 10px 22px 12px;
    border-radius: 16px;
    color: #10300a;
    text-decoration: none;
    background: linear-gradient(180deg, #a8f25a, var(--lime-dark));
    box-shadow: 0 5px 0 #2f6e0c, 0 12px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store-btn small { font-size: 0.75rem; font-weight: 700; opacity: 0.8; }
.store-btn strong { font-family: "Baloo 2", sans-serif; font-size: 1.25rem; font-weight: 800; }
a.store-btn:hover { color: #10300a; transform: translateY(-2px); box-shadow: 0 7px 0 #2f6e0c, 0 16px 28px rgba(0, 0, 0, 0.3); }
a.store-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #2f6e0c, 0 6px 12px rgba(0, 0, 0, 0.3); }

.store-btn.soon {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

/* Phone mockup */
.phone {
    justify-self: center;
    width: 290px;
    padding: 10px;
    border-radius: 44px;
    background: linear-gradient(145deg, #2a3f86, #0a1644);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.12),
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(142, 224, 58, 0.15);
    transform: rotate(3deg);
}
.phone img {
    display: block;
    width: 100%;
    border-radius: 34px;
}

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: 2.2rem; text-align: center; margin-bottom: 32px; }
.section.alt { background: rgba(8, 24, 72, 0.55); }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.steps li, .feature {
    background: linear-gradient(180deg, var(--tile-edge), var(--tile));
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 8px 0 #0b2170, 0 14px 30px rgba(0, 0, 0, 0.25);
}

.steps h3, .feature h3 { font-size: 1.35rem; margin-bottom: 6px; }
.steps p, .feature p { margin: 0; color: var(--text-muted); }

.step-num {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 50%;
    font-family: "Baloo 2", sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #10300a;
    background: radial-gradient(circle at 35% 30%, #c6ff8a, var(--lime-dark));
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* A little striped "snake segment" badge per feature. */
.feature-icon {
    width: 64px;
    height: 28px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: repeating-linear-gradient(90deg, var(--c1) 0 16px, var(--c2) 16px 32px);
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), inset 0 4px 0 rgba(255, 255, 255, 0.3);
}
.feature-icon.green { --c1: #7ed62f; --c2: #b4f06a; }
.feature-icon.purple { --c1: var(--purple); --c2: #d59cff; }
.feature-icon.orange { --c1: var(--orange); --c2: #ffc36e; }
.feature-icon.blue { --c1: var(--sky); --c2: #8fd6ff; }

/* Long-form documents (privacy policy, error page) */
.doc {
    width: auto;
    max-width: 780px;
    margin: 40px auto 0;
    padding: 40px 44px;
    background: var(--panel);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.doc h1 { font-size: 2.4rem; color: var(--bg); }
.doc h2 { font-size: 1.4rem; margin-top: 1.6em; color: var(--bg); }
.doc p { color: var(--ink-muted); }
.doc strong { color: var(--ink); }
.doc a { color: #2f7d0b; font-weight: 700; }
.doc-meta { font-size: 0.92rem; }

/* Responsive */
@media (max-width: 900px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .hero { padding-top: 24px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .hero-logo { width: 280px; margin: -12px auto 0; }
    .lead { margin-left: auto; margin-right: auto; }
    .store-buttons { justify-content: center; }
    .phone { width: 240px; transform: none; }
    .steps { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .section h2 { font-size: 1.8rem; }
    .doc { margin: 20px 16px 0; padding: 28px 20px; }
    .doc h1 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
    .features { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}
