:root {
    --bg: #0d1025;
    --bg-soft: #141938;
    --panel: rgba(17, 21, 47, 0.92);
    --panel-strong: #181d44;
    --panel-border: rgba(117, 136, 255, 0.28);
    --text: #edf1ff;
    --muted: #b7bfdc;
    --green: #40e86d;
    --cyan: #5de8ff;
    --gold: #ffcb47;
    --orange: #ff8b38;
    --pink: #ff5ea8;
    --shadow: rgba(2, 4, 16, 0.48);
    --max-width: 1180px;
    --radius: 24px;
    --pixel-shadow: 0 0 0 2px rgba(6, 9, 24, 0.95), 8px 8px 0 rgba(6, 9, 24, 0.6);
    --font-body: "Chakra Petch", "Segoe UI", sans-serif;
    --font-pixel: "Silkscreen", "Courier New", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(93, 232, 255, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 94, 168, 0.12), transparent 24%),
        linear-gradient(180deg, #0b0e20 0%, #10142f 46%, #090c18 100%);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 88%);
}

img {
    display: block;
    max-width: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

a {
    color: var(--cyan);
}

a:hover {
    color: var(--green);
}

code {
    font-family: var(--font-pixel);
    font-size: 0.85em;
    color: var(--gold);
}

.skip-link,
.sr-only,
.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link:focus {
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    margin: 0;
    clip: auto;
    z-index: 1000;
    background: var(--gold);
    color: #090b17;
}

.container {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.site-chrome {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--cyan);
    box-shadow: 12px 0 0 var(--cyan), 0 12px 0 var(--cyan), 12px 12px 0 var(--cyan);
    opacity: 0.15;
    animation: drift 12s ease-in-out infinite;
}

.star-a { top: 10%; left: 8%; animation-delay: 0s; }
.star-b { top: 16%; right: 10%; animation-delay: 2s; }
.star-c { bottom: 24%; left: 14%; animation-delay: 4s; }
.star-d { bottom: 12%; right: 18%; animation-delay: 1s; }

.site-header,
main,
.site-footer {
    position: relative;
}

.site-header {
    z-index: 30;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(10, 12, 27, 0.78);
    border-bottom: 1px solid rgba(117, 136, 255, 0.18);
}

main,
.site-footer {
    z-index: 1;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    position: relative;
    width: 26px;
    height: 26px;
    background: var(--green);
    box-shadow:
        0 0 0 4px rgba(64, 232, 109, 0.16),
        8px 0 0 var(--green),
        16px 0 0 var(--green),
        0 8px 0 var(--green),
        16px 8px 0 var(--green),
        8px 16px 0 var(--green);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-kicker,
.eyebrow,
.panel-kicker,
.stat-card-label,
.zone-altitude,
.footer-heading {
    font-family: var(--font-pixel);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brand-kicker {
    font-size: 0.52rem;
    color: var(--gold);
}

.brand-title {
    font-family: var(--font-pixel);
    font-size: 0.82rem;
    color: var(--text);
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 3rem;
    height: 3rem;
    padding: 0.7rem;
    border: 1px solid rgba(117, 136, 255, 0.32);
    border-radius: 16px;
    background: rgba(18, 23, 51, 0.84);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: currentColor;
}

.site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgba(117, 136, 255, 0.24);
    border-radius: 22px;
    background: rgba(18, 23, 51, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.site-nav.is-open {
    display: flex;
}

.site-nav a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: rgba(64, 232, 109, 0.12);
    color: var(--green);
}

.section {
    padding: 5rem 0;
}

.hero {
    padding-top: 4.5rem;
}

.subhero {
    padding-top: 3.8rem;
    padding-bottom: 2.4rem;
}

.hero-grid,
.split-layout,
.availability-panel,
.support-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    align-items: center;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.panel h2,
.panel h3,
.thanks-panel h1 {
    margin: 0;
    line-height: 1.1;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.thanks-panel h1 {
    font-size: clamp(2rem, 5vw, 4.3rem);
}

.hero-copy h1,
.section-heading h1,
.section-heading h2 {
    max-width: 12ch;
}

.eyebrow,
.panel-kicker,
.stat-card-label,
.zone-altitude {
    font-size: 0.7rem;
    color: var(--gold);
}

.section-heading {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.section-heading p,
.hero-copy p,
.panel p,
.legal-panel p,
.thanks-panel p,
.supporting-note,
.fact-list,
.bullet-list {
    color: var(--muted);
    font-size: 1.02rem;
}

.lede {
    max-width: 60ch;
}

.app-store-badge {
    display: inline-block;
    margin-top: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.app-store-badge img {
    image-rendering: auto;
}

.pill-row,
.button-row,
.footer-links,
.fact-list,
.bullet-list,
.availability-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pill {
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(93, 232, 255, 0.24);
    border-radius: 999px;
    background: rgba(93, 232, 255, 0.08);
    color: var(--text);
    font-weight: 600;
}

.button-row {
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 18px;
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.button-primary {
    background: linear-gradient(135deg, var(--green), var(--gold));
    color: #061015;
    box-shadow: var(--pixel-shadow);
}

.button-secondary {
    border-color: rgba(117, 136, 255, 0.32);
    background: rgba(15, 19, 42, 0.7);
    color: var(--text);
}

.button-full {
    width: 100%;
}

.button-row-centered {
    justify-content: center;
}

.supporting-note {
    max-width: 56ch;
}

.hero-visual {
    display: grid;
    gap: 1rem;
}

.device-frame,
.stat-card,
.panel,
.legal-panel,
.availability-panel,
.shot-card,
.thanks-panel {
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(24, 29, 68, 0.95), rgba(13, 16, 37, 0.95));
    box-shadow: 0 28px 60px var(--shadow);
}

.device-frame {
    padding: 1rem;
}

.device-frame img {
    width: min(100%, 420px);
    margin: 0 auto;
    border-radius: 26px;
}

.hero-video {
    position: relative;
    width: min(100%, 420px);
    margin: 0 auto;
}

.hero-video-el {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    background: #050711;
    border-radius: 26px;
}

.hero-video-sound {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: rgba(9, 12, 28, 0.78);
    backdrop-filter: blur(6px);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.hero-video-sound:hover,
.hero-video-sound:focus-visible {
    border-color: var(--cyan);
    color: var(--cyan);
}

.hero-video-sound-icon {
    display: inline-flex;
}

.hero-video-sound[hidden],
.hero-video-sound-icon[hidden] {
    display: none;
}

.section-lede {
    max-width: 60ch;
}

.stat-card,
.panel,
.legal-panel,
.thanks-panel {
    padding: 1.35rem;
}

.fact-list,
.bullet-list,
.availability-list,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 0.55rem;
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.panel h2,
.panel h3 {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    font-size: 1.45rem;
}

.zone-panel h3 {
    margin-bottom: 0.35rem;
}

.zone-altitude {
    margin-bottom: 0.65rem;
    color: var(--cyan);
}

.screenshot-grid {
    display: grid;
    gap: 1rem;
}

.screenshots-swiper {
    padding-bottom: 2.5rem;
}

.slide-card {
    margin: 0;
}

.slide-card img {
    display: block;
    width: 100%;
    /* height:auto lets aspect-ratio win over the width/height attributes. */
    height: auto;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    background: #050711;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
}

.screenshots-swiper .swiper-button-prev,
.screenshots-swiper .swiper-button-next {
    color: var(--cyan);
    width: 2.2rem;
    height: 2.2rem;
}

.screenshots-swiper .swiper-button-prev::after,
.screenshots-swiper .swiper-button-next::after {
    font-size: 1rem;
}

.screenshots-swiper .swiper-pagination-bullet {
    background: var(--cyan);
}

.shot-card {
    overflow: hidden;
}

.shot-card img {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    background: #050711;
}

.shot-card figcaption {
    padding: 1rem 1.1rem 1.1rem;
    color: var(--muted);
    font-weight: 600;
}

.availability-panel {
    padding: 1.5rem;
}

.availability-list strong {
    color: var(--text);
}

.support-grid,
.split-layout {
    grid-template-columns: 1fr;
}

.stacked-panels {
    display: grid;
    gap: 1rem;
}

.support-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.form-status {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(117, 136, 255, 0.24);
    background: rgba(11, 14, 31, 0.75);
    color: var(--text);
}

.form-status.is-error {
    border-color: rgba(255, 94, 168, 0.45);
    color: #ffd2e9;
}

.form-status.is-info {
    border-color: rgba(93, 232, 255, 0.35);
    color: #d7fbff;
}

.form-row {
    display: grid;
    gap: 0.4rem;
}

.form-row-split {
    grid-template-columns: 1fr;
}

label {
    font-family: var(--font-pixel);
    font-size: 0.66rem;
    text-transform: uppercase;
    color: var(--gold);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(117, 136, 255, 0.28);
    border-radius: 16px;
    background: rgba(9, 12, 25, 0.82);
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus,
.menu-toggle:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.footer-links a:focus-visible {
    outline: 3px solid rgba(93, 232, 255, 0.55);
    outline-offset: 2px;
}

textarea {
    resize: vertical;
    min-height: 12rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.turnstile-widget {
    min-height: 70px;
}

details {
    border: 1px solid rgba(117, 136, 255, 0.24);
    border-radius: 18px;
    background: rgba(11, 14, 31, 0.75);
    overflow: hidden;
}

summary {
    padding: 1rem 1.1rem;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
}

details p {
    margin: 0;
    padding: 0 1.1rem 1rem;
}

.legal-shell {
    display: grid;
    gap: 1rem;
}

.legal-panel h2 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-size: 1.35rem;
}

.centered-panel {
    display: grid;
    place-items: center;
}

.thanks-panel {
    max-width: 760px;
    text-align: center;
}

.error-main {
    display: grid;
    min-height: calc(100vh - 5rem);
    align-items: center;
}

.error-section {
    width: 100%;
}

.error-panel {
    position: relative;
    isolation: isolate;
    width: min(100%, 720px);
    overflow: hidden;
    padding: clamp(2rem, 7vw, 4.5rem) 1.5rem;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(24, 29, 68, 0.98), rgba(13, 16, 37, 0.98));
    box-shadow: 0 28px 60px var(--shadow);
    text-align: center;
}

.error-panel::before,
.error-panel::after {
    position: absolute;
    z-index: -1;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    content: "";
    filter: blur(8px);
}

.error-panel::before {
    top: -5rem;
    left: -4rem;
    background: rgba(93, 232, 255, 0.16);
}

.error-panel::after {
    right: -5rem;
    bottom: -6rem;
    background: rgba(255, 94, 168, 0.16);
}

.error-code {
    margin: 0;
    color: var(--cyan);
    font-family: var(--font-pixel);
    font-size: clamp(4rem, 18vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    text-shadow: 5px 5px 0 rgba(6, 9, 24, 0.7);
}

.error-panel .eyebrow {
    margin: 1.5rem 0 0.7rem;
}

.error-panel h1 {
    max-width: 16ch;
    margin: 0 auto;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.1;
}

.error-panel > p:not(.error-code):not(.eyebrow) {
    max-width: 48ch;
    margin: 1rem auto 1.75rem;
    color: var(--muted);
}

.site-footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid rgba(117, 136, 255, 0.18);
    background: rgba(8, 10, 23, 0.66);
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.footer-heading {
    margin: 0 0 0.7rem;
    font-size: 0.72rem;
    color: var(--gold);
}

.footer-grid p {
    margin: 0 0 0.4rem;
    color: var(--muted);
}

.footer-credit {
    margin: 1.75rem auto 0;
    padding: 1.25rem 1rem 0;
    max-width: var(--container-width);
    border-top: 1px solid rgba(117, 136, 255, 0.18);
    color: var(--muted);
    text-align: center;
}

.footer-credit a {
    color: var(--cyan);
    text-decoration: none;
}

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

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes drift {
    0%, 100% { transform: translateY(0); opacity: 0.12; }
    50% { transform: translateY(-14px); opacity: 0.2; }
}

@media (min-width: 720px) {
    .menu-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    }

    .card-grid.loop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid.feature-grid,
    .card-grid.zone-grid,
    .support-grid,
    .screenshot-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }



    .availability-panel,
    .split-layout {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }

    .form-row-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 980px) {
    .card-grid.loop-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .card-grid.feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-grid.zone-grid,
    .support-grid,
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .screenshot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .legal-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Language switcher */
.lang-switcher {
    position: relative;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(117, 136, 255, 0.18);
}

.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(117, 136, 255, 0.28);
    background: rgba(13, 16, 37, 0.55);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    justify-content: space-between;
}

.lang-current:hover,
.lang-current[aria-expanded="true"] {
    border-color: rgba(64, 232, 109, 0.45);
    color: var(--green);
}

.lang-flag {
    width: 22px;
    height: 16px;
    flex: 0 0 auto;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    object-fit: cover;
    display: block;
    background: rgba(13, 16, 37, 0.4);
}

.lang-code {
    flex: 1;
    text-align: left;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.lang-caret {
    font-size: 0.75rem;
    opacity: 0.7;
}

.lang-menu {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0.35rem;
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid rgba(117, 136, 255, 0.24);
    border-radius: 14px;
    background: rgba(18, 23, 51, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.lang-switcher.is-open .lang-menu {
    display: flex;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
    background: rgba(64, 232, 109, 0.12);
    color: var(--green);
}

.lang-menu a.is-current {
    background: rgba(64, 232, 109, 0.15);
    color: var(--green);
}

.lang-name {
    line-height: 1;
}

@media (min-width: 720px) {
    .lang-switcher {
        margin: 0 0 0 0.6rem;
        padding: 0;
        border-top: 0;
    }

    .lang-current {
        width: auto;
        padding: 0.5rem 0.75rem;
    }

    .lang-menu {
        position: absolute;
        top: calc(100% + 0.4rem);
        right: 0;
        min-width: 180px;
        z-index: 50;
    }
}
