:root {
    color-scheme: dark;
    --bg: #090c14;
    --surface: #111622;
    --surface2: #161c2b;
    --stroke: #293143;
    --fg: #f5f7ff;
    --muted: #9ca7bb;
    --accent: #9e9bff;
    --accent2: #5fd9d3;
    --line: var(--stroke);
    --text: var(--fg);
    --cyan: var(--accent2);
    --blue: var(--accent);
    --bright: #c8c6ff;
    --shadow: 0 26px 70px #0007;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "DM Sans", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}
img #logo {
    background-color: #eaf0ff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

button {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

::selection {
    background: #0b8fae;
    color: white;
}

.wrap {
    width: min(1180px, calc(100% - 44px));
    margin: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 9;
    background: #090c14eb;
    border-bottom: 1px solid #293143;
    backdrop-filter: blur(18px);
}

.header-row {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font:
        700 25px "Space Grotesk",
        sans-serif;
    letter-spacing: -1px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #6565a3;
    border-radius: 11px;
    background: linear-gradient(145deg, #28284b, #161c2b);
    color: var(--cyan);
    font-size: 22px;
}

.brand b {
    color: var(--cyan);
}

.nav {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 13px;
    font-weight: 700;
    color: #b7c1d2;
}

.nav a:hover {
    color: white;
}

.nav .nav-cta {
    border: 1px solid #7776ad;
    color: #d3d0ff;
    padding: 11px 16px;
    border-radius: 10px;
    background: #29294d66;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: 1px solid var(--line);
    padding: 10px 13px;
    border-radius: 9px;
}

.hero {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #293143;
    background: radial-gradient(ellipse at 72% 42%, #053960a0 0, transparent 48%),
        linear-gradient(155deg, #111622, #090c14 76%);
}

.hero:before {
    content: "";
    z-index: -1;
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background-image: linear-gradient(#9e9bff 1px, transparent 1px),
        linear-gradient(90deg, #9e9bff 1px, transparent 1px);
    background-size: 51px 51px;
    mask-image: linear-gradient(90deg, transparent 5%, black);
}

.hero-grid {
    min-height: 535px;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 50px;
    align-items: center;
    padding: 64px 0 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #c4c0ff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5fd9d3;
    box-shadow:
        0 0 0 5px #20e8d921,
        0 0 16px #5fd9d3;
}

.hero h1 {
    font:
        700 clamp(46px, 5.8vw, 77px) / 1.06 "Space Grotesk",
        sans-serif;
    letter-spacing: -3.3px;
    margin: 23px 0;
}

.gradient {
    background: linear-gradient(110deg, #5fd9d3, #a19dff 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 570px;
    color: #acb5c8;
    font-size: 16px;
    line-height: 1.85;
    margin: 0 0 31px;
}

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

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    border-radius: 10px;
    padding: 14px 19px;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s,
        background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(105deg, #5fd9d3, #aaa6ff);
    color: #00172a;
    box-shadow: 0 10px 27px #008cc02d;
}

.btn-secondary {
    border: 1px solid #515779;
    background: #1e2237a8;
    color: #d4f3ff;
}

/* Kompaktowe okno terminala zamiast dużego panelu z logo */
.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(285px, 365px);
    gap: clamp(24px, 5vw, 70px);
}

.hero-visual {
    width: 100%;
    max-width: 365px;
    justify-self: end;
    border: 1px solid #424961;
    border-radius: 16px;
    background: linear-gradient(145deg, #1c2233, #101521 78%);
    box-shadow:
        0 25px 65px #0006,
        0 0 50px #9e9bff12;
    overflow: hidden;
    transform: rotate(2deg);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.hero-visual:hover {
    transform: rotate(0deg) translateY(-3px);
    border-color: #9e9bff;
}

.window-top {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 15px 19px;
    border-bottom: 1px solid #353c53;
    background: #161c2b;
}

.window-top i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #526b80;
}

.window-top i:first-child {
    background: #e78f88;
}
.window-top i:nth-child(2) {
    background: #e7c17b;
}
.window-top i:nth-child(3) {
    background: #71c8ab;
}

.window-top span {
    margin-left: auto;
    color: #7295ad;
    font:
        500 10px "DM Sans",
        sans-serif;
    letter-spacing: 0.7px;
}

.terminal {
    padding: 26px 24px 28px;
    color: #c0c6d8;
    font:
        500 13px/2 "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    white-space: nowrap;
}

.terminal strong {
    color: #5fd9d3;
    font-weight: 600;
}
.terminal em {
    color: #a9aaff;
    font-style: normal;
}
.terminal .indent {
    padding-left: 19px;
}
.terminal .comment {
    color: #8993ab;
}
.terminal .cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    margin-left: 5px;
    background: #5fd9d3;
    vertical-align: -2px;
    animation: terminal-blink 1s step-end infinite;
}

.visual-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #353c53;
    background: #111622;
    padding: 14px 20px;
    color: #9ca7bb;
    font:
        700 10px "DM Sans",
        sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.visual-status b {
    color: #5fd9d3;
    font-weight: 700;
}
@keyframes terminal-blink {
    50% {
        opacity: 0;
    }
}

.stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 35px;
    color: #9ca7bb;
    font-size: 12px;
}

.stats span:not(:last-child) {
    border-right: 1px solid #35526b;
    padding-right: 16px;
}

.stats b {
    color: #eefaff;
}

.section {
    padding: 79px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 27px;
}

.kicker {
    color: #9e9bff;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 12px;
}

h2 {
    font:
        700 clamp(30px, 4vw, 43px) / 1.12 "Space Grotesk",
        sans-serif;
    letter-spacing: -1.5px;
    margin: 0 0 12px;
}

h3 {
    font-family: "Space Grotesk", sans-serif;
}

.section-sub {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    max-width: 650px;
}

.count {
    white-space: nowrap;
    padding: 9px 13px;
    color: #abd9ef;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #111622;
    font-size: 12px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 32px 0 22px;
    flex-wrap: wrap;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 10px 16px;
    color: #aab4c7;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
}

.filter:hover {
    color: white;
    background: #1c2235;
}

.filter[aria-pressed="true"] {
    color: #d3d0ff;
    background: #232743;
    border-color: #6364a0;
}

.search {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 255px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: #111622;
    border-radius: 10px;
    color: #4bbdda;
}

.search input {
    width: 100%;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font-size: 13px;
}

.search input::placeholder {
    color: #8792a7;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.card {
    --tone: #5fd9d3;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 25px;
    border: 1px solid #30384b;
    border-radius: 15px;
    background: linear-gradient(150deg, #191f30, #111622);
    transition:
        transform 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.card:before {
    content: "";
    position: absolute;
    height: 2px;
    left: 0;
    right: 0;
    top: 0;
    background: var(--tone);
    opacity: 0;
    transition: opacity 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #7677ac;
    box-shadow: 0 18px 45px #0006;
}

.card:hover:before {
    opacity: 1;
}

.card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 27px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
    background: color-mix(in srgb, var(--tone) 10%, transparent);
    color: var(--tone);
    display: grid;
    place-items: center;
    font:
        700 19px "Space Grotesk",
        sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.tag {
    border: 1px solid #40465d;
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 10px;
    color: #8cafc6;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.card h3 {
    font-size: 21px;
    letter-spacing: -0.6px;
    margin: 0 0 10px;
}

.card p {
    font-size: 13px;
    line-height: 1.7;
    color: #a5afc2;
    margin: 0 0 25px;
    flex: 1;
}

.card-bottom {
    border-top: 1px solid #30384a;
    padding-top: 17px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #d4e8f4;
    font-weight: 800;
    font-size: 12px;
}

.card-bottom .arrow {
    font-size: 19px;
    color: var(--tone);
}

.card[hidden] {
    display: none;
}

.empty {
    display: none;
    text-align: center;
    padding: 45px;
    border: 1px dashed #414860;
    border-radius: 13px;
    color: #abc2d3;
}

.empty.visible {
    display: block;
}

.band {
    border-top: 1px solid #293143;
    border-bottom: 1px solid #293143;
    background: linear-gradient(110deg, #141a28, #1a2030);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 27px;
}

.feature {
    border: 1px solid #353c50;
    background: #111622;
    border-radius: 15px;
    padding: 26px;
}

.feature .num {
    font: 700 12px "Space Grotesk";
    color: var(--cyan);
    letter-spacing: 2px;
}

.feature h3 {
    font-size: 20px;
    margin: 22px 0 12px;
}

.feature p {
    font-size: 13px;
    line-height: 1.7;
    color: #9eb7cb;
    margin: 0;
}

.feature .hint {
    display: inline-block;
    margin-top: 18px;
    font-size: 11px;
    color: #5fd9d3;
    font-weight: 800;
}

.callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border: 1px solid #585889;
    border-radius: 17px;
    background: radial-gradient(circle at right, #28294c, #161c2b 65%);
    padding: 29px 32px;
}

.callout h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.callout p {
    color: #afcad8;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
    max-width: 700px;
}

.callout code {
    color: #79eff4;
}

.footer {
    border-top: 1px solid #293143;
    padding: 31px 0 36px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #809db2;
}

.footer a:hover {
    color: #fff;
}

.modal-bg {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 20;
    place-items: center;
    padding: 20px;
    background: #020917de;
    backdrop-filter: blur(8px);
}

.modal-bg.open {
    display: grid;
}

.modal {
    position: relative;
    width: min(100%, 480px);
    padding: 34px;
    background: #161c2b;
    border: 1px solid #626a91;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.modal h2 {
    font-size: 29px;
}

.modal p {
    color: #aac2d5;
    font-size: 14px;
    line-height: 1.7;
}

.modal code {
    display: block;
    word-break: break-word;
    background: #090c14;
    border: 1px solid #424968;
    border-radius: 8px;
    padding: 14px;
    margin: 20px 0;
    color: #5fd9d3;
}

.modal .x {
    position: absolute;
    right: 15px;
    top: 12px;
    background: none;
    border: 0;
    color: white;
    font-size: 27px;
}

.modal .done {
    border: 0;
    border-radius: 9px;
    background: #9e9bff;
    color: #062335;
    padding: 11px 19px;
    font-weight: 800;
}

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

    .hero-visual {
        display: none;
    }

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

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

@media (max-width: 650px) {
    .wrap {
        width: calc(100% - 30px);
    }

    .header-row {
        min-height: 70px;
    }

    .brand {
        font-size: 22px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 70px;
        padding: 20px 17px;
        background: #111622;
        border-bottom: 1px solid #30384a;
        flex-direction: column;
        align-items: stretch;
        gap: 17px;
    }

    .nav.open {
        display: flex;
    }

    .hero-grid {
        padding: 70px 0;
    }

    .hero h1 {
        letter-spacing: -2px;
        font-size: clamp(42px, 11vw, 64px);
    }

    .hero p {
        font-size: 15px;
    }

    .section {
        padding: 57px 0;
    }

    .count {
        display: none;
    }

    .toolbar {
        align-items: stretch;
    }

    .search {
        width: 100%;
    }

    .cards,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 235px;
    }

    .callout {
        flex-direction: column;
        align-items: start;
        padding: 23px;
    }

    .callout h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Cybernik: dopracowana paleta grafit / lawenda / turkus */
body {
    background: var(--bg);
    color: var(--fg);
}
.header {
    background: #090c14ed;
    border-bottom-color: var(--stroke);
}
.brand-mark {
    background: #252741;
    border-color: #62649c;
    color: var(--accent);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.brand b {
    color: var(--accent);
}
.nav .nav-cta {
    color: #d5d2ff;
    border-color: #555782;
    background: #22253c;
}
.hero {
    background: radial-gradient(ellipse at 78% 38%, #4b48803b 0%, transparent 51%),
        linear-gradient(155deg, #101420, #090c14 77%);
    border-bottom-color: var(--stroke);
}
.hero:before {
    background-image: linear-gradient(#9e9bff 1px, transparent 1px),
        linear-gradient(90deg, #9e9bff 1px, transparent 1px);
    opacity: 0.085;
}
.eyebrow,
.kicker {
    color: #b9b5ff;
}
.pulse {
    background: var(--accent2);
    box-shadow:
        0 0 0 5px #5fd9d322,
        0 0 16px #5fd9d366;
}
.gradient {
    background: linear-gradient(105deg, #b8b3ff 8%, #5fd9d3 95%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.btn-primary {
    background: var(--accent);
    color: #111425;
    box-shadow: 0 10px 27px #9e9bff27;
}
.btn-primary:hover {
    background: #bbb8ff;
}
.btn-secondary {
    color: #d9dcf0;
    border-color: #4c536c;
    background: #1b2133;
}
.hero-visual {
    background: linear-gradient(145deg, #20243b, #111622 78%);
    border-color: #4a4e72;
    box-shadow:
        0 25px 65px #0006,
        0 0 45px #9e9bff12;
}
.hero-visual:hover {
    border-color: var(--accent);
}
.window-top {
    background: #1b2031;
    border-bottom-color: var(--stroke);
}
.window-top span {
    color: var(--muted);
}
.terminal {
    color: #c2c9db;
}
.terminal strong {
    color: var(--accent2);
}
.terminal em {
    color: #b8b4ff;
}
.terminal .comment {
    color: var(--muted);
}
.terminal .cursor {
    background: var(--accent2);
}
.visual-status {
    background: #141a29;
    border-top-color: var(--stroke);
    color: var(--muted);
}
.visual-status b {
    color: var(--accent2);
}
.filter[aria-pressed="true"] {
    background: #272944;
    border-color: #50538a;
    color: #d5d2ff;
}
.card {
    background: linear-gradient(150deg, #191f2d, #111622);
    border-color: var(--stroke);
}
.card:hover {
    border-color: #636783;
}
.feature {
    background: var(--surface);
    border-color: var(--stroke);
}
.band {
    background: linear-gradient(110deg, #111622, #181e2e);
    border-color: var(--stroke);
}
.callout {
    background: radial-gradient(circle at right, #302d55, #171c2a 70%);
    border-color: #505174;
}
.modal {
    background: var(--surface2);
    border-color: #545779;
}
.modal .done {
    background: var(--accent);
    color: #111425;
}
::selection {
    background: #6462ac;
    color: white;
}

/* Cybernik: gry i baza wiedzy */
html {
    scroll-padding-top: 88px;
}
.card-icon .line-icon {
    display: block;
    width: 28px;
    height: 28px;
}
.game-card .card-icon,
.resource-card .card-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
}
.game-card,
.resource-card {
    min-height: 257px;
}
.resource-cards {
    margin-top: 30px;
}
.resource-card {
    background: linear-gradient(150deg, #1c2232, #121826);
}
.resource-card:hover {
    border-color: var(--tone);
}
.card h3 {
    overflow-wrap: anywhere;
}
.card[hidden] {
    display: none !important;
}
@media (max-width: 650px) {
    .game-card,
    .resource-card {
        min-height: 220px;
    }
}
