:root {
    color-scheme: dark;
    --bg: #000000;
    --panel: #101114;
    --panel-2: #17191f;
    --line: rgba(255, 255, 255, 0.14);
    --text: #f5f7fb;
    --muted: #a7afc0;
    --red: #ff3b30;
    --blue: #007aff;
    --green: #34c759;
    --yellow: #ffd60a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 4vw, 56px);
    background: rgba(0, 0, 0, 0.84);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 0 0 1px var(--line);
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

nav a {
    text-decoration: none;
}

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

.nav-cta {
    color: var(--text);
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    min-height: calc(100vh - 79px);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.76fr);
    align-items: center;
    gap: clamp(32px, 6vw, 86px);
    padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 86px) 46px;
    background:
        linear-gradient(90deg, rgba(255, 59, 48, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(0, 122, 255, 0.12), transparent 34%),
        var(--bg);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 7vw, 6.3rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.16rem;
}

.hero-text {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.button.primary {
    color: #05100a;
    background: var(--green);
}

.button.secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.phone-preview {
    justify-self: center;
    width: min(330px, 84vw);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: linear-gradient(180deg, #191b20, #07080a);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-top {
    width: 72px;
    height: 8px;
    margin: 0 auto 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
}

.game-board {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        #050608;
    background-size: 25% 25%;
}

.dot {
    position: absolute;
    width: 17%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid #000;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.dot.red { background: var(--red); }
.dot.blue { background: var(--blue); }
.dot.green { background: var(--green); }
.dot.red.a { left: 18%; top: 18%; }
.dot.red.b { left: 82%; top: 18%; }
.dot.blue.a { left: 18%; top: 82%; }
.dot.blue.b { left: 18%; top: 42%; }
.dot.green.a { left: 55%; top: 82%; }
.dot.green.b { left: 82%; top: 55%; }

.path {
    position: absolute;
    display: block;
    border-radius: 999px;
    z-index: 2;
}

.path.red {
    left: 18%;
    top: 18%;
    width: 64%;
    height: 10%;
    transform: translateY(-50%);
    background: var(--red);
}

.path.blue {
    left: 18%;
    top: 42%;
    width: 10%;
    height: 40%;
    transform: translateX(-50%);
    background: var(--blue);
}

.path.green {
    right: 18%;
    bottom: 18%;
    width: 29%;
    height: 29%;
    border-right: 26px solid var(--green);
    border-bottom: 26px solid var(--green);
}

.preview-label {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 0 clamp(20px, 6vw, 86px);
    border: 1px solid var(--line);
    background: var(--line);
}

.stats div {
    padding: 24px;
    background: #07080b;
}

.stats strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.stats span {
    color: var(--muted);
}

.section {
    padding: clamp(64px, 9vw, 110px) clamp(20px, 6vw, 86px);
}

.section-heading {
    max-width: 800px;
    margin-bottom: 34px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-grid article {
    min-height: 210px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.feature-grid p,
.legal-body p,
.site-footer p {
    color: var(--muted);
}

.legal {
    border-top: 1px solid var(--line);
}

.updated {
    color: var(--muted);
}

.legal-body {
    max-width: 920px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.legal-body h3:not(:first-child) {
    margin-top: 30px;
}

.legal-body a {
    color: #9dccff;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(20px, 6vw, 86px);
    border-top: 1px solid var(--line);
    background: #050506;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

@media (max-width: 900px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .phone-preview {
        justify-self: start;
    }

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

@media (max-width: 620px) {
    h1 {
        font-size: 3rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
    }
}

.contact-container {
    max-width: 600px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
}
