/* ================================================================
   wanat.dev — main stylesheet
   ================================================================ */

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- design tokens --- */
:root {
    --bg: #0a0a0a;
    --bg-alt: #0d0d0d;
    --surface: #111111;
    --surface-2: #161616;
    --border: #1c1c1c;
    --border-strong: #2a2a2a;
    --border-hover: #3a3a3a;

    --text: #fafafa;
    --text-2: #b8b8b8;
    --text-3: #888;
    --text-mute: #555;

    --accent: #e6e6e6;
    --accent-warm: #f5e8d4;
    --green: #10b981;

    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --max: 1180px;
    --pad-x: clamp(20px, 4vw, 48px);

    --radius: 14px;
    --radius-sm: 8px;

    --shadow-glow: 0 0 0 1px var(--border-strong), 0 1px 0 0 rgba(255,255,255,0.04) inset;
    --shadow-card: 0 1px 0 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.5);
}

/* --- base --- */
body {
    font-family: var(--font-sans);
    font-feature-settings: 'ss01', 'cv11';
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection { background: rgba(250,250,250,0.18); color: #fff; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* --- subtle grain (depth) --- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

/* --- nav --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: rgba(10,10,10,0.68);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}
.logo-mark {
    color: var(--text);
    font-size: 13px;
    transform: translateY(-1px);
}
.logo-dot { color: var(--text-mute); }

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: var(--text-2);
}
.nav-links a {
    transition: color 0.18s ease;
    position: relative;
}
.nav-links a:hover { color: var(--text); }

/* mobile menu toggle */
.nav-toggle {
    display: none;
    width: 36px; height: 36px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 0 var(--pad-x);
}
.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    transition: color 0.18s ease, padding-left 0.18s ease;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); padding-left: 8px; }
.mobile-menu .mobile-cta {
    margin-top: 8px;
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu { display: block; }
}

/* --- buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-primary {
    background: var(--text);
    color: #0a0a0a;
    border-color: var(--text);
    position: relative;
}
.btn-primary:hover {
    background: #fff;
    transform: translateY(-1px);
}
.btn-primary svg { transition: transform 0.18s ease; }
.btn-primary:hover svg { transform: translateX(2px); }

/* glow pod CTA w hero */
.hero-cta .btn-primary::after {
    content: "";
    position: absolute;
    inset: -8px -20px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.18), transparent 70%);
    filter: blur(20px);
    z-index: -1;
    opacity: 0.7;
    transition: opacity 0.3s ease, inset 0.3s ease;
    pointer-events: none;
}
.hero-cta .btn-primary:hover::after {
    opacity: 1;
    inset: -12px -28px;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--border-hover);
}

.btn-lg { padding: 14px 22px; font-size: 15px; }

/* --- hero --- */
.hero {
    position: relative;
    padding: clamp(80px, 14vh, 140px) 0 clamp(80px, 12vh, 120px);
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.5;
}
.hero::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.10), transparent 60%);
    top: -200px; left: -150px;
    transform: translate3d(0, var(--py1, 0), 0);
}
.hero::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245,232,212,0.08), transparent 60%);
    bottom: -200px; right: -150px;
    transform: translate3d(0, var(--py2, 0), 0);
}
.hero > * { position: relative; z-index: 1; }

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-2);
    margin-bottom: 32px;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0.05); }
}

.hero-title {
    font-size: clamp(40px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 600;
    margin-bottom: 28px;
    max-width: 950px;
}
.text-muted { color: var(--text-3); }

.hero-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-2);
    max-width: 620px;
    margin-bottom: 40px;
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 740px;
}
.meta-item {
    background: var(--bg);
    padding: 24px 24px 22px;
}
.meta-value {
    font-size: clamp(28px, 3.2vw, 36px);
    letter-spacing: -0.02em;
    font-weight: 500;
    line-height: 1;
}
.meta-unit {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-3);
    margin-left: 6px;
    font-weight: 400;
}
.meta-label {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    text-transform: lowercase;
    letter-spacing: 0.02em;
}
@media (max-width: 640px) {
    .hero-meta { grid-template-columns: 1fr; }
}

/* --- sections --- */
.section {
    position: relative;
    padding: clamp(80px, 12vh, 130px) 0;
    border-top: 1px solid var(--border);
}
.section::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.3) 50%,
        transparent
    );
    pointer-events: none;
}
.section-alt { background: var(--bg-alt); }

.section-head {
    margin-bottom: clamp(48px, 7vh, 72px);
    max-width: 760px;
}
.section-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-3);
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-strong);
}
.section-title {
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 600;
}
.section-lead {
    margin-top: 18px;
    color: var(--text-2);
    font-size: 17px;
    max-width: 520px;
}

.section-note {
    margin-top: 48px;
    padding: 18px 22px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-3);
    font-size: 14px;
    font-family: var(--font-mono);
    text-align: center;
}

/* --- cards (usługi) --- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}
@media (max-width: 920px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
    position: relative;
    padding: 32px 28px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    background: var(--surface-2);
}
.card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    display: grid; place-items: center;
    color: var(--text);
    margin-bottom: 22px;
}
.card-title {
    font-size: 19px;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    font-weight: 600;
}
.card-text {
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.card-list {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex; flex-direction: column; gap: 6px;
}
.card-list li {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-3);
    padding-left: 16px;
    position: relative;
}
.card-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-mute);
}

/* --- realizacje (case studies) --- */
.projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project {
    padding: clamp(32px, 4vw, 48px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.project::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 0%),
        rgba(255,255,255,0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}
.project:hover { border-color: var(--border-hover); }
.project:hover::before { opacity: 1; }

.project-head {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: end;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 820px) {
    .project-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 14px;
}
.project-title {
    font-size: clamp(28px, 3.6vw, 42px);
    letter-spacing: -0.025em;
    font-weight: 600;
    line-height: 1.05;
}
.project-lead {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.65;
}

.project-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 32px;
}
@media (max-width: 640px) {
    .project-features { grid-template-columns: 1fr; }
}
.feat {
    background: var(--surface);
    padding: 24px 26px 22px;
    transition: background 0.25s ease;
}
.feat:hover { background: var(--surface-2); }
.feat-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-mute);
    margin-bottom: 10px;
}
.feat-value {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
    color: var(--text);
}
.feat-text {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.55;
}

.project-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.project-stack {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.project-stack span {
    font-family: var(--font-mono);
    font-size: 11.5px;
    padding: 4px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text-2);
    letter-spacing: 0.02em;
}

/* --- realizacje: linki do case study/demo --- */
.project-foot {
    flex-direction: column;
    align-items: stretch !important;
    gap: 18px !important;
}
.project-links {
    display: flex;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--text);
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    transition: border-color 0.18s ease, background 0.18s ease;
    font-weight: 500;
}
.project-link:hover { border-color: var(--text); background: var(--surface-2); }
.project-link svg { transition: transform 0.18s ease; }
.project-link:hover svg { transform: translateX(2px); }
.project-link-ghost { color: var(--text-2); border-color: var(--border); }

/* --- KONFIGURATOR --- */
.section-try {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.kf {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    margin-bottom: 80px;
    align-items: stretch;
}
@media (max-width: 920px) {
    .kf { grid-template-columns: 1fr; }
}

.kf-controls {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.kf-group {
    display: flex; flex-direction: column; gap: 10px;
}
.kf-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.kf-options {
    display: flex; flex-direction: column; gap: 6px;
}
.kf-opt {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-2);
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.kf-opt:hover { border-color: var(--border-hover); color: var(--text); }
.kf-opt.active {
    border-color: var(--text);
    background: var(--surface-2);
    color: var(--text);
}
.kf-swatch {
    width: 16px; height: 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
}
.kf-cta {
    margin-top: 4px;
    justify-content: center;
}
.kf-hint {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-mute);
    text-align: center;
    line-height: 1.4;
}

/* preview panel */
.kf-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: stretch;
    min-height: 540px;
}
.kf-browser {
    flex: 1;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.kf-browser-bar {
    background: var(--surface-2);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-strong);
    flex-shrink: 0;
}
.kf-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--border-hover);
}
.kf-dot:nth-child(1) { background: #ef4444; }
.kf-dot:nth-child(2) { background: #eab308; }
.kf-dot:nth-child(3) { background: #10b981; }
.kf-url {
    margin-left: auto; margin-right: auto;
    background: var(--bg);
    padding: 4px 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-3);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.kf-window {
    flex: 1;
    overflow: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    position: relative;
}

/* preview style variants */
.kf-window[data-style="boutique"] {
    background: #fdfcfa;
    color: #2a1f24;
    --kf-accent: #d4869a;
    --kf-muted: #a89b8f;
    --kf-surface: #f5ede7;
    --kf-font-h: 'Playfair Display', Georgia, serif;
    --kf-font-b: 'Manrope', sans-serif;
}
.kf-window[data-style="elegant"] {
    background: #1a1612;
    color: #f5e8d4;
    --kf-accent: #c8a572;
    --kf-muted: #8a7860;
    --kf-surface: #221c16;
    --kf-font-h: 'Cormorant Garamond', Georgia, serif;
    --kf-font-b: 'Inter', sans-serif;
}
.kf-window[data-style="minimal"] {
    background: #0a0a0a;
    color: #fafafa;
    --kf-accent: #fafafa;
    --kf-muted: #888;
    --kf-surface: #161616;
    --kf-font-h: 'Geist', sans-serif;
    --kf-font-b: 'Geist', sans-serif;
}

.kf-pv {
    padding: 36px 32px;
    height: 100%;
    overflow-y: auto;
    font-family: var(--kf-font-b);
}
.kf-pv-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--kf-muted);
    margin-bottom: 28px;
    opacity: 0.6;
}
.kf-pv-brand {
    font-family: var(--kf-font-h);
    font-size: 16px;
    font-weight: 600;
}
.kf-pv-menu {
    display: flex;
    gap: 16px;
    font-size: 11px;
}
.kf-pv-hero {
    margin-bottom: 32px;
}
.kf-pv-tag {
    display: inline-block;
    font-size: 10px;
    padding: 3px 10px;
    border: 1px solid var(--kf-muted);
    border-radius: 999px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kf-muted);
}
.kf-pv-title {
    font-family: var(--kf-font-h);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.05;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    font-weight: 600;
}
.kf-pv-sub {
    font-size: 13px;
    color: var(--kf-muted);
    line-height: 1.5;
    max-width: 80%;
    margin-bottom: 18px;
}
.kf-pv-cta {
    display: inline-block;
    padding: 8px 16px;
    background: var(--kf-accent);
    color: var(--bg, #fff);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}
.kf-window[data-style="minimal"] .kf-pv-cta { color: #0a0a0a; }
.kf-window[data-style="boutique"] .kf-pv-cta { color: #fff; }
.kf-window[data-style="elegant"] .kf-pv-cta { color: #1a1612; }

.kf-pv-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--kf-muted);
    opacity: 0.85;
}
.kf-pv-section h5 {
    font-family: var(--kf-font-h);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}
.kf-pv-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.kf-pv-service {
    padding: 8px 12px;
    background: var(--kf-surface);
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid transparent;
}
.kf-pv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 6px;
}
.kf-pv-thumb {
    aspect-ratio: 1;
    background: var(--kf-surface);
    border-radius: 4px;
}
.kf-pv-map {
    height: 80px;
    background: var(--kf-surface);
    border-radius: 6px;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
}
.kf-pv-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--kf-muted) 1px, transparent 1px),
                      linear-gradient(90deg, var(--kf-muted) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.18;
}
.kf-pv-map::after {
    content: "📍";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

/* --- DEMA --- */
.demo-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px auto 36px;
    max-width: 720px;
    padding: 0 20px;
}
.demo-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.demo-divider-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.demos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) { .demos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px)  { .demos { grid-template-columns: 1fr; } }

.demo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.demo-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}
.demo-card-soon { opacity: 0.6; cursor: default; pointer-events: none; }
.demo-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.demo-mock {
    height: 100%;
    width: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.demo-mock-bar {
    height: 8px;
    background: currentColor;
    opacity: 0.4;
    border-radius: 2px;
    width: 60%;
}
.demo-mock-bar-2 { width: 40%; opacity: 0.25; }
.demo-mock-cards {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.demo-mock-cards span {
    aspect-ratio: 1;
    background: currentColor;
    opacity: 0.18;
    border-radius: 4px;
}
.demo-mock-boutique  { background: #fdfcfa; color: #d4869a; }
.demo-mock-elegant   { background: #1a1612; color: #c8a572; }
.demo-mock-restaurant{ background: #2b1d14; color: #d97757; }
.demo-mock-mechanic  { background: #1a1f25; color: #5da9e0; }

.demo-info {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.demo-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.demo-name {
    font-size: 17px;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    font-weight: 600;
}
.demo-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 14px;
}
.demo-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.demo-card:hover .demo-cta svg { transform: translate(2px, -2px); }
.demo-cta svg { transition: transform 0.18s ease; }
.demo-cta-soon { color: var(--text-mute); font-style: italic; font-weight: 400; }

/* --- CTA banner --- */
.cta-banner {
    position: relative;
    padding: clamp(80px, 12vh, 110px) 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
}
.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255,255,255,0.06), transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 0%, rgba(99,102,241,0.08), transparent 70%);
    pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}
@media (max-width: 820px) {
    .cta-inner { grid-template-columns: 1fr; }
}
.cta-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.cta-title {
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 600;
    margin-bottom: 18px;
}
.cta-text {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.6;
    max-width: 480px;
}
.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
@media (max-width: 820px) {
    .cta-actions { align-items: flex-start; }
}
.cta-note {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-3);
}

/* --- comparison table --- */
.compare {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.compare-head { display: contents; }
.compare-row { display: contents; }
.compare-cell {
    background: var(--bg);
    padding: 22px 24px;
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.5;
}
.compare-head .compare-cell {
    background: var(--surface-2);
    padding: 26px 24px 22px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.compare-empty { background: var(--surface) !important; }
.compare-tag {
    display: block;
    color: var(--text);
    font-weight: 500;
}
.compare-them .compare-tag { color: var(--text-3); }
.compare-us {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent) !important;
    position: relative;
}
.compare-head.compare-us,
.compare-row .compare-us {
    color: var(--text);
}
.compare-us .compare-tag { color: var(--text); }
.compare-badge {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--green);
    background: rgba(16,185,129,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.compare-label {
    background: var(--surface) !important;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.compare-them { color: var(--text-mute); }
.compare-row .compare-us::before {
    content: "✓";
    display: inline-block;
    margin-right: 8px;
    color: var(--green);
    font-weight: 600;
}
@media (max-width: 720px) {
    .compare {
        grid-template-columns: 1fr;
        background: none;
        border: none;
        gap: 8px;
    }
    .compare-head {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background: var(--border);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
    }
    .compare-head .compare-empty { display: none; }
    .compare-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1px;
        background: var(--border);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
    }
    .compare-label {
        grid-column: 1 / -1;
        background: var(--surface) !important;
        font-size: 11px;
        padding: 10px 14px;
    }
    .compare-cell {
        padding: 12px 14px;
        font-size: 13px;
    }
    .compare-row .compare-us::before { margin-right: 6px; }
}

/* --- FAQ --- */
.faq {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 880px;
}
.faq-item {
    background: var(--surface);
    transition: background 0.2s ease;
}
.faq-item[open] { background: var(--surface-2); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: background 0.18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-q {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}
.faq-icon {
    width: 14px; height: 14px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--text-2);
    border-radius: 1px;
    transition: opacity 0.3s ease;
}
.faq-icon::before {
    top: 50%; left: 0;
    width: 100%; height: 1.5px;
    transform: translateY(-50%);
}
.faq-icon::after {
    left: 50%; top: 0;
    width: 1.5px; height: 100%;
    transform: translateX(-50%);
}
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-a {
    padding: 0 26px 26px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.65;
    max-width: 720px;
}
.faq-a p { margin-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }

/* --- proces (steps) --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
@media (max-width: 820px) {
    .steps { grid-template-columns: 1fr; }
}
.step {
    background: var(--bg);
    padding: 36px 32px 32px;
    transition: background 0.25s ease;
}
.step:hover { background: var(--surface); }
.step-num {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mute);
    margin-bottom: 22px;
    letter-spacing: 0.05em;
}
.step-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}
.step-text {
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.65;
}

/* --- about --- */
.about {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}
@media (max-width: 820px) {
    .about { grid-template-columns: 1fr; gap: 40px; }
}
.about-stack {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 28px;
}
.about-stack span {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 5px 11px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text-2);
}
.about-text {
    display: flex; flex-direction: column; gap: 18px;
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 640px;
}
.about-text .hl {
    color: var(--text);
    font-weight: 500;
}
.about-note {
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-style: italic;
    color: var(--text-3);
    font-size: 15px;
}

/* --- kontakt --- */
.section-contact { padding-bottom: clamp(120px, 16vh, 180px); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 820px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
    padding: 32px 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column; gap: 22px;
}
.field {
    display: flex; flex-direction: column; gap: 8px;
}
.field label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.field input,
.field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    color: var(--text);
    font-size: 15px;
    font-family: var(--font-sans);
    transition: border-color 0.18s ease, background 0.18s ease;
    resize: vertical;
}
.field textarea { min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-mute);
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #444;
    background: var(--bg-alt);
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    opacity: 0;
}

.form-row {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}
.form-status {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-3);
    min-height: 18px;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #ef4444; }

.contact-side {
    display: flex; flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.contact-block {
    background: var(--surface);
    padding: 22px 24px;
}
.contact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.contact-value {
    font-size: 15.5px;
    color: var(--text);
    line-height: 1.5;
    transition: color 0.18s ease;
}
a.contact-value:hover { color: var(--accent-warm); }

/* --- footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    background: var(--bg);
    color: var(--text-3);
    font-size: 13px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-mid { color: var(--text-mute); font-family: var(--font-mono); font-size: 12.5px; }
.footer-up { transition: color 0.18s ease; }
.footer-up:hover { color: var(--text); }

/* --- scroll progress bar --- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85));
    z-index: 100;
    transition: width 0.05s linear;
    pointer-events: none;
}

/* --- reveal-on-scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* stagger w grupach */
.cards .reveal:nth-child(1)   { transition-delay: 0ms; }
.cards .reveal:nth-child(2)   { transition-delay: 90ms; }
.cards .reveal:nth-child(3)   { transition-delay: 180ms; }
.steps .reveal:nth-child(1)   { transition-delay: 0ms; }
.steps .reveal:nth-child(2)   { transition-delay: 90ms; }
.steps .reveal:nth-child(3)   { transition-delay: 180ms; }
.projects .reveal:nth-child(1){ transition-delay: 0ms; }
.projects .reveal:nth-child(2){ transition-delay: 120ms; }

/* --- section-title animacja przy wejściu --- */
.section-head {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.9s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.section-head.in {
    opacity: 1;
    transform: translateY(0);
}
.section-head .section-num {
    position: relative;
    overflow: hidden;
}
.section-head .section-num::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--text), transparent);
    transition: width 1.1s cubic-bezier(0.2, 0.65, 0.3, 1) 0.2s;
}
.section-head.in .section-num::after { width: 100%; }

/* --- hero load animation --- */
.hero-status,
.hero-title,
.hero-sub,
.hero-cta,
.hero-meta {
    opacity: 0;
    transform: translateY(16px);
    animation: heroIn 0.9s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
}
.hero-status { animation-delay: 0ms; }
.hero-title  { animation-delay: 100ms; }
.hero-sub    { animation-delay: 250ms; }
.hero-cta    { animation-delay: 380ms; }
.hero-meta   { animation-delay: 500ms; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --- parallax dla hero blobów --- */
.hero { will-change: transform; }

/* --- accessibility / motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* --- focus rings --- */
:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
