/* ======================================= */
/* 1. FONT-FACE & IMPORTY (Zewnętrzne)      */
/* ======================================= */
@font-face {
    font-family: 'Sora';
    src: url('Sora-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Exo 2';
    src: url('Exo2-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@import url('https://unpkg.com/aos@2.3.4/dist/aos.css');

/* ======================================= */
/* 2. ZMIENNE & RESET (Globalne)           */
/* ======================================= */

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-background: #090d23;
    --color-primary: #00ff88;
    --color-secondary: #00cc6a;
    --color-text-light: #e0e6ff;
    --color-text-muted: #b0b8d4;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(9, 13, 35, 0.547);
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--color-background);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Globalne Tytuły Sekcji */
h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

h2 strong {
    color: var(--color-primary);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 3.5rem;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* ======================================= */
/* 3. NAWIGACJA                            */
/* ======================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: all 0.3s ease-in-out;
}

nav.scrolled {
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mobile {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
    cursor: pointer;
}

nav a:hover {
    color: var(--color-primary);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ======================================= */
/* 4. PRZYCISKI (Buttons)                  */
/* ======================================= */
.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-github:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.btn-primary {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    color: var(--color-background);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
    color: #090d23;
}

.btn-secondary {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.big-btn {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem;
}

/* Style for disabled 'Coming Soon' button */
.coming-soon-btn {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.coming-soon-btn:hover {
    transform: none;
    box-shadow: none;
}

/* ======================================= */
/* 5. SEKCJA HERO                          */
/* ======================================= */
.hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--color-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--color-text-light);
}

.gradient-text {
    background: linear-gradient(135deg, #e0e6ff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

/* Quick Stats */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.stat-card {
    padding: 1rem 0;
    border-radius: 8px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 700;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ======================================= */
/* 6. SEKCJA PREZENTACJI (Showcase)        */
/* ======================================= */
.showcase-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.screenshot-img {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease-in-out;
}

.screenshot-img:hover {
    transform: scale(1.01);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ======================================= */
/* 7. SEKCJA CECH (Features)               */
/* ======================================= */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--color-primary);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 136, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ======================================= */
/* 8. SEKCJA CENNIKA (Pricing)             */
/* ======================================= */
.pricing {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.price-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    text-align: center;
    flex: 1 1 300px;
}

.price-card.featured {
    border-color: var(--color-primary);
    background: radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.18) 0, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 255, 200, 0.22) 0, transparent 55%),
        radial-gradient(circle at 30% 80%, rgba(0, 200, 150, 0.20) 0, transparent 50%);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transform: scale(1.05);
}

.price-card.featured::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -15px;
    right: -10px;
    background: var(--color-primary);
    color: var(--color-background);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}


.price-card.commercial {
    border-color: var(--color-primary);
    background: radial-gradient(circle at 10% 20%, rgba(4, 0, 255, 0.18) 0, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 110, 255, 0.22) 0, transparent 55%),
        radial-gradient(circle at 30% 80%, rgba(33, 0, 200, 0.2) 0, transparent 50%);
    box-shadow: 0 0 20px rgba(73, 98, 188, 0.3);
    border: #8255ff 1px solid;
    transform: scale(1.05);
}

.price-card.commercial::before {
    content: "FOR POWER USERS";
    position: absolute;
    top: -15px;
    right: -10px;
    background: radial-gradient(circle at 10% 20%, rgb(4, 0, 255) 0, transparent 100%),
        radial-gradient(circle at 80% 30%, rgb(0, 110, 255) 0, transparent 100%),
        radial-gradient(circle at 30% 80%, rgb(33, 0, 200) 0, transparent 100%);
    color: var(--color-background);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 3, 88, 0.3);
    letter-spacing: 0.5px;
}


.price-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.price-tag {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, #30e69d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.5rem 0 0.5rem;
}

.price-period {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.price-features li {
    color: var(--color-text-muted);
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.price-features li i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Styling for License Warning (Czerwony kolor dla ostrzeżenia) */
.price-features li.license-warning {
    color: #ff5555;
    font-weight: 600;
    border-color: rgba(255, 85, 85, 0.2);
}

.price-features li.license-warning i {
    color: #ff5555;
}

/* Zapewnienie, że link wewnątrz license-warning wygląda jak normalny tekst */
.license-warning a,
.license-warning a:link,
.license-warning a:visited,
.license-warning a:hover,
.license-warning a:active,
.license-warning a:focus {
    color: inherit;
    /* Dziedziczy kolor z elementu nadrzędnego */
    text-decoration: none;
    /* Usuwa podkreślenie linku */
    cursor: pointer;
}

/* ======================================= */
/* 9. TECH STACK & USED BY                 */
/* ======================================= */
.stack {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 1.5rem;
    margin: 4rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stack-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stack-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.badge {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--color-primary);
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.badge:hover {
    background: var(--color-primary);
    color: var(--color-background);
}

.used-by {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.used-by-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.used-by-card {
    width: 100%;
    max-width: 180px;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.4s;
}

.used-by-card a {
    display: block;
    line-height: 0;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.used-by-card a:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.used-by-card img {
    width: 100%;
    height: auto;
}

/* ======================================= */
/* 10. DOWNLOAD CTA & FOOTER               */
/* ======================================= */
.download-cta {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.made-in-poland-text {
    margin-top: 3rem;
    font-size: 0.95rem;
}

.poland-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 6rem auto;
}

footer {
    background: rgba(10, 14, 39, 0.7);
    border-top: 1px solid var(--color-border);
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links.social-links {
    gap: 1.5rem;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.dot-pattern {
    --dot-color: rgba(255, 255, 255, 0.07);
    background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: dot-move 5s linear infinite;
}

@keyframes dot-move {
    0% {
        background-position: 0 0;

    }

    100% {

        background-position: 30px 30px;

    }
}

/* ======================================= */
/* 11. ULEPSZONA MOBILNOŚĆ (Media Queries) */
/* ======================================= */

/* 1. Ekrany do 1024px (Tablety/Laptopy) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .quick-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .pricing-grid {
        gap: 1.5rem;
    }

    .price-card.featured {
        /* Lekkie zmniejszenie skali dla lepszego dopasowania na tabletach */
        transform: scale(1.03);
    }
}

/* 2. Ekrany do 768px (Tablety Pionowo) */
@media (max-width: 768px) {

    /* Uproszczenie Nawigacji */
    nav {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
    }

    nav ul {
        display: none;
    }

    .logo {
        width: auto;
        margin-bottom: 0;
        justify-content: flex-start;
    }

    .nav-buttons {
        width: auto;
        justify-content: flex-end;
    }

    /* Hero */
    .hero {
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Przyciski CTA */
    .download-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .big-btn {
        width: 100%;
    }

    /* Siatki */
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .price-card {
        max-width: 450px;
        flex: none;
    }

    .price-card.featured {
        /* Wyrównanie skali dla lepszego wyglądu na małych ekranach */
        transform: scale(1.0);
    }
}

/* 3. Ekrany do 480px (Typowy Telefon) */
@media (max-width: 480px) {

    /* Nawigacja */
    nav {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

    /* Ukrywamy jeden z przycisków, aby zaoszczędzić miejsce */
    .btn-github {
        display: none;
    }

    /* Hero */
    .hero {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    /* Stats */
    .quick-stats-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Siatki */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .big-btn {
        padding: 1rem 1.5rem !important;
        font-size: 1rem;
    }

    /* Footer */
    .footer-bottom {
        gap: 1rem;
        flex-direction: column;
    }

    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
}

/* 4. Logo */
@media (max-width: 760px) {
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .btn-primary {
        height: 35px;
    }
}