:root {
    --primary: #6a1cf6;
    --primary-light: #ac8eff;
    --primary-dim: #5a14e0;
    --primary-glow: rgba(106, 28, 246, 0.35);
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #f5f6fa;
    --surface: #ffffff;
    --border: #e5e7eb;
    --font-display: "Manrope", system-ui, sans-serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
    --max-width: 720px;
    --max-width-home: 1040px;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dim);
}

/* Plansza FE — widoczna bez przewijania, nad nagłówkiem */
.eu-plansza {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
}

.eu-plansza__link {
    display: block;
    max-width: var(--max-width-home);
    margin: 0 auto;
    text-decoration: none;
}

.eu-plansza__link:hover {
    opacity: 0.92;
}

.eu-plansza__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: center;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    max-width: var(--max-width-home);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand__logo {
    display: block;
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 0.25rem;
}

.nav__link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.nav__link:hover {
    color: var(--text);
    background: var(--bg);
}

.nav__link.is-active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

/* Main */
.page {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

body.is-home .page {
    max-width: var(--max-width-home);
    padding: 0 1.5rem 3rem;
}

.panel {
    display: none;
}

.panel.is-active {
    display: block;
}

/* ── HOME HERO ── */
.hero-band {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem 0 3rem;
    margin-bottom: 2rem;
}

.hero-band__bg {
    position: absolute;
    inset: -2rem -1.5rem 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 40%, var(--primary-glow), transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(172, 142, 255, 0.25), transparent 60%),
        linear-gradient(160deg, #faf8ff 0%, var(--bg) 55%, #eef0f8 100%);
    border-radius: 0 0 24px 24px;
    z-index: -1;
}

.hero-band__eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 999px;
}

.hero-band__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.hero-band__title span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-band__lead {
    margin: 0 0 1.75rem;
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 42ch;
    line-height: 1.6;
}

.hero-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 1.35rem;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 18px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

.btn--ghost {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
}

.btn--ghost:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

/* Chat mockup */
.chat-mock {
    background: var(--surface);
    border-radius: 18px;
    box-shadow:
        0 20px 50px rgba(106, 28, 246, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 15%, var(--border));
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.chat-mock__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #faf8ff, #fff);
}

.chat-mock__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 0 8px var(--primary-glow);
}

.chat-mock__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.chat-mock__msg {
    max-width: 92%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.chat-mock__msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-mock__msg--bot {
    align-self: flex-start;
    background: #f3f4f6;
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-mock__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-left: 0.25rem;
}

.chat-mock__chips span {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.chat-mock__products {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.chat-mock__product {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.75rem;
}

.chat-mock__product strong {
    display: block;
    font-size: 0.8125rem;
}

.chat-mock__product span {
    color: var(--primary);
    font-weight: 700;
}

.chat-mock__product-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8e0ff, #f3f0ff);
    flex-shrink: 0;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stat:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
    box-shadow: 0 4px 16px rgba(106, 28, 246, 0.08);
}

.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(106, 28, 246, 0.1);
}

.feature__icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature h2 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.feature p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* How it works */
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 2rem;
    letter-spacing: -0.02em;
}

.how {
    margin-bottom: 3rem;
}

.how__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.how__step {
    display: flex;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.35rem;
}

.how__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9375rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
}

.how__step strong {
    display: block;
    font-family: var(--font-display);
    margin-bottom: 0.35rem;
}

.how__step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Audience */
.audience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.audience__card {
    padding: 1.75rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.audience__card--accent {
    background: linear-gradient(135deg, var(--primary), #8b4dff);
    border: none;
    color: #fff;
}

.audience__card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

.audience__card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.audience__card--accent p {
    color: rgba(255, 255, 255, 0.88);
}

/* Other panels */
.page-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}

.card p {
    margin: 0 0 1rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.contact-list {
    margin: 1.25rem 0 0;
}

.contact-list dt {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-top: 1rem;
}

.contact-list dt:first-child {
    margin-top: 0;
}

.contact-list dd {
    margin: 0.2rem 0 0;
    font-weight: 600;
}

/* Dofinansowanie / KPO */
.card--kpo {
    padding: 1.75rem 2rem;
}

.kpo-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
}

.kpo-text p {
    margin: 0 0 1rem;
}

.kpo-text p:last-child {
    margin-bottom: 0;
}

.kpo-text__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid var(--border);
}

.kpo-figure {
    margin: 1.5rem 0 0;
    text-align: center;
}

.kpo-figure__img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.footer {
    text-align: center;
    padding: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-band {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2.5rem;
    }

    .chat-mock {
        max-width: 400px;
        margin: 0 auto;
        animation: none;
    }

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

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

@media (max-width: 520px) {
    .site-header__inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem;
    }

    .nav {
        justify-content: center;
    }

    body.is-home .page,
    .page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-band__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
