/* Fakturomat - Nový profesionální design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    line-height: 1.7;
    color: #1e293b;
    background: #f8fafc;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Floating Header */
header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px 32px;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(51, 65, 85, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.1);
    width: 80%;
    max-width: 1040px;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e40af;
    letter-spacing: -0.3px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
    position: relative;
}

.logo-icon::before {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.logo-icon::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 12px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #3b82f6;
}

.menu-toggle {
    display: none;
}

/* Hero Section - Homepage */
.hero {
    display: flex;
    align-items: center;
    padding: 140px 0 40px;
    position: relative;
}

body.homepage-body .hero {
    display: flex;
    align-items: center;
    padding: 140px 0 40px;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.dev-notice {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.05;
    color: #0f172a;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

/* Stacked Cards */
.hero-cards {
    position: relative;
    min-height: 500px;
    height: auto;
}

.stack-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.stack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.stack-card:nth-child(1) {
    width: 320px;
    top: 0px;
    left: 20px;
    z-index: 3;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
}

.stack-card:nth-child(2) {
    width: 340px;
    top: 200px;
    right: 20px;
    z-index: 2;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #a5b4fc;
}

.stack-card:nth-child(3) {
    width: 300px;
    bottom: 40px;
    left: -60px;
    z-index: 1;
}

.stack-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.stack-card p {
    color: #475569;
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Features Section */
.features {
    background: white;
    padding: 60px 0 80px;
    position: relative;
}

.features:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, #f8fafc, white);
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.features h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

.features-intro {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto;
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.masonry-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.masonry-item:nth-child(1) {
    grid-row: span 2;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.masonry-item:nth-child(2) {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.masonry-item:nth-child(3) {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #c7d2fe;
}

.masonry-item:nth-child(4) {
    grid-column: span 2;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #ddd6fe;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.masonry-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.category-icon {
    margin-right: 12px;
    font-size: 1.75rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 9px 0;
    padding-left: 28px;
    position: relative;
    color: #334155;
    font-size: 0.9375rem;
    font-weight: 500;
}

.feature-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Highlight Cards */
.highlight-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.highlight-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.highlight-card h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.highlight-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Contact Section */
.coming-soon {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
    position: relative;
}

.coming-soon h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.coming-soon p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.contact-box {
    max-width: 700px;
    margin: 2rem auto 0;
    background: white;
    padding: 40px;
    border-radius: 16px;
    color: #0f172a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-box p {
    margin: 14px 0;
    font-size: 1.0625rem;
    color: #475569;
}

.contact-box strong {
    color: #1e40af;
    font-weight: 700;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 3rem 0;
}

/* Page Hero - for subpages */
.page-hero {
    background: #f8fafc;
    color: #0f172a;
    text-align: center;
    padding: 140px 0 60px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
    margin: 0;
}

/* Page Content - for subpages */
.page-content {
    background: white;
    padding: 60px 0;
}

.page-content .container {
    max-width: 1100px;
}

.page-content p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    color: #0f172a;
    font-size: 2.2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.page-content h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-content h4 {
    color: #0f172a;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.page-content ul, .page-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #475569;
}

.page-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Info boxes */
.page-content .info-box {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid;
}

.page-content .info-box.app-link {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.page-content .info-box.app-link h4 {
    color: #1e40af;
    margin-top: 0;
}

.page-content .info-box.app-link a {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: underline;
}

.page-content .info-box.app-link a:hover {
    color: #3b82f6;
}

.page-content .info-box.warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.page-content .info-box h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.page-content .info-box.warning h4 {
    color: #92400e;
}

.page-content .info-box p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.page-content .info-box p:last-child {
    margin-bottom: 0;
}

.page-content .info-box.feedback {
    background: #f8fafc;
    border-left-color: #3b82f6;
}

.page-content .info-box.feedback h2 {
    margin-top: 0;
    color: #1e40af;
    font-size: 1.8rem;
}

.page-content .info-box.feedback h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.page-content .info-box.contact {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-left-color: transparent;
    color: white;
    text-align: center;
    padding: 40px;
}

.page-content .info-box.contact h2 {
    margin-top: 0;
    color: white;
    font-size: 2rem;
}

.page-content .info-box.contact p {
    color: white;
}

.page-content .info-box.contact .email {
    font-size: 1.5rem;
    margin: 1.5rem 0;
}

.page-content .info-box.contact .note {
    font-size: 1rem;
}

.page-content .info-box.contact .thanks {
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    header {
        width: 90%;
    }

    .container {
        padding: 0 20px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cards {
        position: static;
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .stack-card {
        position: static !important;
        width: 100% !important;
        background: white !important;
        border: 1px solid #e2e8f0 !important;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .masonry-item {
        grid-row: auto !important;
        grid-column: auto !important;
    }

    .highlight-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        width: 90%;
        padding: 12px 20px;
        top: 20px;
    }

    nav {
        gap: 20px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #3b82f6;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .features-intro {
        font-size: 1rem;
    }

    .coming-soon h2 {
        font-size: 2rem;
    }

    .coming-soon p {
        font-size: 1rem;
    }

    .page-hero {
        padding: 100px 0 40px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-content {
        padding: 40px 0;
    }
}
