/* styles.css */
:root {
    --bg: #030303;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Zamezí scrollování během animací */
}

/* Main */
main {
    flex: 1;
    display: flex;
    position: relative;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.logo-text {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    z-index: 100;
}

/* Kontejner pro obrázek - absolutně pozicován */
.hero-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 900px;
    height: 900px;
    margin-top: -450px;
    margin-left: -450px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideUpFromBehind 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    pointer-events: none;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(160, 200, 255, 0.08) 0%, rgba(0,0,0,0) 70%);
    filter: blur(50px);
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Maska, která vytvoří kruhový ořez do ztracena a 100% zneviditelní obdélníkové pozadí obrázku */
    mask-image: radial-gradient(circle at center, black 40%, transparent 68%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 68%);
}

/* Obal pro texty - absolutně pozicován FIXNĚ na střed obrazovky, posunutý o 20% níže podle požadavku */
.hero-text-content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Jemný radiální gradient za textem zaručí, že text zůstane čitelný, i když přes něj přejde svítící linka z obrázku */
    background: radial-gradient(ellipse at center, rgba(3,3,3,0.95) 0%, rgba(3,3,3,0.7) 35%, rgba(3,3,3,0) 70%);
    padding: 6rem 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    animation: fadeTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 450px;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    animation: fadeTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
    opacity: 0;
}

.action-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: fadeTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
    opacity: 0;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

@keyframes slideUpFromBehind {
    0% {
        opacity: 0;
        /* Startuje hluboko pod nadpisem */
        transform: translateY(250px);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        /* Končí o dost výše, aby vznikla požadovaná větší mezera nad nadpisem */
        transform: translateY(-200px);
    }
}

@keyframes fadeTextIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text {
        left: 50%;
        transform: translateX(-50%);
    }
    .hero-title {
        font-size: 2.8rem;
        padding: 0 1rem;
    }
    .hero-image-container {
        max-width: 100vw;
        height: 100vw;
        top: 50%; /* Vráceno na střed */
        margin-top: -50vw;
        margin-left: -50vw;
    }
    .hero-text-content {
        top: 55%; /* Jemný posun níže oproti předchozí verzi, pro dokonalý střed */
        padding: 2rem 1rem;
    }
}
