/* Spatial Patch — arcade landing (logo-driven neon palette)
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sp-bg-deep: #030715;
    --sp-bg: #050a18;
    --sp-panel: rgba(12, 22, 48, 0.72);
    --sp-panel-border: rgba(0, 229, 255, 0.22);
    --sp-cyan: #00e5ff;
    --sp-cyan-dim: rgba(0, 229, 255, 0.15);
    --sp-magenta: #ff2bd6;
    --sp-magenta-dim: rgba(255, 43, 214, 0.18);
    --sp-lime: #c4ff20;
    --sp-orange: #ff8c42;
    --sp-navy: #1a237e;
    --sp-text: #e9f2ff;
    --sp-muted: #8aa4c9;
    --sp-radius: 14px;
    --sp-radius-lg: 22px;
    --sp-font-display: "Orbitron", ui-sans-serif, system-ui, sans-serif;
    --sp-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sp-max: 880px;
    --sp-glow-cyan: 0 0 32px rgba(0, 229, 255, 0.35);
    --sp-glow-pink: 0 0 28px rgba(255, 43, 214, 0.3);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 112px;
    }
}

body.sp {
    font-family: var(--sp-font-body);
    background: var(--sp-bg-deep);
    color: var(--sp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* ── Header ── */
.sp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 7, 21, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.sp-nav {
    max-width: var(--sp-max);
    margin: 0 auto;
    padding: 0.65rem clamp(1rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sp-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--sp-text);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.sp-logo img:first-child {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: var(--sp-glow-cyan);
}

.sp-logo-mg {
    height: 22px;
    width: auto;
    border-radius: 5px;
    opacity: 0.85;
}

.sp-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
}

.sp-nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sp-muted);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.sp-nav-links a:hover {
    color: var(--sp-cyan);
    border-color: rgba(0, 229, 255, 0.35);
    background: rgba(0, 229, 255, 0.06);
}

/* ── Hero ── */
.sp-hero {
    position: relative;
    min-height: min(92vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 10vw, 6rem) 1rem clamp(3rem, 6vw, 4rem);
    overflow: hidden;
}

.sp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 229, 255, 0.16), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 60%, rgba(255, 43, 214, 0.12), transparent 50%),
        radial-gradient(ellipse 45% 35% at 0% 70%, rgba(255, 140, 66, 0.1), transparent 45%),
        linear-gradient(180deg, #050a18 0%, #030715 100%);
    pointer-events: none;
}

.sp-hero-gridfloor {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 75%, black 20%, transparent 70%);
    pointer-events: none;
}

.sp-hero-stars {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90% 65%, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.sp-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--sp-max);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (max-width: 900px) {
    .sp-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.sp-hero-copy {
    padding-right: 0.5rem;
}

@media (max-width: 900px) {
    .sp-hero-copy {
        padding-right: 0;
        order: 2;
    }
}

.sp-hud-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sp-lime);
    background: rgba(196, 255, 32, 0.08);
    border: 1px solid rgba(196, 255, 32, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px rgba(196, 255, 32, 0.15);
}

.sp-hud-pill i {
    font-size: 0.75rem;
    color: var(--sp-cyan);
}

.sp-title {
    font-family: var(--sp-font-display);
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: linear-gradient(105deg, var(--sp-text) 0%, var(--sp-cyan) 45%, var(--sp-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.25));
}

.sp-tagline {
    font-family: var(--sp-font-display);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sp-muted);
    margin-bottom: 1.25rem;
}

.sp-lede {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: var(--sp-muted);
    max-width: 32rem;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .sp-lede {
        margin-left: auto;
        margin-right: auto;
    }
}

.sp-hud-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .sp-hud-stats {
        justify-content: center;
    }
}

.sp-stat {
    background: var(--sp-panel);
    border: 1px solid var(--sp-panel-border);
    border-radius: var(--sp-radius);
    padding: 0.65rem 1rem;
    min-width: 5.5rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.sp-stat-val {
    font-family: var(--sp-font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--sp-cyan);
    line-height: 1;
    text-shadow: var(--sp-glow-cyan);
}

.sp-stat-lbl {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sp-muted);
    margin-top: 0.35rem;
}

.sp-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 900px) {
    .sp-btn-row {
        justify-content: center;
    }
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.sp-btn--primary {
    color: #031018;
    background: linear-gradient(135deg, var(--sp-cyan), #40f6ff);
    box-shadow: var(--sp-glow-cyan), 0 6px 24px rgba(0, 0, 0, 0.4);
}

.sp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.55), 0 10px 32px rgba(0, 0, 0, 0.45);
}

.sp-btn--ghost {
    color: var(--sp-text);
    border: 1px solid rgba(255, 43, 214, 0.45);
    background: rgba(255, 43, 214, 0.08);
}

.sp-btn--ghost:hover {
    border-color: var(--sp-magenta);
    box-shadow: var(--sp-glow-pink);
}

.sp-hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 900px) {
    .sp-hero-art {
        order: 1;
    }
}

.sp-logo-xl {
    width: min(280px, 72vw);
    height: auto;
    border-radius: 28px;
    filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.35)) drop-shadow(0 0 60px rgba(255, 43, 214, 0.2));
    animation: sp-float 6s ease-in-out infinite;
}

@keyframes sp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sp-orbit {
    position: absolute;
    width: min(340px, 85vw);
    height: min(340px, 85vw);
    border: 1px dashed rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    animation: sp-spin 48s linear infinite;
    pointer-events: none;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

/* ── Sections ── */
.sp-section {
    padding: clamp(3.25rem, 7vw, 5rem) 1rem;
}

.sp-section--alt {
    background: rgba(8, 14, 32, 0.65);
    border-top: 1px solid rgba(0, 229, 255, 0.08);
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.sp-container {
    max-width: var(--sp-max);
    margin: 0 auto;
}

.sp-section-head {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.sp-eyebrow {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sp-orange);
    margin-bottom: 0.45rem;
}

.sp-section-head h2 {
    font-family: var(--sp-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sp-text);
    margin-bottom: 0.5rem;
}

.sp-section-head p {
    font-size: 0.92rem;
    color: var(--sp-muted);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.65;
}

/* How to play — arcade steps */
.sp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 800px) {
    .sp-steps {
        grid-template-columns: 1fr;
    }
}

.sp-step {
    position: relative;
    padding: 1.5rem 1.35rem;
    border-radius: var(--sp-radius-lg);
    background: var(--sp-panel);
    border: 1px solid var(--sp-panel-border);
    overflow: hidden;
}

.sp-step::before {
    content: attr(data-step);
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    font-family: var(--sp-font-display);
    font-size: 2.25rem;
    font-weight: 900;
    color: rgba(0, 229, 255, 0.08);
    line-height: 1;
}

.sp-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #031018;
}

.sp-step:nth-child(1) .sp-step-icon {
    background: linear-gradient(135deg, var(--sp-lime), #9ae610);
}

.sp-step:nth-child(2) .sp-step-icon {
    background: linear-gradient(135deg, var(--sp-cyan), #00a8cc);
}

.sp-step:nth-child(3) .sp-step-icon {
    background: linear-gradient(135deg, var(--sp-magenta), #cc0099);
}

.sp-step h3 {
    font-family: var(--sp-font-display);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    color: var(--sp-text);
}

.sp-step p {
    font-size: 0.88rem;
    color: var(--sp-muted);
    line-height: 1.55;
}

/* Tier matrix — game cards */
.sp-tier-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 1000px) {
    .sp-tier-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .sp-tier-grid {
        grid-template-columns: 1fr;
    }
}

.sp-tier {
    border-radius: var(--sp-radius);
    padding: 1.15rem 1rem;
    border: 2px solid transparent;
    background: var(--sp-panel);
    transition: transform 0.18s, box-shadow 0.18s;
}

.sp-tier:hover {
    transform: translateY(-4px);
}

.sp-tier--lime {
    border-color: rgba(196, 255, 32, 0.45);
    box-shadow: 0 0 24px rgba(196, 255, 32, 0.12);
}

.sp-tier--cyan {
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}

.sp-tier--orange {
    border-color: rgba(255, 140, 66, 0.45);
    box-shadow: 0 0 24px rgba(255, 140, 66, 0.12);
}

.sp-tier--magenta {
    border-color: rgba(255, 43, 214, 0.5);
    box-shadow: 0 0 24px rgba(255, 43, 214, 0.12);
}

.sp-tier--gold {
    border-color: rgba(255, 215, 100, 0.45);
    box-shadow: 0 0 28px rgba(255, 215, 100, 0.12);
}

.sp-tier-badge {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sp-muted);
    margin-bottom: 0.35rem;
}

.sp-tier h3 {
    font-family: var(--sp-font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    color: var(--sp-text);
}

.sp-tier-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sp-cyan);
    margin-bottom: 0.65rem;
}

.sp-tier p {
    font-size: 0.78rem;
    color: var(--sp-muted);
    line-height: 1.5;
}

.sp-tier-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    color: var(--sp-muted);
}

/* Perks grid */
.sp-perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

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

.sp-perk {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: var(--sp-radius);
    background: rgba(5, 10, 24, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.12);
    align-items: flex-start;
}

.sp-perk i {
    font-size: 1.35rem;
    color: var(--sp-orange);
    margin-top: 0.15rem;
}

.sp-perk h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--sp-text);
}

.sp-perk p {
    font-size: 0.85rem;
    color: var(--sp-muted);
    line-height: 1.55;
}

/* CTA strip */
.sp-cta {
    text-align: center;
    padding: clamp(3rem, 6vw, 4rem) 1rem;
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0, 229, 255, 0.12), transparent 55%),
        linear-gradient(180deg, rgba(10, 18, 42, 0.95), #030715);
    border-top: 1px solid rgba(255, 43, 214, 0.2);
}

.sp-cta h2 {
    font-family: var(--sp-font-display);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--sp-text);
}

.sp-cta p {
    font-size: 0.92rem;
    color: var(--sp-muted);
    margin-bottom: 1.5rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.sp-footer {
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #020510;
}

.sp-footer-inner {
    max-width: var(--sp-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.sp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}

.sp-footer-links a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sp-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.sp-footer-links a:hover {
    color: var(--sp-cyan);
}

.sp-footer-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.78rem;
    color: var(--sp-muted);
}

.sp-footer-copy img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    opacity: 0.85;
}

#download {
    scroll-margin-top: 100px;
}

@media (max-width: 900px) {
    #download {
        scroll-margin-top: 120px;
    }
}

/* ── Privacy policy (aligned with landing theme) ── */
.sp-privacy-hero {
    position: relative;
    padding: clamp(4.5rem, 10vw, 5.75rem) 1rem clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    overflow: hidden;
}

.sp-privacy-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0 auto;
}

.sp-privacy-title {
    font-family: var(--sp-font-display);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    background: linear-gradient(105deg, var(--sp-text) 0%, var(--sp-cyan) 50%, var(--sp-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sp-privacy-meta {
    font-size: 0.82rem;
    color: var(--sp-muted);
    margin: 0;
}

.sp-privacy-main {
    padding: clamp(2rem, 4vw, 2.75rem) 1rem clamp(3rem, 6vw, 4rem);
    background: rgba(8, 14, 32, 0.4);
    border-top: 1px solid rgba(0, 229, 255, 0.08);
}

.sp-privacy-prose {
    max-width: 600px;
    margin: 0 auto;
}

.sp-privacy-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sp-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    background: rgba(0, 229, 255, 0.06);
    transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.sp-privacy-back:hover {
    color: var(--sp-cyan);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.sp-privacy-prose h2 {
    font-family: var(--sp-font-display);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sp-text);
    margin: 2rem 0 0.65rem;
}

.sp-privacy-prose h2:first-of-type {
    margin-top: 0;
}

.sp-privacy-prose h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sp-orange);
    margin: 1.35rem 0 0.45rem;
}

.sp-privacy-prose p,
.sp-privacy-prose li {
    font-size: 0.9rem;
    color: var(--sp-muted);
    line-height: 1.7;
}

.sp-privacy-prose p {
    margin-bottom: 0.85rem;
}

.sp-privacy-prose ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.sp-privacy-prose li {
    margin-bottom: 0.4rem;
}

.sp-privacy-prose strong {
    color: var(--sp-text);
    font-weight: 600;
}

.sp-privacy-prose a {
    color: var(--sp-cyan);
    text-decoration: none;
    font-weight: 500;
}

.sp-privacy-prose a:hover {
    text-decoration: underline;
}

.sp-privacy-updated {
    margin-top: 2rem;
    font-size: 0.78rem;
    color: var(--sp-muted);
    opacity: 0.9;
}
