/* =========================================================
   LAST PATH — site stylesheet
   A dark, neon-arrow puzzle aesthetic pulled straight from
   the game's own UI: deep violet-black, glowing purple,
   and a scatter of neon arrow colors used as accents only.
   ========================================================= */

:root {
    --bg: #0a0714;
    --surface: #120e20;
    --surface-2: #1a1430;
    --border: rgba(139, 92, 246, 0.16);
    --border-bright: rgba(192, 132, 252, 0.35);

    --text: #f4f2fb;
    --text-muted: #9c92b8;
    --text-faint: #6a6188;

    --accent: #8b5cf6;
    --accent-bright: #c084fc;
    --heart: #fb4d67;

    --neon-orange: #fb923c;
    --neon-cyan: #22d3ee;
    --neon-pink: #f472b6;
    --neon-green: #4ade80;
    --neon-gold: #fbbf24;

    --font-display: "Space Grotesk", "Sora", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;

    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* faint ambient grid + glow behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 20%, rgba(192, 132, 252, 0.10), transparent 60%),
        var(--bg);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

p {
    margin: 0;
    color: var(--text-muted);
}

::selection {
    background: var(--accent);
    color: white;
}

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- NAV ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 7, 20, 0.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    display: grid;
    place-items: center;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.55);
    flex-shrink: 0;
}

.brand-mark svg {
    width: 18px;
    height: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.nav-links a {
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.current {
    color: var(--accent-bright);
}

.nav-cta {
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: white !important;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 0 0 1px var(--border-bright), 0 8px 20px -8px rgba(139, 92, 246, 0.8);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px var(--border-bright), 0 10px 26px -6px rgba(139, 92, 246, 0.9);
}

.nav-toggle {
    display: none;
}

@media (max-width: 720px) {
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-links.open {
        max-height: 320px;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 28px;
        border-bottom: 1px solid var(--border);
    }

    .nav-cta {
        margin: 14px 28px;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: 1px solid var(--border-bright);
        color: var(--text);
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1.1rem;
        cursor: pointer;
    }
}

/* ---------- HERO ---------- */

.hero {
    padding: 96px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-bright);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-bright);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 0.98;
    color: var(--text);
}

.hero h1 .accent-word {
    background: linear-gradient(120deg, var(--accent-bright), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-top: 20px;
}

.hero-tagline .glyph {
    color: var(--neon-orange);
}

.hero-desc {
    margin-top: 22px;
    font-size: 1.05rem;
    max-width: 480px;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 14px 34px -12px rgba(139, 92, 246, 0.85);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(139, 92, 246, 0.95);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid var(--border-bright);
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
    background: rgba(139, 92, 246, 0.1);
}

.hero-stats {
    margin-top: 44px;
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
}

.hero-stat .num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-bright);
}

.hero-stat .label {
    font-size: 0.78rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero visual: phone frame with the game screenshot */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: min(300px, 82vw);
    border-radius: 34px;
    padding: 10px;
    background: linear-gradient(160deg, #1a1430, #0d0a1a);
    border: 1px solid var(--border-bright);
    box-shadow: 0 40px 90px -30px rgba(139, 92, 246, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    position: relative;
    z-index: 2;
}

.phone-frame img {
    border-radius: 25px;
    width: 100%;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
    filter: blur(10px);
    z-index: 1;
}

.floating-tag {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-bright);
    padding: 9px 14px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.6);
}

.floating-tag.tag-1 {
    top: 8%;
    left: -6%;
}

.floating-tag.tag-2 {
    bottom: 12%;
    right: -8%;
}

@media (max-width: 500px) {
    .floating-tag {
        display: none;
    }
}

/* ---------- SECTION SHARED ---------- */

.section {
    padding: 88px 0;
    border-top: 1px solid var(--border);
}

.section-head {
    max-width: 620px;
    margin-bottom: 52px;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 14px;
    display: block;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin-bottom: 16px;
}

.section-head p {
    font-size: 1.02rem;
}

/* ---------- ABOUT ---------- */

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

@media (max-width: 780px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
}

.about-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--border-bright);
}

.about-card .icon svg {
    width: 20px;
    height: 20px;
}

.about-card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
    color: var(--text);
}

.about-card p {
    font-size: 0.92rem;
}

/* ---------- SHAPES SHOWCASE ---------- */

.shapes-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
}

.shape-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.shape-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
}

.shape-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: top;
}

.shape-card .shape-label {
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ---------- SCREENSHOT GALLERY ---------- */

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

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

@media (max-width: 520px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
}

/* ---------- FEATURES / HOW TO PLAY ---------- */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 700px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.feature-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.feature-row .badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--bg);
    background: var(--accent-bright);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 700;
}

.feature-row h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 6px;
}

.feature-row p {
    font-size: 0.9rem;
}

/* ---------- DOWNLOAD CTA BAND ---------- */

.cta-band {
    border-radius: var(--radius-lg);
    padding: 56px 44px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(192, 132, 252, 0.06));
    border: 1px solid var(--border-bright);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.cta-band p {
    max-width: 460px;
    margin: 0 auto 28px;
}

/* ---------- FOOTER ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 34px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    max-width: 280px;
    margin-top: 12px;
    font-size: 0.88rem;
}

.footer-cols {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--accent-bright);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-faint);
}

/* ---------- LEGAL / CONTENT PAGES ---------- */

.legal-hero {
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--border);
}

.legal-hero .section-eyebrow {
    margin-bottom: 12px;
}

.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-hero .updated {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-faint);
}

.legal-body {
    padding: 56px 0 96px;
    max-width: 760px;
    margin: 0 auto;
}

.legal-body h4 {
    font-size: 1.08rem;
    color: var(--accent-bright);
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-body h4:first-child {
    margin-top: 0;
}

.legal-body p {
    margin-bottom: 14px;
    font-size: 0.98rem;
}

.legal-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--text-muted);
}

.legal-body li {
    margin-bottom: 8px;
    font-size: 0.98rem;
}

.legal-body a {
    color: var(--accent-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-body strong {
    color: var(--text);
}

/* ---------- SUPPORT PAGE ---------- */

.support-card {
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.support-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.support-card .icon svg {
    width: 26px;
    height: 26px;
}

.support-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.support-card .email {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-bright);
    margin: 14px 0 6px;
    display: inline-block;
}

.support-card .note {
    font-size: 0.85rem;
    color: var(--text-faint);
}

.faq-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.92rem;
}

/* ---------- MISC ---------- */

.divider-arrows {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    letter-spacing: 0.3em;
    margin: 0 0 20px;
    font-size: 0.8rem;
}