/* ==========================================================================
   NYZK — Premium theme (override layer)
   Loaded AFTER style.css + page styles. Pure overrides: no HTML changes
   outside class additions. One accent, subtle gradients, refined glow,
   gentle motion. Stripe/Linear-grade restraint.
   ========================================================================== */

:root {
    --accent: #4d7cff;
    --accent-strong: #6d97ff;
    --accent-soft: rgba(77, 124, 255, 0.10);
    --accent-border: rgba(77, 124, 255, 0.35);
    --bg-deep: #05070d;
    --glass: rgba(11, 15, 26, 0.72);
    --glow-soft: 0 0 24px rgba(77, 124, 255, 0.18);
}

/* ---------- Backdrop: near-black + faint top aurora ---------- */

body {
    background: var(--bg-deep);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(720px 340px at 50% -80px, rgba(77, 124, 255, 0.13), transparent 70%),
        radial-gradient(520px 300px at 12% 20%, rgba(77, 124, 255, 0.05), transparent 70%),
        radial-gradient(520px 300px at 88% 30%, rgba(139, 92, 246, 0.05), transparent 70%);
}

.topbar,
.hero,
.container,
.footer {
    position: relative;
    z-index: 1;
}

/* ---------- Topbar ---------- */

.topbar {
    background: rgba(5, 7, 13, 0.72);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-mark svg {
    color: var(--accent);
}

.brand-name {
    background: linear-gradient(90deg, #fff, var(--accent-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Hero ---------- */

.hero {
    height: 300px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-image {
    filter: grayscale(45%) brightness(0.42) contrast(1.05);
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.35) 0%, rgba(5, 7, 13, 0.78) 62%, var(--bg-deep) 100%);
}

.hero-eyebrow {
    color: var(--accent-strong);
}

.hero-eyebrow svg {
    color: var(--accent);
}

.hero-title {
    background: linear-gradient(94deg, #ffffff 30%, var(--accent-strong) 75%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Home hero needs room for badge + title + sub + CTAs */
.hero-home {
    height: auto;
    min-height: 520px;
}

.hero-home .hero-overlay {
    align-items: center;
}

.hero-home .hero-content {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* ---------- Landing-specific blocks (home.ejs) ---------- */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
}

.hero-sub {
    margin: 14px 0 26px;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
}

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

/* Stats strip */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 48px;
}

.stat-cell {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: center;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.stat-cell:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
}

.stat-num {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.stat-num span {
    color: var(--accent-strong);
}

.stat-label {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--text-tertiary);
}

/* Product showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.showcase-card {
    position: relative;
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 30px 28px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
    box-shadow: var(--glow-soft), 0 16px 48px rgba(0, 0, 0, 0.5);
}

.showcase-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.showcase-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 10px;
}

.showcase-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.showcase-card > p {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.showcase-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.showcase-list svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

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

/* Pricing teaser band */
.teaser-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(77, 124, 255, 0.12), rgba(77, 124, 255, 0.03));
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    padding: 28px 30px;
}

.teaser-band h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.teaser-band p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item:hover {
    border-color: var(--accent-border);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--accent-strong);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item .faq-body {
    padding: 0 20px 18px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.faq-body a {
    color: var(--accent-strong);
    text-decoration: none;
}

.faq-body a:hover {
    text-decoration: underline;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.21, 1.02, 0.73, 1), transform 0.7s cubic-bezier(0.21, 1.02, 0.73, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------- Shared components, refined ---------- */

.welcome-content,
.payment-method-card,
.pricing-card,
.contact-content,
.features-intro,
.card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pricing-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
    box-shadow: var(--glow-soft);
}

.pricing-card.featured {
    border-color: var(--accent-border);
    box-shadow: var(--glow-soft);
}

.payment-method-card {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.payment-method-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-border);
}

.price {
    color: #fff;
}

.popular-badge,
.best-badge {
    color: var(--accent-strong);
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.savings {
    color: #4ade80;
}

/* Buttons: single accent */
.btn-primary,
.pricing-btn.featured-btn,
.contact-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(77, 124, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover,
.pricing-btn.featured-btn:hover,
.contact-btn:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(77, 124, 255, 0.5);
}

.pricing-btn {
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.pricing-btn:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.features-intro-btn,
.contact-link,
.link {
    color: var(--accent-strong);
}

.section-title svg {
    color: var(--accent);
}

/* Payment modal */
.payment-modal {
    background: rgba(3, 5, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.payment-modal-content {
    background: rgba(11, 15, 26, 0.96);
    border: 1px solid var(--accent-border);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), var(--glow-soft);
}

.payment-option-btn:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.payment-option-btn svg {
    color: var(--accent-strong);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

::selection {
    background: rgba(77, 124, 255, 0.4);
    color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero {
        height: 260px;
    }

    .teaser-band {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
