:root {
    --bg: #07101b;
    --bg-2: #0b1b24;
    --ink: #0b1117;
    --paper: #f6f0df;
    --paper-2: #fffaf0;
    --muted: #8ca2a8;
    --line: rgba(255, 255, 255, 0.14);
    --line-dark: rgba(11, 17, 23, 0.14);
    --cyan: #2ec7d3;
    --orange: #ff7438;
    --yellow: #f6c53a;
    --green: #2ede95;
    --red: #ff405d;
    --max: 1160px;
    --nav-h: 74px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Atkinson Hyperlegible", Verdana, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: #eef7f4;
    font-family: var(--font-body);
    line-height: 1.5;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 74%);
    z-index: -2;
}

a {
    color: inherit;
}

a,
button {
    touch-action: manipulation;
}

button,
input,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(246, 197, 58, 0.92);
    outline-offset: 3px;
}

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 20;
    background: rgba(7, 16, 27, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav__inner {
    height: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff8e8;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.nav__icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link,
.nav__cta,
.text-button,
.legal-links a {
    text-decoration: none;
}

.nav__link {
    color: rgba(238, 247, 244, 0.78);
    padding: 10px 11px;
    font-size: 14px;
}

.nav__link:hover {
    color: #fff;
}

.nav__cta,
.store-button,
.contact-form__submit {
    border: 1px solid rgba(246, 197, 58, 0.46);
    background: var(--yellow);
    color: #1b1403;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(246, 197, 58, 0.22);
}

.nav__cta {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px;
}

.nav__toggle span {
    display: block;
    height: 2px;
    background: #fff8e8;
    margin: 5px 0;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 15;
}

.nav-backdrop.is-open {
    display: block;
}

.lang {
    position: relative;
}

.lang__button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #eef7f4;
    background: rgba(255,255,255,0.05);
    padding: 0 10px;
    cursor: pointer;
}

.lang__button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.lang__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    min-width: 176px;
    padding: 7px;
    background: #101c25;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.34);
}

.lang__menu.is-open {
    display: grid;
}

.lang__option {
    border: 0;
    border-radius: 6px;
    padding: 9px 10px;
    color: rgba(238,247,244,0.78);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.lang__option:hover,
.lang__option.is-active {
    color: #fff;
    background: rgba(46, 199, 211, 0.13);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: 152px 22px 92px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(46, 199, 211, 0.16), transparent 38%),
        linear-gradient(135deg, #08101d 0%, #0d202a 52%, #080b13 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 430px;
    align-items: center;
    gap: 64px;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--cyan);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.hero h1,
.section-head h2,
.split-copy h2,
.policy-hero__title {
    font-family: var(--font-display);
    line-height: 0.98;
    font-weight: 850;
    margin: 0;
}

.hero h1 {
    font-size: 92px;
    color: #fff8e8;
}

.hero__subtitle {
    margin: 18px 0 0;
    max-width: 620px;
    font-size: 28px;
    font-weight: 700;
    color: #f6c53a;
}

.hero__text {
    margin: 18px 0 0;
    max-width: 640px;
    color: rgba(238, 247, 244, 0.76);
    font-size: 18px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
}

.store-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.text-button {
    color: #eef7f4;
    font-weight: 700;
    padding: 14px 2px;
}

.store-note {
    margin-top: 12px;
    color: rgba(238, 247, 244, 0.56);
    font-size: 13px;
}

.stats {
    margin-top: 34px;
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.stat {
    min-width: 118px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.stat strong,
.stat span {
    display: block;
}

.stat strong {
    color: #fff8e8;
    font-size: 22px;
}

.stat span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.hero__visual {
    position: relative;
    min-height: 590px;
}

.phone {
    width: 340px;
    height: 642px;
    margin-left: auto;
    padding: 14px;
    border-radius: 38px;
    background: linear-gradient(145deg, #151d27, #03070d);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 32px 70px rgba(0,0,0,0.5);
}

.phone__bar {
    width: 94px;
    height: 24px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #05080d;
}

.app-preview {
    height: 578px;
    border-radius: 28px;
    overflow: hidden;
    padding: 18px;
    background:
        linear-gradient(160deg, rgba(46,199,211,0.12), transparent 35%),
        linear-gradient(180deg, #102334, #07101b);
    border: 1px solid rgba(255,255,255,0.10);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff8e8;
}

.preview-header span {
    display: block;
    margin-top: 2px;
    color: rgba(238,247,244,0.58);
    font-size: 12px;
}

.preview-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.mini-map {
    position: relative;
    height: 310px;
    margin: 22px 0 14px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(148, 202, 219, 0.92), rgba(31, 84, 112, 0.92));
    border: 1px solid rgba(255,255,255,0.18);
}

.mini-map__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 34px 34px;
}

.land {
    position: absolute;
    display: block;
    background: linear-gradient(145deg, #f6c53a, #2ede95);
    border: 2px solid rgba(13, 33, 25, 0.62);
    filter: drop-shadow(0 8px 12px rgba(3, 18, 18, 0.3));
}

.land--one {
    width: 150px;
    height: 184px;
    left: 86px;
    top: 54px;
    clip-path: polygon(26% 2%, 65% 8%, 89% 29%, 76% 62%, 95% 86%, 57% 98%, 24% 82%, 5% 54%, 15% 28%);
}

.land--two {
    width: 86px;
    height: 72px;
    left: 190px;
    top: 200px;
    background: linear-gradient(145deg, #ff7438, #f6c53a);
    clip-path: polygon(18% 8%, 88% 21%, 75% 73%, 36% 94%, 6% 56%);
}

.land--three {
    width: 64px;
    height: 46px;
    left: 34px;
    top: 220px;
    background: linear-gradient(145deg, #2ec7d3, #2ede95);
    clip-path: polygon(8% 20%, 70% 0, 94% 42%, 64% 94%, 16% 80%);
}

.pin {
    position: absolute;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 3px solid #0b1117;
    z-index: 4;
}

.pin--guess {
    left: 170px;
    top: 130px;
    background: var(--red);
}

.pin--answer {
    left: 123px;
    top: 158px;
    background: var(--green);
}

.distance-line {
    position: absolute;
    left: 134px;
    top: 162px;
    width: 55px;
    height: 3px;
    background: var(--yellow);
    transform: rotate(-31deg);
    transform-origin: left center;
    z-index: 3;
    box-shadow: 0 0 14px rgba(246,197,58,0.8);
}

.target-card {
    border-radius: 8px;
    background: rgba(246, 240, 223, 0.96);
    color: var(--ink);
    padding: 14px;
}

.target-card span,
.target-card small {
    display: block;
}

.target-card span {
    color: #516069;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.target-card strong {
    display: block;
    font-size: 28px;
    margin-top: 2px;
}

.target-card small {
    color: #516069;
    margin-top: 3px;
}

.round-strip {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin-top: 16px;
}

.round-strip span {
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

.round-strip .is-done {
    background: var(--green);
}

.round-strip .is-current {
    background: var(--yellow);
    box-shadow: 0 0 14px rgba(246,197,58,0.45);
}

.score-ticket {
    position: absolute;
    left: 8px;
    bottom: 60px;
    width: 188px;
    border-radius: 8px;
    padding: 15px 16px;
    background: #fffaf0;
    color: var(--ink);
    border: 1px solid rgba(255,255,255,0.42);
    box-shadow: 0 24px 54px rgba(0,0,0,0.32);
}

.score-ticket span {
    display: block;
    color: #697780;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.score-ticket strong {
    display: block;
    margin-top: 3px;
    font-size: 28px;
}

.topo {
    position: absolute;
    pointer-events: none;
    opacity: 0.7;
    background:
        repeating-radial-gradient(ellipse at center, transparent 0 22px, rgba(46,199,211,0.18) 23px 24px, transparent 25px 44px);
}

.topo--hero {
    width: 620px;
    height: 360px;
    left: -150px;
    top: 120px;
    transform: rotate(-12deg);
}

.route-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background:
        linear-gradient(28deg, transparent 28%, rgba(255,116,56,0.32) 28.4%, transparent 29%),
        linear-gradient(156deg, transparent 47%, rgba(246,197,58,0.28) 47.4%, transparent 48%),
        linear-gradient(12deg, transparent 68%, rgba(46,222,149,0.24) 68.4%, transparent 69%);
}

.band {
    padding: 96px 22px;
}

.band--light {
    background: var(--paper);
    color: var(--ink);
}

.band--dark {
    position: relative;
    background:
        linear-gradient(180deg, #07101b, #0b1b24);
    color: #eef7f4;
}

.band--split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 42px;
    max-width: var(--max);
    margin: 0 auto;
    align-items: center;
}

.section-head {
    max-width: var(--max);
    margin: 0 auto 34px;
}

.section-head--dark {
    color: #eef7f4;
}

.section-head h2,
.split-copy h2,
.policy-hero__title {
    font-size: 56px;
}

.section-head p:not(.eyebrow),
.split-copy p:not(.eyebrow) {
    max-width: 690px;
    color: #53616a;
    font-size: 18px;
}

.section-head--dark p:not(.eyebrow) {
    color: rgba(238,247,244,0.68);
}

.challenge-grid,
.feature-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.challenge-card,
.feature-item {
    border-radius: 8px;
    padding: 22px;
}

.challenge-card {
    min-height: 236px;
    border: 1px solid var(--line-dark);
    background: var(--paper-2);
    box-shadow: 0 16px 34px rgba(11,17,23,0.08);
}

.challenge-card__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--yellow);
    font-weight: 700;
}

.challenge-card h3,
.feature-item h3 {
    margin: 18px 0 8px;
    font-size: 21px;
}

.challenge-card p,
.feature-item p {
    margin: 0;
    color: #596973;
}

.feature-item {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.045);
}

.feature-item svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: var(--yellow);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-item p {
    color: rgba(238,247,244,0.66);
}

.band--split {
    padding: 92px 22px;
}

.split-copy p:not(.eyebrow) {
    margin-bottom: 0;
}

.legal-links {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.legal-links a {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff8e8;
    background: rgba(255,255,255,0.05);
    font-weight: 700;
}

.legal-links a:hover {
    border-color: rgba(246,197,58,0.6);
}

.footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px 22px 46px;
    color: rgba(238,247,244,0.62);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
}

.footer strong,
.footer span {
    display: block;
}

.footer strong {
    color: #fff8e8;
}

.footer p {
    margin: 0;
}

.policy-hero {
    padding: 150px 22px 70px;
    background:
        radial-gradient(ellipse at 14% 0%, rgba(46,199,211,0.18), transparent 42%),
        linear-gradient(145deg, #07101b, #0b1b24);
}

.policy-hero__inner,
.policy-content {
    max-width: 920px;
    margin: 0 auto;
}

.policy-hero__title {
    color: #fff8e8;
}

.policy-hero__meta {
    margin: 16px 0 0;
    color: rgba(238,247,244,0.68);
    font-size: 17px;
}

.policy-content {
    padding: 52px 22px 86px;
}

.legal-panel,
.contact-panel {
    border-radius: 8px;
    background: var(--paper-2);
    color: var(--ink);
    border: 1px solid rgba(11,17,23,0.12);
    box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}

.legal-panel {
    padding: 28px;
}

.language-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.language-tabs button {
    border: 1px solid var(--line-dark);
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    font-weight: 700;
}

.language-tabs button.is-active {
    background: var(--ink);
    color: #fff8e8;
}

.legal-section {
    border-top: 1px solid rgba(11,17,23,0.12);
    padding-top: 22px;
    margin-top: 22px;
}

.legal-section:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.legal-section h2 {
    margin: 0 0 10px;
    font-size: 25px;
}

.legal-section p,
.legal-section li {
    color: #46545d;
}

.legal-section a {
    color: #0a7280;
    font-weight: 700;
}

.legal-links-list {
    margin: 12px 0 0;
    padding-left: 20px;
}

.legal-links-list li + li {
    margin-top: 6px;
}

.contact-panel {
    padding: 28px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

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

.contact-form__group {
    display: grid;
    gap: 7px;
}

.contact-form__label {
    color: #243039;
    font-size: 13px;
    font-weight: 700;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    width: 100%;
    border: 1px solid rgba(11,17,23,0.18);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    outline: 0;
}

.contact-form__textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form__input:focus-visible,
.contact-form__select:focus-visible,
.contact-form__textarea:focus-visible {
    border-color: #0a8795;
    box-shadow: 0 0 0 3px rgba(46,199,211,0.18);
}

.contact-form__submit {
    min-height: 50px;
    border-radius: 8px;
    cursor: pointer;
}

.contact-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-feedback {
    display: none;
    padding: 18px;
    border-radius: 8px;
    background: rgba(46, 199, 211, 0.12);
    border: 1px solid rgba(46, 199, 211, 0.24);
}

.contact-feedback.is-shown {
    display: block;
}

.contact-feedback--error {
    background: rgba(255, 64, 93, 0.10);
    border-color: rgba(255, 64, 93, 0.25);
}

.contact-feedback__title {
    margin: 0 0 6px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero__visual {
        min-height: 610px;
    }

    .phone {
        margin: 0 auto;
    }

    .score-ticket {
        left: 50%;
        transform: translateX(-190px);
    }

    .challenge-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 760px) {
    .nav__toggle {
        display: block;
    }

    .nav__links {
        position: fixed;
        top: var(--nav-h);
        left: 12px;
        right: 12px;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #101c25;
        box-shadow: 0 24px 48px rgba(0,0,0,0.34);
    }

    .nav__links.is-open {
        display: grid;
    }

    .nav__link,
    .nav__cta,
    .lang__button {
        width: 100%;
        justify-content: flex-start;
    }

    .lang__menu {
        position: static;
        margin-top: 8px;
    }

    .hero {
        min-height: 0;
        padding-top: 124px;
    }

    .hero h1 {
        font-size: 60px;
    }

    .hero__subtitle {
        font-size: 24px;
    }

    .hero__text {
        font-size: 16px;
    }

    .section-head h2,
    .split-copy h2,
    .policy-hero__title {
        font-size: 40px;
    }

    .challenge-grid,
    .feature-grid,
    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .phone {
        width: 306px;
        height: 594px;
    }

    .app-preview {
        height: 532px;
    }

    .mini-map {
        height: 276px;
    }

    .score-ticket {
        transform: none;
        left: 12px;
        bottom: 18px;
    }

    .footer {
        display: grid;
    }
}

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

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