:root {
    --bg: #FAF9F6;
    --surface: #F2F0EB;
    --text: #111111;
    --text-muted: #555555;
    --border: #DCDAD4;
    --border-strong: #111111;
    --accent: #1A3A2A;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --container-max: 1180px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.border-top {
    border-top: 1px solid var(--border);
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mono-val {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
}

.muted {
    color: var(--text-muted);
}

/* HEADER & NAWIGACJA */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(250, 249, 246, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.nav-list a:hover {
    color: var(--text);
}

.nav-list .nav-cta {
    color: var(--text);
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
}

.nav-list .nav-cta:hover {
    background-color: var(--text);
    color: var(--bg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
}

.menu-bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--text);
    transition: transform 0.2s ease;
}

/* HERO */
.hero {
    padding: 96px 0 88px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.mono-divider {
    color: var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.025em;
    max-width: 920px;
    margin-bottom: 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: end;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
}

.btn-primary:hover {
    background-color: #2b2b2b;
}

.btn-outline {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    background-color: var(--surface);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.875rem;
}

/* SEKCJE OGÓLNE */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 56px;
}

.section-index {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.section-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.015em;
}

/* 01. OBSZARY (SIATKA 2x2) */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.capability-item {
    padding: 40px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.capability-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.capability-item p {
    color: var(--text-muted);
    font-size: 0.96875rem;
    line-height: 1.65;
}

/* 02. PRODUKTY / REALIZACJE */
.ventures-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.venture-card {
    display: grid;
    grid-template-columns: 240px 1fr 220px;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.venture-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.venture-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-live::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent);
}

.venture-content h3 {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.venture-content p {
    color: var(--text-muted);
    max-width: 640px;
}

.venture-link {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.arrow-link {
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    transition: opacity 0.15s ease;
}

.arrow-link:hover {
    opacity: 0.65;
}

/* 03. DANE REJESTROWE */
.corporate-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
}

.corporate-intro p {
    color: var(--text-muted);
    font-size: 0.96875rem;
    margin-bottom: 24px;
}

.copy-feedback {
    display: block;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    min-height: 1.2em;
}

.registry-table {
    border-top: 1px solid var(--border);
}

.registry-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.registry-row dt {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.registry-row dd {
    font-size: 0.96875rem;
    font-weight: 500;
}

/* STOPKA */
.site-footer {
    padding: 64px 0 40px;
    background-color: var(--surface);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 64px;
}

.footer-mail {
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    margin: 12px 0 20px;
    letter-spacing: -0.015em;
}

.footer-address {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================
   RESPONSYWNOŚĆ (TABLETY I TELEFONY)
   ========================================== */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .venture-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 32px 0;
    }

    .venture-link {
        justify-content: flex-start;
        padding-top: 8px;
    }

    .corporate-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .nav-list a {
        font-size: 1.0625rem;
        display: block;
        width: 100%;
    }

    .nav-list .nav-cta {
        display: inline-block;
        width: auto;
        margin-top: 4px;
    }

    .hero {
        padding: 56px 0 56px;
    }

    .hero-title {
        margin-bottom: 32px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .capability-item {
        padding: 28px 20px;
    }

    .registry-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 0;
    }

    .footer-grid {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}