/* ============================================
   BinSoft Guides — Design System
   Wyciagniety z prototypu Google Stitch
   Dark theme + Gold accents (#d4af37)
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Kolory podstawowe */
    --primary: #f2ca50;
    --primary-container: #d4af37;
    --on-primary: #3c2f00;
    --on-primary-container: #554300;
    --primary-fixed: #ffe088;
    --primary-fixed-dim: #e9c349;

    /* Kolory drugorzedne */
    --secondary: #adc6ff;
    --secondary-container: #0566d9;
    --on-secondary: #002e6a;

    /* Kolory trzeciorzedn */
    --tertiary: #d7c5ff;
    --tertiary-container: #bea4ff;
    --on-tertiary: #3c0091;

    /* Powierzchnie */
    --background: #0b1326;
    --surface: #0b1326;
    --surface-dim: #0b1326;
    --surface-container-lowest: #060e20;
    --surface-container-low: #131b2e;
    --surface-container: #171f33;
    --surface-container-high: #222a3d;
    --surface-container-highest: #2d3449;
    --surface-variant: #2d3449;
    --surface-bright: #31394d;

    /* Tekst */
    --on-surface: #dae2fd;
    --on-surface-variant: #d0c5af;
    --on-background: #dae2fd;

    /* Obramowania */
    --outline: #99907c;
    --outline-variant: #4d4635;

    /* Bledy */
    --error: #ffb4ab;
    --error-container: #93000a;
    --on-error: #690005;

    /* Success (dodane — brak w Stitch) */
    --success: #22c55e;
    --success-dim: #16a34a;

    /* Inverse */
    --inverse-surface: #dae2fd;
    --inverse-on-surface: #283044;
    --inverse-primary: #735c00;

    /* Typografia */
    --font-headline: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-label: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Rozmiary */
    --max-width: 1440px;
    --content-width: 1200px;
    --nav-height: 72px;

    /* Cienie */
    --shadow-gold: 0 8px 32px 0 rgba(212, 175, 55, 0.04);
    --shadow-gold-hover: 0 0 20px rgba(242, 202, 80, 0.3);
    --shadow-card: 0 24px 48px -12px rgba(0, 0, 0, 0.3);

    /* Animacje */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* --- Light theme override --- */
[data-theme="light"] {
    --background: #fafbff;
    --surface: #fafbff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f2f4fa;
    --surface-container: #eceef6;
    --surface-container-high: #e2e4ee;
    --surface-container-highest: #d6d8e4;
    --surface-variant: #e6e8f0;
    --surface-bright: #f0f2f8;
    --on-surface: #111827;
    --on-surface-variant: #374151;
    --on-background: #111827;
    --outline: #6b7280;
    --outline-variant: #d1d5db;
    --primary: #8b6914;
    --primary-container: #b8941e;
    --primary-fixed: #a07c10;
    --on-primary: #ffffff;
    --on-primary-container: #ffffff;
    --secondary: #1d4ed8;
    --tertiary: #7c3aed;
    --error: #dc2626;
    --success: #16a34a;
    --shadow-gold: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-gold-hover: 0 8px 24px rgba(139, 105, 20, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav {
    background: rgba(250, 251, 255, 0.85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .code-block {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="light"] .code-block__header {
    background: #334155;
    border-color: #475569;
}

[data-theme="light"] .code-block pre {
    color: #e2e8f0;
}

[data-theme="light"] .code-block .kw { color: #93c5fd; }
[data-theme="light"] .code-block .fn { color: #c4b5fd; }
[data-theme="light"] .code-block .str { color: #86efac; }
[data-theme="light"] .code-block .cm { color: #94a3b8; }
[data-theme="light"] .code-block .nr { color: #fde68a; }

[data-theme="light"] .code-block__filename { color: #94a3b8; }
[data-theme="light"] .code-block__copy { color: #fde68a; }

[data-theme="light"] .footer {
    background: #111827;
    border-color: #1f2937;
}

[data-theme="light"] .footer__brand,
[data-theme="light"] .footer__heading { color: #d4af37; }
[data-theme="light"] .footer__copy,
[data-theme="light"] .footer__links a { color: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .footer__links a:hover { color: #f2ca50; }

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--on-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

::selection {
    background: rgba(242, 202, 80, 0.3);
    color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-container-lowest); }
::-webkit-scrollbar-thumb { background: var(--surface-container-high); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--outline-variant); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-fixed); }

/* --- Typografia --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.15;
    color: var(--on-surface);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: var(--on-surface-variant); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }
.text-muted { color: rgba(218, 226, 253, 0.5); }

.font-label { font-family: var(--font-label); }
.font-mono { font-family: var(--font-mono); }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Nawigacja (Top Nav) --- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(11, 19, 38, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-gold);
    transition: background var(--transition-base);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    height: var(--nav-height);
}

.nav__logo {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-container);
    letter-spacing: -0.04em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    font-family: var(--font-headline);
    font-size: 0.9375rem;
    color: rgba(218, 226, 253, 0.7);
    transition: color var(--transition-fast);
    letter-spacing: -0.01em;
}

.nav__link:hover,
.nav__link--active {
    color: var(--primary);
}

.nav__link--active {
    border-bottom: 2px solid var(--primary-container);
    padding-bottom: 4px;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--on-surface);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.nav__icon-btn:hover {
    background: rgba(34, 42, 61, 0.5);
}

/* Hamburger (mobile) */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--on-surface);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav__mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface-container);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--outline-variant);
    z-index: 49;
}

.nav__mobile-menu.is-open { display: block; }

.nav__mobile-menu .nav__links {
    flex-direction: column;
    gap: 1rem;
}

/* --- Przyciski --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    line-height: 1;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
    background: var(--primary-container);
    color: var(--on-primary);
}
.btn--primary:hover {
    background: var(--primary);
    box-shadow: var(--shadow-gold-hover);
    color: var(--on-primary);
}

.btn--outline {
    background: transparent;
    color: var(--on-surface);
    border: 1px solid rgba(77, 70, 53, 0.3);
}
.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.btn--ghost:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-xl);
}

.btn--full { width: 100%; }

/* --- Karty --- */
.card {
    background: var(--surface-container-low);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.2);
}

.card--elevated {
    background: var(--surface-container-high);
    box-shadow: var(--shadow-card);
}

.card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card__icon--primary { background: rgba(242, 202, 80, 0.1); color: var(--primary); }
.card__icon--secondary { background: rgba(173, 198, 255, 0.1); color: var(--secondary); }
.card__icon--tertiary { background: rgba(215, 197, 255, 0.1); color: var(--tertiary); }
.card__icon--error { background: rgba(255, 180, 171, 0.1); color: var(--error); }
.card__icon--success { background: rgba(34, 197, 94, 0.1); color: var(--success); }

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-label);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.badge--primary {
    background: rgba(242, 202, 80, 0.1);
    color: var(--primary);
    border: 1px solid rgba(242, 202, 80, 0.2);
}

.badge--secondary {
    background: rgba(173, 198, 255, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(173, 198, 255, 0.2);
}

.badge--error {
    background: rgba(255, 180, 171, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 180, 171, 0.2);
}

.badge--success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge--tertiary {
    background: rgba(215, 197, 255, 0.1);
    color: var(--tertiary);
    border: 1px solid rgba(215, 197, 255, 0.2);
}

.badge--free {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge--pro {
    background: rgba(242, 202, 80, 0.15);
    color: var(--primary);
    border: 1px solid rgba(242, 202, 80, 0.3);
}

/* --- Callout boxy (Wskazowka / Pulapka / Sprawdz) --- */
.callout {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--surface-container-low);
    margin: 1.5rem 0;
}

.callout--tip { border-left: 4px solid var(--primary); }
.callout--warning { border-left: 4px solid var(--error); }
.callout--check { border-left: 4px solid var(--success); }
.callout--info { border-left: 4px solid var(--secondary); }

.callout__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.callout--tip .callout__title { color: var(--primary); }
.callout--warning .callout__title { color: var(--error); }
.callout--check .callout__title { color: var(--success); }
.callout--info .callout__title { color: var(--secondary); }

.callout__text {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin: 0;
}

/* --- Bloki kodu --- */
.code-block {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface-container-lowest);
    border: 1px solid rgba(77, 70, 53, 0.2);
    margin: 1.5rem 0;
}

.code-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(45, 52, 73, 0.3);
    border-bottom: 1px solid rgba(77, 70, 53, 0.2);
}

.code-block__filename {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(218, 226, 253, 0.6);
}

.code-block__copy {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-label);
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.code-block__copy:hover { color: var(--primary-fixed); }
.code-block__copy.is-copied { color: var(--success); }

.code-block pre {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(218, 226, 253, 0.8);
    margin: 0;
}

/* Kolorowanie skladni (inline) */
.code-block .kw { color: var(--secondary); }       /* keyword */
.code-block .fn { color: var(--tertiary); }         /* function */
.code-block .str { color: var(--success); }         /* string */
.code-block .cm { color: rgba(218, 226, 253, 0.4); } /* comment */
.code-block .nr { color: var(--primary); }          /* number */

/* --- Sekcje --- */
.section {
    padding: 5rem 0;
}

.section--hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
}

.section__label {
    font-family: var(--font-label);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section__title {
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    max-width: 640px;
    line-height: 1.7;
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

/* --- Cennik --- */
.pricing-card {
    background: var(--surface-container-low);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pricing-card__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.pricing-card--free .pricing-card__accent { background: var(--outline-variant); }
.pricing-card--pro .pricing-card__accent { background: var(--primary); }

.pricing-card--pro {
    background: var(--surface-container-high);
    box-shadow: 0 24px 48px -12px rgba(212, 175, 55, 0.08);
}

.pricing-card__badge {
    position: absolute;
    top: -1rem;
    right: 2rem;
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-label);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-card__tier {
    font-family: var(--font-label);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(218, 226, 253, 0.4);
    margin-bottom: 1rem;
}

.pricing-card--pro .pricing-card__tier { color: var(--primary); }

.pricing-card__price {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.pricing-card__price span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(218, 226, 253, 0.4);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: rgba(218, 226, 253, 0.7);
}

.pricing-card__features li.is-disabled {
    opacity: 0.4;
}

/* --- Tabela porownawcza --- */
.comparison-table {
    width: 100%;
    background: var(--surface-container-low);
    border-collapse: collapse;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
}

.comparison-table thead th {
    background: var(--surface-container);
    font-family: var(--font-label);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(218, 226, 253, 0.4);
}

.comparison-table thead th:nth-child(3) {
    color: var(--primary);
}

.comparison-table thead th:not(:first-child) {
    text-align: center;
}

.comparison-table tbody td:not(:first-child) {
    text-align: center;
}

.comparison-table tbody tr {
    border-top: 1px solid rgba(77, 70, 53, 0.1);
}

.comparison-table td { font-size: 0.9375rem; }

/* --- Stopka --- */
.footer {
    background: var(--surface-container-lowest);
    border-top: 1px solid rgba(77, 70, 53, 0.2);
    padding: 4rem 0;
    margin-top: 6rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

.footer__brand {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-container);
    margin-bottom: 1rem;
}

.footer__copy {
    font-size: 0.875rem;
    color: rgba(218, 226, 253, 0.4);
    line-height: 1.6;
}

.footer__heading {
    font-family: var(--font-label);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-container);
    margin-bottom: 1.25rem;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    font-size: 0.875rem;
    color: rgba(218, 226, 253, 0.5);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.3);
    text-underline-offset: 4px;
    transition: color var(--transition-fast);
}

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

/* --- Sidebar (poradnik) --- */
.sidebar-toc {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    max-height: calc(100vh - var(--nav-height) - 4rem);
    overflow-y: auto;
    padding-right: 1rem;
    border-right: 1px solid rgba(77, 70, 53, 0.2);
}

.sidebar-toc__label {
    font-family: var(--font-label);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(218, 226, 253, 0.4);
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.sidebar-toc__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: rgba(218, 226, 253, 0.6);
    border-left: 4px solid transparent;
    transition: all var(--transition-fast);
}

.sidebar-toc__link:hover {
    background: rgba(34, 42, 61, 0.3);
    color: var(--on-surface);
    transform: translateX(4px);
}

.sidebar-toc__link--active {
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--primary);
    font-weight: 500;
}

/* --- Checklist --- */
.checklist {
    background: var(--surface-container-high);
    padding: 2rem;
    border-radius: var(--radius-2xl);
}

.checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.checklist__box {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 2px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--outline-variant);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist__box--checked {
    border-color: var(--primary);
    background: rgba(242, 202, 80, 0.1);
    color: var(--primary);
}

.checklist__label { font-weight: 600; font-size: 0.9375rem; }
.checklist__desc { font-size: 0.75rem; color: var(--on-surface-variant); }

/* --- Nawigacja poradnika (poprzedni/nastepny) --- */
.guide-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(77, 70, 53, 0.2);
}

.guide-nav__link {
    display: block;
    padding: 1.5rem;
    background: var(--surface-container-low);
    border-radius: var(--radius-xl);
    border: 1px solid transparent;
    transition: border-color var(--transition-base);
}

.guide-nav__link:hover { border-color: rgba(212, 175, 55, 0.2); }

.guide-nav__label {
    font-family: var(--font-label);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(218, 226, 253, 0.4);
    margin-bottom: 0.5rem;
}

.guide-nav__title {
    font-weight: 700;
    color: var(--on-surface);
}

/* --- Agenci (O nas) --- */
.agent-card {
    background: var(--surface-container-low);
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base);
}

.agent-card:hover { transform: translateY(-8px); }

.agent-card__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.agent-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.agent-card__name {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.agent-card__role {
    font-family: var(--font-label);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.agent-card__desc {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* --- Animacje --- */

/* Pulse */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.pulse { animation: pulse-dot 2s ease-in-out infinite; }

/* Hero gradient shimmer */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-gradient {
    background: linear-gradient(135deg,
        var(--primary) 0%,
        var(--primary-fixed) 25%,
        var(--primary-container) 50%,
        var(--primary-fixed) 75%,
        var(--primary) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Float (lekki ruch gora-dol) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.float { animation: float 4s ease-in-out infinite; }

/* Glow pulsacja na przyciskach */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.15); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.3); }
}
.glow { animation: glow-pulse 3s ease-in-out infinite; }

/* Scroll reveal (fade in from bottom) */
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-left {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-scale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* Fallback: jesli JS nie zaladuje, pokaz sekcje od razu */
@media (scripting: none) {
    .reveal { opacity: 1 !important; transform: none !important; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--left {
    transform: translateX(-30px);
}

.reveal--left.is-visible {
    transform: translateX(0);
}

.reveal--scale {
    transform: scale(0.92);
}

.reveal--scale.is-visible {
    transform: scale(1);
}

/* Stagger delay for grid children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger > *:nth-child(9) { transition-delay: 640ms; }
.reveal-stagger > *:nth-child(10) { transition-delay: 720ms; }

/* Typing cursor blink */
@keyframes blink-cursor {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: transparent; }
}
.typing-cursor {
    border-right: 3px solid var(--primary);
    animation: blink-cursor 1s step-end infinite;
    padding-right: 4px;
}

/* Card hover glow */
.card {
    transition: all var(--transition-base), box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.08);
}

/* Button hover shine effect */
.btn--primary {
    position: relative;
    overflow: hidden;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn--primary:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Agent card hover */
.agent-card {
    transition: transform var(--transition-base), box-shadow 0.4s ease;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Nav link underline animation */
.nav__link {
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--active::after {
    width: 100%;
}

/* Smooth counter (for stats) */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero particles background */
.hero-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(173, 198, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(215, 197, 255, 0.03) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

/* --- Utility classes --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (768-1399px) */
@media (max-width: 1399px) {
    .grid--5 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }

    .sidebar-toc { display: none; }
    .sidebar-right { display: none; }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    :root {
        --nav-height: 60px;
    }

    .container, .container-narrow { padding: 0 1rem; }

    .nav__links { display: none; }
    .nav__hamburger { display: flex; }

    .grid--5,
    .grid--4,
    .grid--3,
    .grid--2 { grid-template-columns: 1fr; }

    .section { padding: 3rem 0; }
    .section--hero { padding-top: calc(var(--nav-height) + 2rem); }

    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

    .guide-nav { grid-template-columns: 1fr; }

    .pricing-card { padding: 1.5rem; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    /* Hero grid na mobile — 1 kolumna */
    .section--hero .container {
        grid-template-columns: 1fr !important;
    }
}

/* --- Filtr aktywny (strona poradnikow) --- */
.filter-btn--active {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: rgba(212, 175, 55, 0.1) !important;
}
