:root {
    --bg-main: #050712;
    --bg-secondary: #0d0f1f;
    --accent: #00f5ff;
    --accent-soft: rgba(0, 245, 255, 0.22);
    --text-main: #f5f5f7;
    --text-muted: #a3a6b8;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --radius-large: 24px;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.75);
}

/* wariant jasny */
:root[data-theme="light"] {
    --bg-main: #f5f7fb;
    --bg-secondary: #ffffff;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.16);
    --text-main: #0b1120;
    --text-muted: #4b5563;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* RESET / BAZA */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, #1a2b47 0, transparent 55%),
        radial-gradient(circle at bottom, #09101f 0, transparent 60%),
        var(--bg-main);
    color: var(--text-main);
    padding: 24px 24px 40px;
}

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at top, rgba(191, 219, 254, 0.7) 0, transparent 55%),
        radial-gradient(circle at bottom, rgba(219, 234, 254, 0.7) 0, transparent 60%),
        var(--bg-main);
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* HEADER + NAWIGACJA */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0 auto 18px;
    width: min(1100px, 92%);
    border-radius: 999px;
    padding: 8px 16px;
    background: rgba(5, 7, 18, 0.92);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(18px);
}

/* jasny wariant nagłówka */
:root[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 40px rgba(148, 163, 184, 0.35);
}

/* ... existing header/nav styles ... */
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.brand-main {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-main);
}

.brand-dot {
    color: var(--accent);
    font-weight: 700;
}

/* desktop nav */
.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    display: block;
    padding: 8px 6px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    transition:
            color 0.16s ease-out,
            opacity 0.16s ease-out;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #9d4edd);
    box-shadow: 0 0 12px var(--accent-soft);
    opacity: 0;
    transition:
            width 0.2s ease-out,
            opacity 0.2s ease-out;
}

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

.nav a:hover::after {
    width: 100%;
    opacity: 1;
}

/* burger */
.burger {
    display: none;
    border: none;
    background: transparent;
    padding: 6px;
    margin: -6px;
    cursor: pointer;
}

.burger-box {
    width: 24px;
    height: 18px;
    position: relative;
    display: inline-block;
}

.burger-inner,
.burger-inner::before,
.burger-inner::after {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    left: 0;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-inner {
    top: 8px;
}

.burger-inner::before {
    content: "";
    top: -6px;
}

.burger-inner::after {
    content: "";
    top: 6px;
}

/* przełącznik jasny / ciemny */
.theme-toggle {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background-color: rgba(9, 12, 28, 0.9);
    color: var(--text-muted);
    padding: 4px 10px;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition:
        background-color 0.15s ease-out,
        color 0.15s ease-out,
        border-color 0.15s ease-out,
        box-shadow 0.15s ease-out;
}

:root[data-theme="light"] .theme-toggle {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-muted);
}

.theme-toggle:hover {
    background-color: rgba(15, 18, 38, 1);
    color: var(--text-main);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

:root[data-theme="light"] .theme-toggle:hover {
    background-color: #ffffff;
}

.theme-toggle-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.theme-toggle-label {
    line-height: 1;
}

.theme-toggle-desktop {
    display: inline-flex;
}

.theme-toggle-mobile {
    display: none;
    margin-top: 24px;
}

/* OFFCANVAS MOBILE */
@media (max-width: 900px) {
    .site-header {
        border-radius: 16px;
        padding: 8px 14px;
    }

    .burger {
        display: inline-block;
    }

    /* mobile nav + mobile toggle */
    .theme-toggle-desktop {
        display: none;
    }
    .theme-toggle-mobile {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(72vw, 260px);
        transform: translateX(100%);
        background: radial-gradient(circle at top right, #15172b 0, #050712 60%);
        color: var(--text-main);
        transition: transform 0.3s ease;
        padding: 20px 18px;
        z-index: 1200;
        border-left: 1px solid var(--border-subtle);
        box-shadow: -32px 0 80px rgba(0, 0, 0, 0.9);
    }

    /* jasny wariant offcanvas */
    :root[data-theme="light"] .nav {
        background: linear-gradient(160deg, #eef2ff, #e5f3ff);
        box-shadow: -24px 0 36px rgba(148, 163, 184, 0.35);
    }

    .nav ul {
        flex-direction: column;
        gap: 6px;
        margin-top: 12px;
    }

    .nav a {
        padding: 10px 4px;
        font-size: 0.9rem;
        letter-spacing: 0.16em;
        color: var(--text-main);
    }

    .nav.open {
        transform: translateX(0%);
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav .theme-toggle-mobile {
        margin-top: auto;
        align-self: flex-start;
    }
}

/* SEKCJE: START (splash), OFERTA, O NAS, KONTAKT */

/* splash (start) */
.splash {
    width: 100%;
    max-width: 1100px;
    background: radial-gradient(circle at top left, #15172b 0, #050712 60%);
    border-radius: var(--radius-large);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 28px 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    overflow: hidden;
    margin: 0 auto 40px;
}

/* jasny wariant splash */
:root[data-theme="light"] .splash {
    background: radial-gradient(circle at top left, #ffffff 0, #e5ecff 60%);
}

/* glow tła */
.splash::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
            radial-gradient(circle at 0% 0%, rgba(0, 245, 255, 0.08), transparent 55%),
            radial-gradient(circle at 100% 100%, rgba(157, 78, 221, 0.08), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

/* warstwa na treść */
.splash > * {
    position: relative;
    z-index: 1;
}

/* górny pasek w splash */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tagline-mono {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background-color: rgba(5, 7, 18, 0.85);
}

/* hero */
.hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 640px;
}

.accent-bar {
    width: 84px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #9d4edd);
    box-shadow: 0 0 16px var(--accent-soft);
    animation: accentPulse 2.4s ease-in-out infinite;
}

@keyframes accentPulse {
    0%,
    100% {
        transform: scaleX(1);
        opacity: 0.85;
    }
    50% {
        transform: scaleX(1.12);
        opacity: 1;
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 3vw + 1.2rem, 3rem);
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.03em;
}

.hero-highlight {
    background: linear-gradient(120deg, #00f5ff, #9d4edd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
    max-width: 40rem;
}

.hero-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 40rem;
}

/* hero przyciski */
.hero-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* wspólne sekcje */
.section {
    padding: 64px 0;
    border-top: 1px solid var(--border-subtle);
}

.section:first-of-type {
    border-top: none;
}

.section h2 {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.1rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section p {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.96rem;
}

/* karty oferty */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.card {
    border-radius: 18px;
    padding: 18px 18px 16px;
    background: radial-gradient(circle at top left, #15172b 0, #050712 60%);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
}

/* jasny wariant kart – tło i cień, pady zostają jak były */
:root[data-theme="light"] .card {
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(148, 163, 184, 0.35);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* kontakt */
.contact-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    max-width: 560px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font: inherit;
    background-color: rgba(9, 12, 28, 0.9);
    color: var(--text-main);
    transition:
        border-color 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background-color 0.18s ease-out;
}

/* jasny wariant pól formularza */
:root[data-theme="light"] .contact-form input,
:root[data-theme="light"] .contact-form textarea {
    background-color: #ffffff;
    color: var(--text-main);
}

.contact-form textarea {
    border-radius: 18px;
    resize: vertical;
    min-height: 110px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft), 0 0 24px rgba(0, 245, 255, 0.22);
    background-color: rgba(9, 12, 28, 1);
}

.contact-form button {
    align-self: start;
}

/* PRZYCISKI (dark) */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
            background-color 0.18s ease-out,
            color 0.18s ease-out,
            transform 0.12s ease-out,
            box-shadow 0.18s ease-out;
    border: 1px solid transparent;
    position: relative;
}

.btn-primary {
    background: linear-gradient(120deg, #00f5ff, #9d4edd);
    color: #050712;
    box-shadow: 0 14px 40px rgba(0, 245, 255, 0.24);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 60px rgba(0, 245, 255, 0.3);
}

.btn-ghost {
    background-color: rgba(9, 12, 28, 0.9);
    border-color: var(--border-subtle);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background-color: rgba(15, 18, 38, 1);
    color: var(--text-main);
}

/* jasny wariant alternatywnego przycisku (ghost) */
:root[data-theme="light"] .btn-ghost {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--border-subtle);
    color: var(--text-muted);
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.35);
}

:root[data-theme="light"] .btn-ghost:hover {
    background-color: #ffffff;
    color: var(--text-main);
}

/* STOPKI */
.footer {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* lewy / prawy */
    gap: 8px;
}

.footer-note {
    opacity: 0.9;
    text-align: right;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 640px) {
    body {
        padding: 16px 16px 32px;
    }

    .splash {
        padding: 22px 18px 16px;
        border-radius: 18px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

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

    .section {
        padding: 48px 0;
    }
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }
}