/* Zmienne CSS */
:root {
    --bg-dark: #060914;
    --bg-darker: #03050a;
    --bg-card: rgba(15, 23, 42, 0.6);
    --accent-cyan: #22D3EE;
    --accent-purple: #8B5CF6;
    --accent-lime: #C8FF4D;
    --text-main: #ffffff;
    --text-muted: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.mt-2 { margin-top: 1.5rem; }
.mt-4 { margin-top: 3rem; }
.bg-darker { background-color: var(--bg-darker); }

/* Typografia */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-main); }
p { color: var(--text-muted); font-size: 1.125rem; }

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; width: 100%; }
section { padding: 6rem 0; position: relative; }

/* Glassmorphism & Cards */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.card {
    padding: 2rem; position: relative; overflow: hidden; transition: var(--transition); z-index: 1;
}
.card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.3); box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.1); }

/* Przyciski */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2rem; border-radius: 50px; font-weight: 600;
    text-decoration: none; transition: var(--transition); cursor: pointer;
    font-size: 1rem; border: none; text-align: center;
}
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-primary { background: var(--accent-cyan); color: var(--bg-dark); }
.btn-primary:hover { background: #ffffff; transform: scale(1.05); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--glass-border); }
.btn-secondary:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(34, 211, 238, 0.05); }
.glow-effect { box-shadow: 0 0 20px rgba(34, 211, 238, 0.4); animation: pulseGlow 2s infinite; }
@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(34, 211, 238, 0.4); }
    50% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.7); }
    100% { box-shadow: 0 0 15px rgba(34, 211, 238, 0.4); }
}

/* --- HEADER --- */
header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 1200px; z-index: 100; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px;
    padding: 0.75rem 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
}
header.scrolled { top: 10px; width: 100%; max-width: 100%; }
header.scrolled .nav-container { border-radius: 20px; background: rgba(6, 9, 20, 0.85); border-color: rgba(34, 211, 238, 0.2); }

.logo img { height: 35px; width: auto; display: block; }
nav { display: flex; gap: 2rem; }
nav a { 
    color: var(--text-main); text-decoration: none; font-weight: 500; 
    font-size: 0.95rem; position: relative; padding: 0.5rem 0;
}
nav a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--accent-cyan); transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-cyan);
}
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--accent-cyan); }

.header-cta { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; cursor: pointer; }

/* Hero Section */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding-top: 8rem; overflow: hidden; position: relative;
}
#neural-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; }
.hero-content {
    position: relative; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.badge-promo {
    display: inline-block; padding: 0.4rem 1rem; border-radius: 50px;
    background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-purple); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-text p { margin-bottom: 2.5rem; font-size: 1.25rem; max-width: 90%; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- NAPRAWIONA ANIMACJA ORBITALNA --- */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; height: 400px; width: 100%; }
.orbital-system { position: relative; width: 320px; height: 320px; }

.orbit-ring {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 1px dashed rgba(34, 211, 238, 0.3); border-radius: 50%;
    animation: spinRing 25s linear infinite;
}

.center-core {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120px; height: 120px; border-radius: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, rgba(15,23,42,0.8) 100%);
    border: 2px solid rgba(139, 92, 246, 0.5); box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
    z-index: 10; animation: pulseCore 3s infinite alternate;
}
.core-icon { margin-bottom: 0.2rem; }
.core-text { font-size: 0.8rem; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }

.orbit-node {
    position: absolute; width: 80px; height: 80px;
    margin-left: -40px; margin-top: -40px; /* Centrowanie względem punktu */
    display: flex; flex-direction: column; align-items: center;
    animation: counterSpin 25s linear infinite;
    z-index: 2;
}

/* Sztywne pozycjonowanie na krawędziach koła */
.node-top { top: 0; left: 50%; }
.node-right { top: 50%; left: 100%; }
.node-bottom { top: 100%; left: 50%; }
.node-left { top: 50%; left: 0; }

.node-icon {
    width: 50px; height: 50px; border-radius: 12px; background: var(--bg-dark);
    border: 1px solid var(--glass-border); display: flex; justify-content: center; align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); color: var(--text-main);
}
.orbit-node span {
    margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600;
    background: rgba(0,0,0,0.6); padding: 0.2rem 0.6rem; border-radius: 20px;
    white-space: nowrap;
}

@keyframes pulseCore { 0% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); } 100% { box-shadow: 0 0 60px rgba(139, 92, 246, 0.6); } }
@keyframes spinRing { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes counterSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }

/* --- KARUZELA INTEGRACJI --- */
.integrations-carousel { padding: 2rem 0 4rem; overflow: hidden; border-bottom: 1px solid var(--glass-border); }
.carousel-title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 2rem; }
.carousel-track-container { width: 100%; overflow: hidden; position: relative; }
.carousel-track-container::before, .carousel-track-container::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.carousel-track-container::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.carousel-track-container::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }
.carousel-track {
    display: flex; gap: 4rem; width: max-content;
    animation: scrollCarousel 30s linear infinite;
}
.carousel-item { display: flex; align-items: center; gap: 0.75rem; opacity: 0.6; transition: opacity 0.3s; }
.carousel-item:hover { opacity: 1; }
.carousel-item img { height: 30px; width: auto; filter: grayscale(100%) brightness(200%); transition: filter 0.3s; }
.carousel-item:hover img { filter: grayscale(0%) brightness(100%); }
.carousel-item span { font-weight: 600; font-size: 1.1rem; color: var(--text-muted); }
@keyframes scrollCarousel { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sekcja 1: Co można zautomatyzować */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.icon-wrapper {
    width: 50px; height: 50px; border-radius: 12px; background: rgba(34, 211, 238, 0.1);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

/* Sekcja 2: AI Agent */
.ai-agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.feature-list { list-style: none; margin-top: 2rem; }
.feature-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 1.1rem; }
.feature-list li svg { width: 24px; height: 24px; flex-shrink: 0; background: rgba(200, 255, 77, 0.1); border-radius: 50%; padding: 4px; }

/* Panel Czatu */
.chat-panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-header {
    background: rgba(0,0,0,0.3); padding: 1rem 1.5rem; border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--accent-cyan);
}
.chat-dot {
    width: 8px; height: 8px; background: var(--accent-cyan); border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan); animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.chat-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { padding: 1rem; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; max-width: 85%; }
.msg-user { background: rgba(255,255,255,0.05); align-self: flex-end; border-bottom-right-radius: 2px; }
.msg-ai { background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2); align-self: flex-start; border-bottom-left-radius: 2px; }

.system-alerts { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.alert-pill {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    border-radius: 8px; font-size: 0.85rem; font-weight: 500;
}
.alert-pill.priority { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: #FCD34D; }
.alert-pill.success { background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3); color: var(--accent-cyan); }
.alert-pill svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- SEKCJA SEO (Longtail) --- */
.seo-text-container { max-width: 900px; margin: 0 auto; }
.seo-text-container h2 { margin-bottom: 2rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.seo-text-container p { margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); text-align: justify; }

/* --- FAQ (Dwie Kolumny) --- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.faq-category-title { font-size: 1.3rem; color: var(--accent-cyan); margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; }
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-question {
    width: 100%; text-align: left; padding: 1.2rem 0; background: none; border: none;
    color: var(--text-main); font-size: 1.05rem; font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; font-family: var(--font-main);
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent-cyan); transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding-bottom: 1.2rem; font-size: 0.95rem; color: var(--text-muted); }

/* Sekcja CodePress Promo */
.cp-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem; align-items: center; }
.cp-mockup {
    background: var(--bg-dark); border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.4); text-align: center;
}
.cp-m-header { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-main); }
.cp-m-line { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 1rem; width: 100%; }
.cp-m-line.short { width: 60%; margin: 0 auto 2rem; }
.cp-m-price { font-size: 1.5rem; font-weight: 800; color: var(--accent-cyan); margin-bottom: 1.5rem; }
.cp-m-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem; background: var(--text-main); color: var(--bg-dark);
    border-radius: 8px; font-weight: 700; text-decoration: none; transition: var(--transition);
}
.cp-m-btn:hover { background: var(--accent-cyan); transform: translateY(-2px); }

/* --- FOOTER --- */
.footer { border-top: 1px solid var(--glass-border); padding: 6rem 0 2rem; background: rgba(0,0,0,0.3); }
.footer-lead { max-width: 700px; margin: 1.5rem auto 2.5rem; color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; color: var(--text-muted); font-size: 0.9rem; }

/* --- WYŚRODKOWANY BANNER COOKIES --- */
.cookie-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150%);
    display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.5rem;
    border-radius: 50px; z-index: 9999; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: max-content; max-width: 90%;
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-content { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--text-main); }

/* --- FAKE SOCIAL PROOF --- */
.social-proof {
    position: fixed; bottom: 20px; left: 20px; padding: 1rem; border-radius: 12px;
    display: flex; align-items: center; gap: 1rem; z-index: 9998;
    transform: translateX(-150%); opacity: 0; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.social-proof.show { transform: translateX(0); opacity: 1; }
.sp-icon { background: rgba(200, 255, 77, 0.1); padding: 0.5rem; border-radius: 50%; display: flex; }
.sp-text { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.sp-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    border: 1px solid var(--glass-border); color: var(--text-main); cursor: pointer;
    z-index: 9998; opacity: 0; pointer-events: none; transition: var(--transition);
}
.back-to-top.show { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--accent-cyan); color: var(--bg-dark); border-color: var(--accent-cyan); }

/* Animacje wejścia (Scroll) */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsywność */
@media (max-width: 992px) {
    .hero-content, .ai-agent-grid, .cp-promo, .faq-grid { grid-template-columns: 1fr; gap: 3rem; }
    .cp-promo { padding: 2rem; }
}
@media (max-width: 768px) {
    header { top: 10px; width: 95%; }
    .nav-container { padding: 0.5rem 1rem; }
    nav {
        position: absolute; top: 70px; left: 0; right: 0; background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px); border-radius: 20px; border: 1px solid var(--glass-border);
        flex-direction: column; padding: 2rem; gap: 1.5rem; text-align: center;
        transform: translateY(-20px); opacity: 0; pointer-events: none; transition: var(--transition);
    }
    nav.active { transform: translateY(0); opacity: 1; pointer-events: all; }
    .mobile-menu-btn { display: block; }
    .header-cta { display: none; }
    h1 { font-size: 2.2rem; }
    section { padding: 4rem 0; }
    
    .orbital-system { transform: scale(0.8); }
    .cookie-banner { flex-direction: column; text-align: center; border-radius: 20px; }
    .social-proof { bottom: 90px; } /* Żeby nie nachodziło na cookies na mobile */
}

/* 1. Powiększenie logo w headerze */
.logo img {
    height: 55px !important; /* Zwiększono z 35px */
    width: auto;
    display: block;
    max-height: 55px;
}

/* 2. Naprawa karuzeli: Wyśrodkowanie i zatrzymanie animacji */
.carousel-track {
    display: flex;
    justify-content: center; /* Wymusza wyśrodkowanie elementów */
    gap: 4rem;
    width: 100%;
    animation: none !important; /* Usuwa przewijanie */
    flex-wrap: wrap; /* Pozwala na zawijanie ikon na mniejszych ekranach */
}

/* Opcjonalnie: jeśli chcesz, aby ikony były w jednym rzędzie i na środku */
.carousel-track-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 3. Poprawa wyglądu ikon w karuzeli (nieruchome) */
.carousel-item {
    opacity: 0.8;
    transition: opacity 0.3s ease;
    justify-content: center;
}

.carousel-item:hover {
    opacity: 1;
}

/* Usunięcie gradientów maskujących (niepotrzebne przy nieruchomej karuzeli) */
.carousel-track-container::before, 
.carousel-track-container::after {
    display: none;
}