/* Zmienne CSS - Dark Software House Theme */
:root {
    --bg-main: #090a0f;
    --bg-darker: #050608;
    --card-bg: rgba(18, 20, 29, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(204, 255, 0, 0.3);
    --lime: #ccff00;
    --lime-hover: #b3e600;
    --cyan: #00f0ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius: 24px;
    --radius-sm: 12px;
    --shadow-glow: 0 0 20px rgba(204, 255, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Typografia */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text-main); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { color: var(--text-muted); margin-bottom: 1.2rem; }
.lead { font-size: 1.15rem; color: #cbd5e1; font-weight: 400; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Układ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; z-index: 2; }
.bg-darker { background-color: var(--bg-darker); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 3.5rem; }

/* Przyciski */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 1rem; cursor: pointer;
    border: 2px solid transparent; transition: var(--transition);
}
.btn-lime { background-color: var(--lime); color: #000; }
.btn-lime:hover { background-color: var(--lime-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-outline { background-color: transparent; border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); background-color: rgba(204, 255, 0, 0.05); }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* Header */
.header {
    position: sticky; top: 0; left: 0; width: 100%;
    background-color: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(12px); z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--text-main); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 24px; }
.nav-link {
    display: flex; align-items: center; gap: 8px;
    font-weight: 500; font-size: 0.95rem; color: var(--text-muted);
}
.nav-link svg { stroke: var(--lime); opacity: 0.7; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text-main); }
.nav-link:hover svg, .nav-link.active svg { opacity: 1; }

.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 30px; height: 24px; position: relative; z-index: 1001;
}
.mobile-menu-btn span {
    display: block; width: 100%; height: 2px; background-color: var(--text-main);
    position: absolute; transition: var(--transition);
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg); top: 11px; }

/* Hero */
.hero { padding: 80px 0 120px; position: relative; overflow: hidden; }
.grid-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.2; z-index: 0; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; background: radial-gradient(circle, rgba(204, 255, 0, 0.05) 0%, transparent 70%);
    z-index: 0; pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-capsules { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.capsule { background: var(--card-bg); border: 1px solid var(--border); color: var(--text-muted); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; backdrop-filter: blur(4px); }
.capsule.highlight { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 10px rgba(204, 255, 0, 0.1); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* Hero Visual (Mockup) */
.hero-visual { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.mockup-container { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.mockup-window {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg);
    width: 380px; background: #0f1115; border-radius: var(--radius-sm);
    border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden; z-index: 2;
}
.mockup-header { display: flex; align-items: center; padding: 12px 16px; background: #161920; border-bottom: 1px solid var(--border); gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.mockup-url { margin-left: 16px; background: #090a0f; padding: 4px 12px; border-radius: 4px; font-size: 0.7rem; color: var(--text-muted); font-family: monospace; }
.mockup-body { padding: 20px; }
.m-hero { background: #161920; border-radius: 8px; padding: 20px; margin-bottom: 16px; border: 1px solid var(--border); }
.m-line { height: 8px; background: #222635; border-radius: 4px; margin-bottom: 10px; }
.w-70 { width: 70%; }
.w-50 { width: 50%; }
.m-btn { width: 80px; height: 24px; background: var(--lime); border-radius: 4px; margin-top: 16px; opacity: 0.8; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.m-card { height: 60px; background: #161920; border-radius: 8px; border: 1px solid var(--border); }

.float-card {
    position: absolute; background: var(--card-bg); border: 1px solid var(--border);
    padding: 10px 16px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; font-weight: 600; color: var(--text-main); backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 3;
}
.fc-1 { top: 10%; left: 0; animation: float 4s ease-in-out infinite; }
.fc-2 { top: 30%; right: -20px; animation: float 5s ease-in-out infinite 1s; }
.fc-3 { bottom: 20%; left: -10px; animation: float 4.5s ease-in-out infinite 0.5s; }
.fc-4 { bottom: 5%; right: 10%; animation: float 6s ease-in-out infinite 2s; }

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

/* Trust Bar */
.trust-bar { background-color: var(--bg-darker); padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 0.95rem; color: var(--text-main); }

/* Grid System */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Glass Cards */
.glass-card {
    background: var(--card-bg); padding: 32px;
    border-radius: var(--radius); border: 1px solid var(--border);
    backdrop-filter: blur(10px); transition: var(--transition);
}
.glass-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.glass-card p:last-child { margin-bottom: 0; }

/* Service Cards */
.service-card {
    background: var(--bg-main); padding: 32px;
    border-radius: var(--radius); border: 1px solid var(--border);
    transition: var(--transition);
}
.service-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.sc-icon { color: var(--lime); margin-bottom: 20px; }

/* Types Grid */
.types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.type-capsule {
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 20px; border-radius: var(--radius-sm); display: flex; flex-direction: column;
}
.type-capsule strong { color: var(--lime); margin-bottom: 4px; font-size: 1.05rem; }
.type-capsule span { color: var(--text-muted); font-size: 0.9rem; }

/* Timeline Proces */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; top: 0; left: 24px; width: 2px; height: 100%; background: linear-gradient(to bottom, var(--lime), var(--cyan)); opacity: 0.3; }
.timeline-item { display: flex; gap: 32px; padding: 24px 0; position: relative; z-index: 1; }
.tl-dot {
    width: 50px; height: 50px; background: var(--bg-main); border: 2px solid var(--lime);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; color: var(--text-main); flex-shrink: 0;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}
.tl-content { background: var(--card-bg); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius-sm); width: 100%; }
.tl-content h3 { margin-bottom: 8px; }
.tl-content p { margin-bottom: 0; }

/* Text Blocks (SEO/Edu) */
.text-block { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }
.text-block p { margin-bottom: 1.8rem; }
.text-block strong { color: var(--lime); font-weight: 600; }

/* Elements Grid */
.elements-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.element-card { background: var(--bg-darker); border: 1px solid var(--border); padding: 20px; border-radius: var(--radius-sm); text-align: center; }
.element-card strong { display: block; color: var(--cyan); margin-bottom: 8px; font-size: 1rem; }
.element-card p { font-size: 0.85rem; margin-bottom: 0; }

/* CTA Middle */
.cta-middle { background: linear-gradient(135deg, rgba(204, 255, 0, 0.05) 0%, rgba(0, 240, 255, 0.05) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 0; }
.cta-middle p { margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; }
.faq-item summary { padding: 24px; font-weight: 600; font-size: 1.1rem; color: var(--text-main); cursor: pointer; list-style: none; position: relative; padding-right: 50px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--lime); transition: var(--transition); }
.faq-item[open] summary::after { content: '−'; }
.faq-content { padding: 0 24px 24px; }
.faq-content p:last-child { margin-bottom: 0; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.contact-form-wrapper { background: var(--card-bg); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; color: var(--text-main); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; background: var(--bg-darker); color: var(--text-main); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.2); }
.hidden { display: none !important; }
.form-message { text-align: center; padding: 20px 0; }
.msg-icon { display: flex; justify-content: center; margin-bottom: 16px; }

/* Floating UI (Chat & Back to Top) */
.chat-trigger {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--lime); color: #000; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--shadow-glow); z-index: 999; transition: var(--transition);
}
.chat-trigger:hover { transform: scale(1.1); }

.chat-modal {
    position: fixed; bottom: 100px; right: 30px; width: 320px;
    background: var(--bg-main); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); z-index: 999; overflow: hidden;
    transform-origin: bottom right; transition: transform 0.3s ease, opacity 0.3s ease;
}
.chat-modal.hidden { transform: scale(0.8); opacity: 0; pointer-events: none; }
.chat-header { background: var(--bg-darker); padding: 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.chat-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.status-dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 8px var(--lime); }
.chat-close { background: none; border: none; color: var(--text-muted); cursor: pointer; }
.chat-close:hover { color: var(--text-main); }
.chat-body { padding: 20px; font-size: 0.95rem; }
.chat-body p { margin-bottom: 10px; color: var(--text-main); }
.chat-footer { padding: 16px; background: var(--bg-darker); border-top: 1px solid var(--border); }

.back-to-top {
    position: fixed; bottom: 100px; right: 38px; width: 44px; height: 44px;
    background: var(--card-bg); color: var(--text-main); border: 1px solid var(--border);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 998; transition: var(--transition); backdrop-filter: blur(4px);
}
.back-to-top:hover { border-color: var(--cyan); color: var(--cyan); }
.back-to-top.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* Footer */
.footer { background-color: var(--bg-darker); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-content { margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { max-width: 500px; }
.footer-brand a { color: var(--lime); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; font-size: 0.9rem; }
.disclaimer { margin-top: 8px; font-size: 0.8rem; color: var(--text-muted); }

/* Responsywność */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .elements-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-grid { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-capsules { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { height: 400px; }
    .mockup-window { transform: translate(-50%, -50%) scale(0.9); }
    
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .elements-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    
    .header-cta { display: none; }
    .mobile-menu-btn { display: block; }
    
    .nav {
        position: fixed; top: 80px; left: 0; width: 100%;
        background-color: var(--bg-main); padding: 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%); transition: transform 0.3s ease;
        flex-direction: column; align-items: flex-start;
    }
    .nav.active { transform: translateY(0); }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
    .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
    
    .chat-trigger { bottom: 20px; right: 20px; }
    .chat-modal { right: 20px; bottom: 90px; width: calc(100% - 40px); }
    .back-to-top { right: 28px; bottom: 90px; }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .hero { padding: 40px 0 60px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .elements-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
    .timeline::before { left: 20px; }
    .tl-dot { width: 40px; height: 40px; font-size: 1rem; }
    .timeline-item { gap: 20px; }
}

.logo-img {
    height: 40px; /* Tutaj ustawiasz wysokość logotypu */
    width: auto;
    display: block;
}