/* ══════════════════════════════════════════════════════════════════════════
   SP Plugin — landing page
   Warm GTA:SA "San Andreas sunset" theme (orange/amber), matching the in-game
   loadscreen and the installer icon. Bold League Spartan display type.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg:          #0a0705;   /* warm near-black (matches loadscreen) */
    --bg-2:        #120b06;
    --bg-card:     #17100a;
    --bg-card-2:   #1e150c;
    --line:        #2c1f11;
    --line-soft:   #211710;

    --text:        #fbf3ea;   /* warm cream */
    --text-dim:    #c2ad95;   /* warm muted */
    --text-mute:   #8a765f;

    --accent:      #ff8a00;   /* GTA:SA sunset orange */
    --accent-2:    #ffb347;   /* amber */
    --ok:          #7be06a;   /* "loaded" green (kept for terminal success text) */
    --accent-glow: rgba(255, 138, 0, .38);

    --radius:      16px;
    --radius-sm:   11px;
    --wrap:        1140px;
    --font:        'League Spartan', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    --display:     'League Spartan', 'Segoe UI', system-ui, sans-serif;
    --mono:        'JetBrains Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
}

/* ── Reset-ish ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.02em;
    font-family: var(--display); font-weight: 800; text-transform: uppercase; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code {
    background: var(--bg-card-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .1em .45em;
    color: var(--accent-2);
}
.mono { color: var(--accent-2); }
.muted { color: var(--text-dim); font-weight: 400; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.grad {
    background: linear-gradient(100deg, var(--accent) 8%, var(--accent-2) 92%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Animated backdrop ──────────────────────────────────────────────────── */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }

/* Hero photo backdrop (assets/img/hero-bg.jpg). Covers the top of the viewport,
   fades out downward via a mask, and a warm scrim keeps the cream text legible over
   the bright sunset. If the file is missing the element is simply empty - no breakage. */
.bg-photo {
    position: absolute; inset: 0;
    background: url('../img/hero-bg.png') no-repeat center top / cover;
    opacity: .5;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.7) 38%, transparent 78%);
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.7) 38%, transparent 78%);
}
/* warm darkening scrim over the photo so headings/lead stay readable */
.bg-photo::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 8%, transparent, rgba(10,7,5,.35) 70%),
        linear-gradient(to bottom, rgba(10,7,5,.45), rgba(10,7,5,.72) 60%, var(--bg) 96%);
}
@media (max-width: 720px) { .bg-photo { opacity: .38; } }
.bg-grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    opacity: .5;
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow--1 { width: 620px; height: 620px; top: -220px; left: -140px;
    background: radial-gradient(circle, var(--accent-glow), transparent 65%); animation: float1 22s ease-in-out infinite; }
.bg-glow--2 { width: 520px; height: 520px; top: 30%; right: -160px;
    background: radial-gradient(circle, rgba(255,179,71,.15), transparent 65%); animation: float2 26s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(60px, 80px); } }
@keyframes float2 { 50% { transform: translate(-70px, -50px); } }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    background: rgba(12, 8, 5, .55);
    border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s;
}
.nav.is-scrolled { background: rgba(12, 8, 5, .88); border-bottom-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.brand__mark { border-radius: 8px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)) drop-shadow(0 0 10px var(--accent-glow)); }
.brand__accent { color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
    padding: 9px 14px; border-radius: 9px; font-size: .94rem; font-weight: 500; color: var(--text-dim);
    transition: color .18s, background .18s;
}
.nav__links a:hover { color: var(--text); background: var(--bg-card); }
.nav__cta {
    color: #1a0f04 !important; font-weight: 700 !important;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px -6px var(--accent-glow);
}
.nav__cta:hover { background: linear-gradient(100deg, var(--accent-2), var(--accent)) !important; }

.nav__right { display: flex; align-items: center; gap: 12px; }

/* CZ | EN segmented toggle (ladí s in-game overlay přepínačem) */
.lang {
    display: inline-flex; padding: 4px; gap: 3px;
    background: var(--bg-card-2);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.lang__btn {
    position: relative; min-width: 40px; text-align: center;
    font: 700 .8rem/1 var(--font); letter-spacing: .05em; color: var(--text-dim);
    background: none; border: 0; cursor: pointer; padding: 7px 12px; border-radius: 8px;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .12s ease;
}
.lang__btn:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.lang__btn:active { transform: translateY(1px); }
.lang__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang__btn.is-active {
    color: #1a0f04;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 4px 14px -4px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.lang__btn.is-active:hover { color: #1a0f04; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: .98rem;
    cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    color: #1a0f04;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn--primary:hover { box-shadow: 0 14px 38px -10px var(--accent-glow); transform: translateY(-2px); }
.btn--ghost { color: var(--text); background: var(--bg-card); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--lg { padding: 17px 30px; font-size: 1.08rem; border-radius: 14px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }

.pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 15px; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .01em;
    color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--line); margin-bottom: 26px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero__title { font-size: clamp(2.3rem, 6.2vw, 4.4rem); font-weight: 850; }
.hero__lead { max-width: 640px; margin: 26px auto 0; color: var(--text-dim); font-size: clamp(1.02rem, 2.1vw, 1.2rem); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.hero__meta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.chip {
    font-size: .82rem; font-weight: 600; color: var(--text-dim);
    padding: 6px 13px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--line);
}

/* ── Hero panel (terminal teaser) ───────────────────────────────────────── */
.hero__panel { margin-top: clamp(46px, 7vw, 74px); }

/* Hero key-art showcase (assets/img/hero-banner.jpg). Background-image so a missing
   file degrades to a clean dark card instead of a broken-image icon. */
.hero__art {
    position: relative;
    max-width: 1000px; margin-inline: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-card) url('../img/hero-banner.png') center / cover no-repeat;
    box-shadow: 0 50px 110px -55px #000,
                0 0 0 1px rgba(255,138,0,.10) inset,
                0 0 90px -30px var(--accent-glow);
    overflow: hidden;
}
.hero__art-tag {
    position: absolute; left: 14px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border-radius: 9px; font-size: .74rem; letter-spacing: .04em;
    color: var(--text); background: rgba(12,8,5,.62);
    border: 1px solid rgba(255,138,0,.28);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 560px) { .hero__art-tag { font-size: .64rem; left: 10px; bottom: 9px; } }

.panel {
    max-width: 720px; margin-inline: auto; text-align: left;
    background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 40px 90px -50px #000, 0 0 0 1px rgba(255,138,0,.05) inset;
    overflow: hidden;
}
.panel__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.015); }
.panel__dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3446; }
.panel__dot:nth-child(1) { background: #ff5f57; } .panel__dot:nth-child(2) { background: #febc2e; } .panel__dot:nth-child(3) { background: #28c840; }
.panel__title { margin-left: 8px; font-family: var(--mono); font-size: .82rem; color: var(--text-dim); }
.panel__body { padding: 18px 20px; font-family: var(--mono); font-size: clamp(.78rem, 1.9vw, .92rem); line-height: 2; overflow-x: auto; }
.panel__body p { white-space: nowrap; }
.c-accent { color: var(--accent); } .c-white { color: #fff; } .c-dim { color: #8a765f; } .c-ok { color: var(--ok); }

/* ── Preview video ──────────────────────────────────────────────────────── */
.video {
    max-width: 940px; margin-inline: auto; position: relative;
    border-radius: var(--radius); padding: 10px;
    background: linear-gradient(140deg, rgba(255,138,0,.24), rgba(255,179,71,.14) 60%, transparent);
    box-shadow: 0 50px 100px -50px #000;
}
.video__el {
    display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
    border-radius: calc(var(--radius) - 4px); background: #05070c;
    border: 1px solid var(--line); outline: none;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 10vw, 116px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section__title { font-size: clamp(1.8rem, 4.5vw, 2.9rem); font-weight: 800; }
.section__sub { margin-top: 16px; color: var(--text-dim); font-size: 1.06rem; }

/* ── Feature grid ───────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .25s, border-color .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
.card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(140deg, var(--accent-glow), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 60px -34px #000; }
.card:hover::before { opacity: 1; }
.card__ico {
    width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
    color: var(--accent); background: rgba(255,138,0,.09); border: 1px solid rgba(255,138,0,.22);
}
.card__ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .97rem; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
    background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px; position: relative;
}
.step__num {
    display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px;
    font-weight: 800; font-size: 1.1rem; color: #1a0f04; border-radius: 11px;
    background: linear-gradient(135deg, var(--accent), var(--ok));
    box-shadow: 0 8px 20px -8px var(--accent-glow);
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: .94rem; }
.step::after { content: ""; position: absolute; top: 48px; right: -12px; width: 24px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }

/* ── Requirements ───────────────────────────────────────────────────────── */
.req { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.req .section__title { text-align: left; margin-bottom: 22px; }
.req__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.req__list li { display: flex; align-items: center; gap: 13px; font-size: 1.04rem; color: var(--text); }
.req__list svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--ok); background: rgba(123,224,106,.12); border-radius: 50%; padding: 3px; }
.req__list strong { color: var(--accent-2); }

.spec { background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px; }
.spec__row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.spec__row:last-child { border-bottom: 0; }
.spec__row span { color: var(--text-dim); font-size: .95rem; }
.spec__row b { font-weight: 700; color: var(--text); font-family: var(--mono); font-size: .92rem; }

/* ── Support ────────────────────────────────────────────────────────────── */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin-inline: auto; }
.support__card {
    background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.support__ico {
    width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
    color: var(--accent); background: rgba(255,138,0,.09); border: 1px solid rgba(255,138,0,.22);
}
.support__ico svg { width: 26px; height: 26px; }
.support__card h3 { font-size: 1.24rem; font-weight: 700; }
.support__card p { color: var(--text-dim); font-size: .98rem; }
.support__card .btn { margin-top: 4px; }
.support__tag {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 4px;
    font-family: var(--mono); font-size: .92rem; font-weight: 600; color: var(--accent-2);
    padding: 9px 15px; border-radius: 10px; background: rgba(255,138,0,.07); border: 1px solid rgba(255,138,0,.22);
}

/* ── Download ───────────────────────────────────────────────────────────── */
.download__inner {
    text-align: center; max-width: 760px; margin-inline: auto;
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255,138,0,.12), transparent 70%),
        linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
    border: 1px solid var(--line); border-radius: 24px; padding: clamp(40px, 6vw, 64px) 30px;
    box-shadow: 0 40px 90px -50px #000;
}
.download__title { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 850; }
.download__sub { margin-top: 16px; color: var(--text-dim); font-size: 1.08rem; }
.download__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; }
.download__hint { font-family: var(--mono); font-size: .84rem; color: var(--text-dim); }
.download__note { margin-top: 26px; font-size: .88rem; color: var(--text-dim); opacity: .8; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-soft); padding: 46px 0 40px; margin-top: 20px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 13px; }
.footer__brand strong { display: block; font-size: 1.02rem; }
.footer__brand span { font-size: .85rem; color: var(--text-dim); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--text-dim); font-size: .94rem; transition: color .18s; }
.footer__links a:hover { color: var(--accent-2); }
.footer__copy { width: 100%; margin-top: 8px; font-size: .8rem; color: var(--text-dim); opacity: .65; }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step:nth-child(2)::after { display: none; }
    .req { grid-template-columns: 1fr; gap: 30px; }
    .req .section__title { text-align: center; }
    .support { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav__links {
        position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
        padding: 16px 20px 24px; background: rgba(12,8,5,.97); border-bottom: 1px solid var(--line);
        transform: translateY(-140%); transition: transform .3s cubic-bezier(.2,.8,.2,1); backdrop-filter: blur(12px);
    }
    .nav__links.is-open { transform: none; }
    .nav__links a { padding: 13px 14px; }
    .nav__cta { text-align: center; margin-top: 6px; }
    .nav__toggle { display: flex; }
}
@media (max-width: 520px) {
    .grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step::after { display: none; }
    .hero__actions .btn { width: 100%; justify-content: center; }
}

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