/* ==========================================================
   StapeTech — Dark site layer
   Public pages only (<body class="theme-dark">). Sections are
   transparent so the particle stage glows through behind them.
   ========================================================== */

.theme-dark {
    --g-dark: transparent;
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(66, 139, 202, 0.16), transparent 70%),
        radial-gradient(50% 40% at 0% 60%, rgba(34, 196, 239, 0.06), transparent 70%),
        var(--page-bg);
    background-attachment: fixed;
}

.theme-dark main,
.theme-dark .site-footer {
    position: relative;
    z-index: 1;
}

/* ---------- Header ---------- */
.theme-dark .site-header.is-scrolled {
    background: rgba(7, 13, 19, 0.72);
    color: var(--c-white);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-dark .site-header.is-scrolled .brand__name span {
    color: var(--c-cyan);
}

.theme-dark .site-header.is-scrolled .nav__link:hover,
.theme-dark .site-header.is-scrolled .nav__link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--c-white);
}

.theme-dark .site-header.is-scrolled .nav-toggle {
    background: rgba(255, 255, 255, 0.08);
}

.theme-dark .mega {
    background: rgba(10, 18, 26, 0.97);
    border-color: var(--c-border);
}

.theme-dark .mega__link:hover {
    background: var(--surface-alt);
}

/* ---------- Sections ---------- */
.theme-dark .section--tint {
    background: linear-gradient(180deg, transparent, rgba(66, 139, 202, 0.05) 50%, transparent);
}

.theme-dark .section--dark {
    border-block: 1px solid var(--c-border);
}

.theme-dark .page-hero,
.theme-dark .article-hero {
    border-bottom: 1px solid var(--c-border);
}

/* ---------- Buttons & forms ---------- */
.theme-dark .btn--outline {
    --btn-fg: var(--c-white);
    --btn-border: var(--c-border-strong);
}

.theme-dark .btn--outline:hover {
    --btn-fg: var(--c-cyan);
    --btn-border: var(--c-cyan);
}

.theme-dark .btn--ghost {
    --btn-fg: var(--c-muted);
}

.theme-dark .field input:not([type="checkbox"], [type="radio"]),
.theme-dark .field select,
.theme-dark .field textarea {
    color: var(--c-white);
}

.theme-dark .field input::placeholder,
.theme-dark .field textarea::placeholder {
    color: var(--c-subtle);
}

.theme-dark .field select option {
    background: #0d1822;
    color: var(--c-white);
}

.theme-dark .field input:focus,
.theme-dark .field select:focus,
.theme-dark .field textarea:focus {
    background: rgba(255, 255, 255, 0.07);
}

.theme-dark .form-card {
    background: rgba(10, 18, 26, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.theme-dark .filter-bar__item.is-active {
    border-color: var(--c-brand);
    background: var(--c-brand);
}

/* ---------- Panels ---------- */
.theme-dark .aside-card--accent {
    background: linear-gradient(135deg, rgba(66, 139, 202, 0.28), rgba(34, 196, 239, 0.08));
    border: 1px solid rgba(66, 139, 202, 0.35);
}

.theme-dark .project-card,
.theme-dark .post-card,
.theme-dark .testimonial,
.theme-dark .team-card,
.theme-dark .faq,
.theme-dark .aside-card,
.theme-dark .value,
.theme-dark .feature {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.theme-dark .project-card:hover,
.theme-dark .post-card:hover {
    border-color: rgba(66, 139, 202, 0.45);
    box-shadow: 0 30px 60px -30px rgba(34, 196, 239, 0.35);
}

.theme-dark .team-card__photo {
    box-shadow: 0 0 0 6px rgba(66, 139, 202, 0.18);
}

/* ---------- CTA, footer, overlays ---------- */
.theme-dark .cta-band {
    background: linear-gradient(120deg, rgba(50, 115, 168, 0.35), rgba(34, 196, 239, 0.12));
    border-block: 1px solid rgba(66, 139, 202, 0.3);
}

.theme-dark .site-footer {
    background: rgba(4, 8, 12, 0.88);
    border-top: 1px solid var(--c-border);
}

.theme-dark .cookie-banner,
.theme-dark .cookie-dialog {
    background: #0d1822;
    border-color: var(--c-border);
    color: var(--c-text);
}

.theme-dark .cookie-dialog h2,
.theme-dark .cookie-option strong {
    color: var(--c-white);
}

.theme-dark .share a {
    color: var(--c-white);
}
