/* ============================================================
   Robert Kulig — Landing Page
   ============================================================ */

:root {
    --bg:          #07090f;
    --bg-dark:     #04060b;
    --surface:     #0d1117;
    --surface-2:   #161b24;
    --border:      rgba(255,255,255,0.07);
    --border-med:  rgba(255,255,255,0.12);
    --text:        #e8eaf0;
    --muted:       #7a8499;
    --accent:      #4f83cc;
    --accent-soft: rgba(79,131,204,0.12);
    --accent-glow: rgba(79,131,204,0.25);
    --green:       #22c55e;
    --radius:      10px;
    --radius-lg:   16px;
    --font-mono:   'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border-med);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .15s, background .15s;
    white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.outline { background: transparent; border-color: var(--border-med); color: var(--text); }
.btn.outline:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: .4rem 1rem; font-size: .85rem; }

/* ── NAV ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7,9,15,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    position: relative;
}
.nav-brand {
    font-family: var(--font-mono);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-brand:hover { opacity: .85; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: .875rem;
}
.nav-links-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
}
.nav-links-inner > a,
.nav-links-inner > .btn {
    flex-shrink: 0;
    white-space: nowrap;
}
.nav-links-inner > * + * {
    margin-left: 1.25rem;
}
@supports (gap: 1.25rem) {
    .nav-links-inner > * + * { margin-left: 0; }
}
.nav-links a:not(.btn) {
    color: var(--muted);
    transition: color .15s;
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* Hamburger — desktop hidden */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: .45rem;
    border: 1px solid var(--border-med);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}
.nav.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── LANG SWITCHER ── */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border-med);
    border-radius: 999px;
    overflow: hidden;
}
.lang-switch button {
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    padding: .3rem .55rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.is-active {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Desktop: links in the bar, toggle hidden */
@media (min-width: 1025px) {
    .nav-inner {
        display: flex;
        flex-wrap: nowrap;
    }
    .nav-links {
        order: 2;
        margin-left: auto;
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .nav-links-inner {
        flex-direction: row;
        align-items: center;
        width: auto;
        gap: 1.25rem;
    }
    .nav-links-inner > a,
    .nav-links-inner > .btn {
        display: inline-flex;
        width: auto;
        padding: 0;
        border-bottom: none;
        white-space: nowrap;
    }
    .nav-actions {
        order: 3;
        margin-left: 1rem;
    }
    .nav-toggle { display: none !important; }
}

/* ── HERO — split: copy + live panel ── */
.hero {
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 5vw, 4rem);
    background:
        radial-gradient(ellipse 55% 70% at 0% 20%, rgba(79,131,204,.14) 0%, transparent 55%),
        radial-gradient(ellipse 45% 50% at 100% 10%, rgba(79,131,204,.08) 0%, transparent 50%),
        var(--bg);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(79,131,204,.4) 25%,
        rgba(255,255,255,.14) 50%,
        rgba(79,131,204,.3) 75%,
        transparent 100%
    );
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
}

.hero-copy { min-width: 0; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--muted);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    letter-spacing: .03em;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(2.15rem, 4.8vw, 3.35rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: .7rem;
}

.hero-sub {
    color: var(--muted);
    margin-bottom: .5rem;
    font-family: var(--font-mono);
    font-size: .875rem;
}

.hero-contact {
    font-size: .9rem;
    margin-bottom: 1.2rem;
}
.hero-contact a { color: var(--accent); }
.hero-contact a:hover { text-decoration: underline; }
.sep { color: var(--muted); margin: 0 .4rem; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.2rem;
}

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.stack-badge {
    font-family: var(--font-mono);
    font-size: .72rem;
    padding: .18rem .55rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
}

/* Live / terminal-style panel */
.hero-panel {
    border: 1px solid var(--border-med);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(79,131,204,.1) 0%, transparent 40%),
        var(--surface);
    box-shadow:
        0 0 0 1px rgba(79,131,204,.08),
        0 24px 64px rgba(0, 0, 0, .35);
    overflow: hidden;
    min-width: 0;
}
.hero-panel-chrome {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, .25);
}
.hero-panel-chrome-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-med);
}
.hero-panel-chrome-dot:nth-child(1) { background: #f87171; }
.hero-panel-chrome-dot:nth-child(2) { background: #fbbf24; }
.hero-panel-chrome-dot:nth-child(3) { background: #34d399; }
.hero-panel-chrome-title {
    margin-left: .5rem;
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--muted);
    letter-spacing: .04em;
}
.hero-panel-body {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.hero-panel-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--green);
    width: fit-content;
}
.hero-panel-lead {
    font-size: .9rem;
    color: var(--text);
    line-height: 1.45;
    margin: 0;
}
.hero-panel-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.hero-panel-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .2);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.hero-panel-row:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.hero-panel-row-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    flex-shrink: 0;
}
.hero-panel-row-text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
    flex: 1;
}
.hero-panel-row-title {
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.3;
}
.hero-panel-row-meta {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--muted);
}
.hero-panel-row-go {
    color: var(--accent);
    font-size: .9rem;
    flex-shrink: 0;
}
.hero-panel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    padding-top: .35rem;
    border-top: 1px solid var(--border);
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .35rem 0;
}
.hero-stat-value {
    font-family: var(--font-mono);
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
}
.hero-stat-label {
    font-size: .7rem;
    color: var(--muted);
    line-height: 1.3;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .hero-panel {
        max-width: 28rem;
    }
}

/* ── SECTIONS — wspólny rytm pionowy ──
   A (bg):      offer · demo · why · contact
   B (band):    custom · portfolio · process
*/
.section {
    padding: clamp(4rem, 7vw, 5.5rem) 0;
}
.section-band {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
/* legacy alias */
.section-dark { background: var(--bg-dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-label {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .1em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: .65rem;
}

.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -.02em;
    margin-bottom: .75rem;
    line-height: 1.2;
}

.section-sub {
    color: var(--muted);
    font-size: .95rem;
    max-width: 36rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.65;
}

/* Jedna odległość lead → treść sekcji */
.offer-duo,
.custom-grid,
.demo-list,
.portfolio-layout,
.why-grid,
.process-row,
.contact-grid {
    margin-top: 0;
}

/* ── CARDS / OFFER ── */
.cards-grid { display: grid; gap: 1.25rem; margin-top: 2rem; align-items: stretch; }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }

.offer-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}
.custom-grid {
    /* margin from .section-sub only */
}
.custom-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border-med);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--surface) 0%, rgba(79,131,204,.04) 100%);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}
.custom-col {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
}
.custom-col + .custom-col {
    border-left: 1px solid var(--border);
}
.custom-col h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}
.custom-col .card-price {
    font-size: 1.25rem;
}
.custom-col .card-list {
    flex: 1;
}
.custom-col > .btn {
    margin-top: auto;
    align-self: flex-start;
}

.card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    height: 100%;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
    border-color: var(--border-med);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.card-icon {
    font-size: 1.15rem;
    line-height: 1;
}
.card-tag {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    background: var(--accent-soft);
    border-radius: 4px;
    padding: .15rem .5rem;
    display: inline-block;
    width: fit-content;
}
.card-badge {
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border-radius: 4px;
    padding: .15rem .55rem;
    letter-spacing: .02em;
}
.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}
.card-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.01em;
}
.card-desc {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 52ch;
}
.card-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
    margin-bottom: .25rem;
}
.card-list li {
    font-size: .875rem;
    color: var(--muted);
    padding-left: .9rem;
    position: relative;
}
.card-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: .7rem;
    top: .2rem;
}
.card > .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Featured — WooCommerce (right card in duo) */
.card-featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(79,131,204,.1) 100%);
    box-shadow: 0 0 0 1px rgba(79,131,204,.2), 0 12px 40px rgba(79,131,204,.08);
}
.card-featured:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(79,131,204,.3), 0 16px 48px rgba(79,131,204,.15);
}
.card-duo {
    padding: 1.75rem;
}
.card-duo h3 { font-size: 1.15rem; }
.card-duo .card-price { font-size: 1.3rem; }

/* (custom panel styles above) */

/* ── DEMO — live tiles (4: Woo + Angular + API + Invoice) ── */
.section-demo {
    background:
        radial-gradient(ellipse 70% 50% at 90% 20%, rgba(79,131,204,.06) 0%, transparent 55%),
        var(--bg);
}
.demo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (min-width: 901px) {
    .demo-list {
        grid-template-columns: repeat(4, 1fr);
    }
}
.demo-card {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    min-height: 11rem;
}
.demo-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.demo-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--green);
    width: fit-content;
}
.demo-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    flex-shrink: 0;
}
.demo-card-title {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
}
.demo-card-desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
}
.demo-card-action {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent);
    margin-top: .25rem;
}

/* Demo → infra strip */
.demo-infra {
    margin-top: clamp(1.5rem, 3vw, 2rem);
}
.demo-infra-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 1.75rem;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--border-med);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(79,131,204,.1) 0%, transparent 45%),
        var(--surface);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.demo-infra-label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .5rem;
}
.demo-infra-title {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 600;
    margin: 0 0 .5rem;
    line-height: 1.3;
}
.demo-infra-lead {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 .85rem;
    max-width: 42ch;
}
.demo-infra-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.demo-infra-points li {
    font-size: .8rem;
    color: var(--muted);
    padding-left: .85rem;
    position: relative;
    line-height: 1.4;
}
.demo-infra-points li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: .7rem;
}
.demo-infra-actions {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    align-items: stretch;
}
.demo-infra-actions .btn {
    justify-content: center;
    text-align: center;
}

@media (max-width: 900px) {
    .demo-infra-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .demo-infra-points { grid-template-columns: 1fr; }
    .demo-infra-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .demo-infra-actions .btn { flex: 1 1 auto; }
}

/* Infra modal */
.infra-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.infra-modal[hidden] { display: none !important; }
.infra-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 11, .72);
    backdrop-filter: blur(6px);
}
.infra-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(36rem, 100%);
    max-height: min(88vh, 40rem);
    overflow: auto;
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-med);
    background: var(--surface);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
.infra-modal-close {
    position: absolute;
    top: .65rem;
    right: .75rem;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: .25rem .5rem;
}
.infra-modal-close:hover { color: var(--text); }
.infra-modal-kicker {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 .65rem;
}
.infra-modal-intro {
    font-size: .95rem;
    color: var(--text);
    line-height: 1.55;
    margin: 0 0 1.25rem;
}
.infra-layers {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-bottom: 1.25rem;
}
.infra-layer {
    padding: .7rem .85rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .2);
}
.infra-layer-name {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--accent);
    margin-bottom: .25rem;
}
.infra-layer-desc {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.45;
}
.infra-benefits-title {
    font-size: .9rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}
.infra-benefits {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.infra-benefits li {
    font-size: .85rem;
    color: var(--muted);
    padding-left: .9rem;
    position: relative;
    line-height: 1.45;
}
.infra-benefits li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: .7rem;
}

/* ── PORTFOLIO — spotlight + tabs (no autoplay) ── */
.section-portfolio {
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(79,131,204,.05) 0%, transparent 50%),
        var(--bg-dark);
}
.portfolio-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.portfolio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0;
}
.portfolio-tab {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: 100%;
    padding: .45rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--border-med);
    background: var(--surface);
    color: var(--muted);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    text-align: left;
}
.portfolio-tab:hover {
    color: var(--text);
    border-color: var(--border-med);
}
.portfolio-tab.is-active {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-soft);
}
.portfolio-tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 14rem;
}
.portfolio-tab-badge {
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #fff;
    background: var(--accent);
    border-radius: 4px;
    padding: .1rem .4rem;
    flex-shrink: 0;
}
.portfolio-tab-badge--accent {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.portfolio-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.portfolio-panel-badge {
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--accent);
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 4px;
    padding: .15rem .5rem;
}
.portfolio-panel-badge--featured {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.portfolio-panels {
    position: relative;
}
/* Only the active panel is shown — author display must not fight [hidden] */
.portfolio-spotlight {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2rem;
    padding: 2.25rem 2.5rem;
    border: 1px solid var(--border-med);
    border-radius: var(--radius-lg);
    background: var(--surface);
    align-items: start;
    min-height: 15rem;
}
.portfolio-spotlight.has-media.is-active {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr);
}
.portfolio-spotlight.is-active {
    display: grid;
}
.portfolio-spotlight.is-featured.is-active {
    border-color: var(--accent);
    background: linear-gradient(145deg, var(--surface) 0%, rgba(79,131,204,.12) 100%);
    box-shadow: 0 0 0 1px rgba(79,131,204,.15), 0 20px 56px rgba(0,0,0,.22);
}

/* Screenshot / media slot */
.portfolio-media {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
}
.portfolio-media.has-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    border: 1px solid var(--border-med);
    background: var(--bg-dark);
}
/* Tylko jasne screeny — ciemne bez filtra */
.portfolio-media.has-image[data-tone="light"] {
    padding: 0.4rem;
    border-radius: calc(var(--radius) + 2px);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-med);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.portfolio-media.has-image[data-tone="light"] img {
    filter: brightness(0.93) contrast(1.02);
    border-color: rgba(255, 255, 255, 0.08);
}
.portfolio-media.is-placeholder {
    position: relative;
    min-height: 10.5rem;
    border: 1px dashed var(--border-med);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(79,131,204,.08) 0%, transparent 50%),
        var(--bg-dark);
    padding: 1rem;
    justify-content: flex-end;
    transition: border-color .15s, background .15s;
}
.portfolio-media.is-placeholder:hover {
    border-color: var(--accent);
    background:
        linear-gradient(145deg, rgba(79,131,204,.14) 0%, transparent 50%),
        var(--bg-dark);
}
.portfolio-media-frame {
    position: absolute;
    inset: 12% 10% 28%;
    border-radius: 6px;
    border: 1px solid var(--border-med);
    background:
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 6px,
            rgba(79,131,204,.04) 6px,
            rgba(79,131,204,.04) 12px
        );
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.portfolio-media-placeholder-text {
    position: relative;
    z-index: 1;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}
.portfolio-media-caption {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--accent);
}
.portfolio-spotlight-main {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-width: 0;
}
.portfolio-spotlight-main h3 {
    font-size: clamp(1.35rem, 2.6vw, 1.65rem);
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}
.portfolio-spotlight-side {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-width: 0;
    padding-top: .15rem;
}
.portfolio-result {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.55;
    margin: 0;
}
.portfolio-tech {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}
.portfolio-social {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
    padding: .85rem 1rem;
    border-left: 2px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.portfolio-order-btn {
    margin-top: .5rem;
    align-self: flex-start;
}
.portfolio-tag {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--muted);
}
.portfolio-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .15rem;
}
.portfolio-cta {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.link { color: var(--accent); font-size: .875rem; }
.link:hover { text-decoration: underline; }
.link.muted { color: var(--muted); }
.link.muted:hover { color: var(--text); }

@media (max-width: 1100px) {
    .portfolio-spotlight.has-media.is-active {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .portfolio-media {
        grid-column: 1 / -1;
        max-width: 28rem;
    }
}
@media (max-width: 900px) {
    .portfolio-layout {
        gap: clamp(1.35rem, 3.5vw, 2rem);
    }
    .portfolio-spotlight.is-active,
    .portfolio-spotlight.has-media.is-active {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        padding: 1.75rem 1.5rem;
        min-height: 0;
    }
    .portfolio-media { max-width: none; }
    .portfolio-tab-label { max-width: 11rem; }
}

/* ── WHY ── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.why-item {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.why-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.why-item h4 { font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }
.why-item p { font-size: .825rem; color: var(--muted); }

/* ── PROCESS — karty na paśmie section-band ── */
.section-process {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(79,131,204,.05) 0%, transparent 55%),
        var(--bg-dark);
}
.process-row {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    border: none;
    background: transparent;
    overflow: visible;
}
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid var(--border-med);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color .15s;
}
.process-step:hover {
    border-color: rgba(79,131,204,.35);
}
.process-step:last-child { border-bottom-color: var(--border-med); }
.process-num {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
}
.process-step h4 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .3rem;
    color: var(--text);
}
.process-step p {
    font-size: .875rem;
    color: #a8b0c0;
    line-height: 1.5;
}

/* ── CONTACT ── */
#contact.section {
    background:
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(79,131,204,.05) 0%, transparent 55%),
        var(--bg);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: .75rem; }
.contact-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    color: var(--muted);
    transition: color .15s;
}
.contact-link:hover { color: var(--text); }
.contact-icon { font-size: 1rem; flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: .3rem; }
.form-row label { font-size: .8rem; color: var(--muted); font-family: var(--font-mono); }

input, textarea {
    padding: .6rem .85rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-med);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: .875rem;
    transition: border-color .15s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.contact-form { position: relative; }
.form-status {
    font-size: .85rem;
    line-height: 1.45;
    margin: 0;
    padding: .65rem .85rem;
    border-radius: var(--radius);
}
.form-status--pending {
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.form-status--success {
    color: #86efac;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
}
.form-status--error {
    color: #fca5a5;
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .25);
}
.contact-form button[type="submit"]:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ── FOOTER — wyraźne odcięcie od kontaktu ── */
.footer {
    position: relative;
    border-top: none;
    padding: 1.75rem 0;
    background: var(--bg-dark);
}
.footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(79,131,204,.35) 20%,
        rgba(255,255,255,.12) 50%,
        rgba(79,131,204,.25) 80%,
        transparent 100%
    );
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-inner .muted { font-size: .8rem; }

/* ── Back to top ── */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 150;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-med);
    background: var(--surface);
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: opacity .2s, transform .2s, border-color .15s, background .15s;
}
.back-to-top:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.back-to-top[hidden] {
    display: none !important;
}
@media (max-width: 600px) {
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ── RESPONSIVE ──
   Tablet (601–1024): 2 kolumny tam gdzie ma sens
   Phone (≤600): wszystko w 1 kolumnie
*/

/* Tablet + phone: hamburger, kontrast, hero stack (już w regułach nav/hero) */
@media (max-width: 1024px) {
    /* Mobile/tablet contrast */
    :root {
        --bg: #0a0d14;
        --bg-dark: #06080e;
        --surface: #141b26;
        --surface-2: #1c2433;
        --border: rgba(255, 255, 255, 0.1);
        --border-med: rgba(255, 255, 255, 0.16);
        --muted: #9aa3b5;
        --text: #eef1f7;
    }

    .section-band {
        border-top-color: rgba(255, 255, 255, 0.1);
        border-bottom-color: rgba(255, 255, 255, 0.1);
        box-shadow: inset 0 1px 0 rgba(79, 131, 204, 0.08);
    }

    .card,
    .demo-card,
    .why-item,
    .process-step,
    .hero-panel,
    .demo-infra-card,
    .portfolio-spotlight.is-active,
    .custom-panel {
        background: var(--surface);
        border-color: var(--border-med);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }

    .card-featured,
    .portfolio-spotlight.is-featured.is-active {
        border-color: rgba(79, 131, 204, 0.55);
        box-shadow:
            0 0 0 1px rgba(79, 131, 204, 0.2),
            0 8px 28px rgba(0, 0, 0, 0.3);
    }

    .card-desc,
    .demo-card-desc,
    .why-item p,
    .process-step p,
    .section-sub,
    .portfolio-tech,
    .hero-sub {
        color: var(--muted);
    }

    .nav {
        background: rgba(10, 13, 20, 0.92);
        border-bottom-color: var(--border-med);
    }
}

/* Tablet: siatki 2-kolumnowe (nie jak telefon) */
@media (min-width: 601px) and (max-width: 1024px) {
    .offer-duo {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .demo-list {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .custom-panel {
        grid-template-columns: 1fr 1fr;
    }
    .custom-col + .custom-col {
        border-left: 1px solid var(--border-med);
        border-top: none;
    }
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 1.75rem;
    }
    .demo-infra-card {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 1.25rem;
    }
    .portfolio-tabs {
        gap: .45rem;
    }
}

/* Hamburger + panel: do 1024 (wcześniej 900) */
@media (max-width: 1024px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .75rem 1.25rem 1.15rem;
        background: rgba(10, 13, 20, 0.97);
        border-bottom: 1px solid var(--border-med);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(14px);
    }
    .nav.is-open .nav-links {
        display: flex;
    }
    .nav-links-inner {
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        width: 100%;
    }
    .nav-links-inner > * + * {
        margin-left: 0;
    }
    .nav-links-inner > a,
    .nav-links-inner > .btn {
        display: flex;
        align-items: center;
        width: 100%;
        padding: .85rem .5rem;
        border-bottom: 1px solid var(--border);
        white-space: normal;
    }
    .nav-links-inner > a:last-child,
    .nav-links-inner > .btn:last-child {
        border-bottom: none;
    }
    .nav-links-inner > .btn {
        justify-content: center;
        margin-top: .35rem;
        border-bottom: none;
    }
}

@media (min-width: 1025px) {
    .nav-toggle { display: none !important; }
}

/* Phone only: 1 kolumna */
@media (max-width: 600px) {
    .hero { padding: 2.5rem 0 2.25rem; }
    .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
    .hero-panel-stats { grid-template-columns: 1fr 1fr 1fr; gap: .35rem; }
    .hero-stat-value { font-size: .85rem; }
    .section { padding: clamp(3rem, 10vw, 3.75rem) 0; }

    .offer-duo,
    .demo-list,
    .why-grid,
    .custom-grid,
    .cards-grid.three {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .custom-panel { grid-template-columns: 1fr; }
    .custom-col + .custom-col {
        border-left: none;
        border-top: 1px solid var(--border-med);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .demo-infra-card {
        grid-template-columns: 1fr;
    }
    .demo-infra-actions {
        flex-direction: column;
    }

    .footer-inner { flex-direction: column; gap: .5rem; text-align: center; }

    .card,
    .demo-card,
    .process-step,
    .why-item {
        padding: 1.35rem 1.25rem;
    }

    .footer {
        background: #05070c;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    input,
    textarea {
        background: var(--surface-2);
        border-color: var(--border-med);
    }
}