/* --- Zmienne i Globalne Style --- */
:root {
    --primary-color: #00a88e;
    --primary-dark: #007a6a;
    --dark-bg: #1a1d24;
    --light-bg: #ffffff;
    --section-bg: #f7f9fc;
    --text-dark: #212529;
    --text-light: #f5f5f5;
    --text-secondary: #6c757d;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --border-radius: 16px;
    --transition-speed: 0.3s;
    --shadow-light: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--light-bg);
    color: var(--text-dark);
}
.container { max-width: 1140px; margin: auto; padding: 0 2rem; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }
h2 {
    font-size: 2.5rem; text-align: center; margin-bottom: 3.5rem;
    position: relative; color: var(--text-dark);
}
h2::after {
    content: ''; position: absolute; bottom: -15px; left: 50%;
    transform: translateX(-50%); width: 60px; height: 4px;
    background-color: var(--primary-color); border-radius: 2px;
}
p { margin-bottom: 1rem; color: var(--text-secondary); }
.content-section { padding: 4.5rem 0; }

/* --- Nawigacja (WERSJA BEZ PADDINGU) --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    min-height: 90px; /* Wysokość początkowa dla animacji */
    transition: min-height 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    display: flex;
    align-items: center;
}
header.scrolled {
    min-height: 70px; /* Wysokość paska po przewinięciu */
    background: rgba(26, 29, 36, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    /* Dodajemy padding, aby kontrolować odstęp logo od krawędzi paska */
    padding: 5px 0; 
}
.logo img {
    height: 100%; /* Logo wypełnia 100% wysokości kontenera .logo */
    max-height: 100px; /* Maksymalna wysokość początkowa logo */
    width: auto;
    transition: max-height 0.4s ease;
}
header.scrolled .logo img {
    max-height: 60px; /* Maksymalna wysokość logo po przewinięciu (prawie cała wysokość paska) */
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    padding: 0 1.5rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: var(--transition-speed);
    padding-bottom: 5px;
}
header.scrolled .nav-links a {
    color: var(--text-light);
}
.nav-links a:hover,
header.scrolled .nav-links a:hover {
    color: var(--primary-color);
}
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}
header.scrolled .nav-links a.active {
    color: var(--primary-color);
}
.burger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}
header.scrolled .burger div {
    background-color: var(--text-light);
}
.toggle .line1, .toggle .line3 {
    background-color: var(--text-dark);
}

/* --- Sekcja Hero --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    /* Używamy pseudo-elementu do tła, żeby blur nie wpływał na tekst */
    position: relative; /* Aby pseudo-element pozycjonował się względem #hero */
    z-index: 0; /* Standardowa warstwa dla sekcji */
}

/* Pseudo-element dla obrazu tła z rozmyciem i gradientem */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Tu dajemy obraz tła, gradient i rozmycie */
    background: linear-gradient(rgba(26, 29, 36, 0.75), rgba(26, 29, 36, 0.75)),
        url('tel_mock.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    filter: blur(3px); /* Delikatne rozmycie tylko dla TEGO tła */
    z-index: -1; /* Umieszczamy pod treścią #hero */
    /* Dodatkowo, aby zapobiec pikselizacji po rozmyciu na krawędziach */
    transform: scale(1.02); 
}

/* Kontener z treścią hero, aby tekst był ostry */
.hero-content {
    max-width: 800px;
    padding: 0 1rem;
    position: relative; /* Ważne, aby tekst był nad pseudo-elementem */
    z-index: 1; /* Tekst jest na wierzchu */
}
#hero h1 {
    font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem;
    color: var(--text-light); line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
#hero h1 span { color: var(--primary-color); }
#hero p {
    font-size: 1.15rem; font-weight: 300; max-width: 600px;
    color: rgba(245, 245, 245, 0.9); margin: 0 auto 2.5rem auto;
}
.cta-button {
    display: inline-flex; align-items: center; gap: 0.75rem;
    background: var(--primary-color); color: #fff; padding: 16px 36px;
    text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(0, 168, 142, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
}
.cta-button::after { content: '→'; font-size: 1.5rem; transition: transform 0.3s ease; }
.cta-button:hover {
    background: var(--light-bg);
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    box-shadow: none;
}
.cta-button:hover::after { transform: translateX(5px); }

/* --- Pozostałe style bez zmian --- */
#about { text-align: center; }
.about-intro-text { max-width: 750px; margin: 0 auto 3rem auto; }
.about-intro-text p { font-size: 1.1rem; }
.about-cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; text-align: left;
}
.about-card {
    background-color: var(--card-bg); padding: 2rem 1.5rem;
    border-radius: var(--border-radius); transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}
.about-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}
.about-card h4 {
    font-size: 1.1rem; font-weight: 600; color: var(--text-dark);
    margin-bottom: 0.5rem; display: flex; align-items: center;
}
.about-icon { stroke: var(--primary-color); width: 22px; height: 22px; margin-right: 0.75rem; flex-shrink: 0; }
.about-card p { font-size: 0.95rem; margin-bottom: 0; }
#combined-section { padding: 4.5rem 0; background-color: var(--dark-bg); }
.split-container {
    display: flex; align-items: stretch; max-width: 1200px;
    margin: auto; gap: 3rem;
}
.split-column {
    width: 50%; display: flex; flex-direction: column;
}
.split-column h2 {
    font-size: 2.2rem; text-align: center; margin-bottom: 2.5rem;
    position: relative; flex-shrink: 0; 
}
.split-column h2::after {
    content: ''; position: absolute; bottom: -10px; left: 50%;
    transform: translateX(-50%); width: 50px; height: 4px;
    background-color: var(--primary-color); border-radius: 2px;
}
.light-side, .dark-side {
    padding: 3rem; border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    display: flex; flex-direction: column;
}
.light-side { background-color: var(--light-bg); color: var(--text-dark); }
.light-side h2 { color: var(--text-dark); }
.dark-side { background-color: var(--dark-bg); color: var(--text-light); }
.dark-side h2 { color: var(--text-light); }
.ecosystem-list { display: flex; flex-direction: column; gap: 1.8rem; margin: auto 0; }
.ecosystem-item { display: flex; align-items: center; gap: 1rem; }
.ecosystem-item .card-icon {
    background-color: var(--section-bg); border-radius: 50%;
    width: 48px; height: 48px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.ecosystem-item .card-icon svg { width: 22px; height: 22px; stroke: var(--primary-color); }
.ecosystem-item h4 { font-size: 1.1rem; margin: 0 0 0.25rem 0; font-weight: 600; color: var(--text-dark); }
.ecosystem-item p { font-size: 0.9rem; margin: 0; line-height: 1.5; color: #555; }
.features-list { list-style-type: none; padding: 0; margin: auto 0; }
.features-list li {
    padding: 0.8rem 0; display: flex; align-items: center;
    gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.features-list li:last-child { border-bottom: none; }
.features-list .checkmark-icon { flex-shrink: 0; width: 20px; height: 20px; }
.features-list .checkmark-icon svg { stroke: var(--primary-color); stroke-width: 3; width: 100%; height: 100%; }
.features-list li strong {
    display: block; font-weight: 600; color: var(--text-light);
    font-size: 1.05rem; margin-bottom: 0.1rem;
}
.features-list li small {
    font-size: 0.9rem; font-weight: 300;
    color: rgba(255,255,255,0.7); display: block; line-height: 1.4;
}
#target-audience {
    background-color: var(--section-bg);
}
.target-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.audience-cards-vertical {
    flex-basis: 60%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.audience-card {
    padding: 2rem; border-radius: var(--border-radius); text-align: left;
    background-color: var(--card-bg); box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) ease-in-out;
    border: 1px solid var(--border-color);
}
.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}
.audience-card h3 { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.audience-card p { font-size: 0.9rem; margin-bottom: 0; line-height: 1.5; }
.target-image {
    flex-basis: 40%;
    text-align: center;
}
.target-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}
#roadmap {
    background-color: var(--light-bg);
}
.roadmap-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: center;
}
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}
.roadmap-item {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}
.roadmap-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}
.roadmap-item svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.roadmap-item span {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}
#newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
}
.newsletter-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.newsletter-wrapper h3 {
    color: var(--text-light);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.newsletter-wrapper p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}
.newsletter-bottom-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.newsletter-bottom-row .form-check {
    margin: 0;
    flex-grow: 1;
}
.newsletter-bottom-row .cta-button {
    margin-top: 0;
    background: var(--light-bg);
    color: var(--primary-dark);
    box-shadow: none;
    flex-shrink: 0;
    padding: 14px 28px;
    font-size: 1rem;
    border: 2px solid transparent;
}
.newsletter-bottom-row .cta-button:hover {
    background: var(--primary-dark);
    color: var(--light-bg);
    border-color: var(--primary-dark);
}
#contact {
    background-color: var(--dark-bg);
}
#contact h2 {
    color: var(--text-light);
}
.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem auto;
}
.contact-form-full {
    max-width: 700px;
    margin: 0 auto;
    background-color: #2c313a;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form-full .form-group {
    display: flex;
    gap: 1.5rem;
}
.contact-form-full input, .contact-form-full textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #4a4a4a;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    background-color: #343a40;
    color: var(--text-light);
    transition: all var(--transition-speed);
}
.contact-form-full input::placeholder, .contact-form-full textarea::placeholder {
    color: #999;
}
.contact-form-full input:focus, .contact-form-full textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 142, 0.25);
}
.contact-form-full textarea {
    min-height: 120px;
    resize: vertical;
}
#contact-success-message {
    color: var(--text-light);
}
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.form-check label {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}
.form-check a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
    transition: color var(--transition-speed);
}
.form-check a:hover {
    color: rgba(255, 255, 255, 0.7);
}
.form-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.form-check input[type="checkbox"]:checked {
    background-color: white;
    border-color: white;
}
.form-check input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 900;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.form-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
#contact-form .form-check {
    margin: 0;
    flex-grow: 1;
}
#contact-form .cta-button {
    flex-shrink: 0;
    padding: 14px 28px;
    font-size: 0.95rem;
}
#contact-form .form-check input[type="checkbox"] {
    background-color: #343a40;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 168, 142, 0.3);
}
#contact-form .form-check input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
#contact-form .form-check input[type="checkbox"]:checked::after {
    color: white;
}
footer {
    background: var(--dark-bg); color: #aaa; text-align: center;
    padding: 2.5rem 0; font-size: 0.9rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
footer p {
    margin-bottom: 0;
}
.footer-menu {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.footer-menu a {
    color: #aaa;
    text-decoration: none;
    transition: color var(--transition-speed);
}
.footer-menu a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.social-links {
    display: flex;
    gap: 1.2rem;
}
.social-links a {
    color: #aaa;
    text-decoration: none;
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    color: var(--primary-color);
}
.social-links svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}
.social-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}
.fade-in { animation: fadeIn 1s ease-out 0.2s forwards; opacity: 0; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
@media screen and (max-width: 992px) {
    .split-container { flex-direction: column; align-items: stretch; gap: 2rem; }
    .split-column { width: 100%; }
    .light-side, .dark-side { margin: 0 1rem; padding: 2.5rem; }
    .target-layout { flex-direction: column-reverse; }
}
@media screen and (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .content-section { padding: 3.5rem 0; }
    .nav-links {
        position: fixed; right: 0; top: 0; background: var(--light-bg);
        height: 100vh; width: 80%; flex-direction: column; align-items: center;
        justify-content: center; transform: translateX(100%);
        transition: transform 0.5s ease-in; box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    }
    .nav-links.nav-active { transform: translateX(0%); }
    .burger { display: block; z-index: 1001; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    .toggle .line1, .toggle .line3 { background-color: var(--text-dark); }
    .nav-links a, header.scrolled .nav-links a { color: var(--text-dark); }
    
    #hero { background-attachment: scroll; }
    #hero h1 { font-size: 2.4rem; }
    .cta-button { padding: 15px 30px; font-size: 1rem; }
    
    .about-cards-grid, .roadmap-grid { grid-template-columns: 1fr; }
    .contact-form-full .form-group { flex-direction: column; gap: 1rem; }
    .contact-form-full { padding: 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .newsletter-bottom-row { flex-direction: column; align-items: stretch; }
    .newsletter-bottom-row .form-check { justify-content: center; margin-bottom: 1rem; }
}
@media screen and (max-width: 500px) {
    .form-bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    #contact-form .form-check {
        justify-content: center;
        text-align: center;
    }
    #contact-form .cta-button {
        width: 100%;
    }
}
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}
#scrollToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#scrollToTopBtn:hover {
    background-color: var(--primary-dark);
}
@media (max-width: 768px) {
    #scrollToTopBtn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}
body.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
