/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a1a2e;
    --navy-light: #16213e;
    --accent: #4361ee;
    --accent-hover: #3a56d4;
    --accent-light: #eef1ff;
    --text: #2d2d3a;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --white: #ffffff;
    --bg: #f8f9fc;
    --border: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition);
}

.navbar-nav a:hover {
    color: var(--text);
    background: var(--bg);
}

.navbar-nav a.active {
    color: var(--accent);
    background: var(--accent-light);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
}

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

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled, .btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 3.2rem;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

/* ===== FEATURES ===== */
.features {
    padding: 80px 0;
}

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

.features .section-header p {
    max-width: 500px;
    margin: 12px auto 0;
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: transparent;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

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

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
}

/* ===== STATS ===== */
.stats {
    padding: 60px 0;
    background: var(--navy);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.stat-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-box {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    color: white;
}

.cta-box h2 {
    color: white;
    margin-bottom: 14px;
}

.cta-box p {
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin: 0 auto 28px;
}

.cta-box .btn-primary {
    background: white;
    color: var(--navy);
}

.cta-box .btn-primary:hover {
    background: var(--bg);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

/* ===== FORM STYLES ===== */
.form-page {
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.form-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 8px;
}

.form-container .form-subtitle {
    text-align: center;
    font-size: 0.92rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-lighter);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .input-hint {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 4px;
}

.form-error {
    display: none;
    background: var(--error-bg);
    border: 1px solid #fecaca;
    color: var(--error);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}

.form-error.show {
    display: flex;
}

.form-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-notice {
    display: none;
    background: var(--warning-bg);
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}

.form-notice.show {
    display: block;
}

.form-notice h4 {
    color: #92400e;
    margin-bottom: 8px;
}

.form-success {
    display: none;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.form-success.show {
    display: block;
}

.form-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.form-links a {
    font-weight: 600;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-lighter);
    font-size: 0.82rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Password strength */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength-bar.weak { width: 33%; background: var(--error); }
.password-strength-bar.medium { width: 66%; background: var(--warning); }
.password-strength-bar.strong { width: 100%; background: var(--success); }

.password-strength-text {
    font-size: 0.78rem;
    margin-top: 4px;
    color: var(--text-lighter);
}

/* ===== CONTENT PAGES ===== */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.page-header p {
    max-width: 520px;
    margin: 12px auto 0;
}

.content-section {
    padding: 60px 0;
}

/* About page */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h3 {
    margin-bottom: 14px;
}

.about-text p {
    margin-bottom: 12px;
}

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

.value-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.value-card .value-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
    font-size: 1.5rem;
}

.value-card h4 {
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.88rem;
}

/* Timeline */
.timeline {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding-bottom: 32px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-dot {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
}

.timeline-content h4 {
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.88rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 40px 0;
}

.pricing-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
    content: 'Popularny';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.pricing-card h3 {
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin: 16px 0 4px;
}

.pricing-card .price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.pricing-card .price-note {
    font-size: 0.82rem;
    color: var(--text-lighter);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--text-lighter);
    text-decoration: line-through;
}

.pricing-features li.disabled svg {
    color: var(--text-lighter);
}

/* FAQ / Help */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--white);
    overflow: hidden;
}

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

.faq-question:hover {
    background: var(--bg);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-lighter);
    transition: transform 0.3s ease;
    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-answer-inner {
    padding: 0 24px 18px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: start;
}

.contact-info-card .info-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info-card h4 {
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.88rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    padding: 56px 0 28px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: white;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

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

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner.dark {
    border-color: rgba(0,0,0,0.1);
    border-top-color: var(--accent);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.4s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid,
    .pricing-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 50px 0 60px; }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav.open {
        display: flex;
    }

    .navbar-nav a {
        padding: 12px 16px;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
    }

    .features-grid,
    .pricing-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .form-container {
        padding: 28px 20px;
    }
}
