/* --- style.css --- */

/* --- ZMIENNE I RESET --- */
:root {
    --color-bg: #121212;
    --color-surface: #1E1E1E;
    --color-surface-hover: #252525;
    --color-primary: #FDD835;
    --color-primary-hover: #FBC02D;
    --color-text-main: #FFFFFF;
    --color-text-dim: #AAAAAA;
    --border-color: #333;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- KOMPONENTY --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    gap: 10px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background-color: rgba(253, 216, 53, 0.1);
}

.badge {
    display: inline-block;
    background-color: rgba(253, 216, 53, 0.2);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* --- NAWIGACJA --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span { color: #fff; }

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-links a:hover,.nav-links a.active { color: var(--color-primary); }

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* --- HERO SECTION (WSPÓLNE) --- */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(253, 216, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(253, 216, 53, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-dim);
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- KARTY / GRID (WSPÓLNE) --- */
.section-padding {
    padding: 80px 0;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card p { color: var(--color-text-dim); margin-bottom: 25px; font-size: 0.95rem; }
.card ul { margin-bottom: 30px; color: #888; font-size: 0.9rem; }
.card li { margin-bottom: 8px; }

.card-action { margin-top: auto; }

/* Wyróżnienie karty biznesowej na stronie głównej */
.card.business {
    background: linear-gradient(145deg, #1E1E1E, #2a2a2a);
    border-color: #444;
}

/* --- STYLE SPECYFICZNE DLA OPERATOR.HTML --- */

/* Sekcja korzyści (Grid 2x2) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    background: rgba(253, 216, 53, 0.1);
    padding: 12px;
    border-radius: 10px;
}

.benefit-content h4 { font-size: 1.2rem; margin-bottom: 8px; color: #fff; }
.benefit-content p { font-size: 0.95rem; color: var(--color-text-dim); }

/* Sekcja CTA (Call to Action) */
.cta-section {
    background: linear-gradient(to right, var(--color-surface), #252525);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    margin: 80px 0;
}

.cta-section h2 { font-size: 2rem; margin-bottom: 15px; }
.cta-section p { max-width: 600px; margin: 0 auto 30px; color: var(--color-text-dim); }

/* --- STYLE DODATKOWE DLA O-NAS.HTML --- */

/* Grid dla sekcji O nas (Tekst + Statystyki) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-content p {
    color: var(--color-text-dim);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-content strong {
    color: #fff;
}

/* Karty statystyk */
.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--color-surface);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Wycentrowany tekst (dla sekcji Unikalne Dane) */
.text-center-width {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.text-center-width h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.text-center-width p {
    font-size: 1.2rem;
    color: var(--color-text-dim);
}

/* Grid dla listy funkcji (boxów) */
.features-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.feature-box h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--color-text-dim);
}

/* Lista z "fajkami" dla sekcji B2B */
.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--color-text-dim);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.check-list strong {
    color: #fff;
}

/* Responsywność dla O nas */
@media (max-width: 768px) {
   .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
   .about-content h2 {
        font-size: 2rem;
    }
    
   .cta-section {
        padding: 40px 20px;
    }
}

/* --- NOWE SEKCJE DLA INDEX.HTML --- */

/* Sekcja "Funkcje w detalu" (Zig-Zag) */
.feature-row {
    display: flex;
    align-items: center;
    gap: 80px; /* Zwiększony odstęp dla "oddechu" */
    margin-bottom: 120px;
}

/* Odwracanie kolejności co drugi rząd */
.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2, .about-teaser h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.feature-text.highlight {
    color: var(--color-primary);
}

.feature-visual {
    flex: 1;
    /* Zmiana na styl "poświaty" bez krawędzi */
    background: radial-gradient(circle, rgba(253, 216, 53, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%; /* Opcjonalnie: 50% dla koła lub np. 30px dla prostokąta */
    aspect-ratio: 1/1; /* Kwadratowa proporcja dla lepszego efektu poświaty */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Brak borderu */
}

/* Abstrakcyjne elementy wewnątrz */
.visual-placeholder {
    text-align: center;
    color: #fff;
    z-index: 2;
}

.visual-placeholder svg {
    width: 120px; /* Większe ikony */
    height: 120px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 20px rgba(253, 216, 53, 0.3)); /* Dodatkowy blask ikony */
}

.visual-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sekcja "O nas" (Teaser na głównej) */
.about-teaser {
    background: linear-gradient(to bottom, var(--color-surface), var(--color-bg));
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 100px 0;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.stat-item strong {
    display: block;
    font-size: 3rem;
    color: var(--color-primary);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- POPRAWKI MOBILNE --- */
@media (max-width: 992px) {
   .feature-row {
        gap: 40px;
    }
    
   .feature-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Na mobile zawsze kolumna, usuwamy odwracanie */
   .feature-row,.feature-row:nth-child(even) {
        flex-direction: column-reverse; /* Obrazek nad tekstem lub pod - tutaj: obrazek na górze */
        gap: 40px;
        margin-bottom: 80px;
        text-align: center; /* Wyśrodkowanie tekstu na mobile */
    }

   .feature-visual {
        width: 100%;
        max-width: 350px; /* Ograniczenie wielkości poświaty na telefonie */
        margin: 0 auto; /* Środek */
        aspect-ratio: 1/1;
    }

   .visual-placeholder svg {
        width: 80px;
        height: 80px;
    }

   .feature-text h2 {
        font-size: 1.8rem;
    }

   .stats-row {
        gap: 40px;
        flex-direction: column; /* Statystyki jedna pod drugą */
    }
    
   .stat-item strong {
        font-size: 2.5rem;
    }
}


/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    margin-top: 80px;
    margin-bottom: 120px;
    color: #666;
    font-size: 0.9rem;
    background-color: #0f0f0f;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand p { margin-top: 10px; opacity: 0.7; }

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-col h4 { color: #fff; margin-bottom: 15px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-primary); }

/* --- MOBILE PROMPT --- */
.mobile-prompt {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--color-primary);
    color: #000;
    padding: 20px;
    border-radius: 12px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.5s ease-out;
}

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

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
   .nav-links,.login-btn-desktop { display: none; }
   .hero h1 { font-size: 2.5rem; }
   .hero { padding: 140px 0 60px; }
    
    /* Ukrywamy kartę biznesową na mobile tylko na głównej, na operator.html zostawiamy */
    body.home-page.card.business { display: none; }
    
   .benefits-grid { grid-template-columns: 1fr; }
   .footer-content { flex-direction: column; }
   .cta-section { padding: 40px 20px; }
}


/* --- STYLE DLA STRONY LOGOWANIA (PANEL) --- */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtelne tło mapy lub gradientu */
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #121212 100%);
}

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 40px; /* Miejsce na header */
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: slideUp 0.5s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

/* Formularze */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: #0f0f0f; /* Ciemniejsze tło inputa */
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(253, 216, 53, 0.1);
}

.form-input::placeholder {
    color: #555;
}

.link-forgot {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
}

.link-forgot:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.login-footer a {
    color: var(--color-text-dim);
    text-decoration: underline;
}

.login-footer a:hover {
    color: var(--color-primary);
}

.login-meta {
    margin-top: 30px;
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* Focus state dla inputów w trybie autofill (częsty problem ciemnych motywów) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #0f0f0f inset!important;
    -webkit-text-fill-color: white!important;
    transition: background-color 5000s ease-in-out 0s;
}