/* RESET I ZASADY BAZOWE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    /* Kolory z konfiguracji Tailwind */
    --surface-container-low: #f3f3f4;
    --secondary-fixed: #dce2f7;
    --on-secondary-container: #5c6274;
    --error: #ba1a1a;
    --inverse-primary: #95d948;
    --surface-container-high: #e8e8e8;
    --error-container: #ffdad6;
    --on-tertiary-fixed-variant: #454748;
    --surface-container-lowest: #ffffff;
    --on-secondary-fixed-variant: #404758;
    --outline-variant: #c1cab3;
    --secondary: #575e70;
    --surface-container-highest: #e2e2e2;
    --on-primary-fixed: #0f2000;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --on-primary-container: #1a3200;
    --on-primary: #ffffff;
    --on-background: #1a1c1c;
    --inverse-surface: #2f3131;
    --border-subtle: #e8e8e8;
    --on-surface-variant: #424938;
    --on-surface: #1a1c1c;
    --secondary-container: #d9dff5;
    --secondary-fixed-dim: #c0c6db;
    --on-tertiary: #ffffff;
    --primary-fixed: #b0f761;
    --on-tertiary-fixed: #191c1d;
    --tertiary-fixed-dim: #c5c7c8;
    --surface-dim: #dadada;
    --inverse-on-surface: #f0f1f1;
    --surface-tint: #3d6a00;
    --on-secondary: #ffffff;
    --on-primary-fixed-variant: #2d5000;
    --on-secondary-fixed: #141b2b;
    --tertiary-container: #929495;
    --primary: #64a40f;
    --outline: #727a66;
    --on-error: #ffffff;
    --text-muted: #4b5563;
    --surface: #f9f9f9;
    --background: #f9f9f9;
    --surface-bright: #f9f9f9;
    --tertiary-fixed: #e1e3e4;
    --surface-container: #eeeeee;
    --primary-fixed-dim: #95d948;
    --surface-variant: #e2e2e2;
    --brand-gradient: linear-gradient(135deg, #73be0f 0%, #64a40f 100%);
    --on-tertiary-container: #2a2d2e;
    --on-error-container: #93000a;
    --tertiary: #5c5f60;
    --primary-container: #64a40f;

    /* Spacing & Layout */
    --container-max: 1280px;
    --margin-mobile: 20px;
    --gutter: 24px;
    --section-padding-md: 80px;
    --section-padding-lg: 120px;

    /* Border Radius */
    --radius-default: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
}

/* ==========================================================================
   1. UNIWERSALNA STRUKTURA SEKCJI (Do użycia w wielu miejscach)
   ========================================================================== */
.site-section {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* Warianty tła dla sekcji */
.bg-surface-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-low { background-color: var(--surface-container-low); }

.site-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--margin-mobile);
}

/* 2. UNIWERSALNY NAGŁÓWEK SEKCJI */
.section-header {
    max-width: 700px;
    margin-bottom: 48px;
}
.section-header.text-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.text-left { margin-left: 0; text-align: left; }

.section-subtitle {
    color: var(--surface-tint);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    color: var(--on-surface);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.text-accent {
    color: var(--primary);
}

@media (min-width: 768px) {
    .section-title { font-size: 48px; line-height: 1.2; }
}

/* Klasy narzędziowe użyte w oryginalnym kodzie */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.btn-lift {
    transition: transform 0.2s ease;
}
.btn-lift:hover {
    transform: translateY(-2px);
}


/* ==========================================================================
   HERO HERO-BLOCK
   ========================================================================== */
/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--surface-container-lowest);
    padding-top: 80px; /* offset na stały header */
    padding-bottom: 100px;
}

/* Tło i nakładki gradientowe */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    object-position: right center;
}

@media (max-width: 1000px) {
    .hero-bg img {
        transform: translateX(70px) scale(1.15);
    }
}

@media (max-width: 700px) {
    .hero-bg img {
        transform: translateX(160px) scale(1.75); 
    }
}

@media (max-width: 400px) {
    .hero-title {
      font-size: 36px !important;
    }
    
    .hero-desc {
      font-size: 16px !important;
    }
    
    .btn-primary-hero {
      padding: 10px 40px !important;
    }
}

.hero-gradient-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--surface-container-lowest), rgba(255, 255, 255, 0.9) 60%, transparent 100%);
}

.hero-gradient-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface-container-lowest), transparent 50%);
}

/* Układ siatki Hero */
.hero-grid {
    display: grid;
    margin: -116px 0px 0px 0px;
    grid-template-cols: 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .hero-content-col {
        grid-column: span 7;
    }
    .hero-stats-col {
        grid-column: span 5;
    }
}

/* Kolumna tekstowa */
.hero-content-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-title {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--on-surface);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 64px;
    }
}

.hero-title-accent {
    position: relative;
    display: inline-block;
    color: var(--primary);
}

.hero-title-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(61, 106, 0, 0.2);
    border-radius: var(--radius-full);
}

.hero-desc {
    font-size: 18px;
    color: var(--on-surface-variant);
    max-w: 640px;
    line-height: 1.6;
    margin-top: 24px;
}

/* Przyciski Akcji */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.btn-primary-hero {
    background: var(--brand-gradient);
    color: var(--on-primary);
    padding: 20px 40px;
    border: none;
    border-radius: var(--radius-3xl);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px -5px rgba(61, 106, 0, 0.2);
    text-decoration: none;
}

.btn-primary-hero:hover {
    color: #ffffff !important;
}

.play-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(61, 106, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Element Dekoracyjny (Rozmyta plama) */
.hero-deco-blur {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 256px;
    height: 256px;
    background-color: rgba(61, 106, 0, 0.05);
    border-radius: var(--radius-full);
    filter: blur(64px);
    z-index: -10;
}

/* ==========================================================================
   WHY SECTION
   ========================================================================== */

.brand-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.btn-lift {
    transition: transform 0.2s ease;
}
.btn-lift:hover {
    transform: translateY(-2px);
}

.why-and-terminal-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--surface-container-lowest);
    position: relative;
    overflow: hidden;
}

/* Subtelny gradient w tle oparty o token primary */
.why-section-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(61, 106, 0, 0.03), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Nagłówek Sekcji */
.why-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
    position: relative;
    z-index: 10;
}

.why-section-subtitle {
    color: #3d6a00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
}

.why-section-title {
    color: var(--on-surface);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .why-section-title {
        font-size: 48px;
        line-height: 1.2;
    }
}

.why-title-accent {
    color: var(--primary);
}

/* Układ Siatki Dynamicznej (Terminal + Tekst korzyści) */
.dynamic-hybrid-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .dynamic-hybrid-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* --- WIZUALIZACJA: CIEMNY TERMINAL DEWELOPERSKI --- */
.terminal-window {
    background-color: #1e1e1e; /* Ciemne tło dla kontrastu komend */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.terminal-header-bar {
    background-color: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.dot-red { background-color: var(--error); }
.dot-yellow { background-color: #eab308; }
.dot-green { background-color: var(--primary); }

.terminal-filename {
    margin-left: 16px;
    font-family: monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.terminal-body {
    padding: 32px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 550px) {
    .terminal-body {
      font-size: 10px !important;
    }
}

.terminal-comment {
    color: var(--primary-fixed-dim);
    text-shadow: 0 0 8px rgba(149, 217, 72, 0.2);
    margin-bottom: 8px;
}

.terminal-meta {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 24px;
}

.terminal-command {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.terminal-prompt {
    color: var(--primary-fixed-dim);
}

.terminal-logs {
    margin-top: 16px;
    margin-bottom: 16px;
}

.log-line {
    color: #ffffff;
    margin-bottom: 6px;
}

.status-badge {
    color: var(--primary-fixed-dim);
    font-weight: bold;
}

.status-ok {
    color: var(--primary-fixed-dim);
    font-weight: bold;
}

/* Pasek postępu z Twoim gradientem marki */
.terminal-progress-container {
    height: 6px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    margin-top: 16px;
    overflow: hidden;
}

.terminal-progress-bar {
    height: 100%;
    width: 85%;
    background: var(--brand-gradient);
}

.terminal-footer-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    margin-top: 16px;
    letter-spacing: 0.05em;
}

/* --- TREŚĆ: KORZYŚCI BIZNESOWE --- */
.terminal-hybrid-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--on-surface);
}

@media (min-width: 768px) {
    .terminal-hybrid-title {
        font-size: 32px;
    }
}

.terminal-title-accent {
    color: var(--primary);
}

.terminal-description {
    color: var(--on-surface-variant);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Lista punktowana */
.why-bullet-list {
    list-style: none;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.bullet-custom-icon {
    background-color: rgba(61, 106, 0, 0.08);
    color: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bullet-text {
    color: var(--on-surface-variant);
    line-height: 1.6;
    font-size: 16px;
}

.bullet-text strong {
    color: var(--on-surface);
    font-weight: 700;
}

/* --- DOLNY UKŁAD: KARTY BENTO TYPU SURFACE --- */
.why-bento-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .why-bento-cards-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.why-bento-card {
    background-color: var(--surface-container-low);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease-in-out, transform 0.2s ease;
}

.why-bento-card:hover {
    border-color: var(--primary);
}

/* Akcent dla pierwszej karty bazujący na Twoim stylu glass/light */
.bento-accent-style {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
}

.bento-card-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--on-surface);
}

.bento-card-paragraph {
    color: var(--on-surface-variant);
    font-size: 16px;
    line-height: 1.6;
}

.bento-card-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}  

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

/* GŁÓWNA SEKCJA I KONTENER */
.services-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.services-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* NAGŁÓWEK SEKCJI */
.services-header {
    text-align: center;
    margin-bottom: 64px;
}

.services-subtitle {
    color: #3d6a00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
}

.services-title {
    color: #1a1c1c;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .services-title {
        font-size: 48px;
        line-height: 1.2;
    }
}

.services-title-accent {
    color: #64a40f;
}

/* SIATKA (GRID) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* Definiujemy automatyczne wiersze, na które rozciągną się karty */
        grid-template-rows: auto;
    }
}

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

/* KARTA USŁUGI (SERVICE CARD) */
.service-card {
    background-color: #f3f3f4;
    border: 1px solid #e8e8e8;
    border-radius: 24px;
    padding: 32px;
    text-decoration: none; /* Zapobiega podkreślaniu linku */
    transition: all 0.3s ease-in-out;
    
    /* ZMIANA: Przełączamy z Flexbox na Grid o 4 wierszach (ikona, tytuł, opis, stopka) */
    display: grid;
    grid-template-rows: auto auto auto auto;
    row-gap: 0; 
}

@media (min-width: 768px) {
    .service-card {
        /* Karta rozciąga się na 4 poziomy głównej siatki */
        grid-row: span 4;
        /* Włączamy subgrid, łącząc wysokości elementów między kartami */
        grid-template-rows: subgrid;
    }
}

.service-card:hover {
    border-color: #3d6a00;
}

/* IKONY WEWNĄTRZ KARTY */
.service-icon-box {
    margin-bottom: 24px;
    transition: all 0.5s ease-in-out;
    align-self: center; /* Wyrównanie ikony do środka w pionie */
}

.fallback-icon {
    font-size: 48px;
    display: inline-block;
    color: #64a40f;
}

/* ELEMENTY TEKSTOWE KARTY */
.service-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    color: #1a1c1c;
    
    /* NOWOŚĆ: Automatyczne środkowanie tytułu w pionie w swojej strefie */
    align-self: center; 
}

.service-card-desc {
    color: #424938;
    line-height: 1.6;
    margin: 0;
    
    /* NOWOŚĆ: Środkowanie opisu w pionie dla idealnego balansu */
    align-self: center; 
}

/* STOPKA KARTY (LINK / PRZEJŚCIE) */
.service-card-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(232, 232, 232, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3d6a00;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    /* Dociągnięcie stopki do samego dołu strefy */
    align-self: end; 
}

.service-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Subtelny ruch strzałki w prawo podczas najechania na kartę */
.service-card:hover .service-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   FILOZOFIA SECTION
   ========================================================================== */

/* FILOZOFIA / JAKOŚĆ - BENTO SYSTEM */
.philosophy-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--background);
}

.philosophy-container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Główny kontener Bento */
.philosophy-bento-box {
    background-color: var(--surface-container-lowest);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--border-subtle);
}

@media (min-width: 1024px) {
    .philosophy-bento-box {
        grid-template-columns: 1.1fr 0.9fr; /* Delikatna asymetria bento */
    }
}

/* Lewy Panel - Jasny, merytoryczny */
.philosophy-content-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--surface-container-low);
}

@media (min-width: 1024px) {
    .philosophy-content-panel {
        padding: 64px;
    }
}

.philosophy-tagline {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

.philosophy-main-title {
    color: var(--on-surface);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .philosophy-main-title {
        font-size: 40px;
    }
}

/* Lista cech wewnątrz panelu */
.philosophy-features-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.philosophy-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-svg {
    width: 22px;
    height: 22px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 6px;
}

.feature-description {
    color: var(--on-surface-variant);
    font-size: 16px;
    line-height: 1.6;
}

/* Prawy Panel - Zrównoważony akcent kolorystyczny marki */
.philosophy-quote-panel {
    background: var(--brand-gradient);
    color: var(--on-primary);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

@media (min-width: 1024px) {
    .philosophy-quote-panel {
        padding: 64px;
    }
}

.philosophy-blockquote {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    font-style: italic;
    position: relative;
}

@media (min-width: 768px) {
    .philosophy-blockquote {
        font-size: 22px;
    }
}

/* Autor cytatu */
.quote-author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
}

.author-avatar-fallback {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--on-primary);
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--on-primary);
    margin: 0px !important;
}

.author-title {
    font-size: 13px;
    color: var(--secondary-fixed);
    margin: 0px !important;
}

@media (max-width: 500px) {
    .philosophy-content-panel {
      padding: 30px 10px !important;
    }
    
    .philosophy-feature-item {
      gap: 10px !important;
    }
    
    .feature-icon-wrapper {
      width: 36px !important;
      height: 36px !important;
    }
    
    .philosophy-quote-panel {
      padding: 30px 10px !important;
    }
}

/* ==========================================================================
   BLUEPRINT SECTION
   ========================================================================== */

/* GŁÓWNA SEKCJA I KONTENER */
.blueprint-section {
    padding-top: 100px;       /* Zastępuje var(--section-padding-lg) */
    padding-bottom: 120px;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
}

.blueprint-container {
    width: 100%;
    max-width: 1200px;        /* Zastępuje var(--container-max) */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;       /* Zastępuje var(--margin-mobile) */
    padding-right: 20px;
}

/* UKŁAD SIATKI (GRID) */
.blueprint-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;                 /* Odpowiednik gap-20 na dużych ekranach */
}

@media (min-width: 1024px) {
    .blueprint-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* LEWA KOLUMNA: TEKSTY I TYTUŁY */
.blueprint-content {
    display: flex;
    flex-direction: column;
}

.blueprint-subtitle {
    color: #3d6a00;           /* Kolor primary */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    display: block;
    margin-bottom: 24px;       /* Odpowiednik mb-6 */
}

.blueprint-main-title {
    color: #1a1c1c;           /* Kolor on-surface */
    font-size: 48px;           /* Nagłówek headline-lg */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 48px;       /* Odpowiednik mb-12 */
}

@media (min-width: 768px) {
    .blueprint-main-title {
        font-size: 64px;       /* Skalowanie na display-lg */
        line-height: 1.1;
    }
}

.blueprint-title-accent {
    color: #64a40f;           /* Kolor primary */
}

/* OŚ CZASU (TIMELINE) */
.blueprint-timeline {
    border-left: 2px solid #e8e8e8; /* Kolor surface-container-high */
    margin-left: 16px;         /* Odpowiednik ml-4 */
    padding-left: 48px;        /* Odpowiednik pl-12 */
    display: flex;
    flex-direction: column;
    gap: 34px;                 /* Odpowiednik space-y-16 */
}

.timeline-item {
    position: relative;
}

/* Kropka na osi czasu */
.timeline-badge {
    position: absolute;
    left: -61px;               /* Precyzyjne wyrównanie do linii (-48px paddingu - 12px połowy kropki - 1px) */
    top: 4px;
    width: 24px;               /* Odpowiednik w-6 h-6 */
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 4px solid #64a40f; /* Kolor primary */
    box-sizing: border-box;
}

.timeline-title {
    font-size: 24px;           /* Odpowiednik text-2xl */
    font-weight: 700;
    color: #1a1c1c;            /* Kolor on-surface */
    margin-bottom: 16px;       /* Odpowiednik mb-4 */
    margin-top: 0;
}

.timeline-desc {
    color: #424938;            /* Kolor on-surface-variant */
    font-size: 18px;           /* Odpowiednik text-lg */
    line-height: 1.6;
    margin: 0;
}

/* PRAWA KOLUMNA: WIZUALIZACJA TECHNICZNA */
.blueprint-visual-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efekt Blueprint w tle (siatka z kropek) */
.blueprint-tech-bg {
    position: absolute;
    inset: 0;
    z-index: -10;
    transform: rotate(12deg) scale(1.5);
    background-image: radial-gradient(circle at 2px 2px, rgba(100, 164, 15, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Główny boks zewnętrzny */
.blueprint-central-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(61, 106, 0, 0.2); /* primary/20 */
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 48px;             /* Odpowiednik p-12 */
    box-sizing: border-box;
}

@media (max-width: 500px) {
    .blueprint-central-box {
        padding: 20px;
    }
}

.blueprint-inner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(61, 106, 0, 0.05); /* primary/5 */
    border-radius: 40px;
    z-index: -1;
}

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

.blueprint-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}


/* ==========================================================================
   SECURITY SECTION
   ========================================================================== */

/* GŁÓWNA SEKCJA I KONTENER */
.security-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #ffffff;
}

.security-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* NAGŁÓWEK SEKCJI */
.security-header {
    text-align: center;
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 64px;
}

.security-main-title {
    font-size: 36px;
    font-weight: 600;
    color: #1a1c1c;
    line-height: 1.2;
    margin-bottom: 24px;
}

.security-subtitle {
    color: #424938;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* SIATKA KART (3 KOLUMNY) */
.security-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .security-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        /* Definiujemy automatyczne wiersze siatki, z których skorzystają karty */
        grid-template-rows: auto;
    }
}

/* KARTA BEZPIECZEŃSTWA (CARD) */
.security-card {
    padding: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 24px;
    text-align: center;
    background-color: #ffffff;
    transition: border-color 0.2s ease-in-out;
    
    /* Każda karta sama w sobie staje się siatką trójwierszową (ikona, tytuł, opis) */
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: 0; /* Marginesy wewnętrzne załatwiają odstępy */
}

@media (min-width: 768px) {
    .security-card {
        /* KLUCZ DO AUTOMATYZACJI: Karta rozciąga się na 3 rzędy głównej siatki... */
        grid-row: span 3;
        /* ...i zmusza swoje dzieci do dzielenia wspólnej wysokości z sąsiednimi kartami */
        grid-template-rows: subgrid;
    }
}

.security-card:hover {
    border-color: #3d6a00;
}

/* OPAKOWANIE IKONY */
.security-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: #f3f3f4;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    color: #3d6a00;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.security-svg-icon {
    width: 32px;
    height: 32px;
}

.security-card:hover .security-icon-wrapper {
    background-color: #64a40f;
    color: #1a3200;
}

/* ELEMENTY TEKSTOWE KARTY */
.security-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1c1c;
    margin-top: 0;
    margin-bottom: 12px;
    /* Resetujemy domyślne wyrównanie, by subgrid idealnie liczył wysokość */
    align-self: center; 
}

.security-card-desc {
    color: #424938;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    align-self: start;
}

/* ==========================================================================
   GLOBAL SECTION
   ========================================================================== */

/* GŁÓWNA SEKCJA I KONTENER */
.global-section {
    background-color: #f9f9f9;     /* Dopasowanie do ciemnego motywu infrastruktury */
    padding-top: 100px;            /* Zastępuje var(--section-padding-lg) */
    padding-bottom: 300px;
    position: relative;
    overflow: hidden;
    margin-bottom: -300px;
}

.global-container {
    width: 100%;
    max-width: 1200px;             /* Zastępuje var(--container-max) */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;            /* Zastępuje var(--margin-mobile) */
    padding-right: 20px;
    box-sizing: border-box;
}

/* UKŁAD SIATKI (GRID) */
.global-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;                     /* Odpowiednik gap-16 */
    align-items: center;
}

@media (min-width: 1024px) {
    .global-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ODWRÓCENIE KOLEJNOŚCI DLA MOBILES (Wizualizacja pod tekstem) */
.global-visual-col {
    order: 2;
}

.global-content-col {
    order: 1;
}

@media (min-width: 1024px) {
    .global-visual-col {
        order: 1;
    }
    .global-content-col {
        order: 2;
    }
}

/* WIZUALIZACJA: KARTA INFRASTRUKTURY SIECIOWEJ */
.global-network-card {
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;           /* Zaokrąglone bento-style */
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Nagłówek karty statusu */
.network-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.network-status-light {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #95d948;    /* Aktywny zielony */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px #73be0f;
    animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-pulse-label {
    font-family: monospace;
    font-size: 12px;
    color: #95d948;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.network-architecture-type {
    font-family: monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Obszar Węzłów (Nodes Map) */
.network-map-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.network-node-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.network-node-box:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Wyróżnienie aktywnego głównego klastra */
.active-node {
    border-color: rgba(149, 217, 72, 0.3);
    background-color: rgba(149, 217, 72, 0.02);
}

.node-indicator {
    display: flex;
    align-items: center;
    position: relative;
}

.node-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
}

.active-node .node-dot {
    background-color: #95d948;
    box-shadow: 0 0 8px #95d948;
}

.node-details {
    display: flex;
    flex-direction: column;
}

.node-region {
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
}

.node-ping {
    font-family: monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.active-node .node-ping {
    color: #95d948;
}

/* Pasek telemetryczny na dole */
.network-telemetry-bar {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 16px 24px;
    border-radius: 12px;
}

.telemetry-item {
    display: flex;
    flex-direction: column;
}

.telemetry-label {
    font-family: monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.telemetry-value {
    font-family: monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    margin-top: 4px;
}

/* PRAWA KOLUMNA: TREŚĆ BIZNESOWA */
.global-tagline {
    color: #3d6a00;                /* Kolor primary marki */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
}

.global-main-title {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 39px;               /* Odpowiednik headline-lg */
    color: #4b5563;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .global-main-title {
        font-size: 50px;           /* Odpowiednik display-lg */
        line-height: 1.1;
    }
}

.global-title-accent {
    color: #64a40f;                /* Kolor primary fixed dim */
}

.global-description {
    font-family: "Inter", sans-serif;
    color: #4b5563;
    font-size: 18px;               /* Odpowiednik text-body-lg */
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 48px;           /* Odpowiednik mb-12 */
}

/* GRUPA PRZYCISKÓW CTA */
.global-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 480px) {
    .global-actions-wrapper {
        flex-direction: row;
    }
}

/* Główny przycisk zielony gradient */
.global-btn-primary {
    background: linear-gradient(135deg, #73be0f 0%, #64a40f 100%); /* brand-gradient */
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 18px 36px;
    border: none;
    border-radius: 16px;           /* Zastępuje rounded-2xl */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(115, 190, 15, 0.2);
}

.global-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(115, 190, 15, 0.4);
    color: #ffffff !important;
}

/* ANIMACJE */
@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

@media (max-width: 400px) {
    /* Główna karta bento */
    .global-network-card {
        border-radius: 24px;
        padding: 16px;
        gap: 20px;
    }

    /* Nagłówek karty do pionu */
    .network-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .network-architecture-type {
        font-size: 11px;
    }

    /* Wiersze z systemami (mniejsze odstępy) */
    .network-map-area {
        gap: 12px;
    }

    .network-node-box {
        gap: 16px;
        padding: 12px 16px;
    }

    .node-dot {
        flex-shrink: 0; /* Blokada przed deformacją kropki */
    }

    .node-region {
        font-size: 13px;
        line-height: 1.3;
    }

    /* Dolna telemetria do pionu */
    .network-telemetry-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    /* Teksty biznesowe (zmniejszenie gigantycznego fontu) */
    .global-tagline {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .global-main-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .global-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    /* Przyciski i CTA */
    .global-actions-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .global-btn-primary {
        padding: 16px 28px;
        text-align: center;
    }
}