/* =========================================================
   StatiF – site.css (redesign 2026)
   ========================================================= */

:root {
    --navy-900: #000f26;
    --navy-800: #001a3d;
    --navy-700: #002d65;
    --blue-600: #0057c4;
    --blue-500: #0068e9;
    --blue-400: #3d8bff;
    --blue-100: #e6f0ff;
    --green-500: #00c853;
    --red-500: #e53935;

    --ink: #0b1b33;
    --ink-soft: #4a5a75;
    --line: #dde5f0;
    --bg: #ffffff;
    --bg-tint: #f4f7fc;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(0, 26, 61, .06), 0 2px 8px rgba(0, 26, 61, .05);
    --shadow: 0 10px 30px rgba(0, 26, 61, .10);
    --shadow-lg: 0 30px 80px rgba(0, 10, 30, .45);

    --container: 1180px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

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

/* Překladové řetězce jsou psány VERZÁLKAMI – zobrazíme je jako větu */
.sentence-case { text-transform: lowercase; }
.sentence-case::first-letter { text-transform: uppercase; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-400);
    margin-bottom: 18px;
}
.eyebrow-dark { color: var(--blue-500); margin-bottom: 10px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; }

.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 8px 24px rgba(0, 104, 233, .35); }
.btn-primary:hover { background: var(--blue-600); }

.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }

.btn-outline { color: var(--blue-500); border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--blue-500); }

.btn-white { background: #fff; color: var(--navy-700); }
.btn-white:hover { background: var(--blue-100); }

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-h);
    color: #fff;
    transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
    background: rgba(0, 20, 48, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}
.main-nav a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: color .2s;
}
.main-nav a:hover { color: #fff; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}
.lang-switch a {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { background: #fff; color: var(--navy-700); }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s, opacity .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); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--navy-900);
    padding: calc(var(--header-h) + 72px) 0 64px;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(0, 104, 233, .55), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(0, 104, 233, .30), transparent 60%),
        linear-gradient(180deg, rgba(0, 15, 38, .55), rgba(0, 15, 38, .92)),
        url(../img/bg.png) center / cover no-repeat;
}
.hero-bg::after {
    /* jemné „hřiště“ v pozadí */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 12px;
}
.hero-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .85);
}
.hero-points li::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
/* ::first-letter nefunguje u flex položek, proto obsah obalíme */
.hero-points li.sentence-case { display: block; padding-left: 34px; position: relative; }
.hero-points li.sentence-case::before { position: absolute; left: 0; top: 3px; }

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-visual { perspective: 1600px; }

.tablet {
    position: relative;
    padding: 12px;
    border-radius: 26px;
    background: linear-gradient(145deg, #1b2a44, #0a1426);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform .6s ease;
}
.tablet:hover { transform: rotateY(-3deg) rotateX(2deg); }
.tablet img { border-radius: 16px; }
.tablet::before {
    content: "";
    position: absolute;
    inset: -40px -40px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--blue-500);
    filter: blur(80px);
    opacity: .5;
    z-index: -1;
}

/* ---------- Stats ---------- */

.stats {
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.stat {
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat-value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff, #9cc3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
    font-weight: 600;
}

/* ---------- Sections ---------- */

.section { padding: 112px 0; }
.section-tint { background: var(--bg-tint); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
    color: var(--navy-700);
    text-transform: lowercase;
}
.section-head h2::first-letter { text-transform: uppercase; }

/* ---------- Features ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.feature-icon {
    width: 64px;
    height: 64px;
    padding: 14px;
    border-radius: 18px;
    background: var(--blue-100);
    margin-bottom: 22px;
}
.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-700);
    margin-bottom: 12px;
}
.feature-card p { color: var(--ink-soft); }

.check-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}
.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-soft);
}
.check-list li::first-letter { text-transform: uppercase; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230068e9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list-light li { color: rgba(255, 255, 255, .9); }
.check-list-light li::before {
    background-color: rgba(255, 255, 255, .2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}

/* ---------- Carousel ---------- */

.carousel { max-width: 960px; margin: 0 auto; }

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}
.carousel-track {
    display: flex;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
    touch-action: pan-y;
}
.slide {
    flex: 0 0 100%;
    margin: 0;
    padding: 14px 14px 0;
}
.slide img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-tint);
    user-select: none;
    -webkit-user-drag: none;
}
.slide figcaption {
    min-height: 96px;
    padding: 20px 14px 24px;
    color: var(--ink-soft);
    font-size: 1rem;
    text-align: center;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}
.carousel-btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--navy-700);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.carousel-btn:hover { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.carousel-btn:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; }
.carousel-counter {
    min-width: 64px;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--navy-700);
}
.carousel-progress {
    height: 4px;
    max-width: 240px;
    margin: 18px auto 0;
    border-radius: 4px;
    background: var(--line);
    overflow: hidden;
}
.carousel-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--blue-500);
    transition: width .5s ease;
}

/* ---------- Video + quote ---------- */

.video-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}
.video-frame {
    position: relative;
    aspect-ratio: 560 / 377;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-800);
    box-shadow: var(--shadow);
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.quote { margin: 0; position: relative; }
.quote-mark { color: var(--blue-500); margin-bottom: 12px; }
.quote p {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--ink);
}
.quote b {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-700);
}

/* ---------- Pricing ---------- */

.free-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 48px;
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(61, 139, 255, .6), transparent 60%),
        linear-gradient(135deg, var(--blue-500), var(--navy-700));
    box-shadow: 0 20px 50px rgba(0, 104, 233, .3);
    margin-bottom: 24px;
}
.free-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: lowercase;
}
.free-card h3::first-letter { text-transform: uppercase; }
.free-card-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    text-align: right;
}
.free-card-cta p { font-weight: 600; color: rgba(255, 255, 255, .9); }

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.price-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow .25s, transform .25s;
}
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.price-card-featured { border: 2px solid var(--blue-500); box-shadow: var(--shadow); }
.price-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy-700);
    letter-spacing: 0;
}
.price-desc {
    flex: 1;
    color: var(--ink-soft);
    font-size: .95rem;
}
/* Cena je součástí překladového řetězce v <h4> */
.price-desc br { display: none; }
.price-desc h4 {
    margin-top: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
}
.price-desc h4 h4 { margin: 0; font-size: inherit; }
.price-card .btn { margin-top: 8px; }

/* ---------- Download ---------- */

.download {
    position: relative;
    padding: 104px 0;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(0, 104, 233, .5), transparent 70%),
        var(--navy-800);
    overflow: hidden;
}
.download h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-weight: 800;
}
.store-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
.store-links a { transition: transform .2s; }
.store-links a:hover { transform: translateY(-2px); }
.store-links img { height: 56px; width: auto; }
.web-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
    padding: 10px 10px 10px 24px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
}
.web-link span { font-weight: 600; color: rgba(255, 255, 255, .85); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .7);
    padding: 72px 0 0;
    font-size: .95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand p { margin-top: 14px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.footer-col a {
    text-decoration: none;
    transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    margin-top: 56px;
    padding-top: 24px;
    padding-bottom: 32px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .85rem;
}
.footer-bottom a { color: #fff; text-decoration: none; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
    .price-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { gap: 40px; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }

    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }

    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 20px;
        background: rgba(0, 20, 48, .97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
    .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
    .header-actions { margin-left: auto; }
    .site-header.menu-open { background: rgba(0, 20, 48, .97); }

    .hero { padding-top: calc(var(--header-h) + 48px); }
    .hero-inner { grid-template-columns: 1fr; }
    .tablet { transform: none; }
    .tablet:hover { transform: none; }

    .video-grid { grid-template-columns: 1fr; gap: 40px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .section { padding: 80px 0; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }

    .stats { grid-template-columns: 1fr; margin-top: 48px; }
    .stat { padding: 18px; }
    .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }

    .hero-buttons .btn { flex: 1 1 100%; }

    .feature-grid, .price-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 28px 24px; }

    .free-card { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
    .free-card-cta { align-items: flex-start; text-align: left; }

    .slide { padding: 8px 8px 0; }
    .slide figcaption { font-size: .92rem; min-height: 120px; padding: 16px 8px 20px; }

    .web-link { border-radius: var(--radius); padding: 16px; flex-direction: column; }
    .store-links img { height: 48px; }

    .lang-switch a { padding: 4px 8px; }
}
