/* Global */
:root {
    --bg-1: #ffffff;
    --bg-2: #f0f2f5;
    --glass: rgba(255, 255, 255, 0.6);
    --border: rgba(0, 0, 0, 0.08);
    /* Darker border for light bg */
    --primary: #0066cc;
    /* Darker blue */
    --accent: #6b5ce7;
    --hot: #ff4794;
    --text: #1a1f35;
    /* Dark text */
    --muted: #64748b;
    /* Darker muted text */
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

#bg-canvas {
    display: none;
}

/* Ensure old canvas is hidden if script adds it back */

/* New Background */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 255, 0.1) 0%, rgba(0, 0, 0, 0) 40%),
        /* niebieski */
        radial-gradient(ellipse at center, rgba(255, 97, 29, 0.1) 0%, rgba(0, 0, 0, 0) 40%),
        /*czerwony */
        radial-gradient(ellipse at center, rgba(39, 244, 148, 0.1) 0%, rgba(0, 0, 0, 0) 30%),
        /*zielony */
        #F5F9FB;
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat;
    background-size:
        900px 900px,
        900px 900px,
        900px 900px;
    background-attachment: fixed;
    animation: bganimation 20s infinite;
}

@keyframes bganimation {
    0% {
        background-position:
            -50% -50%,
            0% -100%,
            100% 100%,
            50% 100%;
    }

    50% {
        background-position:
            100% 0%,
            50% 80%,
            50% 0%,
            0% 0%;
    }

    100% {
        background-position:
            0% 100%,
            -100% 0%,
            0% 50%,
            150% 50%;
    }
}

/* Scrollbar hiding globally */
html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

body {
    margin: 0;
    font-family: 'Noto Sans SC', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
    color: var(--text);
    background: transparent;
    /* Rely on .bg */
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Container */
.container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(1.1) blur(10px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .2px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-text {
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .25);
}

.btn-small {
    padding: 8px 12px;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    border: none;
}

.btn-ghost {
    background: rgba(0, 0, 0, .05);
}

.btn-copy {
    background: rgba(0, 0, 0, .05);
}

/* Hero */
.hero {
    position: relative;
    padding: 84px 0 56px;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px 300px at 30% 20%, rgba(141, 125, 255, .3), transparent 60%), radial-gradient(800px 380px at 70% 10%, rgba(109, 242, 255, .25), transparent 60%);
    animation: glow 12s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        filter: hue-rotate(0deg) saturate(1);
    }

    50% {
        filter: hue-rotate(20deg) saturate(1.2);
    }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: center;
    position: relative;
}

.glass {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(12px) saturate(1.15);
}

.hero-content {
    padding: 36px;
}

.hero h1 {
    font-size: clamp(28px, 6vw, 44px);
    line-height: 1.15;
    margin: 0 0 14px;
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--hot));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub {
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 22px;
}

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

.credibility {
    margin-top: 18px;
}

.badge {
    display: inline-block;
    font-size: 13px;
    color: #a9b3c8;
    border: 1px dashed var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    text-decoration: none;
    transition: .25s ease;
}

.badge-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    cursor: pointer;
}

.hero-art {
    position: relative;
    padding: 18px;
}

.hero-art img,
.hero-art video {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--border);
    transform: translateZ(0);
    transition: transform .6s ease;
}

.hero-art .glow {
    position: absolute;
    inset: 10% 5%;
    border-radius: 18px;
    pointer-events: none;
    background: radial-gradient(260px 180px at 70% 20%, rgba(109, 242, 255, .14), transparent 60%), radial-gradient(200px 160px at 20% 70%, rgba(255, 109, 182, .12), transparent 60%);
    filter: blur(12px);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 26px;
    margin: 0 0 12px;
}

.section-sub {
    color: var(--muted);
    margin-bottom: 28px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.feature-card {
    padding: 18px;
    transition: .25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(2, 6, 14, .35);
}

.feature-card .icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, .04);
    color: var(--primary);
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.feature-card h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step {
    padding: 20px;
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 16px;
    align-items: center;
}

.step-index {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border: none;
}

.step h4 {
    margin: 0 0 6px;
}

.step p {
    margin: 0;
    color: var(--muted);
}

.tip {
    margin-top: 18px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--muted);
}

/* CTA */
.cta-section {
    padding: 52px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

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

/* Demo */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.demo-grid>div {
    text-align: center;
}

.demo-grid h4 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 16px;
    opacity: 0.9;
}

.demo-grid img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.demo-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .4);
    padding: 22px 0 28px;
}

.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.legal {
    color: var(--muted);
    font-size: 12px;
    margin-top: 18px;
}

.footnote {
    color: var(--muted);
    margin: 10px 0 0;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

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

    .steps {
        grid-template-columns: 1fr;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .header-inner {
        padding: 10px 0;
    }
}