:root {
    --bg-main: #0a0f14;
    --bg-card: rgba(21, 26, 32, 0.96);
    --bg-card-soft: rgba(21, 26, 32, 0.85);
    --bg-highlight: rgba(14, 165, 233, 0.07);
    --border-subtle: rgba(148, 163, 184, 0.3);

    --text-main: #e5e7eb;
    --text-muted: #94a3b8;
    --text-strong: #f9fafb;

    --accent: #06b6d4;
    --accent-soft: rgba(6, 182, 212, 0.2);
    --accent-strong: #0ea5e9;

    --danger: #f97373;
    --warn: #fbbf24;
    --good: #22d3ee;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 999px;

    --shadow-soft: 0 24px 60px rgba(10, 15, 20, 0.8);
    --shadow-card: 0 18px 40px rgba(10, 15, 20, 0.8);

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

html {
    background: #0a0f14;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    background: radial-gradient(circle at top left, #1a2028 0, #0a0f14 40%, #0a0f14 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* BG dekoracyjny */
.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 10% -10%, rgba(6, 182, 212, 0.25), transparent 50%),
        radial-gradient(circle at 90% 110%, rgba(251, 191, 36, 0.18), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(21, 26, 32, 0.9), #0a0f14 70%);
    opacity: 1;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 6vw;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(21, 26, 32, 0.9), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: radial-gradient(circle at 30% 20%, var(--accent), #0284c7);
    color: #0a0f14;
    font-size: 0.9rem;
    box-shadow: 0 0 0 1px rgba(21, 26, 32, 0.8);
}

.nav {
    display: flex;
    gap: 1.4rem;
    font-size: 0.95rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.2rem;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent), var(--accent-strong));
    transition: width 0.2s ease-out;
}

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

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

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding: 3.5rem 6vw 2.5rem;
    align-items: center;
}

.hero-text {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: rgba(21, 26, 32, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--good);
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.2);
}

.hero h1 {
    margin: 1.3rem 0 0.5rem;
    line-height: 1.1;
}

.hero-hi {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
}

.hero-name {
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #e5e7eb, #06b6d4, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-role {
    margin: 0.2rem 0 0.8rem;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.hero-tagline {
    margin: 0;
    font-size: 1.02rem;
    color: var(--text-main);
    max-width: 32rem;
}

.hero-cta {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #fbbf24);
    color: #0a0f14;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 24px 60px rgba(6, 78, 95, 0.8);
}

.btn-ghost {
    background: rgba(21, 26, 32, 0.88);
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(21, 26, 32, 1);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: rgba(6, 182, 212, 0.6);
    margin-top: 1rem;
}

.btn-outline:hover {
    background: rgba(6, 78, 95, 0.5);
}

.btn-card-action {
    background: var(--accent);
    color: #0a0f14;
    border-color: var(--accent);
    margin-top: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-card-action:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.4);
}

/* Chips */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.3rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    background: rgba(21, 26, 32, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
}

.chip-fun {
    border-color: rgba(250, 204, 21, 0.8);
    background: rgba(250, 204, 21, 0.08);
}

/* HERO PHOTOS */
.hero-photos {
    position: relative;
    height: 420px;
    width: 100%;
    max-width: 480px;
    min-width: 320px;
    margin-left: auto;
}

.photo-card {
    position: absolute;
    border-radius: 26px;
    overflow: hidden;
    background: radial-gradient(circle at 0 0, rgba(6, 182, 212, 0.22), rgba(21, 26, 32, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-photo {
    top: 8%;
    left: 8%;
    right: 8%;
    bottom: 8%;
}

.mini-photo {
    width: 40%;
    height: 35%;
}

.photo-tilt-left {
    left: -8%;
    top: 2%;
    transform: rotate(-10deg);
}

.photo-tilt-right {
    right: -12%;
    bottom: 2%;
    transform: rotate(9deg);
}

.photo-label,
.photo-label-small {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 10%;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(21, 26, 32, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.photo-label-small {
    font-size: 0.72rem;
    bottom: 8%;
}

/* SECTIONS */
.section {
    padding: 2.5rem 6vw 2rem;
}

.section-card {
    padding-top: 1.5rem;
}

.section-header {
    max-width: 720px;
    margin-bottom: 1.8rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin: 0 0 0.3rem;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* O MNIE */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: stretch;
}

.about-text p {
    margin: 0 0 0.9rem;
    color: var(--text-main);
}

.about-text strong {
    color: var(--text-strong);
}

/* Widget */
.about-widget {
    border-radius: var(--radius-lg);
    background: var(--bg-card-soft);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    font-size: 0.9rem;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: radial-gradient(circle at 0 0, rgba(6, 182, 212, 0.15), rgba(21, 26, 32, 1));
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.red {
    background: #f97373;
}

.yellow {
    background: #facc15;
}

.green {
    background: #22d3ee;
}

.widget-title {
    margin-left: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.widget-body {
    padding: 0.9rem 1rem 1rem;
}

.widget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.widget-label {
    color: var(--text-main);
}

.widget-pill {
    padding: 0.18rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(21, 26, 32, 0.9);
}

.widget-pill-good {
    border-color: rgba(34, 211, 238, 0.9);
    color: #cffafe;
    background: rgba(6, 182, 212, 0.2);
}

.widget-pill-warn {
    border-color: rgba(251, 191, 36, 0.9);
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.18);
}

.wifi-bar {
    flex: 0 0 120px;
    height: 8px;
    border-radius: 999px;
    background: rgba(21, 26, 32, 1);
    border: 1px solid rgba(148, 163, 184, 0.6);
    overflow: hidden;
}

.wifi-fill {
    display: block;
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, #ef4444, #fbbf24);
}

.widget-note {
    margin: 0.7rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 1.25rem 1.25rem 1.3rem;
    box-shadow: var(--shadow-card);
    font-size: 0.95rem;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -80%;
    background: radial-gradient(circle at 0 0, rgba(6, 182, 212, 0.12), transparent 65%);
    opacity: 0.7;
    pointer-events: none;
}

.card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
}

.card ul {
    position: relative;
    z-index: 1;
    padding-left: 1.1rem;
    margin: 0 0 0.8rem;
    color: var(--text-main);
}

.card li {
    margin-bottom: 0.3rem;
}

.card-footnote {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.card-tag {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    z-index: 1;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    background: rgba(21, 26, 32, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--accent);
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 0.7rem;
}

.step {
    border-radius: var(--radius-md);
    background: rgba(21, 26, 32, 0.96);
    border: 1px solid var(--border-subtle);
    padding: 1rem 1rem 1.1rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.step-number {
    position: absolute;
    top: 0.8rem;
    left: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(6, 78, 95, 0.9);
    color: var(--accent);
}

.step h3 {
    margin: 2rem 0 0.4rem;
    font-size: 1rem;
}

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

.section-quote {
    margin-top: 1.8rem;
    font-size: 0.98rem;
    color: var(--text-main);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--bg-highlight);
    border: 1px dashed rgba(6, 182, 212, 0.4);
}

/* HIGHLIGHT / KRÓTKA WERSJA */
.section-highlight {
    padding-bottom: 3rem;
}

.snippet-card {
    border-radius: var(--radius-lg);
    background: rgba(21, 26, 32, 0.96);
    border: 1px solid rgba(6, 182, 212, 0.4);
    padding: 1.4rem 1.4rem 1.6rem;
    box-shadow: var(--shadow-card);
    font-size: 0.95rem;
}

.snippet-card h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.snippet-card ul {
    margin: 0.3rem 0 0.6rem;
    padding-left: 1.2rem;
}

.snippet-cta {
    margin-top: 0.7rem;
    font-weight: 500;
}

/* FOOTER */
.site-footer {
    padding: 1.2rem 6vw 2rem;
    border-top: 1px solid rgba(21, 26, 32, 0.9);
    background: radial-gradient(circle at top, rgba(21, 26, 32, 0.98), #0a0f14 60%);
    font-size: 0.86rem;
    color: var(--text-muted);
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(21, 26, 32, 0.96);
    margin-right: 0.5rem;
    color: var(--text-main);
}

.footer-small {
    margin-top: 0.3rem;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 2.6rem;
    }

    .hero-photos {
        margin-top: 1rem;
        margin-inline: auto;
        height: 280px;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .site-header {
        padding-inline: 4vw;
    }

    .nav {
        display: none;
    }

    .hero,
    .section,
    .site-footer {
        padding-inline: 4vw;
    }

    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-photos {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .main-photo {
        inset: 0;
    }

    .photo-tilt-left {
        display: none;
    }

    .photo-tilt-right {
        display: none;
    }
}