/* ZMIENNE CSS (Design Tokens) - Jasny, medyczny motyw */
:root {
    --bg-color: #f8f9fc; /* Jasne tło, podobne do lewego paska w apce */
    --surface-color: #ffffff; /* Czysta biel dla głównych kontenerów (jak wykresy) */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --primary-color: #2563eb; /* Niebieski przycisk (Apply Gate itp.) */
    --primary-hover: #1d4ed8;
    --accent-dark: #0f172a; /* Ciemny przycisk "All Files Processed" */
    
    --border-color: #e2e8f0; /* Precyzyjne, techniczne linie */
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* LAYOUT & KONTENERY */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5vw;
}

/* KOMPONENTY: KARTY (Laboratoryjna czystość) */
.glass {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Bardziej ostre rogi, jak w apce */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05); /* Bardzo subtelny cień */
}

/* KOMPONENTY: PRZYCISKI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px; /* Minimalizm */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-dark); /* Nawiązanie do "All Files Processed" */
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: #334155;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color); /* Niebieski obrys jak "Apply Gate" */
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.05);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

/* Niebieski główny przycisk na startowej sekcji */
.hero-actions .btn-primary {
    background-color: var(--primary-color);
}
.hero-actions .btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Pasek Nawigacyjny */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.ring {
    width: 32px;
    height: 32px;
}

.ring circle {
    stroke-linecap: round;
    stroke-dasharray: 14 10;
    transform-origin: 50px 50px;
    animation: flow-spin 15s linear infinite;
}

@keyframes flow-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.text {
    font-weight: 800;
    letter-spacing: -0.2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

/* Sekcja HERO - Linear Aesthetic Redesign */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 56px;
    background-color: #fcfcfc;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Siatka Inżynieryjna w Tle (Graph Paper) */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

@media (min-width: 992px) {
    .hero-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.hero-content-left {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Status Badge */
.hero-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.text-highlight {
    color: var(--text-primary);
    box-shadow: inset 0 -14px 0 rgba(37, 99, 235, 0.15); /* precyzyjne odcięcie */
    padding: 0 2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 90%;
    margin-bottom: 24px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
}

.btn-technical {
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.icon-arrow {
    transition: transform 0.2s ease;
}

.btn-technical:hover .icon-arrow {
    transform: translateX(4px);
}

/* ================================================= */
/*    SEKCJA PRODUKTU - SHOWCASE (CytoPeak Only)     */
/* ================================================= */
.products {
    padding: 72px 0;
    background: #ffffff;
}

.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Górny rząd: Opis + Screenshot */
.showcase-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
}

@media (min-width: 1200px) {
    .showcase-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .showcase-desc { 
        flex: 0 0 32%;
        padding-right: 48px;
        padding-top: 16px;
    }
    
    .showcase-content { 
        flex: 1 1 68%;
        display: flex;
        flex-direction: column;
    }
}

.detail-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 0;
}

/* === SUROWY TECHNICAL PANE (LINEAR STYLE) === */
.technical-pane {
    position: relative;
    width: 100%;
    max-width: 950px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px; 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Techniczny minimalistyczny Header */
.pane-header {
    background: #fafafa;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.pane-title {
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.5px;
}

/* Zawartość ekranu (obraz/widok) */
.pane-body {
    position: relative;
    width: 100%;
    background: #ffffff;
    padding: 24px;
    overflow: hidden; 
}

.app-screenshot {
    width: 100%;
    max-width: 820px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transform: scale(1); 
    border-radius: 4px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease-out;
}

.technical-pane:hover .app-screenshot {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* BADGES STANDARDOWE (STATUSY) */
.badge-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}

.badge-status.live {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.badge-status.soon {
    background: rgba(0, 0, 0, 0.04);
    color: #475569;
}

/* === WEWNĘTRZNA BAZA WIEDZY APLIKACJI (SPEC CARDS) === */
.app-specific-features {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.spec-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.05);
    border-color: rgba(37, 99, 235, 0.4);
}

.spec-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.spec-icon svg {
    width: 100%; height: 100%;
    stroke-width: 1.5px;
}

.spec-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.spec-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* --- BENTO GRID (SEKCJA FUNKCJI) --- */
.bento-section {
    padding: 72px 0;
    background: var(--bg-color);
}

.bento-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.bento-header .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0;
}

.bento-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

.bento-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 4px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.05);
}

/* Pierwsza karta na pełną szerokość */
@media (min-width: 900px) {
    .bento-card.card-large {
        grid-column: span 2;
    }
}

.bento-icon {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.bento-icon svg {
    width: 100%; height: 100%;
    stroke-width: 1.5px;
}

.bento-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.card-large h3 {
    font-size: 1.5rem;
}

.bento-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
}

.card-large p {
    font-size: 1rem;
    line-height: 1.7;
}

/* SEKCJA CTA */
.cta-section {
    padding: 56px 0;
}

.cta-box {
    text-align: center;
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: var(--surface-color);
}

.cta-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
}

/* STOPKA */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: var(--surface-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-links a:not(.btn) {
        font-size: 0.9rem;
    }
    .nav-links {
        gap: 12px;
    }
    
    /* Global Mobile Typography Reduction */
    p { font-size: 0.95rem !important; }
    .hero-subtitle { font-size: 1.05rem !important; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.5rem); }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.25rem !important; }
    .bento-card p, .spec-card p { font-size: 0.85rem; }
    .showcase-card-body p { font-size: 0.8rem; }
    .cta-box p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 2vw;
    }
    .logo {
        gap: 0;
        margin-right: auto;
    }
    .logo .text {
        display: none;
    }
    .ring {
        width: 20px;
        height: 20px;
    }
    .nav-links a:not(.btn) {
        font-size: 0.75rem;
    }
    .btn {
        padding: 5px 8px !important;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    .nav-links {
        gap: 6px;
    }
}

/* Simple Grid Layout for Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.showcase-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.showcase-card img {
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.showcase-card-body {
    padding: 16px 20px;
    text-align: left;
}

.showcase-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.showcase-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}
