/* węższa kolumna treści dla lepszej czytelności */
.md-grid {
    max-width: 84%;
}

/* hero na stronie głównej */
.mdx-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a1a 0%, #1e1b4b 50%, #312e81 100%);
    color: white;
    padding: 4rem 1rem 6rem 1rem;
    text-align: center;
}

.mdx-hero__inner {
    max-width: 60ch;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mdx-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    line-height: 1.2;
}

.mdx-hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin: 0 0 2rem 0;
    color: white;
}

/* kontener przycisków — jedyna rzecz, której Zensical nie ma */
.mdx-hero__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* korekta kolorów dla przycisków na ciemnym hero */
.mdx-hero .md-button:not(.md-button--primary) {
    border-color: white;
    color: white;
}

.mdx-hero .md-button:not(.md-button--primary):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mdx-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: block;
}

/* ukrycie auto-generowanego tytułu — tylko na stronie głównej */
.md-content:has(.mdx-hero) .md-content__inner h1:first-of-type,
.md-content:has(.mdx-hero) .md-content__inner h2:first-of-type {
    display: none;
}
