/* Moscovia Never Sleeps — polished CRT/tactical design system
   Shared stylesheet for all marketing + legal pages. */

:root {
    --bg: #050a15;
    --panel: #0a1322;
    --green: #33ff66;
    --accent: #ff3366;
    --blue: #8ab4f8;
    --body: #b9c6e6;
    --bright: #e8eefc;
    --dim: #4a5a7a;
    --line: rgba(51, 255, 102, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }

body {
    background-color: var(--bg);
    color: var(--blue);
    font-family: 'VT323', monospace;
    font-size: clamp(18px, 1.2vw + 15px, 21px);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-wrap: break-word;
    background-image:
        linear-gradient(rgba(51, 255, 102, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 255, 102, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
}

/* ambient overlays */
.scanline {
    position: fixed; left: 0; right: 0; top: 0; height: 140px;
    z-index: 51; pointer-events: none;
    background: linear-gradient(0deg, transparent 0%, rgba(51, 255, 102, 0.07) 50%, transparent 100%);
    animation: scan 9s linear infinite;
}
@keyframes scan { 0% { transform: translateY(-110%); } 100% { transform: translateY(110%); } }
body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50;
    background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
    .scanline { animation: none; display: none; }
    .brand-dot { animation: none; }
}
::selection { background: var(--green); color: var(--bg); }

/* ---------- HUD top bar ---------- */
.topbar {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    max-width: 1000px; margin: 0 auto;
    padding: 16px clamp(18px, 4vw, 40px);
    border-bottom: 1px solid var(--line);
}
.page-home .topbar { max-width: 1180px; }
.page-legal .topbar { max-width: 880px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-dot {
    width: 9px; height: 9px; background: var(--green);
    box-shadow: 0 0 9px var(--green); animation: blink 2.4s steps(1) infinite;
}
.brand-name {
    font-family: 'Press Start 2P', monospace; font-size: 13px; color: var(--green);
    letter-spacing: 1px; text-shadow: 0 0 10px rgba(51, 255, 102, 0.5);
}

.nav-cluster {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: clamp(12px, 2.2vw, 24px);
    font-size: 19px; letter-spacing: 0.5px;
}
.nav-cluster a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
.nav-cluster a:hover { color: var(--green); }
.nav-cluster a.active { color: var(--green); text-shadow: 0 0 8px rgba(51, 255, 102, 0.5); }
.lang { display: inline-flex; gap: 9px; padding-left: 12px; border-left: 1px solid rgba(138, 180, 248, 0.25); white-space: nowrap; }
.lang a { color: var(--accent); }
.lang a.active { color: #fff; text-shadow: none; }

/* ---------- page wrapper ---------- */
.wrap {
    position: relative; z-index: 10;
    max-width: 1000px; margin: 0 auto;
    padding: clamp(28px, 5vw, 52px) clamp(18px, 4vw, 40px) 70px;
}
.page-home .wrap { max-width: 1180px; }
.page-legal .wrap { max-width: 880px; }

/* ---------- type helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Press Start 2P', monospace; font-size: 10px;
    letter-spacing: 1px; color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
.eyebrow.cyr { font-family: 'VT323', monospace; font-size: clamp(15px, 1.9vw, 18px); letter-spacing: 2px; }

.title {
    font-family: 'Press Start 2P', monospace; color: var(--green);
    line-height: 1.32; margin: 0 0 16px; text-shadow: 0 0 16px rgba(51, 255, 102, 0.42);
}
.title.hero-title { font-size: clamp(24px, 4.6vw, 46px); }
.title.page-title { font-size: clamp(20px, 3.4vw, 34px); }
.title.cyr-title { font-family: 'VT323', monospace; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; }

.subtitle { font-family: 'Press Start 2P', monospace; font-size: clamp(9px, 1.6vw, 11px); letter-spacing: 2px; color: var(--accent); margin: 0 0 36px; }
.subtitle.cyr { font-family: 'VT323', monospace; font-size: clamp(17px, 2.2vw, 22px); letter-spacing: 1px; }

/* section headings */
.sec { margin-bottom: clamp(56px, 9vw, 96px); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.sec-num { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--accent); }
.h2 {
    font-family: 'Press Start 2P', monospace; font-size: clamp(15px, 2.6vw, 22px);
    color: var(--green); margin: 0; letter-spacing: 1px; line-height: 1.1;
    text-shadow: 0 0 12px rgba(51, 255, 102, 0.35);
}
.h2.cyr { font-family: 'VT323', monospace; font-size: clamp(24px, 3.6vw, 32px); }

/* underlined section heading (content + legal pages) */
.h2-line {
    font-family: 'Press Start 2P', monospace; font-size: clamp(13px, 2.2vw, 18px);
    color: var(--green); letter-spacing: 1px; line-height: 1.1;
    margin: clamp(40px, 6vw, 56px) 0 18px; padding-bottom: 14px;
    border-bottom: 1px dashed rgba(138, 180, 248, 0.3);
    display: flex; align-items: center; gap: 12px;
    text-shadow: 0 0 12px rgba(51, 255, 102, 0.25);
}
.h2-line::before { content: '//'; color: var(--accent); }
.h2-line.cyr { font-family: 'VT323', monospace; font-size: clamp(22px, 2.9vw, 28px); }
.wrap > .h2-line:first-of-type { margin-top: 0; }

/* ---------- hero ---------- */
.hero {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
    gap: clamp(28px, 4vw, 52px); align-items: center; margin-bottom: clamp(46px, 7vw, 78px);
}
.tagline { font-size: clamp(22px, 2.4vw, 27px); color: var(--bright); line-height: 1.45; margin: 0 0 30px; max-width: 34ch; }
.tagline .hl { color: var(--green); }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avail { font-size: 18px; color: var(--dim); letter-spacing: 1px; }
.app-btn { display: inline-block; transition: transform 0.2s, filter 0.2s; }
.app-btn:hover { transform: translateY(-2px); filter: drop-shadow(0 0 14px rgba(51, 255, 102, 0.4)); }
.app-btn img { height: 54px; display: block; max-width: 100%; }

/* tactical radar display */
.tactical {
    position: relative; aspect-ratio: 1 / 0.86;
    border: 1px solid rgba(51, 255, 102, 0.28);
    background: linear-gradient(160deg, rgba(10, 19, 34, 0.9), rgba(5, 10, 21, 0.95));
    box-shadow: inset 0 0 60px rgba(51, 255, 102, 0.06), 0 0 30px rgba(0, 0, 0, 0.5);
}
.hud { position: absolute; font-size: 15px; color: var(--dim); letter-spacing: 1px; }
.hud.tl { top: 10px; left: 12px; font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--green); }
.hud.tr { top: 10px; right: 12px; }
.hud.bl { bottom: 10px; left: 12px; }
.hud.br { bottom: 10px; right: 12px; display: flex; align-items: center; gap: 7px; color: var(--green); }
.live-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 7px var(--green); }
.corner { position: absolute; width: 14px; height: 14px; }
.corner.c-tl { top: 5px; left: 5px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.corner.c-tr { top: 5px; right: 5px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.corner.c-bl { bottom: 5px; left: 5px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.corner.c-br { bottom: 5px; right: 5px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.tactical svg { position: absolute; inset: 26px 14px; width: calc(100% - 28px); height: calc(100% - 52px); }

/* ---------- stats ---------- */
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 1px; background: var(--line); border: 1px solid var(--line);
    margin-bottom: clamp(56px, 9vw, 96px);
}
.stat { background: #070d1a; padding: 24px 22px; }
.stat-v { font-family: 'Press Start 2P', monospace; font-size: clamp(20px, 3vw, 30px); color: var(--green); text-shadow: 0 0 12px rgba(51, 255, 102, 0.4); margin-bottom: 12px; }
.stat-l { font-size: 17px; color: var(--dim); letter-spacing: 1px; line-height: 1.3; }

/* ---------- core-loop steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.step-card { border: 1px solid rgba(138, 180, 248, 0.2); background: rgba(10, 19, 34, 0.45); padding: 26px 24px 28px; }
.step-n { font-family: 'Press Start 2P', monospace; font-size: 13px; color: var(--accent); margin-bottom: 18px; }
.step-k { font-family: 'Press Start 2P', monospace; font-size: 14px; color: var(--green); letter-spacing: 1px; margin-bottom: 14px; }
.step-k.cyr { font-family: 'VT323', monospace; font-size: 24px; margin-bottom: 10px; }
.step-card p { font-size: 19px; color: var(--body); margin: 0; line-height: 1.5; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.feature-card { border: 1px solid var(--line); background: rgba(10, 19, 34, 0.5); padding: 26px 24px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { border-color: rgba(51, 255, 102, 0.55); transform: translateY(-3px); box-shadow: 0 0 22px rgba(51, 255, 102, 0.12); }
.fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fc-tick { width: 8px; height: 8px; background: var(--accent); }
.fc-i { font-size: 15px; color: #2c3a56; letter-spacing: 1px; }
.feature-card h3 { font-family: 'Press Start 2P', monospace; font-size: 12px; color: #fff; line-height: 1.5; margin: 0 0 14px; }
.feature-card.cyr h3 { font-family: 'VT323', monospace; font-size: clamp(20px, 2.6vw, 24px); line-height: 1.25; margin-bottom: 12px; }
.feature-card p { font-size: 19px; color: var(--body); margin: 0; line-height: 1.5; }
.feature-card.cyr p { font-size: 18px; }

/* ---------- panels (lede + closing CTA) ---------- */
.panel {
    position: relative;
    border: 1px solid rgba(51, 255, 102, 0.28);
    background: linear-gradient(160deg, rgba(10, 19, 34, 0.85), rgba(5, 10, 21, 0.95));
    box-shadow: inset 0 0 50px rgba(51, 255, 102, 0.05);
    padding: clamp(28px, 4vw, 40px);
}
.panel::before, .panel::after { content: ''; position: absolute; width: 15px; height: 15px; }
.panel::before { top: 7px; left: 7px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.panel::after { bottom: 7px; right: 7px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.panel.cta { text-align: center; border-color: rgba(51, 255, 102, 0.3); padding: clamp(40px, 6vw, 64px) clamp(22px, 5vw, 48px); }
.panel.cta::before { border-color: var(--green); }
.panel.cta::after { border-color: var(--green); }
.lede { font-size: clamp(22px, 2.6vw, 27px); color: var(--bright); line-height: 1.5; margin: 0 0 26px; }
.cta .lead { font-size: clamp(22px, 2.6vw, 28px); color: #fff; margin: 0 0 8px; line-height: 1.45; }
.cta .sub { font-size: clamp(19px, 2.2vw, 22px); color: var(--dim); margin: 0 0 30px; }

/* ---------- prose ---------- */
.prose { font-size: clamp(19px, 2.1vw, 23px); color: var(--body); line-height: 1.6; margin: 0 0 18px; max-width: 70ch; }
.prose.lh-loose { line-height: 1.7; margin-bottom: 24px; }
.prose.dim { color: var(--dim); font-size: clamp(18px, 2vw, 21px); }
.prose strong { color: #fff; }
.prose em { color: var(--green); font-style: normal; }
.prose a, .link { color: var(--green); text-decoration: none; border-bottom: 1px dashed rgba(51, 255, 102, 0.5); }
.prose a:hover, .link:hover { color: #fff; }
.step-word { color: var(--accent); font-weight: bold; }
.lead-in { font-size: clamp(22px, 2.5vw, 26px); color: var(--bright); line-height: 1.5; margin: 0 0 12px; max-width: 60ch; }

/* ---------- legal extras ---------- */
.updated { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(51, 255, 102, 0.25); padding: 6px 14px; font-size: 15px; color: var(--dim); letter-spacing: 1px; margin-bottom: 30px; }
.updated .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.bullets { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.bullets li { display: flex; gap: 12px; font-size: clamp(18px, 2vw, 22px); color: var(--body); line-height: 1.5; max-width: 70ch; }
.bullets li::before { content: '▸'; color: var(--accent); flex-shrink: 0; }
.bullets strong { color: #fff; }

/* ---------- support how-to mini cards ---------- */
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; margin: 0 0 24px; }
.howto-card { border: 1px solid rgba(138, 180, 248, 0.2); background: rgba(10, 19, 34, 0.45); padding: 22px; }
.howto-card .k { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--accent); margin-bottom: 14px; }
.howto-card.cyr .k { font-family: 'VT323', monospace; font-size: 23px; margin-bottom: 10px; letter-spacing: 1px; }
.howto-card p { font-size: 18px; color: var(--body); margin: 0; }
.howto-card strong { color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid rgba(138, 180, 248, 0.2); background: rgba(10, 19, 34, 0.42); padding: 24px clamp(20px, 3vw, 28px); transition: border-color 0.2s; }
.faq-item:hover { border-color: rgba(51, 255, 102, 0.4); }
.faq-item h3 { display: flex; align-items: baseline; gap: 12px; font-family: 'VT323', monospace; font-weight: normal; font-size: clamp(21px, 2.3vw, 25px); color: #fff; margin: 0 0 10px; line-height: 1.3; }
.faq-item h3::before { content: 'Q'; font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--green); }
.faq-item p { font-size: clamp(18px, 2vw, 21px); color: var(--body); line-height: 1.55; margin: 0; padding-left: 27px; }
.faq-item a { color: var(--green); text-decoration: none; border-bottom: 1px dashed rgba(51, 255, 102, 0.5); }

/* ---------- altitude cross-section ---------- */
.alt { border: 1px solid rgba(51, 255, 102, 0.2); background: rgba(10, 19, 34, 0.45); padding: clamp(22px, 3vw, 30px); margin: 0 0 24px; }
.alt-cap { font-family: 'Press Start 2P', monospace; font-size: 9px; letter-spacing: 1px; color: var(--dim); margin-bottom: 22px; }
.alt-cap.cyr { font-family: 'VT323', monospace; font-size: 16px; }
.alt-row { display: flex; align-items: center; gap: 16px; }
.alt-row + .alt-row { margin-top: 16px; }
.alt-band { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--green); width: 52px; flex-shrink: 0; }
.alt-band.cyr { font-family: 'VT323', monospace; font-size: 19px; width: 92px; letter-spacing: 1px; }
.alt-track { position: relative; flex: 1; height: 0; border-top: 1px dashed rgba(51, 255, 102, 0.35); }
.alt-mark { position: absolute; top: -7px; width: 12px; height: 12px; background: var(--green); box-shadow: 0 0 8px rgba(51, 255, 102, 0.6); }
.alt-note { font-size: 16px; color: var(--dim); width: 96px; flex-shrink: 0; }
.alt-note.cyr { width: 110px; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(48px, 8vw, 72px); padding-top: 30px; border-top: 1px solid rgba(51, 68, 102, 0.6); text-align: center; color: var(--dim); font-size: 17px; line-height: 1.6; }
.site-footer p { margin: 0 0 14px; }
.footer-note { max-width: 70ch; margin: 0 auto 8px; }
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: #779; text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.footer-links .sep { color: #2c3a56; }

.center { text-align: center; }
.mt-cta { margin-top: 8px; }

/* ---------- mobile ---------- */
@media (max-width: 680px) {
    .topbar { flex-direction: column; text-align: center; gap: 14px; }
    .nav-cluster { justify-content: center; font-size: 18px; }
    .title.hero-title { font-size: clamp(20px, 7.6vw, 40px); }
    .lang { padding-left: 0; border-left: none; }
    .alt-note { display: none; }
}
@media (max-width: 420px) {
    .nav-cluster { gap: 10px 14px; font-size: 17px; }
}
