/* Homepage — no padding-top on body,
   hero section handles the offset */
body.intro-playing,
body.intro-done {
    padding-top: 0 !important;
}

/* Nav ukryty od razu na stronie głównej */
body.intro-playing nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    border-bottom-color: transparent !important;
}

body.intro-done nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.5s ease 0.2s !important;
}

.intro-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: #000000;
    animation: fadeOutIntro 0.5s ease 2.5s forwards;
    pointer-events: none;
}

.intro-logo-text {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -5px;
    opacity: 0;
    transform: scale(3);
    animation: zoomOut 2s ease forwards;
}

.intro-logo-text span {
    color: var(--red);
}

@media (max-width: 768px) {
    .intro-logo-text {
        font-size: 3.5rem;
        letter-spacing: -3px;
    }
}

@media (max-width: 480px) {
    .intro-logo-text {
        font-size: 2.8rem;
        letter-spacing: -2px;
    }
}

@keyframes zoomOut {
    0% { opacity: 0; transform: scale(3); }
    30% { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeOutIntro {
    to { opacity: 0; visibility: hidden; }
}

.animated-text {
    display: inline-block;
    opacity: 0;
    transform: scale(0.3);
}

.animated-text.line-1 {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 2.8s forwards;
}

.animated-text.line-2 {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 3.3s forwards;
}

.animated-text.line-3 {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 3.8s forwards;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #d0d0d0; /* Ljusare än --gray (#b0b0b0) för bättre kontrast */
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 0.8s ease 4.3s forwards;
}

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

.hero-h1-visual {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
    opacity: 1;
    transform: none;
    animation: none;
}

.hero {
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 1000px;
    /* padding kompensuje nav na górze
       i miejsce na PRZEWIŃ na dole */
    padding: 80px 2rem 80px;
    box-sizing: border-box;
}

.hero-buttons {
    opacity: 0;
    animation: fadeIn 0.8s ease 4.8s forwards;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .scroll-indicator {
    position: absolute;
    bottom: 6.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.8s ease 4.8s forwards;
}

@media (max-width: 768px) {
    .hero-text {
        padding: 110px 1.5rem 70px;
    }

    .hero .scroll-indicator {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
}

@media (max-width: 768px) {
    .hero .scroll-indicator {
        display: none;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .hero-text {
        padding: 100px 1.5rem 60px;
    }

    .hero-h1-visual {
        font-size: clamp(2rem, 7vw, 3.5rem) !important;
    }

    .hero .scroll-indicator {
        bottom: 0.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.solution-section {
    padding: 6rem 4rem;
    background: var(--black);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.solution-card {
    background: var(--dark-gray);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.solution-card:hover {
    border-color: rgba(214,9,9,0.3);
    transform: translateY(-4px);
}

.solution-card h3 {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.solution-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    stroke: var(--red);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stats-section {
    padding: 6rem 4rem;
    background: var(--dark-gray);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--red);
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--gray);
}

.reviews-section {
    padding: 6rem 4rem;
    background: var(--black);
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 3rem;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.review-card {
    background: var(--dark-gray);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
}

.review-card:hover {
    border-color: rgba(214,9,9,0.3);
    transform: translateY(-4px);
}

.review-stars {
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.review-source {
    font-size: 0.75rem;
    color: var(--red);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.reviews-link {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .solution-section {
        padding: 4rem 1.5rem;
    }

    .stats-section { padding: 4rem 1.5rem; }
    .stats-container { grid-template-columns: 1fr; gap: 2rem; }

    .reviews-section {
        padding: 4rem 1.5rem;
    }

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

/* ============================================
   SR-ONLY (SEO H1 ukryty wizualnie)
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   TL;DR / KEY TAKEAWAYS
   ============================================ */
.home-tldr-section {
    padding: 5rem 4rem;
    background: var(--dark-gray);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tldr-box {
    max-width: 960px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(214,9,9,0.2);
    border-radius: 16px;
    padding: 3rem;
}

.tldr-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--white);
}

.tldr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tldr-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tldr-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.tldr-item p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.65;
}

.tldr-item strong {
    color: var(--white);
}

/* ============================================
   DLA KOGO PRACUJEMY
   ============================================ */
.home-clients-section {
    background: var(--black);
}

.home-clients-section .mx-section-title,
.home-clients-section .mx-section-subtitle {
    text-align: center;
}

.home-clients-section .mx-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.client-card {
    background: var(--dark-gray);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.client-card:hover {
    border-color: rgba(214,9,9,0.3);
    transform: translateY(-4px);
}

.client-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.client-card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.client-card p {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.65;
}

.clients-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 2.5rem;
    line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */
.home-faq-section {
    background: var(--dark-gray);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.home-faq-section .mx-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 2rem;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
    letter-spacing: -0.3px;
}

.faq-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   USP BANNER w solution
   ============================================ */
.solution-usp-banner {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2rem;
    background: rgba(214,9,9,0.06);
    border: 1px solid rgba(214,9,9,0.15);
    border-radius: 12px;
}

.solution-usp-banner p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.7;
}

.solution-usp-banner strong {
    color: var(--white);
}

/* ============================================
   RESPONSIVE — nowe sekcje
   ============================================ */
@media (max-width: 768px) {
    .home-tldr-section {
        padding: 4rem 1.5rem;
    }

    .tldr-box {
        padding: 2rem 1.5rem;
    }

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

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

    .home-faq-section {
        padding: 4rem 1.5rem;
    }

    .solution-usp-banner {
        margin: 0 auto 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 1125px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero-text {
        padding-top: 90px;
        padding-bottom: 20px;
    }

    .hero-h1-visual {
        font-size: clamp(2rem, 4.5vw, 3rem) !important;
        letter-spacing: -2px;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero .scroll-indicator {
        display: none;
    }
}

/* ============================================
   HERO TRUST BAR
   ============================================ */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-trust-stars {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hero-trust-text {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.hero-trust-sep {
    color: rgba(255,255,255,0.2);
    font-size: 0.7rem;
}

@media (max-width: 480px) {
    .hero-trust {
        gap: 0.5rem;
    }

    .hero-trust-text {
        font-size: 0.75rem;
    }
}

/* ============================================
   TRUST BAR (below hero, full width)
   ============================================ */
.home-trust-bar {
    background: #1a1a1a;
    padding: 1.25rem 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

/* ============================================
   RED USP BANNER (full width)
   ============================================ */
.home-red-banner {
    background: #d60909;
    padding: 3rem 4rem;
    text-align: center;
}

.home-red-banner h2 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.home-red-banner-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    line-height: 1.6;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FINAL CTA (dark)
   ============================================ */
.home-final-cta {
    background: #1a1a1a;
    padding: 6rem 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-final-cta h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
    margin: 0 0 1rem;
}

.home-final-cta .home-final-sub {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.home-final-cta .home-final-email {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray);
}

.home-final-cta .home-final-email a {
    color: var(--red);
    text-decoration: none;
}

.home-final-cta .home-final-email a:hover {
    text-decoration: underline;
}

.home-problem-note {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.home-problem-cta-wrap {
    text-align: center;
}

/* ============================================
   STATS — 4 columns (homepage)
   ============================================ */
.stats-section.home-stats-four .stats-container {
    max-width: 1100px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .stats-section.home-stats-four .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-red-banner {
        padding: 2.5rem 1.5rem;
    }

    .home-trust-bar {
        padding: 1rem 1.5rem;
    }

    .home-final-cta {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-section.home-stats-four .stats-container {
        grid-template-columns: 1fr;
    }
}
