/* --- Globalne Ustawienia i Zmienne --- */
:root {
    --primary-color: #00A878; /* Energetyczny zielony */
    --accent-color: #FFB800; /* Bursztynowy */
    --background-dark: #121212;
    --surface-dark: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --font-primary: 'Inter', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, 
.score-text-container h2,
#features h2,
#how-it-works h2,
#lite-pro h2,
#community h2,
#faq h2,
#final-cta h2 {
    font-family: var(--font-headings);
    font-weight: 700;
}

h1, .score-text-container h2 {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* For older browsers */
    -webkit-text-fill-color: transparent;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 120, 0.4);
}

.hero-section .btn-primary, #final-cta .btn-primary {
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 168, 120, 0.3), 0 0 10px rgba(0, 168, 120, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 168, 120, 0.6), 0 0 30px rgba(0, 168, 120, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 168, 120, 0.3), 0 0 10px rgba(0, 168, 120, 0.2);
    }
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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


/* --- Nagłówek i Nawigacja --- */
.main-header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    background-color: var(--surface-dark);
    border-radius: 50px;
    padding: 0.2rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    padding: 0.6rem 0.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--surface-dark);
}

.nav-toggle {
    display: none; /* Ukryty na desktopie */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease-in-out;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    left: 0;
    transition: all 0.3s ease-in-out;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }


/* --- Sekcja Hero --- */
.hero-section {
    padding-top: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.hero-content {
    max-width: 50%;
}
.hero-content .sub-link {
    display: block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
}
.hero-image {
    max-width: 45%; /* Adjust as needed */
    flex-shrink: 0;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Sekcja Zaproszenia do Testów */
#beta-test {
    text-align: center; 
    background-color: var(--surface-dark); 
    padding: 3rem 0;
}
#beta-test h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
#beta-test p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
}

/* Sekcja funkcji */
.feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Sekcja społeczności */
.community-image {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* --- Inne Sekcje (placeholdery) --- */
.social-proof-section { text-align: center; background-color: var(--surface-dark); padding: 2rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-card { 
    background: var(--surface-dark); 
    padding: 2rem; 
    border-radius: 10px; 
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 168, 120, 0.3);
}
.how-it-works-section { background-color: var(--surface-dark); }
.steps-container { display: flex; justify-content: space-around; gap: 2rem; text-align: center; }
.step span { display: block; font-size: 3rem; font-weight: 700; color: var(--primary-color);}

/* Sekcja Wyjaśnienia Score */
.score-explanation-section {
    background-color: var(--background-dark); /* Inny kolor dla wyróżnienia */
}
.score-explanation-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.score-image-container {
    flex: 1;
    max-width: 45%;
}
.score-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.score-text-container {
    flex: 1;
}
.score-text-container h2 {
    text-align: left;
}
.score-text-container p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}


.lite-pro-section .pricing-table { width: 100%; overflow-x: auto; }
.lite-pro-section table { width: 100%; border-collapse: collapse; }
.lite-pro-section th, .lite-pro-section td { padding: 1rem; text-align: center; border-bottom: 1px solid var(--surface-dark); vertical-align: middle; }
.lite-pro-section th { background-color: var(--surface-dark); }

.pricing-icon {
    display: block;
    height: 48px;
    width: 48px;
    margin: 0 auto 0.5rem;
}

.lite-pro-section .cta-buttons { text-align: center; margin-top: 2rem; display: flex; gap: 1rem; justify-content: center;}
.community-section { background-color: var(--surface-dark); }

/* --- FAQ --- */
.faq-accordion .faq-item {
    background: var(--surface-dark);
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}
.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}
.faq-item.active .faq-answer {
    max-height: 300px; /* Wystarczająco duża wartość */
}


.final-cta-section { text-align: center; background: linear-gradient(to top, var(--surface-dark), var(--background-dark));}

/* --- Stopka --- */
.main-footer {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--surface-dark);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; gap: 1rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.copyright { color: var(--text-secondary); font-size: 0.9rem; }


/* --- Media Queries dla responsywności --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 4rem 0; }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: var(--surface-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
     .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .manual-container {
        flex-direction: column;
    }

    .manual-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .score-explanation-container {
        flex-direction: column;
    }
    .score-image-container {
        max-width: 80%;
        margin-bottom: 2rem;
    }
    .score-text-container h2, .score-text-container p {
        text-align: center;
    }
}

/* --- Style dla strony Instrukcji --- */

.manual-page {
    padding-top: 6rem;
}

.manual-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.manual-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 6rem; /* Wysokość nagłówka */
    align-self: flex-start;
}

.manual-sidebar h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.toc-list a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    color: var(--text-primary);
    border-left-color: var(--accent-color);
}

.toc-list a.active {
    color: var(--text-primary);
    font-weight: 700;
    border-left-color: var(--primary-color);
}

.manual-content {
    flex-grow: 1;
    min-width: 0; /* Zapobiega rozpychaniu layoutu */
}

.manual-content section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--surface-dark);
}

.manual-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}
.manual-content h2 {
    font-size: 2.2rem;
    text-align: left;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.manual-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.manual-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.manual-content p, .manual-content li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.manual-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.manual-content a {
    color: var(--primary-color);
}

.metric-card {
    background-color: var(--surface-dark);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.manual-content dl dt {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.manual-content dl dd {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
