/* =========================================
   SHAMBOO MODERN SAAS UI (REFINED TINTED CANVAS)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Kolory do LOGO (Oryginalne, jaśniejsze Google) */
    --brand-blue: #4285F4;
    --brand-red: #EA4335;
    --brand-yellow: #FBBC05;
    --brand-green: #34A853;

    /* GŁÓWNY KOLOR AKCENTÓW (Przyciski, nagłówki - mocniejszy, głębszy kobalt dla lepszego kontrastu) */
    --primary: #2563EB; 
    --primary-glow: rgba(37, 99, 235, 0.3);
    
    /* GŁĘBIA TŁA - Przyciemniony, elegancki szaro-błękitny */
    --bg-base: #DCE4F0; 
    --bg-surface: #FFFFFF; /* Śnieżnobiałe karty mocno wyskakują z tła */
    --bg-elevated: #F8FAFC; 
    
    --border: #CBD5E1; /* Delikatnie ciemniejsza ramka dla wyraźniejszych kart */
    
    --text-main: #0F172A; /* Prawie czarny, idealna czytelność */
    --text-muted: #475569; /* Ciemniejszy szary do zwykłego tekstu */
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-base); 
    color: var(--text-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scroll-behavior: smooth;
    
    /* Wyraźniejsza siatka z niebieskich kropek na przyciemnionym tle */
    background-image: radial-gradient(rgba(37, 99, 235, 0.12) 2px, transparent 2px);
    background-size: 40px 40px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 10; }
.section-padding { padding: 140px 0; position: relative; }
.text-center { text-align: center; }

/* --- TŁA / PASTELOWE ŚWIECENIA --- */
.glow-orb-1 { position: absolute; top: -10%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%); filter: blur(80px); z-index: 0; }
.glow-orb-2 { position: absolute; top: 30%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(234, 67, 53, 0.1) 0%, transparent 70%); filter: blur(80px); z-index: 0; }
.glow-orb-3 { position: absolute; bottom: 10%; right: 20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(251, 188, 5, 0.1) 0%, transparent 70%); filter: blur(80px); z-index: 0; }

/* --- NAWIGACJA --- */
.navbar-wrapper { position: fixed; top: 20px; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: center; padding: 0 5%; }
.navbar {
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9); 
    border-radius: 100px; padding: 12px 30px; 
    display: flex; gap: 40px; align-items: center; width: 100%; max-width: 1100px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1); 
}

.logo { font-weight: 900; font-size: 1.8rem; text-decoration: none; letter-spacing: -1.5px; margin-right: auto;}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; font-weight: 600; transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }
.btn-login { 
    background: var(--bg-surface); color: var(--primary); 
    border: 2px solid var(--primary); padding: 8px 24px; 
    border-radius: 100px; font-weight: 700; text-decoration: none; 
    font-size: 0.95rem; transition: 0.3s; 
}
.btn-login:hover { background: var(--primary); color: white; box-shadow: 0 5px 15px var(--primary-glow);}

/* --- HERO --- */
.hero {
    min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
    padding-top: 80px; position: relative;
}
.hero-text h1 { font-size: 4.8rem; font-weight: 900; line-height: 1.05; margin-bottom: 24px; letter-spacing: -2px; }
.hero-text h1 span { color: var(--primary); }
.hero-text p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-trust { display: flex; gap: 20px; align-items: center; font-size: 0.95rem; color: var(--text-main); font-weight: 700;}
.trust-item { display: flex; align-items: center; gap: 8px; background: var(--bg-surface); padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.03);}
.trust-item svg { width: 18px; height: 18px; color: var(--primary); }

/* Formularz w Hero */
.hero-form-wrapper { position: relative; }
.hero-form-card {
    background: var(--bg-surface);
    padding: 50px 40px; border-radius: 24px;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(255,255,255,0.8);
    position: relative; z-index: 10; text-align: center;
}
.hero-form-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--brand-red), var(--brand-yellow), var(--brand-green));
    border-radius: 24px 24px 0 0;
}

.form-header h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; color: var(--text-main);}
.form-header p { color: var(--text-muted); font-size: 1rem; margin-bottom: 30px;}

.smart-input { 
    width: 100%; padding: 20px; font-size: 1.6rem; font-weight: 700; 
    border: 2px solid var(--border); border-radius: 12px; transition: 0.3s;
    text-align: center; letter-spacing: 3px; margin-bottom: 20px;
    background: var(--bg-base); color: var(--text-main);
}
.smart-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px var(--primary-glow); background: var(--bg-surface);}
.smart-input::placeholder { color: #94A3B8; }

.btn-submit {
    width: 100%; padding: 20px; background: var(--primary); color: white; border: none;
    border-radius: 12px; font-size: 1.15rem; font-weight: 800; cursor: pointer; transition: 0.3s;
    box-shadow: 0 10px 20px var(--primary-glow);
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-submit:hover { background: #1D4ED8; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);}
.form-footer { margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }

/* --- MIKRO-INTERAKCJE FORMULARZA --- */
.spinner {
    border: 3px solid rgba(255,255,255,0.3); border-radius: 50%;
    border-top: 3px solid #fff; width: 20px; height: 20px;
    animation: spin 1s linear infinite; display: inline-block;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.success-state, .error-state { display: none; text-align: center; animation: fadeIn 0.5s ease forwards; }
.success-icon { width: 80px; height: 80px; background: rgba(52, 168, 83, 0.1); color: var(--brand-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; border: 2px solid rgba(52, 168, 83, 0.2); }
.success-icon svg { width: 40px; height: 40px; }
.success-state h4 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 10px; font-weight: 800;}
.success-state p { color: var(--text-muted); margin-bottom: 25px; font-size: 1.1rem;}

.error-icon { width: 70px; height: 70px; background: rgba(234, 67, 53, 0.1); color: var(--brand-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; border: 2px solid rgba(234, 67, 53, 0.2); }
.error-icon svg { width: 36px; height: 36px; }
.error-state h4 { font-size: 1.6rem; color: var(--text-main); margin-bottom: 10px; font-weight: 800;}
.error-state p { color: var(--text-muted); margin-bottom: 25px; font-size: 1.05rem;}
.btn-retry { width: 100%; padding: 16px; background: var(--bg-elevated); color: var(--text-main); border: 2px solid var(--border); border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-retry:hover { background: #E2E8F0; }

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

/* --- KORZYŚCI (BENTO GRID) --- */
.section-header { margin-bottom: 60px; position: relative; z-index: 10;}
.section-header h2 { font-size: 3rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 15px;}
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto;}

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; z-index: 10;}
.bento-card { 
    background: var(--bg-surface); padding: 40px 30px; border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.6); transition: 0.3s;
    position: relative; overflow: hidden; 
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.05); 
}
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 25px 45px rgba(37, 99, 235, 0.12);}
.bento-icon { 
    width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.bento-icon svg { width: 28px; height: 28px; }
.bento-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; color: var(--text-main);}
.bento-card p { color: var(--text-muted); font-size: 1rem; }

/* --- ZOPTYMALIZOWANY PROCES (4 KROKI) --- */
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 10; }
.process-timeline::before {
    content: ''; position: absolute; top: 40px; left: 10%; width: 80%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent); z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 2; padding: 10px;}
.step-icon { 
    width: 80px; height: 80px; background: var(--bg-surface); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; 
    margin: 0 auto 24px auto; border: 3px solid; 
    transition: 0.3s;
}
.process-step:hover .step-icon { transform: scale(1.1); }
.process-step h4 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; color: var(--text-main);}
.process-step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;}

/* --- CENNIK (PRICING 2x2) --- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; align-items: stretch; position: relative; z-index: 10;}
.price-card { 
    background: var(--bg-surface); border-radius: 24px; padding: 40px; 
    border: 1px solid rgba(255,255,255,0.6); transition: 0.3s; 
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.05);
    display: flex; flex-direction: column;
}
.price-card.featured { 
    border: 2px solid var(--primary); transform: scale(1.03); position: relative;
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
}
.badge-popular { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 8px 20px; border-radius: 100px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 6px 12px var(--primary-glow);}

.price-header { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; text-align: center;}
.price-name { font-size: 1.3rem; font-weight: 800; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;}
.price-card.featured .price-name { color: var(--primary); }
.price-amount { font-size: 3.5rem; font-weight: 900; line-height: 1; color: var(--text-main);}
.price-amount span { font-size: 1.1rem; font-weight: 500; color: var(--text-muted);}

.price-features { list-style: none; margin-bottom: 30px; flex-grow: 1;}
.price-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; color: var(--text-main); font-size: 1rem; font-weight: 500;}
.price-features li svg { width: 22px; height: 22px; color: var(--brand-green); flex-shrink: 0;}

.btn-price { display: block; width: 100%; text-align: center; padding: 20px; border-radius: 12px; font-weight: 800; text-decoration: none; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;}
.btn-outline { border: 2px solid var(--border); color: var(--text-main); background: #F8FAFC;}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-surface); }
.btn-solid { background: var(--primary); color: white; box-shadow: 0 10px 20px var(--primary-glow);}
.btn-solid:hover { background: #1D4ED8; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);}

/* --- FOOTER --- */
footer { background: #0F172A; padding: 80px 0 40px 0; position: relative; z-index: 10;}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { font-size: 1.8rem; font-weight: 900; text-decoration: none; margin-bottom: 15px; display: inline-block;}
.footer-col p { color: #94A3B8; font-size: 0.95rem; max-width: 300px;}
.footer-col h4 { color: #FFFFFF; font-weight: 700; margin-bottom: 20px;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; color: #94A3B8; font-size: 0.95rem;}
.footer-col ul a { color: #94A3B8; text-decoration: none; transition: 0.2s; font-size: 0.95rem;}
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 0.9rem; color: #94A3B8;}

/* =========================================
   STYLE DLA PODSTRONY O-NAS.HTML
   ========================================= */
.subpage-header { padding: 180px 5% 60px 5%; text-align: center; position: relative; z-index: 10; }
.subpage-header h1 { font-size: 4rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -2px; color: var(--text-main); }
.subpage-header p { font-size: 1.3rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.text-block { background: var(--bg-surface); padding: 40px; border-radius: 24px; border: 1px solid var(--border); margin-bottom: 30px; box-shadow: 0 15px 35px rgba(37, 99, 235, 0.05); }
.text-block h3 { font-size: 1.6rem; color: var(--text-main); margin-bottom: 15px; font-weight: 800; }
.text-block p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 15px; }
.text-block p:last-child { margin-bottom: 0; }
.check-list { list-style: none; margin-top: 25px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 1.05rem; color: var(--text-main); font-weight: 600; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--brand-green); font-weight: 900; font-size: 1.2rem; }

/* Karta czujnika w "O nas" */
.sensor-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px; box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08); margin-bottom: 30px; position: relative; overflow: hidden; }
.sensor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; position: relative; z-index: 10;}
.sensor-title { font-weight: 800; font-size: 1.1rem; color: var(--text-main); letter-spacing: 1px; text-transform: uppercase;}
.sensor-status { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-green); font-size: 0.9rem; background: rgba(52, 168, 83, 0.1); padding: 6px 12px; border-radius: 100px;}
.status-dot { width: 8px; height: 8px; background: var(--brand-green); border-radius: 50%; box-shadow: 0 0 10px var(--brand-green); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(52, 168, 83, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); } }
.sensor-body { position: relative; z-index: 10; text-align: center;}
.sensor-level { margin-bottom: 20px; }
.level-value { font-size: 2.8rem; font-weight: 900; line-height: 1; color: var(--primary); display: block;}
.level-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; display: block;}
.sensor-bar-bg { width: 100%; height: 10px; background: #E2E8F0; border-radius: 100px; overflow: hidden; margin-bottom: 25px;}
.sensor-bar-fill { width: 100%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--brand-green)); border-radius: 100px; }
.sensor-info { font-size: 0.9rem; color: var(--text-muted); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 140px; }
    .hero-text h1 { font-size: 3.5rem; }
    .hero-text p { margin: 0 auto 30px auto; }
    .hero-trust { justify-content: center; }
    .nav-links, .btn-login { display: none; }
    .about-grid, .bento-grid, .steps-container { grid-template-columns: 1fr; gap: 40px;}
    .process-timeline { grid-template-columns: 1fr 1fr; gap: 40px;}
    .process-timeline::before { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col p { margin: 0 auto; }
    .subpage-header { padding: 140px 5% 40px 5%; }
    .subpage-header h1 { font-size: 3rem; }
}
@media (max-width: 576px) {
    .process-timeline { grid-template-columns: 1fr; }
}