/* ═══════════════════════════════════════════════════════════════
   TRACEGAME landing — v2.2 (2026-09-29)
   Vercel-style layout, v2 palette: one brand red, one soft violet glow,
   green for "ok". No checkerboard grids. Brand wordmark in Orbitron.
   Previous version: backups/landing-2026-09-29-before-redesign
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Vazirmatn'; src: url('./fonts/Vazirmatn-Variable.woff2') format('woff2-variations'), url('./fonts/Vazirmatn-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('./fonts/ChakraPetch-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('./fonts/ChakraPetch-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('./fonts/Orbitron-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('./fonts/Orbitron-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --bg: #09090b;
  --bg-2: #0d0d10;
  --card: #111114;
  --card-2: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #ededef;
  --dim: #a1a1aa;
  --mute: #71717a;
  --brand: #e8404f;
  --brand-2: #ff7a6b;
  --brand-soft: rgba(232, 64, 79, 0.12);
  --violet: #8b7cf6;
  --ok: #34c77b;
  --red: #ff2f3f;            /* wordmark */
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Chakra Petch', 'Vazirmatn', system-ui, sans-serif;
  --brandfont: 'Orbitron', 'Chakra Petch', system-ui, sans-serif;
  --wrap: 1120px;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(232, 64, 79, 0.35); color: #fff; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono, .display { font-family: var(--display); }
.skip-link { position: absolute; top: -40px; right: 12px; background: #fff; color: #000; padding: 6px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ── brand word (nav + footer) ── */
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand .bw { font-family: var(--brandfont); font-weight: 800; font-size: 17px; letter-spacing: 0.04em; direction: ltr; color: #fff; }
.brand .bw b { color: var(--red); font-weight: 800; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--r-sm); font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 24px -10px rgba(232,64,79,0.7); }
.btn-primary:hover { background: #ef5361; box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 12px 32px -10px rgba(232,64,79,0.8); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.28); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(9, 9, 11, 0.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; font-size: 14.5px; color: var(--dim); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-btn { height: 36px; min-width: 40px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); color: var(--dim); font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; transition: color .2s, border-color .2s; }
.lang-btn:hover { color: var(--text); border-color: var(--line-2); }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.menu-btn svg { width: 18px; height: 18px; }
.mobile-menu { display: none; }

/* ── section scaffolding ── */
.section { padding: 112px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-2); direction: ltr; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.lead { font-size: 17px; color: var(--dim); margin-top: 16px; }

/* ── hero ── */
.hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-bg .glow { position: absolute; border-radius: 999px; filter: blur(80px); opacity: .55; animation: drift 18s var(--ease) infinite alternate; }
.hero-bg .glow.g1 { width: 520px; height: 360px; top: -120px; left: 50%; margin-left: -380px; background: rgba(232, 64, 79, 0.35); }
.hero-bg .glow.g2 { width: 460px; height: 320px; top: -60px; left: 50%; margin-left: 20px; background: rgba(139, 124, 246, 0.22); animation-duration: 22s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

.hero-in { text-align: center; max-width: 900px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); font-size: 13.5px; color: var(--dim); transition: border-color .2s, background-color .2s; }
.pill:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); }
.pill .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,199,123,.6); animation: pulse 2s ease-out infinite; }
.pill .go { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text); font-size: 12.5px; }
@keyframes pulse { to { box-shadow: 0 0 0 8px rgba(52,199,123,0); } }

/* TRACEGAME wordmark — Orbitron, TRACE white / GAME red, film grain + glitch */
.wordmark { position: relative; display: inline-block; direction: ltr; margin-top: 28px;
  font-family: var(--brandfont); font-weight: 800; font-size: clamp(26px, 4vw, 44px); line-height: 1.1; letter-spacing: 0.06em;
  animation: wm-jitter 6s steps(1) infinite; }
.wordmark .w1 { color: #fff; }
.wordmark .w2 { color: var(--red); }
/* grain: the same text, filled with noise, laid exactly over the letters */
.wordmark::after { content: attr(data-txt); position: absolute; inset: 0; pointer-events: none;
  background: var(--noise); background-size: 180px 180px; -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .45; mix-blend-mode: multiply; animation: grain .7s steps(1) infinite; }
/* glitch slice: a white/red shifted copy for a few frames */
.wordmark::before { content: attr(data-txt); position: absolute; inset: 0; pointer-events: none; color: #fff; opacity: 0;
  text-shadow: -2px 0 var(--red); animation: wm-slice 6s steps(1) infinite; }
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -40px 25px; } 40% { background-position: 30px -35px; }
  60% { background-position: -20px -50px; } 80% { background-position: 45px 15px; } 100% { background-position: 0 0; }
}
@keyframes wm-jitter {
  0%, 88%, 100% { transform: none; text-shadow: none; }
  89% { transform: translate(-2px, 0) skewX(-4deg); text-shadow: 3px 0 rgba(255,47,63,.7), -3px 0 rgba(255,255,255,.35); }
  90% { transform: translate(2px, 0); text-shadow: -2px 0 rgba(255,47,63,.6); }
  91% { transform: none; text-shadow: none; }
  95% { transform: translate(1px, 0); text-shadow: 2px 0 rgba(255,255,255,.4); }
  96% { transform: none; text-shadow: none; }
}
@keyframes wm-slice {
  0%, 88%, 92%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
  89% { opacity: .9; clip-path: inset(18% 0 58% 0); transform: translate(-3px, 0); }
  90% { opacity: .9; clip-path: inset(62% 0 12% 0); transform: translate(3px, 0); }
  91% { opacity: .8; clip-path: inset(40% 0 42% 0); transform: translate(-2px, 0); }
}

.h1 { font-size: clamp(38px, 6.4vw, 70px); line-height: 1.14; font-weight: 900; letter-spacing: -0.035em; margin-top: 18px; }
.h1 .soft { background: linear-gradient(180deg, #fff 20%, rgba(255,255,255,0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1 .hot { background: linear-gradient(100deg, var(--brand-2), var(--brand) 55%, #c1308d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--dim); max-width: 620px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--mute); }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 880px; margin: 56px auto 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,0.015); }
.stat { padding: 22px 18px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: 0.02em; color: #fff; direction: ltr; line-height: 1.2; }
.stat span { display: block; font-size: 13.5px; color: var(--dim); margin-top: 6px; }

/* hero visual — route card */
.hero-visual { position: relative; max-width: 880px; margin: 64px auto 0; }
.hero-visual::before { content: ''; position: absolute; inset: -1px; border-radius: 22px; padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03) 40%, rgba(232,64,79,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.rv { border-radius: 22px; background: linear-gradient(180deg, rgba(22,22,26,0.92), rgba(13,13,16,0.92)); box-shadow: 0 40px 120px -40px rgba(232,64,79,0.35), 0 30px 80px -30px rgba(0,0,0,0.8); overflow: hidden; }
.rv-bar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); direction: ltr; }
.rv-bar i { width: 10px; height: 10px; border-radius: 99px; background: rgba(255,255,255,0.14); }
.rv-bar .t { margin-left: 10px; font-family: var(--display); font-size: 12px; letter-spacing: .14em; color: var(--mute); }
.rv-bar .st { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--ok); }
.rv-bar .st::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; animation: pulse 2s ease-out infinite; }
.rv-body { padding: 44px 36px 32px; direction: ltr; }
.route { position: relative; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; }
.node { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; }
.node .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.9); }
.node .ic svg { width: 28px; height: 28px; color: var(--dim); }
.node.core .ic { background: linear-gradient(160deg, rgba(232,64,79,0.25), rgba(232,64,79,0.06)); border-color: rgba(232,64,79,0.45); box-shadow: 0 0 0 6px rgba(232,64,79,0.06), 0 16px 40px -14px rgba(232,64,79,0.6); }
.node.core .ic img { width: 34px; height: 34px; object-fit: contain; }
.node .ic img.game { width: 40px; height: 40px; border-radius: 10px; }
.node .lb { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.node .sb { font-size: 12.5px; color: var(--mute); margin-top: -6px; font-family: var(--font); }
.link { position: relative; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18), rgba(255,255,255,0.08)); border-radius: 2px; }
.link .pk { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 99px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.8); animation: pk 2.4s linear infinite; }
.link .pk.b { animation-delay: .8s; } .link .pk.c { animation-delay: 1.6s; }
.link.hot .pk { background: #ff8a95; box-shadow: 0 0 14px rgba(255,90,106,0.95); }
@keyframes pk { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.link .lost { position: absolute; top: 50%; left: 45%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 99px; background: var(--brand); animation: lost 4.8s ease-in-out infinite; }
.link .fix { position: absolute; top: 50%; left: 45%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 14px rgba(52,199,123,0.9); animation: fix 4.8s ease-in-out infinite; }
.link .tag { position: absolute; left: 45%; bottom: 14px; transform: translateX(-50%); font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: var(--ok); white-space: nowrap; animation: tag 4.8s ease-in-out infinite; }
@keyframes lost { 0%, 18% { opacity: 0; transform: translateY(0) scale(1); } 22% { opacity: 1; } 34% { opacity: 1; transform: translateY(0); } 46% { opacity: 0; transform: translateY(16px) scale(.6); } 100% { opacity: 0; } }
@keyframes fix { 0%, 46% { opacity: 0; transform: scale(.3); } 54% { opacity: 1; transform: scale(1.2); } 62% { transform: scale(1); } 80% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes tag { 0%, 48% { opacity: 0; transform: translate(-50%, 4px); } 56%, 82% { opacity: 1; transform: translate(-50%, 0); } 92%, 100% { opacity: 0; } }
.rv-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 22px; border-top: 1px dashed var(--line); direction: rtl; }
.rv-foot span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); }
.rv-foot i { width: 8px; height: 8px; border-radius: 99px; }

/* ── games marquee ── */
.games { padding: 40px 0 8px; }
.games-cap { text-align: center; font-size: 14px; color: var(--mute); margin-bottom: 26px; }
.marquee { direction: ltr; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.mq-track { display: flex; gap: 14px; width: max-content; animation: mq 70s linear infinite; }
.marquee.rev .mq-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gchip { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); flex: none; transition: border-color .2s, background-color .2s; }
.gchip:hover { border-color: var(--line-2); background: rgba(255,255,255,0.06); }
.gchip img { width: 36px; height: 36px; border-radius: 9px; }
.gchip span { font-size: 14px; font-weight: 600; color: var(--dim); white-space: nowrap; }

/* ── bento features ── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cell { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); padding: 28px; overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.cell:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cell::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.07), transparent 40%); }
.cell:hover::after { opacity: 1; }
.cell.span2 { grid-column: span 2; }
.cell.span3 { grid-column: span 3; }
.cell.wide { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; }
.cell.wide .chips { margin-top: 0; justify-content: flex-end; max-width: 360px; }
.cell .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid rgba(232,64,79,0.3); color: var(--brand-2); margin-bottom: 20px; }
.cell .ico.v { background: rgba(139,124,246,0.12); border-color: rgba(139,124,246,0.3); color: #b3a8ff; }
.cell .ico.g { background: rgba(52,199,123,0.1); border-color: rgba(52,199,123,0.28); color: var(--ok); }
.cell .ico svg { width: 20px; height: 20px; }
.cell h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.cell p { color: var(--dim); font-size: 15px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--dim); background: rgba(255,255,255,0.02); }
.rc { margin-top: 24px; display: grid; gap: 10px; direction: ltr; }
.rc div { display: grid; grid-template-columns: 70px 1fr 64px; align-items: center; gap: 12px; font-family: var(--display); font-size: 12px; letter-spacing: .12em; color: var(--mute); }
.rc i { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.07); position: relative; overflow: hidden; }
.rc i::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: rgba(255,255,255,0.22); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.rc .best { color: var(--text); }
.rc .best i::after { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.rc .best em { color: var(--ok); }
.rc em { font-style: normal; text-align: right; }
.in .rc i::after { transform: scaleX(1); }

/* ── network map ── */
.net { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: stretch; }
.map-card { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(ellipse at 60% 40%, rgba(232,64,79,0.07), transparent 70%), #0b0b0e; padding: 24px; overflow: hidden; display: flex; align-items: center; }
.map { position: relative; aspect-ratio: 1000 / 500; width: 100%; }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.map-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-arcs path { fill: none; stroke: var(--brand); opacity: .7; stroke-width: 1.3; stroke-dasharray: 5 9; animation: dash 2.4s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.map-pin, .map-origin { position: absolute; transform: translate(-50%, -50%); }
.map-pin i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,199,123,0.14), 0 0 14px rgba(52,199,123,0.6); }
.map-pin b { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; color: var(--text); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(20,20,24,0.9); backdrop-filter: blur(6px); }
.map-pin b em { font-style: normal; color: var(--ok); font-family: var(--display); font-weight: 700; direction: ltr; }
.map-pin.is-below b { bottom: auto; top: calc(100% + 8px); }
.map-pin:hover { z-index: 4; }
.map-origin { z-index: 3; }
.mo-dot { display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); animation: ripple 2.6s var(--ease) infinite; }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(232,64,79,.5); } 70% { box-shadow: 0 0 0 16px rgba(232,64,79,0); } 100% { box-shadow: 0 0 0 0 rgba(232,64,79,0); } }
.map-origin b { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: var(--brand-2); white-space: nowrap; }
.net-list { border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,0.015); padding: 20px; display: flex; flex-direction: column; }
.net-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mute); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.net-list ul { list-style: none; flex: 1; }
.net-list li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); position: relative; font-size: 14px; }
.net-list li:last-child { border-bottom: 0; }
.net-list .cc svg { width: 21px; height: 14px; border-radius: 3px; }
.net-list .ms { font-family: var(--display); font-weight: 700; direction: ltr; color: var(--ok); font-size: 13px; }
.net-list .bar { position: absolute; bottom: -1px; inset-inline-start: 0; height: 1px; width: var(--w); background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: .7; }
.net-foot { font-size: 12px; color: var(--mute); margin-top: 12px; }

/* ── partners ── */
.partner-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.partner { position: relative; width: 280px; padding: 30px 24px 26px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; transition: border-color .3s, transform .4s var(--ease), background-color .3s; }
.partner:hover { border-color: var(--line-2); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.partner-logo { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)); }
.partner-name { font-family: var(--brandfont); font-weight: 800; font-size: 18px; letter-spacing: .08em; margin-top: 8px; }
.partner-url { font-family: var(--display); font-size: 12.5px; color: var(--mute); direction: ltr; }
.partner-role { font-size: 13.5px; color: var(--dim); }
.partner-note { text-align: center; color: var(--mute); font-size: 14px; margin-top: 26px; }
.cnr { position: absolute; width: 12px; height: 12px; border-color: rgba(232,64,79,0.6); border-style: solid; }
.cnr.tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; } .cnr.tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.cnr.bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; } .cnr.br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* ── steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border-radius: var(--r); border: 1px solid var(--line); padding: 28px; background: rgba(255,255,255,0.015); position: relative; }
.step .n { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--brand-2); direction: ltr; display: inline-block; }
.step h3 { font-size: 18px; font-weight: 800; margin-top: 14px; }
.step p { color: var(--dim); font-size: 15px; margin-top: 8px; }
.step a.more { display: inline-flex; margin-top: 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.25); }
.step a.more:hover { border-color: rgba(255,255,255,0.7); }
.locs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; }
.locs[hidden] { display: none; }
.locs .cap { font-size: 14px; color: var(--mute); margin-inline-end: 6px; }
.loc { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); font-size: 14px; }
.loc svg { width: 21px; height: 14px; border-radius: 3px; }
.loc .live { width: 6px; height: 6px; border-radius: 99px; background: var(--ok); }

/* ── pricing ── */
.plans { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; max-width: 1040px; margin: 0 auto; }
.plans > .plan { flex: 1 1 280px; max-width: 336px; }
.plan { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); padding: 28px; display: flex; flex-direction: column; }
.plan.feat { border-color: rgba(232,64,79,0.45); background: linear-gradient(180deg, rgba(232,64,79,0.08), rgba(255,255,255,0.01) 60%); box-shadow: 0 30px 80px -40px rgba(232,64,79,0.5); }
.plan.info { border-style: dashed; background: rgba(255,255,255,0.012); }
.plan.info p { color: var(--dim); font-size: 15px; margin: 14px 0 24px; }
.plan .badge { position: absolute; top: -12px; inset-inline-start: 24px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; background: var(--brand); color: #fff; }
.plan .badge.free { background: var(--ok); color: #06170e; }
.plan h3 { font-size: 17px; font-weight: 700; color: var(--dim); }
.plan .price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .price b { font-size: 38px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.plan .price span { font-size: 14px; color: var(--mute); }
.plan ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 12px; }
.plan li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--dim); }
.plan li svg { width: 17px; height: 17px; color: var(--ok); flex: none; }
.plan li b { color: var(--text); font-weight: 600; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.skel { min-height: 360px; background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05), rgba(255,255,255,0.02)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.plans-note { text-align: center; color: var(--mute); font-size: 14px; margin-top: 26px; }
.plans-empty { max-width: 560px; margin: 0 auto; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 32px; color: var(--dim); }

/* ── faq ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), border-color .2s; }
.faq summary .pm svg { width: 14px; height: 14px; color: var(--dim); }
.faq details[open] summary .pm { transform: rotate(45deg); border-color: var(--line-2); }
.faq details p { color: var(--dim); font-size: 15.5px; padding: 0 0 24px; max-width: 680px; }
.faq summary:hover { color: #fff; }

/* ── final cta ── */
.cta { padding: 40px 0 112px; }
.cta-box { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); padding: 72px 32px; text-align: center;
  background: radial-gradient(600px 260px at 50% 0%, rgba(232,64,79,0.18), transparent 70%), radial-gradient(500px 220px at 80% 100%, rgba(139,124,246,0.12), transparent 70%), var(--bg-2); }
.cta-box > * { position: relative; }

/* ── footer ── */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { color: var(--mute); font-size: 14px; margin-top: 14px; max-width: 360px; }
.foot h4 { font-size: 13px; font-weight: 700; color: var(--dim); margin-bottom: 14px; }
.foot nav { display: grid; gap: 10px; }
.foot nav a, .foot nav button { font-size: 14.5px; color: var(--mute); text-align: start; transition: color .2s; }
.foot nav a:hover, .foot nav button:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }

/* ── terms modal ── */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,0.75); backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 720px; max-height: 86vh; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line-2); background: #121214; box-shadow: 0 40px 100px rgba(0,0,0,0.6); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { overflow-y: auto; padding: 22px 26px; color: var(--dim); font-size: 14.5px; line-height: 2; }
.modal-body h4 { color: var(--text); font-size: 16px; margin-bottom: 14px; }
.modal-body h5 { color: var(--text); font-size: 15px; margin: 22px 0 8px; }
.modal-body p { margin-bottom: 14px; }

/* ── reveal ── */
.rv-up { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.rv-up.in { opacity: 1; transform: none; }

/* ── CMS edit bar (cms.js — class names are its contract) ── */
.cms-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; display: flex; gap: 10px; align-items: center; padding: 10px 18px; background: #111; border-top: 1px solid var(--line-2); box-shadow: 0 -20px 60px rgba(0,0,0,.5); font-size: 13px; }
.cms-title { font-weight: 700; font-size: 13.5px; color: var(--brand-2); }
.cms-hint { font-size: 12px; color: var(--mute); }
.cms-count { margin-inline-start: auto; font-size: 12.5px; color: var(--dim); }
.cms-btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--dim); font-size: 13px; }
.cms-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.cms-btn.is-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.cms-btn:disabled { opacity: .6; cursor: default; }
body.cms-on { padding-block-end: 64px; }
.cms-on .rv-up { opacity: 1; transform: none; }
.cms-on .cms-editable { outline: 1px dashed rgba(232,64,79,0.45); outline-offset: 3px; cursor: text; }
.cms-on .cms-editable:hover { outline-color: var(--brand-2); background: rgba(232,64,79,0.06); }
.cms-on .cms-editable.is-editing { outline: 2px solid var(--brand); background: rgba(232,64,79,0.08); }
.cms-on .mq-track, .cms-on .pk, .cms-on .glow, .cms-on .wordmark, .cms-on .wordmark::before, .cms-on .wordmark::after { animation: none !important; }

/* ── responsive ── */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell.span2, .cell.span3 { grid-column: span 2; }
  .cell.wide { grid-template-columns: 1fr; }
  .cell.wide .chips { justify-content: flex-start; max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: span 2; }
  .net { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-end .btn-ghost { display: none; }
  .mobile-menu.open { display: grid; gap: 4px; padding: 10px 24px 18px; border-bottom: 1px solid var(--line); background: rgba(9,9,11,0.96); }
  .mobile-menu a { padding: 10px 4px; color: var(--dim); font-size: 15.5px; border-bottom: 1px solid var(--line); }
  .route { grid-template-columns: 1fr; justify-items: center; }
  .link { width: 2px; height: 56px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18), rgba(255,255,255,0.08)); }
  .link .pk { left: 50% !important; margin: 0 0 0 -4px; animation-name: pkv; }
  @keyframes pkv { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .link .lost, .link .fix { left: 50%; top: 45%; }
  .link .tag { left: calc(50% + 16px); bottom: auto; top: 40%; transform: none; animation-name: tagv; }
  @keyframes tagv { 0%, 48% { opacity: 0; } 56%, 82% { opacity: 1; } 92%, 100% { opacity: 0; } }
  .rv-body { padding: 32px 20px 24px; }
  .map-pin b { opacity: 0; pointer-events: none; transition: opacity .2s; }
  .map-pin:hover b { opacity: 1; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .wrap { padding: 0 18px; }
  .bento { grid-template-columns: 1fr; }
  .cell.span2, .cell.span3 { grid-column: auto; }
  .hero { padding: 44px 0 64px; }
  .hero-visual { margin-top: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr; }
  .foot > div:first-child { grid-column: auto; }
  .nav-end .btn-primary { display: none; }
  .map-card { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv-up { opacity: 1; transform: none; }
  .mq-track { animation: none; }
  .wordmark::before { display: none; }
}
