:root {
    --bg-color: #0b0b14;
    --bg-accent: #131221;
    --text-main: #f4f4f6;
    --text-muted: #a1a1bc;
    --accent-primary: #af5398;
    --accent-secondary: #7e3e7f;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(20, 20, 35, 0.4);
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, #af5398 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

h2 { font-size: 2rem; color: #fff; }
h3 { font-size: 1.3rem; color: #fff; }
p { color: var(--text-muted); margin-bottom: 1rem; }

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 11, 20, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-primary); }

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 60%);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-main);
    display: block;
    width: 100%;
    max-width: none;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-text {
    font-size: 1.1rem;
    width: 100%;
    max-width: none;
    margin-bottom: 2rem;
}

/* Neural Network Canvas */
#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(5px);
}

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

/* Overline Labels */
.overline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    width: max-content;
}

/* Architecture Pipeline */
.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pipeline-step {
    background: transparent;
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.pipeline-step h3 { margin: 0; font-size: 1.1rem;}

/* Stats / Advantages */
.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* POC Process */
.poc-step {
    border-left: 2px solid var(--accent-secondary);
    padding-left: 2rem;
    position: relative;
    padding-bottom: 3rem;
}
.poc-step::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
}
.poc-step-num {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Logo Strip */
.logo-strip {
    display: flex;
    flex-wrap: nowrap; /* Na desktopie wymusza 1 linię i skalowanie */
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 5rem;
    opacity: 0.7;
}

.logo-strip img {
    flex: 1 1 0; /* Pozwala logotypom proporcjonalnie się kurczyć */
    min-width: 0;
    max-width: 140px;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-strip img:hover {
    filter: grayscale(0%) brightness(100%);
}

@media (max-width: 767px) {
    .logo-strip {
        flex-wrap: wrap; /* Na mobile pozwala na przełamanie do mniejszej liczby linii */
        gap: 1.5rem;
    }
    .logo-strip img {
        flex: 0 1 calc(33% - 1.5rem); /* Układa po ok. 3 loga w linii, tworząc 2 rzędy */
        max-width: 100px;
        max-height: 35px;
    }
}

/* Footer */
footer {
    background: var(--bg-accent);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent-primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--accent-secondary); }

/* --- Media Queries (Tablet & Desktop) --- */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
    
    .grid { grid-template-columns: repeat(2, 1fr); }
    
    .pipeline-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        align-items: center;
    }
    .pipeline-step {
        width: 100%;
        border-radius: 0;
        border: none;
        border-left: 2px solid var(--accent-secondary);
        height: auto;
        padding: 2rem 1rem;
    }
    .pipeline-step:first-child { border-left: none; }
    
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .poc-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
