/* Importowanie czcionki Inter (zbliżona do Apple) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

/* 1. ZMIENNE GLOBALNE I RESET
*/
:root {
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-accent: #007AFF;
    --color-bg: #FFFFFF;
    --color-bg-light: #f5f5f7;
    --color-border: #d2d2d7;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. STYLE OGÓLNE (Kontener, Przyciski, Typografia)
*/
.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    padding: 120px 0; 
}

.text-center {
    text-align: center;
}

/* Typografia */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3rem; /* 48px */
    font-weight: 900;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 12px;
}

p {
    font-size: 1.125rem; /* 18px */
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    max-width: 650px; /* Ograniczenie szerokości tekstu dla czytelności */
    margin-left: auto;
    margin-right: auto;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Przyciski */
.btn {
    display: inline-block;
    font-size: 0.9375rem; /* 15px */
    font-weight: 500;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 999px; /* Styl "pill" */
    cursor: pointer;
    transition: all 0.2s ease-out;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background-color: var(--color-accent);
    color: #FFFFFF;
}

.btn--primary:hover {
    background-color: #0070e0;
    opacity: 1;
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.0625rem; /* 17px */
}

/* 3. NAWIGACJA (Header)
*/
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
}

.nav__link {
    font-size: 0.9375rem; /* 15px */
    color: var(--color-text-secondary);
    font-weight: 500;
}

.nav__link:hover {
    color: var(--color-accent);
    opacity: 1;
}

.nav__btn {
    padding: 8px 16px;
}

/* 4. ANIMACJE
*/

@keyframes fadeInOnLoad {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
main {
    animation: fadeInOnLoad 0.8s ease-out;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.7s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* 5. SEKCJA: HERO
*/
.hero {
    min-height: 70vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.hero__headline {
    font-size: 3.0rem; /* 56px */
    margin-bottom: 24px;
}

.hero__subheadline {
    font-size: 1.2em; /* 20px */
    margin-bottom: 32px;
}

/* 6. SEKCJA: PROBLEM
*/
.problem {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section__subheadline {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.problem__list {
    max-width: 650px; 
    margin: 40px auto 0;
    text-align: left;
}

.problem__item {
    display: flex;
    align-items: center; 
    gap: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    background: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
}

.problem__number {
    flex-shrink: 0;
    color: var(--color-accent);
    font-size: 1.25rem;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 122, 255, 0.08);
}

.problem__item p {
    margin-bottom: 0;
    font-size: 1.125rem; /* 18px */
    color: var(--color-text);
    font-weight: 500;
}


/* 7. SEKCJA: ROZWIĄZANIE
*/
.solution__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.solution__text {
    text-align: left;
}

.solution__text h3 {
    margin-top: 24px;
    color: var(--color-accent);
}
.solution__text h3:first-child {
    margin-top: 0;
}

.solution__text p {
    margin-left: 0; 
    max-width: 100%;
    font-size: 1.0625rem; /* 17px */
}

.solution__demo-image {
    max-width: 100%; /* Upewnia się, że obraz nie wyjdzie poza swój kontener */
    height: 70%;    /* Zachowuje proporcje obrazu */
    display: block;  /* Usuwa dodatkowe marginesy pod obrazem */
    border-radius: 12px; /* Zaokrągla rogi obrazu */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Dodaje subtelny cień */
}




.solution__visual {
    width: 100%;
    border-radius: 12px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    
}

.demo-placeholder {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    display: non;
}

/* 8. SEKCJA: PROCES
*/
.process {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.process-timeline {
    max-width: 600px; /* Węższe dla elegancji */
    margin: 60px auto 0;
    position: relative;
    text-align: left;
}

/* Pionowa linia łącząca */
.process-timeline::before {
    content: '';
    position: absolute;
    left: 18px; 
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--color-border);
}

.process-step {
    position: relative;
    padding-left: 60px; 
    margin-bottom: 40px;
}
.process-step:last-child {
    margin-bottom: 0;
}

/* Kropka "milestone" */
.process-step::before {
    content: '';
    position: absolute;
    left: 10px; 
    top: 8px; 
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 4px solid var(--color-bg-light); 
    z-index: 1; /* Nad linią */
}

.process-step h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 1rem; /* 16px */
    margin-left: 0;
    max-width: 100%;
}

/* 9. SEKCJA: CTA (WEZWANIE DO DZIAŁANIA)
*/
.cta__headline {
    font-size: 2.5rem; /* 56px */
}

.cta__subheadline {
    font-size: 1.0rem; /* 18px */
    max-width: 700px;
    margin-top: 24px;
}

.cta__btn {
    padding: 15px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 10. STOPKA
*/
.footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 60px 0;
}

.footer__logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__link {
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-secondary);
    margin: 0 8px;
}
.footer__link:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer__links {
    margin-top: 8px;
    margin-bottom: 8px;
}

.footer__separator {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.footer__copy {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 16px;
    margin-bottom: 0;
}


/* 11. RESPONSIVE DESIGN (RWD) - dla telefonów
*/
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 60px 0;
    }

    h1 { font-size: 2.5rem; } /* 40px */
    h2 { font-size: 2rem; }   /* 32px */
    
    /* Ukrycie menu na mobilce */
    .nav__menu {
        display: none; 
    }
    .nav__btn {
        padding: 6px 14px;
        font-size: 0.875rem;
    }

    .hero__headline {
        font-size: 2.75rem; /* 44px */
    }

    .hero__cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .problem__list {
        max-width: 100%; /* Pełna szerokość na mobilce */
    }
    .problem__item {
        gap: 16px;
        padding: 20px;
    }

    .solution__content {
        grid-template-columns: 1fr;
    }
    .solution__visual {
        /* W układzie mobilnym, niech obrazek będzie pierwszy */
        grid-row: 1;
    }
    .solution__text {
        text-align: center;
    }
    .solution__text p {
        margin-left: auto;
        margin-right: auto;
        max-width: 650px;
    }

    /* Poprawka dla procesu na mobilce */
    .process-timeline {
        max-width: 100%;
        margin-top: 40px;
    }
    .process-timeline::before {
        left: 19px; /* Dostosowanie linii */
    }
    .process-step {
        padding-left: 50px; /* Mniejszy odstęp */
    }
    .process-step::before {
        left: 10px; 
    }

    .cta__headline {
        font-size: 2.75rem; /* 44px */
    }
}