:root {
    --bg: #fafafb;
    --ink: #14161a;
    --muted: #5f6672;
    --line: #e3e5ea;
    --accent: #2b50ff;
    --accent-ink: #ffffff;
    --soft: #eef1ff;
    --error: #c62828;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101216;
        --ink: #f1f2f4;
        --muted: #9aa1ad;
        --line: #2c313b;
        --accent: #5a7bff;
        --accent-ink: #0b0d12;
        --soft: #182037;
        --error: #ff7b7b;
    }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

header, main, footer { max-width: 760px; margin: 0 auto; }
header {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo {
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.03em;
    text-decoration: none;
}
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
nav a:hover { color: var(--ink); }

main { padding: 0 24px 64px; }
.hero { padding: 9vh 0 48px; }
h1 {
    margin: 0;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 8vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.hero.big h1 { font-size: clamp(44px, 9vw, 72px); line-height: 1; }
.lead { max-width: 30em; margin: 20px 0 0; color: var(--muted); font-size: 19px; }
.back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--ink); }

/* Buttons */
.btn {
    display: inline-flex;
    flex-direction: column;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn small { font-size: 13px; font-weight: 400; opacity: .85; }

/* Release card */
.release { padding: 28px; border-radius: 16px; background: var(--soft); }
.release h2 {
    margin: 0;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: 24px;
    letter-spacing: -0.02em;
}
.release .ver { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.release .btn { margin-top: 24px; }
.release h3 { margin: 32px 0 0; font-size: 16px; font-weight: 500; }
.release ul { margin: 10px 0 0; padding-left: 20px; }
.release li { margin-bottom: 6px; }

/* Choices */
.choices { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
    display: block;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--accent); background: var(--soft); }
.choice strong {
    display: block;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: 21px;
    letter-spacing: -0.02em;
}
.choice span { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Suggest block on home */
.suggest-promo { margin-top: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; }
.suggest-promo h2 {
    margin: 0;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: 24px;
    letter-spacing: -0.02em;
}
.suggest-promo p { margin: 8px 0 0; color: var(--muted); }
.suggest-promo .btn { margin-top: 20px; }

.help { margin: 40px 0 0; color: var(--muted); }
.help a { color: var(--ink); font-weight: 500; }

/* Forms */
form { display: grid; gap: 22px; max-width: 520px; }
.field { display: grid; gap: 6px; }
label { font-weight: 500; font-size: 16px; }
.hint { color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], input[type=url], textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
input[type=file] { font: inherit; font-size: 15px; color: var(--muted); }
input[type=file]::file-selector-button {
    margin-right: 12px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}
input[type=file]::file-selector-button:hover { border-color: var(--ink); }
.preview { display: none; max-width: 220px; max-height: 160px; border-radius: 10px; border: 1px solid var(--line); }
.preview.on { display: block; }
.error { min-height: 1.4em; margin: 0; color: var(--error); font-size: 15px; }
form .btn { justify-self: start; }
.note { padding: 14px 16px; border-radius: 10px; background: var(--soft); font-size: 16px; }

.done { display: none; max-width: 520px; padding: 28px; border-radius: 16px; background: var(--soft); }
.done.on { display: block; }
.done h2 { margin: 0; font-family: "Bricolage Grotesque", "Inter", sans-serif; font-size: 24px; letter-spacing: -0.02em; }
.done p { margin: 8px 0 0; color: var(--muted); }

footer { padding: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* =====================================================
   Pohyb a animace (hlavní stránka)
   ===================================================== */

/* Logo a navigace – drobná odezva na najetí myší */
.logo { display: inline-block; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover { transform: rotate(-4deg) scale(1.07); }
nav a { position: relative; }
nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
nav a:hover::after { transform: scaleX(1); }

/* Hero – jemně se vznášející světelné skvrny v pozadí */
.home .hero { position: relative; isolation: isolate; }
.blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
}
.blob.b1 { width: 300px; height: 300px; right: 0; top: 4%; opacity: .22; animation: drift1 14s ease-in-out infinite alternate; }
.blob.b2 { width: 210px; height: 210px; right: 24%; bottom: 0; opacity: .14; animation: drift2 18s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-50px, 36px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(44px, -30px) scale(.88); } }

/* Hero – nadpis vyjede po řádcích */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line > span {
    display: inline-block;
    transform: translateY(110%);
    animation: rise .85s cubic-bezier(.2, .8, .2, 1) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes rise { to { transform: none; } }

/* Zvýrazněné slovo – přejíždí přes něj barevný odlesk */
.shine {
    background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 38%, var(--accent) 50%, var(--ink) 62%, var(--ink) 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sweep 5s ease-in-out calc(1.2s + var(--w, 0) * .28s) infinite;
}
@keyframes sweep { 0% { background-position: 100% 0; } 14%, 100% { background-position: 0% 0; } }

.home .lead { opacity: 0; animation: fade-up .8s ease .45s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tlačítka – zvednutí, záře a pulzující kroužek u stažení */
.home .btn { transition: filter .15s, transform .2s ease, box-shadow .2s ease; }
.home .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.home .btn:active { transform: translateY(0); }
.release .btn { animation: pulse 2.6s ease-out 1.6s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
    70%, 100% { box-shadow: 0 0 0 16px transparent; }
}
.release .btn:hover { animation-play-state: paused; }

/* Verze – blikající tečka = "čerstvé" */
.release .ver::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #22c55e;
    vertical-align: 1px;
    animation: ping 2s ease-out infinite;
}
@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
    80%, 100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
}

/* Bloky – objevení při scrollu + zvednutí při najetí */
.js .reveal:not(.in) { opacity: 0; }
.reveal.in { animation: fade-up .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) backwards; }
.home .release, .home .suggest-promo { transition: transform .15s ease-out, box-shadow .15s ease-out, border-color .15s ease-out; }
.home .release:hover, .home .suggest-promo:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.suggest-promo:hover { border-color: var(--accent); }

/* Seznam změn – položky naskakují postupně */
.release.in li { animation: fade-up .55s ease backwards; animation-delay: calc(.25s + var(--i, 0) * .08s); }

/* Kdo si pohyb nepřeje, nic se hýbat nebude */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero h1 .line > span { transform: none; }
    .home .lead { opacity: 1; }
    .js .reveal:not(.in) { opacity: 1; }
    .shine { -webkit-text-fill-color: var(--ink); background: none; }
}
