/* CSS Reset i Główne Zmienne (Standard Premium SaaS) */
:root {
    --bg-color-main: #140d24; /* Głęboka czerń z odcieniem ciepłego, głębokiego fioletu */
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --accent-primary: #8b5cf6; /* Jasny fiolet */
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-secondary: #f43f5e; /* Rose/Magenta jako kontrast do warsztatów */
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --radius-lg: 16px;
    --radius-md: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Dodany fluid gradient w tle nadający bogatszy, fioletowy urok */
    background: linear-gradient(145deg, #0e091b 0%, #1e133e 50%, #140d24 100%);
    background-size: 200% 200%;
    animation: flowBg 15s ease infinite;
}

@keyframes flowBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background Glowing Orbs */
.glow-wrap {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}
.orb-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}
.orb-2 {
    bottom: 20%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

/* Typography & Utilities */
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; color: var(--text-secondary); }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

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

.text-center { text-align: center; }

.gradient-text {
    background: linear-gradient(90deg, #A78BFA, #60A5FA);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px 0 var(--accent-glow);
    border: 1px solid transparent;
}
.btn-primary:hover {
    background-color: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--accent-glow);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-secondary);
}
.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Nawigacja */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}
.hero-cta {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
}

/* Nowy Layout Główny z Obrazkiem (Split Screen) */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
}

.hero-image {
    position: relative;
    width: 100%;
}
.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px var(--accent-glow);
}

/* Glass Card Global Rule */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Dlaczego My Section */
.why-us {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section-header h2 {
    font-size: 2.5rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    height: 50px; width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
}

/* Bento Grid Funkcji AI */
.ai-features {
    padding: 80px 0;
}
.ai-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bento-box {
    display: flex;
    flex-direction: column;
}
.bento-icon {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: white;
}
.bento-box.span-2 { grid-column: span 2; }
.bento-box.span-3 { grid-column: span 3; text-align: center; align-items: center; }
.center-box p { max-width: 800px; }

.highlight-box {
    background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(244,63,94,0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

/* Timeline (Framework) */
.timeline-section {
    padding: 80px 0 120px;
}
.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 20px; bottom: 20px; left: 56px;
    width: 2px;
    background: var(--glass-border);
    z-index: 0;
}
.timeline-item {
    display: flex;
    gap: 32px;
    position: relative;
    z-index: 1;
    padding: 24px 32px;
}
.step-num {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--bg-color-main);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}
.highlight-step .step-num {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}
.step-content h3 { margin-bottom: 8px; }
.step-content p { margin-bottom: 0; }

/* Footer */
.footer {
    padding-bottom: 40px;
}
.footer-cta {
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.1), rgba(244, 63, 94, 0.1));
    margin-bottom: 40px;
}
.footer-cta h2 { font-size: 2.5rem; margin-bottom: 16px; }
.footer-cta p { max-width: 600px; margin: 0 auto 32px; font-size: 1.125rem;}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
}

/* Modal Zapisów */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1; pointer-events: auto;
}
.modal-content {
    max-width: 480px;
    width: 90%;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover {
    color: white;
}

@media (max-width: 992px) {
    .hero-split { grid-template-columns: 1fr; text-align: center;}
    .hero-content { text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-title { font-size: 2.75rem; }
    .features-grid, .ai-bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-box.span-2, .bento-box.span-3 { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.25rem; }
    .features-grid, .ai-bento-grid { grid-template-columns: 1fr; }
    .bento-box.span-2, .bento-box.span-3 { grid-column: span 1; }
    .timeline::before { left: 40px; }
    .timeline-item { padding: 24px; gap: 20px;}
}
