:root {
    --bg-1: #0b0f14;
    --bg-2: #12232b;
    --text: #eefdfe;
    --muted: #c8dbdb;
    --teal: #49e6d2;
    --glass: rgba(255,255,255,0.08);
    --glass-2: rgba(255,255,255,0.04);
    --stroke: rgba(255,255,255,0.18);
    --shadow: 0 10px 30px rgba(0,0,0,.25);
    --radius: 20px;
    color-scheme: dark;
    forced-color-adjust: none;
}

* {
    box-sizing: border-box;
    forced-color-adjust: none;
}

html, body {
    height: 100%;
}


body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, "DejaVu Sans";
    color: var(--text);
    background: radial-gradient(1200px 600px at 80% 10%, rgba(73,230,210,0.25), transparent 60%), linear-gradient(180deg, var(--bg-1), var(--bg-2));
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* NAV */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

nav {
    margin: 16px auto;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.brand h1, .brand span {
    outline: none; 
    box-shadow: none; 
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

    .brand img {
        height: 96px;
        width: auto;
    }

    .brand span, .brand h2 {
        font-size: 20px;
        margin: 0;
    }

.menu {
    display: none;
    gap: 18px;
    opacity: .9;
}

    .menu a {
        padding: 6px 8px;
        border-radius: 10px;
    }

        .menu a:hover {
            background: var(--glass-2);
        }

.cta {
    justify-self: end;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

    .hamburger span {
        display: block;
        height: 3px;
        background-color: var(--text);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

.mobile-menu {
    flex-direction: column;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--glass); /* zachová podbarvení */
    border-radius: 12px;
}

.mobile-menu-item {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

    .mobile-menu-item:hover {
        background-color: var(--teal);
        color: #061a1b;
    }

/* HERO */
.hero {
    padding: clamp(40px, 6vw, 80px) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

h1 {
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.06;
    margin: 0 0 14px;
}

.lead {
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.6;
    margin: 0 0 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.panel {
    border-radius: 28px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    padding: clamp(16px, 2.6vw, 28px);
    position: relative;
    overflow: hidden;
}

    .panel h3 {
        margin: 0 0 8px;
        font-size: clamp(18px, 2vw, 22px);
    }

    .panel p {
        margin: 0;
        color: var(--muted);
    }

.ecg {
    height: 160px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius: 16px;
    position: relative;
    margin-top: 16px;
}

    .ecg::before {
        content: "";
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 40px), repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 28px);
        border-radius: 16px;
    }

    .ecg svg {
        position: absolute;
        inset: 0;
    }

/* FEATURES */
.section {
    padding: clamp(28px, 6vw, 80px) 0;
}

    .section h2 {
        font-size: clamp(24px, 2.6vw, 34px);
        margin: 0 0 18px;
    }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.card {
    border-radius: 22px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    padding: 18px;
    box-shadow: var(--shadow);
}

    .card .icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--teal);
        display: grid;
        place-items: center;
        margin-bottom: 10px;
    }

    .card h3 {
        margin: 6px 0 8px;
        font-size: 18px;
    }

    .card p {
        margin: 0;
        color: var(--muted);
    }

/* GOALS */
.goals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 8px;
}

.goal {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--muted);
}

    .goal .tick {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--teal);
        display: grid;
        place-items: center;
        font-weight: 700;
        color: #062022;
    }

/* FOOTER */
footer {
    padding: 38px 0 60px;
    color: var(--muted);
}

.foot {
    display: grid;
    grid-template-columns: 1fr auto;
    border-top: 1px solid var(--stroke);
    padding-top: 18px;
    gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 860px) {
    .menu {
        display: flex;
    }

    .hamburger, .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 859px) {
    nav {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .hamburger {
        display: flex;
        justify-self: end;
    }

    .cta {
        grid-column: 1 / -1;
        justify-self: stretch;
        margin-top: 8px;
        text-align: center;
    }

        .cta .custom-btn {
            width: 100%;
        }
}

@media (max-width: 640px) {
    .brand img {
        height: 48px;
    }

    .brand span, .brand h2 {
        font-size: 14px;
    }
}

#app-loader {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #071018 0%, #061a1b 100%);
    z-index: 2147483647; /* velmi vysoké */
    transition: opacity 450ms ease, transform 450ms ease, visibility 450ms;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

    /* skrytý stav (přechod) */
    #app-loader.app-loader--hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px) scale(0.995);
    }

/* box obsahující logo + spinner */
.app-loader-inner {
    text-align: center;
}

/* logo styling a animace */
.app-loader-logo {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 14px;
    transform-origin: center;
    animation: logoFloat 1600ms ease-in-out infinite;
    filter: drop-shadow(0 8px 22px rgba(0,0,0,0.45));
}

/* malé pulzování glowu pod logem */
.app-loader-glow {
    width: 160px;
    height: 14px;
    margin: 6px auto 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(73,230,210,0.28), rgba(73,230,210,0.06) 40%, transparent 60%);
    filter: blur(6px);
    animation: glowPulse 1600ms ease-in-out infinite;
}

/* jednoduchý SVG-like spinner (vypadá jako MudProgressCircular) */
.app-loader-spinner {
    width: 48px;
    height: 48px;
    margin: 12px auto 0;
}

/* animace loga */
@keyframes logoFloat {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) scale(1.02) rotate(-2deg);
    }

    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* animace glow */
@keyframes glowPulse {
    0% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 0.95;
        transform: scale(1.08);
    }

    100% {
        opacity: 0.45;
        transform: scale(1);
    }
}
/* základní tlačítko */
.custom-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 14px; /* oblé rohy */
    border: 1px solid transparent;
    background: var(--teal);
    color: #061a1b;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(73,230,210,.35);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

    /* hover efekt */
    .custom-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(73,230,210,.5);
        background: #49e6d2; /* výraznější kontrast pro hover */
        color: #061a1b;
    }

    /* ghost tlačítko (průhledné) */
    .custom-btn.ghost {
        background: transparent;
        border-color: var(--stroke);
        color: var(--text);
        box-shadow: none;
    }

        /* hover ghost tlačítka */
        .custom-btn.ghost:hover {
            background: rgba(255,255,255,0.15); /* viditelný na tmavém pozadí */
            color: var(--teal);
            box-shadow: 0 6px 20px rgba(73,230,210,.35);
        }