/* KsięgoPlus - Portal Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'IBM Plex Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Navigation */
.portal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s;
}

.portal-nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
}

.nav-logo svg {
    width: 28px;
    height: 28px;
    color: #f59e0b;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn-secondary {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-btn-secondary:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: transform 0.15s, box-shadow 0.2s;
}

.nav-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 24px;
    z-index: 99;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.mobile-menu-actions .nav-btn-primary,
.mobile-menu-actions .nav-btn-secondary {
    text-align: center;
    display: block;
    padding: 12px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    color: #f59e0b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 24px;
}

.hero-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.3);
}

.btn-hero-primary svg {
    width: 20px;
    height: 20px;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s, border-color 0.2s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-hero-secondary svg {
    width: 20px;
    height: 20px;
    color: #f59e0b;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 13px;
    color: #64748b;
}

/* Sections */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: #94a3b8;
}

/* Features */
.features {
    padding: 100px 0;
    background: #0f172a;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: #f59e0b;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 0.6fr 1fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 36px;
    position: relative;
}

/* Free plan - muted style */
.pricing-card:first-child {
    padding: 24px;
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.04);
}

.pricing-card:first-child .pricing-header h3 {
    font-size: 18px;
}

.pricing-card:first-child .pricing-price {
    font-size: 32px;
}

.pricing-card:first-child .pricing-features li {
    font-size: 13px;
}

.pricing-card.featured {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: white;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
}

.pricing-desc {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: #22c55e;
    flex-shrink: 0;
}

.pricing-btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-btn.featured {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    border: none;
}

.pricing-btn.featured:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #64748b;
}

/* How it works */
.how-it-works {
    padding: 100px 0;
    background: #0f172a;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
}

/* FAQ */
.faq {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: white;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
}

/* Footer */
.portal-footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    color: #f59e0b;
}

.footer-brand p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.footer-col a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #e2e8f0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    font-size: 13px;
    color: #475569;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .features-grid,
    .pricing-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        order: -1;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
    }
}

/* Logged-in user nav styles */
.nav-user-name {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.nav-btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn-logout:hover {
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}
