/* Base Styles */
:root {
    --primary-color: #2563EB;
    --secondary-color: #F97316;
    --dark-gray: #1F2937;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

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

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

.full-width {
    width: 100%;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--dark-gray);
    font-weight: 600;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #f5f7ff 0%, #e3e8ff 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4B5563;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.animation-container {
    width: 100%;
    height: 300px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Placeholder for animation elements */
.content-block, .api-block, .ad-block {
    position: absolute;
    background-color: #e0e7ff;
    border-radius: 8px;
}

.content-block {
    top: 50px;
    left: 30px;
    width: 120px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px;
}

.content-text {
    height: 10px;
    background-color: #a5b4fc;
    border-radius: 3px;
}

.api-block {
    top: 100px;
    left: 180px;
    width: 100px;
    height: 100px;
    background-color: rgba(37, 99, 235, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.api-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.api-text {
    width: 60px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 3px;
    margin-top: 10px;
}

.ad-block {
    top: 50px;
    right: 30px;
    width: 120px;
    height: 200px;
    background-color: rgba(249, 115, 22, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px;
}

.ad-image {
    height: 100px;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.ad-text {
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-icon {
    margin-bottom: 1.5rem;
}

.placeholder-image {
    width: 80px;
    height: 80px;
    background-color: #dbeafe;
    border-radius: 50%;
    display: inline-block;
}

/* API Features Section */
.api-features {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.tabs {
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 0.5rem;
}

.tab-btn:hover, .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-pane {
    display: none;
    padding: 2rem;
}

.tab-pane.active {
    display: block;
}

.feature-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-list {
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.feature-code {
    flex: 1;
    min-width: 300px;
}

.feature-code pre {
    margin: 0;
    border-radius: 8px;
}

/* Dodatkowe style dla lepszego wyświetlania kodu na urządzeniach mobilnych */
.mobile-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.code-wrapper {
    position: relative;
    white-space: pre;
    word-wrap: normal;
    overflow-x: auto;
}

.api-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: var(--white);
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #6B7280;
}

.context-visual {
    margin-top: 1.5rem;
}

.context-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.context-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 0.8rem;
}

.integration-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.integration-logo {
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonials {
    margin-top: 4rem;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: #dbeafe;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: #6B7280;
}

/* Get Started Section */
.get-started {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.get-started-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    flex: 1 0 calc(50% - 0.5rem);
}

.form-group.full-width {
    flex: 1 0 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cta-alternatives {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-alt {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex: 1;
}

.cta-alt h3 {
    margin-bottom: 1rem;
}

.cta-alt p {
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background-color: var(--dark-gray);
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #9CA3AF;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links-column {
    flex: 1;
    min-width: 150px;
}

.footer-links-column h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links-column ul li {
    margin-bottom: 0.8rem;
}

.footer-links-column a {
    color: #9CA3AF;
}

.footer-links-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #9CA3AF;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #9CA3AF;
}

.social-link:hover {
    color: var(--white);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 2rem;
}

.current-language {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--dark-gray);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.current-language:hover {
    color: var(--primary-color);
}

.arrow-down {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
    min-width: 120px;
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.language-dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.language-dropdown a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Legal Pages Styles */
.legal-page {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #f5f7ff 0%, #e3e8ff 100%);
    position: relative;
    overflow: hidden;
}

.legal-page .container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 3rem;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

.legal-page .container:hover {
    transform: translateY(-5px);
}

.legal-page .page-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark-gray);
    font-size: 2.5rem;
}

.legal-page .page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    transition: var(--transition);
}

.legal-section:hover {
    background-color: rgba(245, 247, 255, 0.5);
    border-radius: 8px;
    padding: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

.legal-section h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 0.8rem;
}

.legal-section p, .legal-section li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: #4B5563;
}

.legal-section p strong, .legal-section li strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.legal-section ul li {
    margin-bottom: 0.8rem;
    position: relative;
}

.legal-section ul li::marker {
    color: var(--primary-color);
}

/* Abuse Report Form Styles */
.abuse-form {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.abuse-form:hover {
    transform: translateY(-5px);
}

.abuse-form .form-group {
    margin-bottom: 1.5rem;
}

.abuse-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.abuse-form input,
.abuse-form textarea,
.abuse-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.abuse-form input:hover,
.abuse-form textarea:hover,
.abuse-form select:hover {
    border-color: var(--primary-color);
}

.abuse-form input:focus,
.abuse-form textarea:focus,
.abuse-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-group:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.8rem;
    margin-top: 0.3rem;
}

.checkbox-group label {
    flex: 1;
}

.abuse-form button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.abuse-form button[type="submit"]:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
        margin-top: 1rem;
    }
    
    .process-steps, .benefits-grid {
        justify-content: center;
    }
    
    .feature-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
        z-index: 1000;
    }
    
    .nav-links.active li {
        margin: 0.5rem 0;
    }
    
    .language-switcher {
        margin: 0.5rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Zmniejszenie pustej przestrzeni pod sekcją hero */
    .hero {
        padding-bottom: 2rem;
    }
    
    .how-it-works {
        padding-top: 2rem;
    }
    
    /* Poprawki dla sekcji API Features */
    .tab-btn {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
    
    .feature-code {
        overflow-x: auto;
        max-width: 100%;
    }
    
    .feature-code pre {
        min-width: 500px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        margin: 0.2rem 0;
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .feature-code pre {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .form-group {
        flex: 1 0 100%;
    }
}
