/* =========================================
   1. ZMIENNE I KONFIGURACJA
   ========================================= */
:root {
    --bg-dark: #110f37;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.1);
    --accent-gold: #D4AF37;
    --text-light: #ffffff;
    --text-gray: #B0B0C0;
    --text-dark: #1a1a2e;
    
    /* Font zaciągany z Google Fonts w HTML */
    --font-main: 'Cabin', sans-serif;
    
    --radius-xl: 24px;
}

/* USUNIĘTO: Stare definicje @font-face (dla szybkości) */

/* =========================================
   2. GLOBALNE I RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #1a184f 0%, var(--bg-dark) 60%);
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--accent-gold); }
ul { list-style: none; }

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

.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding-left: 20px;
    padding-right: 20px;
}

h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    font-weight: 600;
    text-align: center;
}

h2 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 600; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--accent-gold); font-weight: 600; }

/* --- NOWA KLASA DLA KROKÓW (zamiast H3) --- */
.step-label {
    font-size: 1.5rem; 
    margin-bottom: 0.5rem; 
    color: var(--accent-gold); 
    font-weight: 600;
    font-family: var(--font-main);
}

/* --- SUBTEXT --- */
p.subtext {
    color: var(--text-gray);
    font-size: clamp(1rem, 1.2vw + 0.8rem, 1.25rem); 
    margin-bottom: 2rem;
    line-height: 1.4;
    text-wrap: balance;  
    max-width: 550px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.highlight-text { color: var(--accent-gold); }

/* =========================================
   3. HEADER
   ========================================= */
header {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(17, 15, 55, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; width: auto; transition: height 0.3s; }

.main-nav ul { display: flex; gap: 30px; }

/* FIX: Zarezerwowanie miejsca na podkreślenie */
.main-nav a { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--text-gray); 
    white-space: nowrap;
    text-decoration: none;
    padding-bottom: 4px; 
    border-bottom: 2px solid transparent; 
    transition: color 0.3s, border-color 0.3s;
}

.main-nav a.active { 
    color: var(--text-light); 
    border-bottom: 2px solid var(--accent-gold); 
}

.main-nav a:hover {
    color: var(--text-light);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    padding-top: 140px;
    padding-bottom: 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid-structure {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-text-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-image-area {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.hero-image-area img {
    width: auto;
    max-width: 100%;
    max-height: 700px; 
    filter: drop-shadow(0 0 60px rgba(212, 175, 55, 0.25)); 
    animation: float 6s ease-in-out infinite;
}
.glow-blue img { filter: drop-shadow(0 0 60px rgba(0, 200, 255, 0.25)) !important; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.store-buttons { 
    display: flex; 
    gap: 15px; 
    margin-top: 35px; 
    justify-content: center;
}

.store-btn img { height: 48px; width: auto; transition: transform 0.2s; }
.store-btn:hover img { transform: scale(1.05); }

/* =========================================
   5. SEKCJE KART
   ========================================= */
.cards-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 80px; }
.card-container { display: flex; flex-direction: column; gap: 100px; }

.app-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.phone-showcase { display: flex; justify-content: center; }
.phone-showcase img {
    max-height: 550px; width: auto; max-width: 100%;
    filter: drop-shadow(20px 20px 50px rgba(0,0,0,0.5));
}

.feature-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-xl); padding: 40px; transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }

.feature-list li { margin-bottom: 12px; padding-left: 25px; position: relative; color: var(--text-gray); }
.feature-list li::before { content: '✓'; color: var(--accent-gold); position: absolute; left: 0; font-weight: bold; }

.app-feature.reversed { direction: rtl; }
.app-feature.reversed > * { direction: ltr; }

/* CTA padding */
.bottom-cta {
    text-align: center; 
    padding: 30px 0 80px 0;
    background: linear-gradient(to top, #0a0825, transparent);
}

/* =========================================
   6. PODSTRONY PRAWNE I FAQ
   ========================================= */
.legal-wrapper {
    background-color: var(--bg-card); 
    color: var(--text-light); 
    border-radius: var(--radius-xl);
    padding: 60px; 
    margin-top: 40px; 
    margin-bottom: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
}

.legal-wrapper h2 { 
    color: var(--text-light); 
    font-size: 1.8rem; 
    margin-top: 40px; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--border-light); 
    padding-bottom: 10px; 
}
.legal-wrapper h3 { 
    color: var(--accent-gold); 
    font-size: 1.3rem; 
    margin-top: 25px; 
    margin-bottom: 15px; 
}
.legal-wrapper p { 
    color: var(--text-gray); 
    margin-bottom: 15px; 
    font-size: 1rem; 
    line-height: 1.6; 
}
.legal-wrapper ul, .legal-wrapper ol { margin-bottom: 20px; padding-left: 20px; color: var(--text-gray); }
.legal-wrapper li { margin-bottom: 8px; list-style: inherit; }
.legal-wrapper li::before { content: none; } 

/* FAQ Controls */
.faq-controls { display: flex; justify-content: center; margin-bottom: 40px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-light); border-radius: 50px; padding: 5px; width: fit-content; margin: 0 auto 40px auto; }
.faq-btn { background: transparent; border: none; color: var(--text-gray); padding: 12px 30px; font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: 40px; transition: 0.3s; font-family: var(--font-main); }
.faq-btn.active { background-color: var(--accent-gold); color: var(--bg-dark); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.faq-btn:hover:not(.active) { color: var(--text-light); }

.faq-section { display: none; animation: fadeIn 0.5s; }
.faq-section.active { display: block; }
.faq-category-title { font-size: 1.4rem; color: var(--accent-gold); background: rgba(0,0,0,0.2); padding: 10px 20px; border-radius: 8px; margin: 40px 0 20px 0; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border: 1px solid var(--border-light); }

/* FAQ ITEMS */
details.faq-item { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--border-light); 
    border-radius: 12px; 
    margin-bottom: 15px; 
    overflow: hidden; 
    transition: 0.3s;
    display: block !important; 
}
details.faq-item[open] { 
    border-color: var(--accent-gold); 
    background: rgba(255, 255, 255, 0.08);
}

summary.faq-question { 
    padding: 20px; 
    font-weight: 600; 
    cursor: pointer; 
    list-style: none !important; 
    position: relative; 
    padding-right: 50px; 
    font-size: 1.05rem; 
    color: #ffffff !important; 
    display: block !important;
}

summary.faq-question::-webkit-details-marker { display: none !important; }

summary.faq-question::after { 
    content: '+'; 
    position: absolute; 
    right: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 1.5rem; 
    color: var(--accent-gold); 
    font-weight: 400; 
    transition: 0.3s; 
}
details[open] summary.faq-question::after { content: '-'; transform: translateY(-50%) rotate(180deg); }

.faq-answer { 
    padding: 0 20px 25px 20px; 
    color: var(--text-gray); 
    line-height: 1.6; 
    border-top: 1px solid var(--border-light); 
    text-align: left;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-light);
    background-color: #08061a;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
footer li { margin-bottom: 10px !important; color: var(--text-gray) !important; padding-left: 0 !important; display: block !important; }
footer li::before { content: none !important; display: none !important; }

footer h4 { color: var(--text-light); margin-bottom: 20px; font-weight: 600; }
footer a { color: var(--text-gray); text-decoration: none; }
footer a:hover { color: var(--accent-gold); }
.footer-bottom { text-align: center; color: #555; font-size: 0.8rem; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }


/* =========================================
   8. MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 992px) {
    header { padding: 12px 0; }
    .header-content { justify-content: center; }
    .logo img { height: 32px; }
    .main-nav { display: none; }

    /* HERO */
    .hero-section {
        padding-top: 90px;
        padding-bottom: 0;
        min-height: auto;
        display: block;
        text-align: center;
    }
    .hero-grid-structure { display: flex; flex-direction: column; gap: 0; }
    
    .hero-text-area { 
        order: 1; display: flex; flex-direction: column; align-items: center; 
        text-align: center; padding: 0 10px; margin-top: 20px;
    }
    .hero-text-area h1 { order: 1; margin-bottom: 15px; font-size: 2rem; line-height: 1.1; }
    .subtext { order: 2; margin-bottom: 25px; width: 95%; margin-left: auto; margin-right: auto; text-align: center; }
    .store-buttons { order: 3; justify-content: center; margin-top: 0; margin-bottom: 0; }

    .hero-image-area { 
        order: 2; display: flex; justify-content: center; align-items: flex-start;
        width: 100%; margin-top: 30px; margin-bottom: 0; flex-grow: 0;
    }
    .hero-image-area img {
        width: 100%; max-width: 500px; height: auto; object-fit: contain;
        filter: drop-shadow(0 0 40px rgba(0,0,0,0.3)); animation: none;
    }
    
    /* CARDS */
    .cards-section { padding: 40px 0; }
    .section-header { margin-bottom: 40px; }
    .card-container { gap: 60px; }
    .app-feature { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .app-feature.reversed { direction: ltr; }
    .phone-showcase img { max-height: 320px; width: auto; margin: 0 auto; }
    .feature-card { padding: 25px 20px; }
    .feature-card h2 { font-size: 1.8rem; }
    .feature-list { display: inline-block; text-align: left; margin-top: 10px; }

    /* STOPKA MOBILE (2 kolumny, wyrównane do lewej) */
    .footer-grid { 
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 20px; 
        text-align: left !important; 
    }
    .footer-col.footer-logo-col {
        grid-column: 1 / -1; 
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important; 
    }
    .footer-col:last-child {
        grid-column: 1 / -1;
        align-items: center !important; 
        justify-content: center;
        margin-top: 10px;
    }

    .legal-wrapper { padding: 30px 20px; margin-top: 20px; margin-bottom: 10px; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .store-btn img { height: 42px; }
    p.subtext { font-size: 1rem; }
    .hero-image-area img { margin-top: 20px; }
}