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

/* === VARIABLES === */
:root {
    --primary: #6366f1;
    --primary-light: #8b5cf6;
    --surface-dark: #0f0f23;
    --surface-mid: #1a1a2e;
    --surface-light: #252540;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--surface-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === NAV === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-cta {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

/* === CONTENT (subpages) === */
.content {
    padding: 8rem 0 5rem;
    max-width: 720px;
    margin: 0 auto;
}

.content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content ul {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    font-size: 1.05rem;
}

.content ul li {
    margin-bottom: 0.4rem;
}

.content strong {
    color: var(--text);
}

.content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.content a:hover {
    color: #fff;
}

.back-link {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 600;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

/* === FOOTER === */
.footer {
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 2rem 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--primary-light);
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-brand-icon {
    width: 20px;
    height: 20px;
    filter: grayscale(1) brightness(0.7);
    opacity: 0.6;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
}

.footer-social a:has(img) {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

.footer-social a:has(img):hover {
    background: none;
    opacity: 0.8;
}

.footer-social a img {
    display: block;
    height: 32px;
    width: auto;
}

.heart {
    color: #ef4444;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface-mid);
    border-top: 1px solid rgba(99, 102, 241, 0.25);
    padding: 1.25rem 1.5rem;
    display: none;
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-icon {
    font-size: 1.2rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.cookie-banner a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #fff;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.2s;
}

.cookie-btn--accept {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.cookie-btn--accept:hover {
    transform: translateY(-1px);
}

.cookie-btn--reject {
    background: var(--surface-light);
    color: var(--text-muted);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.cookie-btn--reject:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text);
}

/* === HERO === */
.hero {
    padding: 8rem 0 5rem;
    text-align: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    background: linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-mid) 100%);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, var(--text) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(99, 102, 241, 0.45);
}

/* === MOCKUP === */
.mockup {
    margin: 3rem auto 0;
    max-width: 700px;
    background: var(--surface-mid);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.mockup-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-light);
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: var(--accent-amber); }
.mockup-dot:nth-child(3) { background: var(--accent-emerald); }

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.mockup-card {
    border-radius: 10px;
    padding: 1rem;
    background: var(--surface-light);
}

.mockup-card-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mockup-card-value {
    font-size: 1.35rem;
    font-weight: 700;
}

.mc-indigo { border-top: 3px solid var(--primary); }
.mc-indigo .mockup-card-value { color: var(--primary-light); }

.mc-emerald { border-top: 3px solid var(--accent-emerald); }
.mc-emerald .mockup-card-value { color: var(--accent-emerald); }

.mc-amber { border-top: 3px solid var(--accent-amber); }
.mc-amber .mockup-card-value { color: var(--accent-amber); }

.mockup-chart {
    grid-column: 1 / -1;
    background: var(--surface-light);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100px;
}

.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    opacity: 0.7;
}

/* === SECTIONS SHARED === */
.section {
    padding: 5rem 0;
}

/* === SECTION BACKGROUNDS === */
#funkcje {
    background:
        radial-gradient(ellipse 70% 55% at 100% 0%, rgba(99, 102, 241, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 0% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        var(--surface-dark);
}

#jak-to-dziala {
    background: var(--surface-mid);
}

#benefits {
    background:
        radial-gradient(ellipse 55% 60% at 0% 100%, rgba(16, 185, 129, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 100% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        var(--surface-dark);
}

#faq {
    background:
        radial-gradient(ellipse 65% 50% at 50% 100%, rgba(99, 102, 241, 0.07) 0%, transparent 55%),
        var(--surface-mid);
}

.final-cta {
    background:
        radial-gradient(ellipse 75% 85% at 50% 50%, rgba(99, 102, 241, 0.13) 0%, transparent 65%),
        var(--surface-dark);
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 3rem;
}

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

.section--centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* === FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    background: var(--surface-mid);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.fi-indigo  { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.fi-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.fi-amber   { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    text-align: left;
}

.badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2em 0.6em;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}

/* === HOW IT WORKS === */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.step {
    text-align: center;
    counter-increment: step;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* === BENEFITS === */
.benefits {
    background: var(--surface-mid);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.benefits h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.benefit-stat {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
}

.benefit-label {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* === FAQ === */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-list details {
    background: var(--surface-mid);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.faq-list details[open] {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-list summary {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--primary-light);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.faq-list .faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: left;
}

/* === FINAL CTA === */
.final-cta {
    text-align: center;
    padding: 5rem 0 6rem;
}

.final-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.final-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* === RESPONSIVE (index) === */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 7rem 0 3rem;
    }

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

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

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

    .mockup-chart {
        grid-column: auto;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .benefits {
        padding: 2.5rem 1.5rem;
    }

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

    .final-cta h2 {
        font-size: 1.5rem;
    }

    .faq-list summary {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-list .faq-answer {
        padding: 0 1.25rem 1rem;
    }
}

/* === RESPONSIVE (shared) === */
@media (max-width: 768px) {
    .content {
        padding: 7rem 1.5rem 3rem;
    }

    .content h1 {
        font-size: 1.5rem;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner p {
        font-size: 0.85rem;
    }
}
