:root {
    --background: #0b101b;
    --surface: #111c2d;
    --blue: #38bdf8;
    --white: #ffffff;
    --gray: #94a3b8;
    --border: rgba(56, 189, 248, 0.18);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--background);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
    animation: pageAppear 0.7s ease;
}
a {
    text-decoration: none;
    color: inherit;
}
button {
    font-family: inherit;
}
img {
    max-width: 100%;
}
::selection {
    background: var(--blue);
    color: var(--background);
}
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 5px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    background: rgba(11, 16, 27, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}
.logo span {
    color: var(--blue);
}
.logo img {
    width: 75px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.4s ease,
                filter 0.4s ease;
}
.logo:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px #38bdf870);
}
.logo-icon {
    margin-right: 8px;
    font-weight: 700;
}
.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.menu a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.3s ease;
}
.menu a:hover,
.menu a.active {
    color: var(--blue);
}
.menu a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 5px;
    box-shadow: 0 0 10px #38bdf850;
    transition: width 0.3s ease;
}
.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}
@media (min-width: 1101px) {
    .header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }
    .logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }
    .menu {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        white-space: nowrap;
    }
}
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr)
                           minmax(0, 1fr);
    align-items: center;
    gap: 60px;
    min-height: 75vh;
    padding: 60px 7%;
    background: radial-gradient(
        ellipse at 85% 45%,
        #12334b 0%,
        #0b101b 65%
    );
}
.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -250px;
    right: -150px;
    background: radial-gradient(
        circle,
        rgba(56, 189, 248, 0.12),
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: backgroundGlow 9s ease-in-out infinite;
}
.hero::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    bottom: -250px;
    left: -100px;
    background: radial-gradient(
        circle,
        rgba(14, 165, 233, 0.08),
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}
.hero-content {
    width: 100%;
    min-width: 0;
    max-width: 650px;
    animation: slideIn 0.9s ease;
}
.subtitle {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(38px, 4vw, 65px);
    line-height: 1.15;
    letter-spacing: -2px;
    margin: 25px 0;
}
.hero h1 span {
    color: var(--blue);
    display: block;
    text-shadow: 0 0 35px rgba(56, 189, 248, 0.15);
}
.description,
.hero-description {
    color: var(--gray);
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 30px;
}
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}
.btn-primary {
    background: var(--blue);
    color: var(--background);
    border: 1px solid var(--blue);
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.15);
}
.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left 0.6s ease;
}
.btn-primary:hover::before {
    left: 150%;
}
.btn-secondary {
    border: 1px solid var(--blue);
    color: var(--blue);
    background: transparent;
}
.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}
.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.97);
}
.hero-image,
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 650px;
    margin: 0 auto;
}
.hero-graphic img,
img.hero-graphic {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.18);
    animation: floating 6s ease-in-out infinite;
    transition: box-shadow 0.4s ease,
                scale 0.4s ease;
}
.hero-graphic img:hover,
img.hero-graphic:hover {
    scale: 1.025;
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.35);
}
.code-symbol {
    display: none;
}
.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    padding: 35px 7% 60px;
    background: var(--background);
}
.feature,
.feature-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}
.feature-card::before,
.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--blue),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}
.feature:hover,
.feature-card:hover {
    transform: translateY(-7px);
    border-color: var(--blue);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}
.feature:hover::before,
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    color: var(--blue);
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.20);
    border-radius: 16px;
    transition: background 0.35s ease,
                color 0.35s ease,
                transform 0.35s ease,
                box-shadow 0.35s ease;
}
.feature-icon svg {
    width: 34px;
    height: 34px;
}
.feature-card:hover .feature-icon {
    background: var(--blue);
    color: var(--background);
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}
.feature h2,
.feature-card h3 {
    font-size: 23px;
    color: var(--white);
    margin-bottom: 12px;
}
.feature p,
.feature-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}
footer {
    text-align: center;
    padding: 25px 20px;
    color: var(--gray);
    font-size: 13px;
    border-top: 1px solid var(--border);
    background: var(--background);
}
footer a {
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--blue);
}
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        #0284c7,
        #38bdf8,
        #7dd3fc
    );
    box-shadow: 0 0 12px var(--blue);
    z-index: 9999;
    pointer-events: none;
}
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: var(--background);
    border: none;
    border-radius: 12px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s ease;
    box-shadow: 0 0 20px #38bdf840;
    z-index: 999;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background: #7dd3fc;
    transform: translateY(-5px);
    box-shadow: 0 0 30px #38bdf860;
}
.reveal {
    opacity: 0;
    translate: 0 25px;
    transition:
        opacity 0.7s ease,
        translate 0.7s ease,
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}
.reveal.reveal-visible {
    opacity: 1;
    translate: 0 0;
}
.menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    padding: 9px;
    background: transparent;
    border: 1px solid #38bdf850;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.menu-toggle:hover {
    background: rgba(56, 189, 248, 0.1);
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--blue);
    border-radius: 5px;
    transition: transform 0.3s ease,
                opacity 0.3s ease;
}
.menu-toggle.menu-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.menu-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.menu-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes pageAppear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes backgroundGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-60px, 40px) scale(1.15);
    }
}
@keyframes menuAppear {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1100px) {
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        flex-shrink: 0;
    }
    .header .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 15px;
        background: #0b101b;
        border-bottom: 1px solid #38bdf850;
        box-shadow: 0 15px 30px #00000050;
    }
    .header .menu.menu-open {
        display: flex;
        animation: menuAppear 0.3s ease;
    }
    .header .menu a {
        display: block;
        padding: 14px;
        text-align: center;
        border-radius: 8px;
    }
    .header .menu a::after {
        display: none;
    }
    .header .menu a:hover,
    .header .menu a.active {
        background: #38bdf815;
        color: var(--blue);
    }
}
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
        min-height: auto;
        padding: 45px 6%;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-description,
    .description {
        margin-left: auto;
        margin-right: auto;
    }
    .buttons {
        justify-content: center;
    }
    .hero-graphic {
        max-width: 550px;
    }
    .features {
        gap: 15px;
        padding: 30px 5% 45px;
    }
    .feature-card {
        padding: 25px 15px;
    }
}
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        padding: 25px 6% 40px;
    }
    .feature-card {
        padding: 25px;
    }
}
@media (max-width: 600px) {
    .header {
        padding: 12px 15px;
    }
    .logo {
        font-size: 23px;
        gap: 8px;
    }
    .logo img {
        width: 55px;
        height: 45px;
    }
    .hero {
        padding: 35px 20px;
        gap: 25px;
    }
    .hero h1 {
        font-size: clamp(30px, 8vw, 38px);
        letter-spacing: -1px;
        margin: 18px 0;
    }
    .subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .hero-description,
    .description {
        font-size: 16px;
    }
    .hero-graphic img {
        border-radius: 15px;
    }
    .buttons a {
        width: 100%;
        text-align: center;
    }
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    #back-to-top {
        width: 42px;
        height: 42px;
        right: 15px;
        bottom: 15px;
        font-size: 23px;
    }
    footer {
        font-size: 12px;
        padding: 20px 15px;
    }
}
@media (max-width: 350px) {
    .logo {
        font-size: 20px;
    }
    .logo img {
        width: 42px;
    }
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        translate: none;
    }
    .feature-card:hover,
    .feature:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    .hero-graphic img:hover {
        scale: 1;
    }
}
footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
footer .footer-links a {
    color: var(--blue);
    font-size: 12px;
    transition: color 0.3s ease;
}
footer .footer-links a:hover,
footer .footer-links a[aria-current="page"] {
    color: #7dd3fc;
    text-decoration: underline;
}
footer .footer-links span {
    color: #64748b;
    font-size: 12px;
}
@media (max-width: 600px) {
    footer .footer-links {
        gap: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    footer .footer-links a {
        transition: none;
    }
}
.feature-card h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
/* POPRAWA KONTRASTU STOPKI */

footer .footer-links span {
    color: #94a3b8;
    opacity: 1;
}