/* StudioNCTI.ai - KOMPLETNY ARKUSZ STYLÓW V2.4 */

:root {
    --primary-red: #E30613;
    --primary-red-dark: #b80410;
    --dark-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-red: rgba(227, 6, 19, 0.05);
    --text-light: #ffffff;
    --text-gray: #a1a1aa;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-red: rgba(227, 6, 19, 0.22);
    --accent-glow: rgba(227, 6, 19, 0.18);
    --accent-glow-strong: rgba(227, 6, 19, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        radial-gradient(circle at 20% 12%, rgba(227, 6, 19, 0.10) 0%, transparent 28%),
        radial-gradient(circle at 80% 82%, rgba(227, 6, 19, 0.08) 0%, transparent 28%),
        #050505;
    color: var(--text-light);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

.ai-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, var(--accent-glow-strong) 0%, transparent 30%),
        radial-gradient(circle at 85% 85%, var(--accent-glow) 0%, transparent 32%),
        linear-gradient(180deg, rgba(227,6,19,0.03) 0%, rgba(0,0,0,0) 28%);
    z-index: -1;
}

/* NAV */
nav {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(5, 5, 5, 0.84);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(227, 6, 19, 0.14);
    box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 35px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links > a,
.nav-dropdown-toggle {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 1.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    transition: 0.3s;
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
    line-height: 1;
}

.nav-links > a:hover,
.nav-dropdown-toggle:hover {
    color: var(--primary-red);
}

.nav-cta {
    margin-left: 1rem;
    padding: 9px 18px;
}

/* DROPDOWN */
.nav-dropdown {
    position: relative;
    margin-left: 1.4rem;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    padding: 0;
}

.nav-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-arrow {
    transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    min-width: 230px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(227, 6, 19, 0.16);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}

.nav-dropdown-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 12px;
    border-radius: 10px;
    transition: 0.25s ease;
}

.nav-dropdown-menu a:hover {
    color: #fff;
    background: rgba(227, 6, 19, 0.10);
}

@media (min-width: 993px) {
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* MOBILE TOGGLE */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    z-index: 1201;
    position: relative;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* TYPO */
header {
    padding: 160px 8% 60px;
    text-align: center;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 160px 8% 100px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(227, 6, 19, 0.14) 0%, transparent 35%);
    pointer-events: none;
}

h1 {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -1.5px;
    line-height: 1.08;
}

h1 span {
    color: var(--primary-red);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.15;
}

h3 {
    line-height: 1.2;
}

p {
    color: var(--text-gray);
}

/* UI */
.badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(227, 6, 19, 0.42);
    background: rgba(227, 6, 19, 0.14);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(227, 6, 19, 0.08);
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(180deg, #ff1a28 0%, #e30613 100%);
    color: #fff;
    border: 1px solid var(--primary-red);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 34px rgba(227, 6, 19, 0.28);
}

.btn-outline {
    border: 1px solid rgba(227, 6, 19, 0.55);
    color: #fff;
    background: rgba(227, 6, 19, 0.04);
}

.btn-outline:hover {
    background: rgba(227, 6, 19, 0.10);
}

.hero p {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    color: #ececec;
}

.hero-btns {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* SEKCJE */
.section,
.proof-section,
.segment-section,
.trust-section {
    padding: 90px 8%;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 18px;
}

.section-subtitle {
    color: var(--text-gray);
    max-width: 760px;
    margin: 0 auto 50px;
    font-size: 1rem;
}

/* GRID */
.services-grid,
.proof-grid,
.segment-grid {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.proof-card,
.segment-card,
.price-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-soft);
    border-top: 1px solid rgba(227, 6, 19, 0.24);
    border-radius: 24px;
    padding: 32px;
    transition: 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.card:hover,
.proof-card:hover,
.segment-card:hover,
.price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(227, 6, 19, 0.26);
    background: linear-gradient(180deg, rgba(227,6,19,0.05) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 16px 38px rgba(0,0,0,0.20);
}

.card h3,
.proof-card h3,
.segment-card h4 {
    margin-bottom: 14px;
}

.card-text,
.proof-card p,
.segment-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.card-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
}

.card-link:hover {
    color: #ff3b47;
}

/* TRUST */
.trust-section {
    background:
        linear-gradient(180deg, rgba(227, 6, 19, 0.04) 0%, rgba(255,255,255,0.01) 100%);
}

.trust-container {
    max-width: 900px;
    margin: 0 auto;
}

.trust-container p {
    max-width: 760px;
    margin: 0 auto;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.trust-item {
    background: linear-gradient(180deg, rgba(227,6,19,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(227, 6, 19, 0.18);
    border-radius: 20px;
    padding: 28px 20px;
}

.trust-item strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 10px;
}

.trust-item span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ABONAMENTY */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.price-card {
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border-color: rgba(227, 6, 19, 0.32);
    background: linear-gradient(180deg, rgba(227, 6, 19, 0.08) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: 0 18px 44px rgba(227, 6, 19, 0.08);
}

/* FOOTER */
footer {
    background: #000;
    padding: 80px 8% 40px;
    border-top: 1px solid rgba(227, 6, 19, 0.12);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col ul {
    list-style: none;
}

.footer-col h4 {
    margin-bottom: 14px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-gray) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
}

.footer-col ul li a:hover {
    color: #fff !important;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .services-grid,
    .proof-grid,
    .segment-grid,
    .pricing-grid,
    .trust-stats,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    nav {
        padding: 14px 5%;
    }

    .logo img {
        height: 32px;
        max-width: 170px;
        object-fit: contain;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 360px;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.35s ease;
        z-index: 1200;
        padding: 40px 20px;
        border-left: 1px solid rgba(227,6,19,0.18);
        box-shadow: -20px 0 60px rgba(0,0,0,0.28);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links > a,
    .nav-dropdown {
        margin: 0;
        width: 100%;
        max-width: 280px;
    }

    .nav-links > a,
    .nav-dropdown-toggle {
        margin: 0;
        width: 100%;
        justify-content: space-between;
        text-align: left;
        font-size: 1.08rem;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: unset;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 8px 0;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown-menu a {
        font-size: 0.98rem;
        padding: 10px 0 10px 16px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .nav-dropdown-menu a:hover {
        background: transparent;
        color: #fff;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        padding: 12px 24px;
    }

    .hero {
        min-height: auto;
        padding: 135px 6% 70px;
    }

    header {
        padding: 135px 6% 50px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 340px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .section,
    .proof-section,
    .segment-section,
    .trust-section {
        padding: 70px 6%;
    }

    .card,
    .proof-card,
    .segment-card,
    .price-card,
    .trust-item {
        padding: 26px;
    }
}

@media (max-width: 576px) {
    h1 {
        letter-spacing: -1px;
    }

    .logo img {
        height: 28px;
        max-width: 145px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .section-subtitle,
    .hero p,
    .card-text,
    .proof-card p,
    .segment-card p,
    p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .nav-links {
        width: 86%;
    }

    footer {
        padding: 60px 6% 30px;
    }
}