/* ==========================================================================
   SPATIAL LOGIC — OPERATIONAL GOVERNANCE PREMPTIVE STYLE STACK (2026)
   Premium Monochrome Swiss/Brutalist Responsive Framework
   ========================================================================== */

:root {
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-muted: #666666;
    --border-color: #000000;
    --border-soft: #e5e5e5;
    --accent-bg: #fafafa;
    --card-bg: #ffffff;
    --mono-code: 'JetBrains Mono', 'Roboto Mono', Menlo, monospace;
    
    /* Spatial Logic Signature Multi-layered Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 8px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.06), 0 2px 20px rgba(0, 0, 0, 0.02);
}

/* Base Reset & Typography Setup */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.75;
    letter-spacing: -0.015em;
    word-wrap: break-word;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.logo { 
    font-weight: 700; 
    font-size: 0.85rem; 
    letter-spacing: 0.15em; 
    text-transform: uppercase; 
}

.logo a { 
    color: var(--text-main); 
    text-decoration: none; 
}

.platform-link { 
    color: var(--text-main); 
    text-decoration: none; 
    font-size: 0.75rem; 
    font-weight: 700; 
    letter-spacing: 0.08em; 
    text-transform: uppercase; 
    border: 1px solid var(--border-color); 
    padding: 0.5rem 1.2rem; 
    border-radius: 4px; 
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); 
}

.platform-link:hover { 
    background: var(--text-main); 
    color: #fff; 
}

/* Master Layout Grid (Asztali nézet) */
.section-block {
    display: grid;
    grid-template-columns: 160px 1fr 320px;
    gap: 60px;
    padding: 8rem 4rem;
    border-bottom: 1px solid var(--border-soft);
    max-width: 1440px;
    margin: 0 auto;
}

.col-meta { 
    font-size: 0.7rem; 
    font-weight: 700; 
    color: var(--text-muted); 
    letter-spacing: 0.15em; 
    text-transform: uppercase; 
    position: sticky; 
    top: 120px; 
    height: max-content; 
}

.col-meta .num { 
    color: var(--text-main); 
    display: block; 
    margin-bottom: 10px; 
    font-size: 0.9rem; 
    font-family: var(--mono-code); 
    font-weight: 500; 
}

.col-main { 
    max-width: 740px; 
    width: 100%;
}

.col-side { 
    position: sticky; 
    top: 120px; 
    height: max-content; 
    width: 100%;
}

/* Typography Hierarchy */
h1 { 
    font-size: 3.8rem; 
    font-weight: 700; 
    line-height: 1.05; 
    margin-bottom: 1.5rem; 
    letter-spacing: -0.045em; 
    color: #000000; 
}

h2 { 
    font-size: 2.2rem; 
    font-weight: 700; 
    line-height: 1.25; 
    margin-bottom: 2rem; 
    letter-spacing: -0.03em; 
    color: #000000; 
}

h3 { 
    font-size: 1.35rem; 
    font-weight: 700; 
    margin-bottom: 1.2rem; 
    letter-spacing: -0.02em; 
    color: #000000; 
    margin-top: 3.5rem; 
}

p { 
    margin-bottom: 1.6rem; 
    font-size: 1.05rem; 
    color: #111111; 
    text-align: left; 
}

p em { 
    font-style: italic; 
    color: #000000; 
}

/* Blockquotes & Text Highlights */
blockquote {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 3.5rem 0;
    padding-left: 1.8rem;
    border-left: 2px solid var(--border-color);
    line-height: 1.5;
}

.highlight-box { 
    padding: 2.2rem; 
    background: var(--accent-bg); 
    border: 1px solid var(--border-soft);
    border-left: 2px solid var(--border-color); 
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    line-height: 1.65;
    color: #222222;
}

.highlight-box strong { 
    color: #000000; 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 0.05em; 
}

/* Technical Document Lists */
ul.clean-list { 
    list-style: none; 
    margin: 2.5rem 0; 
}

ul.clean-list li { 
    margin-bottom: 1.6rem; 
    padding-left: 1.8rem; 
    position: relative; 
    border-left: 1px solid var(--border-soft);
    font-size: 1.05rem;
    color: #111111;
    transition: border-color 0.2s ease;
}

ul.clean-list li:hover { 
    border-left-color: var(--border-color); 
}

ul.clean-list li strong { 
    color: #000000; 
    font-weight: 700; 
    display: block; 
    margin-bottom: 4px; 
    letter-spacing: -0.010em; 
}

/* Technical Architecture Diagrams & Flowcharts */
.diagram-box {
    background: var(--accent-bg);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    font-family: var(--mono-code);
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    white-space: pre-wrap; /* Biztosítja, hogy mobilon ne lógjon ki a szöveges ábra */
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    padding: 1.8rem;
    border-radius: 6px;
    gap: 15px;
    box-shadow: var(--shadow-md);
}

.diagram-node {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.diagram-arrow {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive Matrix Tables Engine */
.table-container { 
    overflow-x: auto; 
    margin: 3rem 0; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    box-shadow: var(--shadow-md);
    -webkit-overflow-scrolling: touch; /* Sima görgetés iOS-en */
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 500px; /* Megakadályozza a táblázat összenyomódását mobilon */
}

.matrix-table th {
    background: #000000;
    color: #ffffff;
    padding: 1.2rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.matrix-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.95rem;
    color: #111111;
    background: #ffffff;
}

.matrix-table tr:last-child td { 
    border-bottom: none; 
}

.matrix-table tr:nth-child(even) td { 
    background: var(--accent-bg); 
}

/* Architectural Component Grid Cards */
.cards-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 24px; 
    margin: 3.5rem 0; 
}

.card { 
    background: var(--card-bg); 
    padding: 2.5rem; 
    border-radius: 6px; 
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover { 
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-icon { 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
    color: #000000; 
    font-family: var(--mono-code); 
    font-weight: 500; 
}

.card h4 { 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin-bottom: 0.8rem; 
    color: #000000; 
    letter-spacing: -0.02em; 
}

.card p { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    margin-bottom: 0; 
    text-align: left; 
    line-height: 1.65; 
}

/* Call to Action Elements */
.contact-cta { 
    color: #ffffff;
    background: #000000;
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 1.2rem 2.2rem;
    border-radius: 4px;
    transition: opacity 0.2s ease;
    display: inline-block;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}

.contact-cta:hover { 
    opacity: 0.85; 
}

.tag-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: 1.5rem; 
}

.tag { 
    background: #ffffff; 
    border: 1px solid var(--border-soft); 
    padding: 5px 12px; 
    border-radius: 4px; 
    font-size: 0.7rem; 
    color: var(--text-muted); 
    font-family: var(--mono-code); 
    font-weight: 500; 
}

/* Institutional Footer */
footer {
    padding: 6rem 4rem;
    text-align: center;
    border-top: 1px solid var(--border-soft);
    background: #ffffff;
}

footer p { 
    text-align: center; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    font-family: var(--mono-code); 
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE ENGINE (BREAKPOINTS FOR SMARTPHONES & TABLETS)
   ========================================================================== */

@media (max-width: 1200px) {
    header { 
        padding: 1.5rem 2rem; 
    }
    .section-block { 
        grid-template-columns: 1fr 280px; 
        gap: 40px;
        padding: 6rem 2rem;
    }
    .col-meta { 
        position: static; 
        margin-bottom: 1.5rem; 
    }
    h1 { 
        font-size: 3.2rem; 
    }
}

@media (max-width: 990px) {
    .section-block { 
        grid-template-columns: 1fr; 
        gap: 35px; 
        padding: 5rem 1.5rem; 
    }
    h1 { 
        font-size: 2.6rem; 
        letter-spacing: -0.035em;
    }
    h2 { 
        font-size: 1.85rem; 
        margin-bottom: 1.5rem;
    }
    h3 { 
        font-size: 1.25rem; 
        margin-top: 2.5rem; 
    }
    .col-meta, .col-side { 
        position: static; 
        height: auto; 
        width: 100%; 
    }
    .col-side { 
        margin-top: 2rem; 
    }
    .cards-container { 
        grid-template-columns: 1fr; 
        gap: 16px; 
    }
    .diagram-flow {
        flex-direction: column;
        gap: 10px;
    }
    .diagram-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    blockquote { 
        font-size: 1.2rem; 
        margin: 2.5rem 0; 
        padding-left: 1.2rem;
    }
    footer { 
        padding: 4rem 1.5rem; 
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.2rem 1rem;
    }
    .platform-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    h1 {
        font-size: 2.1rem;
    }
    p {
        font-size: 1rem;
    }
    .highlight-box, .card {
        padding: 1.5rem;
    }
}
