/* ============================================================
   MIRAI Pro — лендинг лиги. Неон-нуар / ретро-футуризм.
   Палитра экосистемы MIRAI: near-black + magenta #F5007D + violet.
   ============================================================ */

@font-face {
    font-family: "Akony";
    src: url("/assets/fonts/AKONY.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "MPHelvetica";
    src: url("/assets/fonts/helvetica_regular.otf") format("opentype");
    font-display: swap;
}

:root {
    --bg: #08080c;
    --bg-2: #0c0c12;
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.55);
    --faint: rgba(255, 255, 255, 0.32);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.20);

    --accent: #f5007d;
    --accent-bright: #ff2d96;
    --accent-soft: rgba(245, 0, 125, 0.14);
    --violet: #7b3cdc;
    --cyan: #2de2e6;

    --glass: rgba(255, 255, 255, 0.035);
    --glass-hover: rgba(255, 255, 255, 0.06);

    --shell: 1180px;
    --display: "Akony", "MPHelvetica", Helvetica, sans-serif;
    --body: "MPHelvetica", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.mp {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.mp-accent { color: var(--accent); }

/* ─── Фон: сетка / блобы / скан / шум ─────────────────────── */
.mp-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.mp-bg-grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 78%);
}

.mp-bg-blob {
    position: absolute; border-radius: 50%;
    filter: blur(110px); opacity: 0.55;
}
.mp-bg-blob--a {
    width: 640px; height: 640px; top: -180px; left: -140px;
    background: radial-gradient(circle, rgba(245, 0, 125, 0.45), transparent 70%);
    animation: mp-blob-a 20s ease-in-out infinite alternate;
}
.mp-bg-blob--b {
    width: 560px; height: 560px; top: 30%; right: -160px;
    background: radial-gradient(circle, rgba(123, 60, 220, 0.40), transparent 70%);
    animation: mp-blob-b 24s ease-in-out infinite alternate;
}
@keyframes mp-blob-a { to { transform: translate(80px, 90px) scale(1.18); } }
@keyframes mp-blob-b { to { transform: translate(-70px, -60px) scale(1.12); } }

.mp-bg-scan {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        to bottom, transparent 0, transparent 2px,
        rgba(0, 0, 0, 0.18) 3px, rgba(0, 0, 0, 0.18) 4px);
    opacity: 0.35; mix-blend-mode: multiply;
}
.mp-bg-noise {
    position: absolute; inset: 0; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Навигация ───────────────────────────────────────────── */
.mp-nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 24px;
    max-width: var(--shell); margin: 0 auto;
    padding: 18px 24px;
    transition: padding 0.3s ease;
}
.mp-nav::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(8, 8, 12, 0.6);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid transparent;
    opacity: 0; transition: opacity 0.3s ease, border-color 0.3s ease;
}
.mp-nav.is-stuck::before { opacity: 1; border-bottom-color: var(--border); }
.mp-nav.is-stuck { padding-top: 12px; padding-bottom: 12px; }

.mp-nav-brand { font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; }
.mp-nav-mark { font-weight: 400; }
.mp-nav-links {
    display: flex; gap: 26px; margin-left: auto;
    font-size: 14px; color: var(--muted); letter-spacing: 0.01em;
}
.mp-nav-links a { position: relative; transition: color 0.2s ease; }
.mp-nav-links a:hover { color: var(--text); }
.mp-nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
    background: var(--accent); transition: width 0.25s ease;
}
.mp-nav-links a:hover::after { width: 100%; }
.mp-nav-cta { margin-left: 4px; }
@media (max-width: 820px) { .mp-nav-links { display: none; } .mp-nav-cta { margin-left: auto; } }

/* ─── Кнопки ──────────────────────────────────────────────── */
.mp-btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--body); font-size: 15px; font-weight: 600;
    letter-spacing: 0.01em; line-height: 1;
    padding: 14px 24px; border-radius: 12px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.mp-btn svg { width: 18px; height: 18px; }
.mp-btn--sm { padding: 10px 16px; font-size: 13.5px; border-radius: 10px; }
.mp-btn--lg { padding: 17px 32px; font-size: 16.5px; }

.mp-btn--primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-bright));
    color: #fff;
    box-shadow: 0 8px 30px -8px rgba(245, 0, 125, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.mp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(245, 0, 125, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.mp-btn--primary:hover svg { transform: translateX(3px); transition: transform 0.2s ease; }

.mp-btn--ghost {
    background: var(--glass); color: var(--text);
    border-color: var(--border-strong);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mp-btn--ghost:hover { background: var(--glass-hover); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-2px); }
.mp-btn--disabled { pointer-events: none; color: var(--muted); }

.mp-nav-cta { background: var(--accent-soft); border: 1px solid rgba(245, 0, 125, 0.4); color: #fff; }
.mp-nav-cta:hover { background: rgba(245, 0, 125, 0.25); }

/* ─── Секции ──────────────────────────────────────────────── */
main { position: relative; z-index: 1; }
.mp-section { max-width: var(--shell); margin: 0 auto; padding: 90px 24px; }
.mp-section-head { margin-bottom: 44px; }
.mp-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 14px;
}
.mp-section-title {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(30px, 5vw, 52px); line-height: 1.02; letter-spacing: 0.01em;
}

/* ─── Стекло ──────────────────────────────────────────────── */
.mp-glass {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(12px) saturate(1.3) brightness(1.04);
    -webkit-backdrop-filter: blur(12px) saturate(1.3) brightness(1.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

/* ─── HERO ────────────────────────────────────────────────── */
.mp-hero {
    max-width: var(--shell); margin: 0 auto;
    padding: clamp(60px, 11vh, 130px) 24px clamp(50px, 8vh, 90px);
    position: relative; z-index: 1;
}
.mp-hero-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 26px;
}
.mp-tick { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 2px var(--accent); animation: mp-pulse 2s ease-in-out infinite; }
@keyframes mp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.mp-hero-title {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(76px, 19vw, 230px); line-height: 0.96;
    letter-spacing: 0.005em; margin-bottom: 30px;
}
.mp-hero-title-l1, .mp-hero-title-l2 { display: block; padding-block: 0.03em; }
.mp-hero-title-l2 {
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent-bright) 40%, var(--violet) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    width: max-content;
    /* запас сверху/снизу, чтобы глифы Akony не обрезались при клипе градиента */
    padding-bottom: 0.12em; margin-bottom: -0.12em; overflow: visible;
}
.mp-hero-dot { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.mp-hero-subtitle {
    font-size: clamp(18px, 2.6vw, 26px); font-weight: 600;
    letter-spacing: 0.01em; margin-bottom: 14px;
}
.mp-hero-lead { max-width: 560px; font-size: 17px; color: var(--muted); margin-bottom: 36px; }

.mp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.mp-hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--border); border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden;
}
.mp-stat { background: var(--bg-2); padding: 26px 22px; }
.mp-stat-value { display: block; font-family: var(--display); font-size: clamp(30px, 4vw, 46px); line-height: 1; color: #fff; }
.mp-stat-label { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .mp-hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ─── Манифест ────────────────────────────────────────────── */
.mp-manifest { padding-top: 40px; padding-bottom: 40px; }
.mp-manifest-lead {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(30px, 5vw, 58px); line-height: 1.02; letter-spacing: 0.01em;
    max-width: 900px; margin-bottom: 22px;
}
.mp-manifest-text {
    font-family: var(--body); font-weight: 400;
    font-size: clamp(17px, 2.1vw, 22px); line-height: 1.62; color: var(--muted);
    max-width: 720px;
}
.mp-manifest-text strong { color: var(--text); }

/* ─── Шаги ────────────────────────────────────────────────── */
.mp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .mp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mp-steps { grid-template-columns: 1fr; } }
.mp-step { padding: 28px 24px 30px; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease; }
.mp-step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.mp-step-num {
    font-family: var(--display); font-size: 40px; color: transparent;
    -webkit-text-stroke: 1px rgba(245, 0, 125, 0.6); display: block; margin-bottom: 18px;
}
.mp-step-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.mp-step-text { font-size: 14.5px; color: var(--muted); }

/* ─── Карта лиги ──────────────────────────────────────────── */
.mp-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .mp-card-grid { grid-template-columns: 1fr; gap: 40px; } }
.mp-card-text { font-size: 17px; color: var(--muted); margin: 20px 0 28px; max-width: 460px; }
.mp-card-values { display: grid; gap: 20px; max-width: 480px; }
.mp-card-value { padding-left: 16px; border-left: 2px solid var(--accent); }
.mp-card-value-title { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.mp-card-value-text { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Физическая карта-пропуск — вертикальная, по реальному дизайну */
.mp-card-visual { display: flex; justify-content: center; perspective: 1600px; }
.mp-pass {
    position: relative; width: min(320px, 84%); aspect-ratio: 1000 / 1580;
    border-radius: 22px; padding: 26px 24px;
    display: flex; flex-direction: column;
    background: #050507;
    border: 2px solid var(--accent);
    box-shadow: 0 40px 90px -28px rgba(245, 0, 125, 0.55), 0 0 0 1px rgba(245, 0, 125, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: rotateY(-14deg) rotateX(5deg);
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
    animation: mp-pass-float 7s ease-in-out infinite;
}
.mp-card-visual:hover .mp-pass { transform: rotateY(-4deg) rotateX(2deg) scale(1.03); }
@keyframes mp-pass-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.mp-pass-shine {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.10) 48%, transparent 56%);
    transform: translateX(-30%); animation: mp-shine 5.5s ease-in-out infinite;
}
@keyframes mp-shine { 0%, 60% { transform: translateX(-70%); } 100% { transform: translateX(150%); } }

.mp-pass-head, .mp-pass-strip, .mp-pass-no, .mp-pass-wordmark { position: relative; z-index: 2; }
.mp-pass-head { font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.18; letter-spacing: 0.02em; color: #fff; }
.mp-pass-strip { margin-top: 20px; height: 60px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 4px; }
.mp-pass-no { margin-top: auto; font-family: var(--display); font-size: 62px; line-height: 1; color: #fff; letter-spacing: 0.06em; }
.mp-pass-wordmark { margin-top: 12px; display: flex; flex-direction: column; line-height: 0.9; }
.mp-pass-mirai { font-family: var(--display); font-size: 46px; color: var(--accent); letter-spacing: 0.03em; }
.mp-pass-pro, .mp-pass-league { font-family: var(--display); font-size: 30px; color: #fff; letter-spacing: 0.03em; }

/* ─── Сезон ───────────────────────────────────────────────── */
.mp-season { max-width: 760px; margin: 0 auto; padding: 34px 32px; }
.mp-season-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.mp-season-name { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 38px); margin-top: 8px; }
.mp-season-dates { font-size: 14px; color: var(--muted); margin-top: 6px; }
.mp-pill {
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
    padding: 7px 14px; border-radius: 999px; white-space: nowrap;
    background: var(--accent-soft); color: var(--accent-bright);
    border: 1px solid rgba(245, 0, 125, 0.35);
}
.mp-board { list-style: none; display: grid; gap: 8px; }
.mp-board-row {
    display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border);
}
.mp-board-row--1 { border-color: rgba(245, 0, 125, 0.4); background: rgba(245, 0, 125, 0.06); }
.mp-board-rank { font-family: var(--display); font-size: 20px; color: var(--accent); }
.mp-board-nick { font-weight: 600; }
.mp-board-pts { color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-board-note { margin-top: 16px; font-size: 13px; color: var(--faint); text-align: center; }

/* ─── Турниры ─────────────────────────────────────────────── */
.mp-trns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.mp-trn { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.25s ease, border-color 0.25s ease; }
.mp-trn:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.mp-trn-status {
    align-self: flex-start; font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px;
}
.mp-trn-status--open { background: rgba(60, 220, 130, 0.12); color: #5fe0a0; border: 1px solid rgba(60, 220, 130, 0.3); }
.mp-trn-status--soon { background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--border); }
.mp-trn-title { font-size: 21px; font-weight: 700; line-height: 1.2; }
.mp-trn-meta { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.mp-trn-dot { color: var(--faint); }
.mp-trn-go { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 14px; font-weight: 600; }
.mp-trn-go svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.mp-trn:hover .mp-trn-go svg { transform: translateX(4px); }

/* ─── CTA ─────────────────────────────────────────────────── */
.mp-join { padding-top: 50px; padding-bottom: 110px; }
.mp-join-card { position: relative; text-align: center; padding: 64px 32px; overflow: hidden; }
.mp-join-glow {
    position: absolute; width: 560px; height: 560px; left: 50%; top: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(245, 0, 125, 0.4), transparent 65%);
    filter: blur(40px); pointer-events: none;
}
.mp-join-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 54px); line-height: 1.05; position: relative; }
.mp-join-text { color: var(--muted); font-size: 17px; margin: 16px auto 32px; max-width: 480px; position: relative; }
.mp-join-card .mp-btn { position: relative; }

/* ─── Футер ───────────────────────────────────────────────── */
.mp-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); }
.mp-footer-inner {
    max-width: var(--shell); margin: 0 auto; padding: 44px 24px 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.mp-footer-mark { font-family: var(--display); font-size: 24px; letter-spacing: 0.06em; }
.mp-footer-tagline { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.mp-footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.mp-footer-links a { transition: color 0.2s ease; }
.mp-footer-links a:hover { color: var(--accent); }
.mp-footer-base { max-width: var(--shell); margin: 0 auto; padding: 0 24px 36px; font-size: 12.5px; color: var(--faint); }

/* ─── Анимации появления ──────────────────────────────────── */
.reveal, .reveal-up { opacity: 0; }
.reveal { transform: translateY(14px); animation: mp-reveal 0.7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.reveal-up { transform: translateY(28px); }
.reveal-up.is-in { animation: mp-reveal 0.75s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes mp-reveal { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, .reveal-up { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
