/* Run&Win website. Plain CSS, no scripts, no web fonts, nothing loaded from other sites.
   Phone first (360 px), then tablet and desktop. All animations stop for "reduce motion". */

:root {
  --bg: #0b0b0d;
  --bg-2: #101115;
  --card: #15161b;
  --card-2: #1c1d23;
  --line: #2a2b33;
  --fg: #f5f5f7;
  --muted: #a3a3ad;
  --accent: #39ff88;
  --accent-ink: #04130a;
  --pink: #ff3fa4;
  --orange: #ff9f1c;
  --cyan: #2ec4ff;
  --purple: #9b5cff;
  --gold: #ffd23f;
  --radius: 20px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* --- header ---------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 13, 0.82); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.logo { font-weight: 900; font-style: italic; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--accent); text-decoration: none; margin-right: auto; }
.logo span { color: var(--fg); }
.nav { display: none; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--fg); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lang a { display: block; min-width: 40px; padding: 5px 10px; border-radius: 999px; text-align: center; font-weight: 800; font-size: 0.8rem; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
.lang a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.lang a:not([aria-current]):hover { color: var(--fg); }

/* --- hero ------------------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 56px; }
.hero-bg { position: absolute; inset: -6%; z-index: -2; width: 112%; height: 112%; max-width: none; object-fit: cover; opacity: 0.6;
  animation: drift 38s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 18% 20%, rgba(57, 255, 136, 0.16), transparent 70%),
    radial-gradient(50% 40% at 90% 70%, rgba(155, 92, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.55) 0%, rgba(11, 11, 13, 0.82) 60%, var(--bg) 100%); }
.hero .wrap { display: grid; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(57, 255, 136, 0.35);
  background: rgba(57, 255, 136, 0.08); color: var(--accent); font-weight: 700; font-size: 0.8rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.7); animation: ping 2s infinite; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(2.3rem, 10.5vw, 4.4rem); font-weight: 900; letter-spacing: -0.03em; }
.hero h1 .glow { background: linear-gradient(90deg, var(--accent), #b6ffd5 40%, var(--accent) 80%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.lead { color: #d0d0d8; font-size: 1.08rem; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 16px;
  font-weight: 800; text-decoration: none; font-size: 1rem; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn small { display: block; font-weight: 600; font-size: 0.75rem; opacity: 0.8; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(57, 255, 136, 0.7); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(57, 255, 136, 0.85); }
.btn.ghost { border: 1px solid var(--line); background: rgba(21, 22, 27, 0.8); color: var(--fg); }
.btn.ghost:hover { border-color: #3a3b45; }
.btn .ico { width: 22px; height: 22px; flex: none; }
.btn-stack { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 0.88rem; }
.facts span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg) translateY(-2px); }

/* The phone with the app screen (drawn, not a screenshot). */
.phone-area { position: relative; display: grid; place-items: center; }
.phone-area::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(rgba(57, 255, 136, 0.28), transparent 65%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
.phone { position: relative; width: min(290px, 78vw); aspect-ratio: 300 / 610; padding: 9px; border-radius: 42px; background: linear-gradient(145deg, #2b2c33, #121317);
  box-shadow: 0 0 0 1px #3a3b44, 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(57, 255, 136, 0.5); transform: rotate(-3deg); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0e0f13; }
.screen-svg { width: 100%; height: 100%; }
.notch { position: absolute; top: 9px; left: 50%; width: 34%; height: 20px; transform: translateX(-50%); border-radius: 0 0 14px 14px; background: #121317; z-index: 3; }
.hud { position: absolute; top: 34px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; z-index: 2; }
.hud span { padding: 5px 9px; border-radius: 12px; background: rgba(11, 11, 13, 0.85); border: 1px solid var(--line); font-size: 0.68rem; font-weight: 700; }
.hud b { color: var(--accent); }
.rec { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2; padding: 10px 12px; border-radius: 18px; background: rgba(11, 11, 13, 0.9); border: 1px solid var(--line); }
.rec-row { display: flex; justify-content: space-between; font-size: 0.62rem; color: var(--muted); }
.rec-row b { display: block; font-size: 0.95rem; color: var(--fg); }
.rec-live { display: inline-flex; align-items: center; gap: 5px; font-size: 0.6rem; font-weight: 800; color: var(--accent); }
.rec-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.rec-stop { margin-top: 8px; padding: 7px; border-radius: 10px; background: #ff4d5e; color: #fff; text-align: center; font-weight: 900; font-size: 0.72rem; letter-spacing: 0.06em; }
.screen-toast { position: absolute; top: 74px; left: 50%; z-index: 2; width: max-content; max-width: 86%; transform: translateX(-50%); padding: 8px 14px; border-radius: 14px;
  background: rgba(11, 11, 13, 0.92); border: 1px solid var(--accent); text-align: center; font-weight: 800; font-size: 0.78rem; opacity: 0; animation: toast 9s ease infinite; }
.screen-toast small { display: block; color: var(--accent); font-size: 0.7rem; }
.cap path { fill: var(--accent); fill-opacity: 0.5; stroke: var(--accent); stroke-width: 1; opacity: 0; animation: fill 9s ease infinite; }
.cap .c2 { animation-name: fill2; }
.cap .c3 { animation-name: fill3; }
.cap .c4 { animation-name: fill4; }
.route { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 9s ease-in-out infinite; }
.finish { fill: rgba(255, 255, 255, 0.1); stroke: #fff; stroke-width: 1.6; stroke-dasharray: 4 3; animation: finish 9s ease infinite; }
.me { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.me-halo { fill: var(--accent); opacity: 0.25; transform-box: fill-box; transform-origin: center; animation: halo 1.8s ease-out infinite; }

/* --- sections -------------------------------------------------------------------------- */
section { padding: 64px 0; }
.alt { background: var(--bg-2); border-top: 1px solid rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.kicker { color: var(--accent); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.title { margin: 8px 0 12px; font-size: clamp(1.7rem, 6.5vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; }
.sub { color: var(--muted); max-width: 640px; font-size: 1.02rem; }

.steps { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 20px 18px 20px 70px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.95rem; }

.feature { display: grid; gap: 28px; align-items: center; }
.feature + .feature { margin-top: 64px; }
.feature .art { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 4 / 3; }
.feature .art img { width: 100%; height: 100%; object-fit: cover; }
.feature .art.zoom img { animation: drift 30s ease-in-out infinite alternate; }
.points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 28px; color: #d0d0d8; }
.points li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--accent); }

.modes { display: grid; gap: 12px; margin-top: 28px; }
.mode { position: relative; overflow: hidden; padding: 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.mode::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; opacity: 0.16; filter: blur(6px); }
.mode.walk::after { background: var(--accent); }
.mode.bike::after { background: var(--cyan); }
.mode img { width: 46px; height: 46px; padding: 10px; border-radius: 50%; margin-bottom: 14px; }
.mode.walk img { background: rgba(57, 255, 136, 0.14); }
.mode.bike img { background: rgba(46, 196, 255, 0.14); }
.mode h3 { font-size: 1.25rem; margin-bottom: 6px; }
.mode p { color: var(--muted); font-size: 0.95rem; }

.ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.rank { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.rank img { width: 56px; height: 56px; transition: transform 0.25s ease; }
.rank:hover img { transform: translateY(-4px) scale(1.06); }
.rank strong { font-size: 0.9rem; line-height: 1.2; }
.rank span { color: var(--muted); font-size: 0.75rem; }
.rank.king { border-color: rgba(255, 210, 63, 0.5); background: linear-gradient(180deg, rgba(255, 210, 63, 0.1), var(--card)); }
.rank.king img { animation: float 4s ease-in-out infinite; }

.cards { display: grid; gap: 12px; margin-top: 28px; }
.card { position: relative; padding: 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.card h3 { font-size: 1.2rem; margin: 12px 0 6px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.badge { position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; color: var(--gold); border: 1px solid rgba(255, 210, 63, 0.4); background: rgba(255, 210, 63, 0.08); }
.card-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.card-ico img { width: 26px; height: 26px; }
.ico-gold { background: rgba(255, 210, 63, 0.14); }
.ico-pink { background: rgba(255, 63, 164, 0.14); }
.ico-cyan { background: rgba(46, 196, 255, 0.14); }

.battle { margin-top: 18px; display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 700; }
.bar i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: left; animation: grow 1.6s ease-out both; }
.bar:nth-child(1) i { width: 92%; }
.bar:nth-child(2) i { width: 74%; animation-delay: 0.15s; background: linear-gradient(90deg, var(--pink), var(--orange)); }
.bar:nth-child(3) i { width: 61%; animation-delay: 0.3s; background: linear-gradient(90deg, var(--purple), var(--pink)); }
.bar:nth-child(4) i { width: 45%; animation-delay: 0.45s; background: linear-gradient(90deg, var(--orange), var(--gold)); }
.caption { margin-top: 10px; color: var(--muted); font-size: 0.75rem; }

.privacy { display: grid; gap: 12px; margin-top: 28px; }
.privacy div { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(57, 255, 136, 0.05), var(--card)); }
.privacy h3 { font-size: 1.05rem; margin-bottom: 6px; }
.privacy p { color: var(--muted); font-size: 0.93rem; }

/* --- download -------------------------------------------------------------------------- */
.download { position: relative; overflow: hidden; isolation: isolate; padding: 30px 20px; border-radius: 28px; border: 1px solid rgba(57, 255, 136, 0.35);
  background: radial-gradient(80% 120% at 100% 0%, rgba(57, 255, 136, 0.2), transparent 60%), var(--card); }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/skopje-map.svg) center / cover; opacity: 0.18; }
.download .title { margin-top: 0; }
.verify { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.verify summary { cursor: pointer; color: var(--fg); font-weight: 600; }
.verify p { margin: 8px 0 0; }
.verify code { display: block; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 0.72rem; line-height: 1.5; word-break: break-all; }
.verify a { color: var(--accent); }
.install { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: inst; }
.install li { position: relative; padding-left: 34px; color: #d0d0d8; font-size: 0.95rem; }
.install li::before { counter-increment: inst; content: counter(inst); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(57, 255, 136, 0.15); color: var(--accent); font-weight: 800; font-size: 0.8rem; }

/* --- footer ---------------------------------------------------------------------------- */
.foot { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; text-align: center; }
.foot .logo { display: inline-block; margin: 0 0 10px; }
.foot a { color: var(--fg); }

/* --- animations ------------------------------------------------------------------------ */
@keyframes drift { from { transform: scale(1.02) translate(-1.5%, -1%); } to { transform: scale(1.08) translate(1.5%, 1%); } }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(57, 255, 136, 0); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8; } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes halo { from { transform: scale(0.6); opacity: 0.5; } to { transform: scale(1.9); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-5px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes draw { 0% { stroke-dashoffset: 100; } 50%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes finish { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes fill { 0%, 50% { opacity: 0; } 54%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fill2 { 0%, 53% { opacity: 0; } 57%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fill3 { 0%, 56% { opacity: 0; } 60%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fill4 { 0%, 59% { opacity: 0; } 63%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes toast { 0%, 52% { opacity: 0; transform: translate(-50%, -8px); } 56%, 86% { opacity: 1; transform: translate(-50%, 0); } 92%, 100% { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-text > * { animation: rise 0.7s ease-out both; }
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }
.hero-text > :nth-child(5) { animation-delay: 0.32s; }
.phone-area { animation: rise 0.9s 0.2s ease-out both; }

/* Sections come in as they scroll into view, where the browser can do it without scripts. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .route { stroke-dashoffset: 0; }
  .cap path, .screen-toast { opacity: 1; }
  .finish { opacity: 0; }
}

/* --- bigger screens -------------------------------------------------------------------- */
@media (min-width: 560px) {
  .ranks { grid-template-columns: repeat(6, 1fr); }
  .modes, .privacy { grid-template-columns: repeat(2, 1fr); }
  .privacy div:last-child { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .wrap { padding: 0 28px; }
  .nav { display: flex; }
  .hero { padding: 70px 0 90px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  section { padding: 96px 0; }
  .steps, .cards { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature.flip .art { order: 2; }
  .privacy { grid-template-columns: repeat(3, 1fr); }
  .privacy div:last-child { grid-column: auto; }
  .download { padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
  .download .cta { margin-top: 0; flex-direction: column; align-items: stretch; }
}
@media (min-width: 1040px) {
  .phone { width: 310px; }
}

/* Privacy policy, terms and account deletion: plain, readable long text. */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 24px; font-size: 0.9rem; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; color: var(--fg); }
.legal p, .legal li { color: #d0d0d8; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a, .legal-links a { color: var(--accent); }
.legal-links { margin-top: 6px; font-size: 0.85rem; }
.nav a[aria-current="page"] { color: var(--accent); }
