:root {
    --seo-bg: #f3f4f6;
    --seo-bg-soft: #f9fafb;
    --seo-bg-white: #ffffff;

    --seo-primary: #2563eb;
    --seo-primary-soft: #dbeafe;
    --seo-primary-strong: #1d4ed8;

    --seo-text-main: #0f172a;
    --seo-text-secondary: #4b5563;
    --seo-text-muted: #6b7280;

    --seo-border: #e5e7eb;
    --seo-border-soft: #e5e7eb;

    --seo-radius-lg: 1.5rem;
    --seo-radius: 1rem;
    --seo-shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.10);
    --seo-shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.06);
    --seo-transition-fast: 160ms ease-out;
}

/* GLOBAL */

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #e5edff 0, #f3f4f6 38%, #f9fafb 100%);
    color: var(--seo-text-main);
    -webkit-font-smoothing: antialiased;
}

.seo-main {
    position: relative;
    z-index: 1;
}

/* SPARKS BACKGROUND – delikatna animacja */

.seo-sparks-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(191, 219, 254, 0.40) 0, transparent 60%),
        radial-gradient(circle at 80% 0%, rgba(199, 210, 254, 0.40) 0, transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(219, 234, 254, 0.32) 0, transparent 55%);
    opacity: 0.9;
    animation: seoSparksMove 35s linear infinite alternate;
}

@keyframes seoSparksMove {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-20px, 25px, 0);
    }
}

/* NAVBAR */

.seo-navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 10;
}

.seo-navbar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.seo-navbar .nav-link {
    font-size: 0.9rem;
    color: var(--seo-text-secondary);
}

.seo-navbar .nav-link:hover,
.seo-navbar .nav-link:focus {
    color: var(--seo-primary);
}

.seo-navbar .btn-primary {
    font-size: 0.85rem;
}

/* LOGO */

.seo-logo {
    height: 32px;
    width: auto;
}

/* HERO */

.seo-hero {
    position: relative;
    z-index: 1;
}

.seo-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--seo-primary-strong);
    font-weight: 600;
}

.seo-hero-title {
    font-size: clamp(2.3rem, 3vw + 1.4rem, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.seo-hero .lead {
    max-width: 38rem;
}

.seo-hero-card {
    border-radius: var(--seo-radius-lg);
    background: var(--seo-bg-white);
    border: 1px solid var(--seo-border);
    padding: 1.75rem 1.9rem;
    box-shadow: var(--seo-shadow-soft);
}

.seo-hero-bar {
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, #bfdbfe, #60a5fa, #4f46e5);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

/* SECTION TITLES */

.seo-section-title {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}

/* CARDS – FEATURES / KPI */

.text-secondary {
    color: var(--seo-text-secondary) !important;
}

.seo-feature-card {
    height: 100%;
    border-radius: var(--seo-radius);
    background: var(--seo-bg-white);
    border: 1px solid var(--seo-border);
    padding: 1.25rem 1.3rem;
    box-shadow: var(--seo-shadow-subtle);
    transition:
        transform var(--seo-transition-fast),
        box-shadow var(--seo-transition-fast),
        border-color var(--seo-transition-fast);
}

.seo-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

/* listy */

.seo-list {
    padding-left: 1rem;
}

.seo-list li + li {
    margin-top: 0.35rem;
}

/* KPI BOXES */

.seo-kpi-card {
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(145deg, #eff6ff, #e0f2fe);
    padding: 0.9rem 1rem;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.15);
}

.seo-kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #1d4ed8;
    font-weight: 600;
}

.seo-kpi-value {
    display: block;
    margin-top: 0.15rem;
    font-weight: 700;
    color: #1e293b;
}

.seo-kpi-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: #475569;
}

/* SEO lokalne / ogólne */

.seo-pill-card {
    border-radius: 1rem;
    background: var(--seo-bg-white);
    border: 1px solid var(--seo-border-soft);
    padding: 1.1rem 1.2rem;
}

.seo-steps-card {
    border-radius: var(--seo-radius-lg);
    background: var(--seo-bg-white);
    border: 1px solid var(--seo-border);
    padding: 1.6rem 1.7rem;
    box-shadow: var(--seo-shadow-soft);
}

.seo-steps {
    margin: 0;
    padding-left: 1.3rem;
    font-size: 0.93rem;
}

.seo-steps li + li {
    margin-top: 0.4rem;
}

/* AUDYT SEO */

.seo-audit-card {
    height: 100%;
    border-radius: 1.2rem;
    background: var(--seo-bg-white);
    border: 1px solid var(--seo-border);
    padding: 1.25rem 1.3rem;
    box-shadow: var(--seo-shadow-subtle);
}

.seo-audit-summary {
    border-radius: 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1.2rem 1.4rem;
}

/* STATYSTYKI + WYKRES – karta stats */

.seo-stats-card {
    border-radius: var(--seo-radius-lg);
    background: var(--seo-bg-white);
    border: 1px solid var(--seo-border);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--seo-shadow-soft);
}

.seo-stat-box {
    border-radius: 1rem;
    background: #f9fafb;
    border: 1px solid var(--seo-border);
    padding: 0.9rem 1rem;
}

.seo-stat-label {
    font-size: 0.8rem;
    color: var(--seo-text-muted);
}

.seo-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--seo-text-main);
}

.seo-stat-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--seo-text-secondary);
}

/* WYKRES – efekt końcowy (połączone style) */

.seo-chart {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 1.75rem 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--seo-border);
}

.seo-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.seo-chart-inner {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(to bottom, #f3f4ff, #ffffff);
    padding: .75rem .75rem 1.5rem;
}

.seo-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* siatka i osie */

.seo-chart-grid line {
    stroke: rgba(148, 163, 184, 0.25);
    stroke-width: 1;
}

.seo-chart-axis-y line {
    stroke: rgba(148, 163, 184, 0.6);
    stroke-width: 1.2;
}

.seo-chart-axis-y text,
.seo-chart-axis-x text {
    fill: #64748b;
    font-size: 11px;
}

/* obszary */

.seo-chart-area {
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-width: 1.5;
}

.seo-chart-area--impressions {
    fill: url(#seoImpressions);
    stroke: rgba(129, 140, 248, 0.9);
}

.seo-chart-area--clicks {
    fill: url(#seoClicks);
    stroke: rgba(37, 99, 235, 0.95);
}

/* punkty na wykresie */

.seo-chart-point {
    fill: #2563eb;
    stroke: #ffffff;
    stroke-width: 2;
    cursor: pointer;
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.45));
    transition: r .15s ease, fill .15s ease, stroke-width .15s ease;
}

.seo-chart-point:hover {
    r: 7.5px;
    stroke-width: 2.5px;
}

/* animacja wejścia */

.seo-chart-area--impressions,
.seo-chart-area--clicks {
    transform-origin: bottom;
    animation: seoChartAppear 1.1s ease-out;
}

@keyframes seoChartAppear {
    from {
        opacity: 0;
        transform: scaleY(0.9);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* tooltip */

.seo-chart-tooltip {
    position: absolute;
    min-width: 150px;
    padding: .55rem .7rem;
    border-radius: .75rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    font-size: 12px;
    color: #0f172a;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -110%);
    transition: opacity .12s ease, transform .12s ease;
    z-index: 3;
}

.seo-chart-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, -125%);
}

/* PROCES WSPÓŁPRACY */

.seo-process-card {
    border-radius: 1.25rem;
    background: var(--seo-bg-white);
    border: 1px solid var(--seo-border);
    padding: 1.2rem 1.3rem 1.3rem 1.3rem;
    position: relative;
    box-shadow: var(--seo-shadow-subtle);
}

.seo-process-step {
    position: absolute;
    top: -0.8rem;
    left: 1.2rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: var(--seo-primary);
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.5);
}

.seo-final-cta {
    border-radius: var(--seo-radius-lg);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #eff6ff;
    padding: 1.9rem 1.8rem 2rem;
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.4);
}

.seo-final-cta p {
    color: #e5edff;
}

/* FOOTER */

.seo-footer {
    position: relative;
    z-index: 1;
}

/* BUTTONY */

.btn-primary {
    background-color: var(--seo-primary);
    border-color: var(--seo-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--seo-primary-strong);
    border-color: var(--seo-primary-strong);
}

.btn-outline-primary {
    color: var(--seo-primary);
    border-color: var(--seo-primary);
}

.btn-outline-primary:hover {
    background-color: var(--seo-primary);
    border-color: var(--seo-primary);
    color: #fff;
}

/* UTILITIES */

.py-lg-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

/* RESPONSYWNOŚĆ */

@media (max-width: 991.98px) {
    .seo-hero-title {
        font-size: 2.3rem;
    }

    .seo-hero-card {
        margin-top: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .seo-hero-card,
    .seo-stats-card,
    .seo-chart,
    .seo-steps-card,
    .seo-audit-card {
        border-radius: 1rem;
    }

    .seo-section-title {
        font-size: 1.55rem;
    }
}

/* === ANIMOWANE TŁO – SIEC PUNKTÓW === */

.seo-network-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.18) 0, transparent 55%),
        linear-gradient(180deg, #020617 0%, #020617 35%, #020617 100%);
}

#seo-network-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* content nad tłem */

.seo-main,
.seo-navbar-wrapper,
.seo-footer {
    position: relative;
    z-index: 1;
}
