:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-50);
    color: var(--navy);
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, #000 0%, var(--navy) 100%);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand { font-weight: 800; font-size: 1.2rem; }

.header-links { display: flex; gap: 12px; align-items: center; }

.header-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: 0.2s;
    padding: 8px 16px;
    border-radius: 99px;
}

.header-link:hover { color: #fff; background: rgba(255,255,255,0.08); }

.header-login {
    background: #fff;
    color: var(--navy);
    padding: 8px 20px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}

.header-login:hover { background: var(--gray-100); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #000 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: #fff;
    text-align: center;
    padding: 70px 24px 50px;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--gray-400);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ===== TOGGLE ===== */
.pricing-toggle {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 50px;
    padding: 5px;
}

.toggle-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    color: #666;
}

.toggle-btn.active {
    background: #67e8f9;
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-save {
    font-size: 0.72rem;
    font-weight: 700;
    background: #111;
    color: #fff;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 6px;
}

/* ===== PRICING GRID ===== */
.pricing-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.pricing-toggle-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 50px;
}

.grid-prices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 20px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.loading-placeholder {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    grid-column: 1 / -1;
}

.vat-disclaimer {
    text-align: center;
    font-size: 0.82rem;
    color: #374151;
    margin: 8px 0 0 0;
}

/* ===== TIER CARDS ===== */
.tier-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: visible;
    min-width: 0;
    box-sizing: border-box;
}

.tier-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tier-card.tier-highlighted {
    border-color: #111;
    border-top: none;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.tier-highlight-badge {
    position: absolute;
    top: -28px;
    left: -1.5px;
    right: -1.5px;
    background: #111;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 7px 0;
    border-radius: 18px 18px 0 0;
}

.tier-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #111;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tier-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.tier-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #111;
    line-height: 1;
    margin-bottom: 20px;
    min-height: 3rem;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.tier-currency { font-size: 1.2rem; font-weight: 700; }
.tier-period { font-size: 0.82rem; color: #94a3b8; font-weight: 400; margin-left: 2px; }

/* Credits dropdown */
.tier-credits-section { margin-bottom: 24px; min-height: 72px; }
.tier-credits-label { font-size: 0.82rem; color: #64748b; margin-bottom: 8px; }
.tier-select-wrapper { position: relative; }

.tier-select-btn {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.15s;
    user-select: none;
    box-sizing: border-box;
}

.tier-select-btn:hover { border-color: #cbd5e1; }
.tier-select-btn.disabled { pointer-events: none; opacity: 0.6; background: #f4f4f5; }

.tier-select-chevron { width: 14px; height: 14px; flex-shrink: 0; color: #94a3b8; transition: transform 0.2s; }

.tier-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.tier-select-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }

.tier-select-item {
    padding: 10px 14px;
    color: #475569;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: 0.15s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tier-item-credits { font-weight: 600; color: #111; }
.tier-item-trans { font-size: 0.78rem; color: #94a3b8; }
.tier-select-item:hover:not(.active) { background: #f8fafc; }
.tier-select-item.active { background: #ecfeff; color: #0f172a; font-weight: 700; }

/* Benefits */
.tier-benefits-label { font-size: 0.82rem; color: #64748b; margin-bottom: 12px; }

.tier-benefits { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }

.tier-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.4;
}

.tier-benefit-item strong { font-weight: 600; color: #111; }

.tier-check-icon {
    width: 14px;
    height: 12px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* CTA Button */
.tier-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: auto;
    text-decoration: none;
    font-family: inherit;
}

.tier-btn:hover { background: #2d2d2d; }
.tier-btn:active { transform: scale(0.98); }
.tier-btn strong { font-weight: 800; }

.tier-btn.tier-btn-active {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: default;
}
.tier-btn.tier-btn-active:hover { background: #e2e8f0; transform: none; }


.tier-btn-enterprise {
    background: #fff !important;
    color: #111 !important;
    border: 2px solid #111 !important;
}

.tier-btn-enterprise:hover { background: #111 !important; color: #fff !important; }

/* ===== FEATURES ===== */
.features-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
    text-align: center;
}

.features-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 36px;
    color: var(--navy);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    transition: 0.2s;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--navy);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.feature-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-section {
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.faq-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    color: var(--navy);
}

.faq-list {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    padding: 8px 24px;
}

.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--gray-400); transition: 0.2s; }
.faq-q.open::after { content: '−'; }

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-a.open { grid-template-rows: 1fr; }

.faq-a-inner {
    overflow: hidden;
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-a.open .faq-a-inner { padding-bottom: 20px; }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, #000 0%, var(--navy) 100%);
    color: #fff;
    text-align: center;
    padding: 70px 24px;
}

.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.cta-section p { color: var(--gray-400); font-size: 1.05rem; margin-bottom: 30px; }

.cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--navy);
    padding: 14px 36px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.2s;
}

.cta-btn:hover { background: var(--gray-100); transform: translateY(-1px); }

/* ===== DEMO PROMO BANNER ===== */
.demo-promo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.demo-promo-inner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%);
    border-radius: 20px;
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.demo-promo-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.demo-promo-text { flex: 1; }

.demo-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #67e8f9;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.demo-promo-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    display: inline-block;
    animation: promoDotPulse 2s infinite;
}

@keyframes promoDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.demo-promo-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.demo-promo-text p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}

.demo-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #67e8f9;
    color: #0f172a;
    padding: 14px 32px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}

.demo-promo-btn:hover {
    background: #a5f3fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 232, 249, 0.3);
}

@media (max-width: 700px) {
    .demo-promo-inner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .demo-promo-text p { max-width: 100%; }
    .demo-promo-btn { width: 100%; justify-content: center; }
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 30px 24px;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.site-footer a { color: var(--gray-500); text-decoration: underline; }

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

@media (max-width: 700px) {
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 50px 20px 40px; }
    .grid-prices { grid-template-columns: 1fr !important; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-toggle { flex-direction: column; }
    .toggle-btn { width: 100%; }
    .cennik-modal { width: 92%; padding: 24px 20px; }
}

/* ===== ENTERPRISE MODAL ===== */
.cennik-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cennik-modal {
    background: #fff;
    border-radius: 20px;
    padding: 32px 30px;
    width: 500px;
    max-width: 95%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.cennik-modal-close {
    position: absolute;
    top: 16px; right: 18px;
    background: none; border: none;
    font-size: 1.6rem; color: #94a3b8;
    cursor: pointer; transition: 0.2s;
    line-height: 1;
}

.cennik-modal-close:hover { color: #111; }

.cennik-modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}

.cennik-modal p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 22px;
}

.cennik-modal label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.cennik-modal input,
.cennik-modal textarea {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color 0.15s;
    resize: vertical;
}

.cennik-modal input:focus,
.cennik-modal textarea:focus {
    outline: none;
    border-color: #67e8f9;
}

.cennik-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

.cennik-btn-light {
    padding: 10px 22px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: 0.15s;
}

.cennik-btn-light:hover { background: #f8fafc; }

.cennik-btn-dark {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: 0.15s;
}

.cennik-btn-dark:hover { background: #2d2d2d; }
.cennik-btn-dark:disabled { opacity: 0.6; cursor: default; }

/* ===== TOAST ===== */
.cennik-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cennik-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cennik-toast.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.cennik-toast.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
