/* --- Základní proměnné (Červená paleta) --- */
:root {
    --primary: #dc2626;
    /* Moderní sytě červená (Tepovka) */
    --primary-dark: #b91c1c;
    /* Tmavší červená pro hover efekty */
    --secondary: #fee2e2;
    /* Jemně narůžovělá pro podklady a badge */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

/* --- Reset a základy --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

body {
    background-color: var(--bg-main);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.max-w {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Typografie --- */
h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* --- Navigace --- */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 1;
    /* Zajišťuje, že navigace je nad vodoznakem */
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 0;
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu a {
    color: var(--text-dark);
    font-weight: 600;
}

.menu a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Tlačítka --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-nav {
    background-color: var(--secondary);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--primary) !important;
}

/* --- Hero Sekce s vodoznakem --- */
.hero {
    position: relative;
    padding: 20px 0 100px;
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -150px;
    transform: translateY(-50%) rotate(-20deg);
    width: 800px;
    height: 800px;
    background-image: url('images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    /* Nad vodoznakem */
    text-align: center;
    max-width: 800px;
    margin-top: 60px;
}

.badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* --- Komponenty (Karty atd.) --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.info-box {
    background-color: var(--secondary);
    padding: 40px;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary);
}

/* --- Ukázky aplikací --- */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.screenshot-img {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

figcaption {
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer h3 {
    color: white;
}

.footer p {
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #334155;
    padding-bottom: 40px;
}

.social-links {
    list-style: none;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    color: #94a3b8;
}

.social-links a:hover {
    color: white;
}

.mail-link {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.scroll-top {
    color: #94a3b8;
}

/* --- Responzivita (Mobily) --- */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}