/*
Theme Name: NertzDigital
Theme URI: https://www.nertzdigital.com
Author: NertzDigital
Author URI: https://www.nertzdigital.com
Description: A modern WordPress theme for NertzDigital marketing company with digital marketing and AI aesthetic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nertzdigital
*/


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-duration: 0.6s;
}

/* Light Mode Variables */
[data-theme="light"] {
    --dark-bg: #ffffff;
    --dark-surface: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --gradient-2: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .feature-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Light Mode Heading Overrides */
[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .section-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .cta-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .logo {
    background: linear-gradient(135deg, #0f172a 0%, #0f172a 40%, #475569 45%, #64748b 50%, #6366f1 55%, #475569 60%, #0f172a 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .logo::after {
    background: linear-gradient(135deg, #0f172a 0%, #0f172a 40%, #475569 45%, #64748b 50%, #6366f1 55%, #475569 60%, #0f172a 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .footer-logo {
    /* `background` shorthand resets background-clip; use image + explicit clip for gradient text. */
    background-image: linear-gradient(135deg, #0f172a 0%, #0f172a 40%, #475569 45%, #64748b 50%, #6366f1 55%, #475569 60%, #0f172a 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo glow uses opacity-only animation (GPU-friendly). Avoid animating background-position on clipped text (non-composited). */
@keyframes logoGlow {
    0%, 100% {
        opacity: 0.38;
    }
    50% {
        opacity: 0.58;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Motion design: scroll reveals + CTA stagger (js/theme.js adds html.motion-ok, IntersectionObserver adds .animate) */
html.motion-ok .cta-section:not(.animate) .cta-content > * {
    opacity: 0;
    transform: translateY(22px);
}

.cta-section.animate .cta-content > * {
    opacity: 1;
    transform: none;
    transition: opacity var(--motion-duration) var(--motion-ease-out), transform var(--motion-duration) var(--motion-ease-out);
}

.cta-section.animate .cta-content > *:nth-child(1) { transition-delay: 0.04s; }
.cta-section.animate .cta-content > *:nth-child(2) { transition-delay: 0.11s; }
.cta-section.animate .cta-content > *:nth-child(3) { transition-delay: 0.18s; }
.cta-section.animate .cta-content > *:nth-child(4) { transition-delay: 0.25s; }
.cta-section.animate .cta-content > *:nth-child(5) { transition-delay: 0.32s; }

html.motion-ok .motion-reveal:not(.animate) {
    opacity: 0;
    transform: translateY(18px);
}

/* Main post/page body must never be hidden until scroll (IntersectionObserver can miss below-the-fold). */
html.motion-ok .entry-content.motion-reveal:not(.animate),
html.motion-ok .entry-content .motion-reveal:not(.animate) {
    opacity: 1;
    transform: none;
}

.motion-reveal.animate {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s var(--motion-ease-out), transform 0.55s var(--motion-ease-out);
}

html.motion-ok .footer-motion:not(.animate) {
    opacity: 0;
    transform: translateY(14px);
}

.footer-motion.animate {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s var(--motion-ease-out), transform 0.55s var(--motion-ease-out);
}

html.motion-ok .resource-card:not(.animate) {
    opacity: 0;
    transform: translateY(18px);
}

html.motion-ok .resource-card.animate {
    opacity: 1;
    transform: translateY(0);
}

html.motion-ok .resource-card.animate:hover {
    transform: translateY(-3px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Skeleton Loading States */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 300px;
    border-radius: 20px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 60%;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: auto;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::before,
.tooltip::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::before {
    content: attr(data-tooltip);
    background: var(--dark-surface);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    bottom: calc(100% + 10px);
    left: 0;
    transform: translateX(-10px) translateY(-10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
    content: '';
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: var(--dark-surface);
    bottom: calc(100% + 4px);
    left: 20px;
    transform: translateX(-10px) translateY(-10px);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    transform: translateX(10px) translateY(-20px);
}

/* Sticky CTA Mobile */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    z-index: 998;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.sticky-cta.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.sticky-cta .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Breadcrumb Navigation */
.breadcrumb {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.breadcrumb.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.breadcrumb-item:hover {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.6;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

[data-theme="light"] .breadcrumb {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10003;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

body.search-overlay-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

.search-container {
    max-width: 600px;
    width: 90%;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    background: var(--dark-surface);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.search-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.search-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--text-primary);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-optional {
    margin-bottom: 1rem;
}

.optional-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
}

.form-input.error + .form-error,
.form-textarea.error + .form-error {
    display: block;
}

.form-success {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

/* WPForms (theme contact sections) */
.nertzdigital-wpforms-wrap {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}

.cta-section .nertzdigital-wpforms-wrap .wpforms-container {
    margin: 0;
}

.cta-section .nertzdigital-wpforms-wrap .wpforms-field-container {
    margin-bottom: 0;
}

.nertzdigital-wpforms-placeholder {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.nertzdigital-wpforms-placeholder a {
    color: var(--accent-color);
}

[data-theme="light"] .nertzdigital-wpforms-placeholder {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

/*
 * WPForms — light mode
 * Overrides plugin / form-builder styles that assume a dark canvas (black fields, white text)
 * so fields and labels stay readable when the theme is in light mode.
 *
 * WPForms "Modern" embeds inline <style> with #wpforms-{id}.{block-uuid} { --wpforms-* } which
 * forces white labels on a light sidebar. Lower-specificity rules cannot beat that ID+class rule,
 * so we use !important on variables — that overrides the plugin’s non-!important inline variables.
 */
html[data-theme="light"] .wpforms-container {
    --wpforms-label-color: #0f172a !important;
    --wpforms-label-sublabel-color: #475569 !important;
    --wpforms-field-background-color: #ffffff !important;
    --wpforms-field-text-color: #0f172a !important;
    --wpforms-field-border-color: rgba(15, 23, 42, 0.2) !important;
    --wpforms-field-border-color-spare: rgba(15, 23, 42, 0.2) !important;
    --wpforms-field-menu-color: #0f172a !important;
}

[data-theme="light"] .wpforms-container .wpforms-head-container .wpforms-title,
[data-theme="light"] .wpforms-container .wpforms-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

[data-theme="light"] .wpforms-container,
[data-theme="light"] .wpforms-container .wpforms-field {
    color: #0f172a;
}

[data-theme="light"] .wpforms-container .wpforms-field-label,
[data-theme="light"] .wpforms-container legend.wpforms-field-label,
[data-theme="light"] .wpforms-container .wpforms-field-sublabel,
[data-theme="light"] .wpforms-container .wpforms-field-label-inline {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

[data-theme="light"] .wpforms-container .wpforms-field-description,
[data-theme="light"] .wpforms-container .wpforms-disclaimer,
[data-theme="light"] .wpforms-container .wpforms-element-container {
    color: #475569 !important;
}

[data-theme="light"] .wpforms-container input[type="text"],
[data-theme="light"] .wpforms-container input[type="email"],
[data-theme="light"] .wpforms-container input[type="tel"],
[data-theme="light"] .wpforms-container input[type="url"],
[data-theme="light"] .wpforms-container input[type="number"],
[data-theme="light"] .wpforms-container input[type="date"],
[data-theme="light"] .wpforms-container input[type="time"],
[data-theme="light"] .wpforms-container select,
[data-theme="light"] .wpforms-container textarea {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
    -webkit-text-fill-color: #0f172a !important;
}

[data-theme="light"] .wpforms-container input:focus,
[data-theme="light"] .wpforms-container select:focus,
[data-theme="light"] .wpforms-container textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

[data-theme="light"] .wpforms-container input::placeholder,
[data-theme="light"] .wpforms-container textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Choices.js (enhanced selects) */
[data-theme="light"] .wpforms-container .choices__inner {
    background-color: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
    color: #0f172a !important;
}

[data-theme="light"] .wpforms-container .choices__list--dropdown,
[data-theme="light"] .wpforms-container .choices__list[aria-expanded] {
    background-color: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

[data-theme="light"] .wpforms-container .choices__item--selectable {
    color: #0f172a !important;
}

[data-theme="light"] .wpforms-container .choices__item--selectable.is-highlighted {
    background-color: #f1f5f9 !important;
}

/* Choices.js — multi-select (tags inside .choices__inner): fix black-on-black chips & search */
[data-theme="light"] .wpforms-container .choices__list--multiple {
    background-color: transparent !important;
}

[data-theme="light"] .wpforms-container .choices__list--multiple .choices__item {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .wpforms-container .choices__list--multiple .choices__item.is-highlighted {
    background-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .wpforms-container .choices__list--multiple .choices__button {
    background-color: rgba(15, 23, 42, 0.08) !important;
    border-left-color: rgba(15, 23, 42, 0.2) !important;
    color: #0f172a !important;
}

[data-theme="light"] .wpforms-container .choices__input--cloned,
[data-theme="light"] .wpforms-container input.choices__input--cloned {
    background-color: #ffffff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
}

[data-theme="light"] .wpforms-container .choices__list--dropdown .choices__item--selectable {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] .wpforms-container .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Button Click Effect */
.btn:active {
    transform: scale(0.98);
}

.btn-primary:active {
    transform: scale(0.98) translateY(0);
}


/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    transition: background 0.35s var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 0.35s var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1)), border-color 0.35s ease;
    transform: translateY(0);
    animation: slideDown 0.6s ease-out;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    z-index: 10001;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.12s linear;
    pointer-events: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: currentColor;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.logo {
    font-family: 'Marvel', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, #e2e8f0 45%, #a8b4c8 50%, #8b8dd4 55%, #e2e8f0 60%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-decoration: none;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, #e2e8f0 45%, #a8b4c8 50%, #8b8dd4 55%, #e2e8f0 60%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.45;
    z-index: -1;
    animation: logoGlow 6s ease-in-out infinite;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/*
 * Defeat stale/minified CSS (e.g. WP Rocket) that still applies @keyframes gradientShift
 * (background-position; non-composited). Logo keeps only ::after opacity pulse (logoGlow).
 * Primary CTAs use a static gradient — no infinite background animation.
 */
a.logo,
header .logo,
.btn.btn-primary,
a.btn.btn-primary,
.sticky-cta a.btn.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link {
    animation: none !important;
    animation-name: none !important;
    will-change: auto !important;
}

.btn.btn-primary,
a.btn.btn-primary,
.sticky-cta a.btn.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link {
    background-size: 100% 100% !important;
}

.btn.btn-primary:hover,
a.btn.btn-primary:hover,
.sticky-cta a.btn.btn-primary:hover,
.wp-block-button.btn-primary .wp-block-button__link:hover {
    animation: none !important;
    animation-name: none !important;
}

a.logo::after,
header .logo::after {
    animation-name: logoGlow !important;
    animation-duration: 6s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    will-change: opacity !important;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--text-primary);
    outline: none;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.35s var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
    width: 100%;
}

.main-navigation a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 80px;
    overflow: hidden;
}

/* Canvas circuit layer (injected by js/hero-circuit.js) — hero-section, entry-header, page-header */
.hero-circuit-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: radial-gradient(circle at 40% 45%, rgba(99, 102, 241, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 60% 55%, rgba(139, 92, 246, 0.25) 0%, transparent 45%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    max-width: 200vw;
    z-index: 1;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    overflow: hidden;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* nth-of-type: hero may prepend <canvas>, so div index != nth-child index */
.hero-section > .particle:nth-of-type(1) { top: 30%; left: 30%; animation-delay: 0s; }
.hero-section > .particle:nth-of-type(2) { top: 50%; left: 70%; animation-delay: 2s; }
.hero-section > .particle:nth-of-type(3) { top: 70%; left: 45%; animation-delay: 4s; }
.hero-section > .particle:nth-of-type(4) { top: 45%; left: 55%; animation-delay: 1s; }
.hero-section > .particle:nth-of-type(5) { top: 25%; left: 65%; animation-delay: 3s; }

.hero-section > .particle {
    z-index: 2;
}

/* Same layout as hero; canvas is first child so div particles use nth-of-type */
.entry-header > .particle:nth-of-type(1) { top: 28%; left: 28%; animation-delay: 0s; }
.entry-header > .particle:nth-of-type(2) { top: 52%; left: 72%; animation-delay: 2s; }
.entry-header > .particle:nth-of-type(3) { top: 68%; left: 48%; animation-delay: 4s; }
.entry-header > .particle:nth-of-type(4) { top: 42%; left: 58%; animation-delay: 1s; }
.entry-header > .particle:nth-of-type(5) { top: 22%; left: 62%; animation-delay: 3s; }

.page-header > .particle:nth-of-type(1) { top: 28%; left: 28%; animation-delay: 0s; }
.page-header > .particle:nth-of-type(2) { top: 52%; left: 72%; animation-delay: 2s; }
.page-header > .particle:nth-of-type(3) { top: 68%; left: 48%; animation-delay: 4s; }
.page-header > .particle:nth-of-type(4) { top: 42%; left: 58%; animation-delay: 1s; }
.page-header > .particle:nth-of-type(5) { top: 22%; left: 62%; animation-delay: 3s; }

/* Particles in headers (above circuit canvas) */
.entry-header > .particle,
.page-header > .particle {
    z-index: 2;
}

.entry-header .container,
.page-header .container,
.error-404 .container {
    position: relative;
    z-index: 3;
}

.error-404 .particle {
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-title .highlight {
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Ensure typing text is always visible (inherits gradient from .highlight) */
.hero-title .typing-text {
    display: inline-block !important;
    min-width: 1px; /* Prevent collapse when empty */
    opacity: 1 !important;
    visibility: visible !important;
    /* Ensure gradient background is visible */
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%) !important;
    background-size: 100% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-title .typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
    color: #6366f1; /* Explicit color since parent uses transparent text-fill */
    -webkit-text-fill-color: #6366f1; /* Override parent's transparent fill */
    display: inline-block;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Thinner cursor on mobile */
@media (max-width: 768px) {
    .hero-title .typing-text::after {
        font-weight: 100;
        margin-left: 1px;
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    min-width: 120px;
}

.btn:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    backface-visibility: hidden;
}


.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* WordPress Block Button Styles - Match Original Buttons */
/* Remove backgrounds from wrapper divs - only style the link */
.wp-block-button.btn,
.wp-block-button.btn-primary,
.wp-block-button.btn-secondary,
.wp-block-button.is-style-outline {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    display: inline-block;
}

.wp-block-button__link,
.wp-block-button .wp-block-button__link {
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: 600;
    border-radius: 12px !important;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: none !important;
}

/* Primary Button Styles */
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button.btn-primary > .wp-block-button__link {
    background: var(--gradient-1) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
    border: none !important;
}

.wp-block-button.btn-primary .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.wp-block-button.btn-primary .wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button.btn-primary .wp-block-button__link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    backface-visibility: hidden;
}

/* Secondary Button Styles */
.wp-block-button.btn-secondary .wp-block-button__link,
.wp-block-button.btn-secondary > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.wp-block-button.btn-secondary .wp-block-button__link::before,
.wp-block-button.is-style-outline .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.wp-block-button.btn-secondary .wp-block-button__link:hover::before,
.wp-block-button.is-style-outline .wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button.btn-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* Light theme button overrides */
[data-theme="light"] .wp-block-button.btn-secondary .wp-block-button__link,
[data-theme="light"] .wp-block-button.is-style-outline .wp-block-button__link {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .wp-block-button.btn-secondary .wp-block-button__link:hover,
[data-theme="light"] .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Services CTA (mid-page) */
.services-cta {
    margin-top: 3rem;
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 100px 2rem;
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
    contain: paint;
}

/* Service Card Buttons */
.feature-card .wp-block-buttons {
    margin-top: 1.5rem;
}

.feature-card .wp-block-button {
    width: 100%;
}

.feature-card .wp-block-button__link {
    width: 100%;
    text-align: center;
    font-size: 0.95rem !important;
    padding: 0.75rem 1.5rem !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--motion-duration, 0.6s) var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1)), transform var(--motion-duration, 0.6s) var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    text-align: center;
    color: #e2e8f0; /* Improved contrast: 6.2:1 on dark-surface (meets WCAG AA) */
    font-size: 1.25rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--motion-duration, 0.6s) var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.2s, transform var(--motion-duration, 0.6s) var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.2s;
}

.section-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
    margin-top: 4rem;
}

/* Override WordPress block columns flex layout for features-grid */
.features-grid.wp-block-columns,
.features-grid.is-layout-flex {
    display: grid !important;
    flex-wrap: unset !important;
}

.features-grid .wp-block-column {
    width: 100% !important;
    flex-basis: unset !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: opacity 0.5s var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1)), transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3), 0 0 30px rgba(99, 102, 241, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover .feature-icon svg {
    stroke: var(--accent-color);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: block;
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: #e2e8f0; /* Improved contrast: 6.2:1 on dark-surface (meets WCAG AA) */
    line-height: 1.7;
}

/* Trust Section */
.trust-section {
    padding: 80px 2rem;
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.trust-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.trust-item {
    text-align: center;
    padding: 2rem;
}

.trust-item svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    stroke: var(--primary-color);
    fill: none;
}

.trust-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.trust-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-section {
        padding: 60px 1.5rem;
    }
}

/* CTA Section */
.cta-section {
    padding: 100px 2rem;
    background: var(--dark-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    contain: paint;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Footer */
.site-footer {
    background: var(--dark-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Marvel', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-locations {
    margin-bottom: 1.25rem;
}

.footer-locations-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.footer-locations-list li {
    margin: 0;
}

.footer-locations-list a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-locations-list a:hover,
.footer-locations-list a:focus {
    color: var(--accent-color);
}

.footer-locations-list a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

[data-theme="light"] .footer-locations-list a {
    color: var(--text-secondary);
}

[data-theme="light"] .footer-locations-list a:hover,
[data-theme="light"] .footer-locations-list a:focus {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation.active {
        max-height: 300px;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation a::after {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        min-height: 56px;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    .hero-section {
        padding: 100px 1.5rem 60px;
    }

    .features-section,
    .cta-section {
        padding: 60px 1.5rem;
    }


    .back-to-top {
        bottom: 80px;
    }

    .breadcrumb {
        display: none;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .search-button {
        display: none;
    }

    .toast-container {
        right: 1rem;
        top: 80px;
    }

    .toast {
        min-width: 280px;
        max-width: calc(100vw - 2rem);
    }

    .contact-form {
        margin-top: 1.5rem;
    }

    .sticky-cta {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        left: 0;
        right: 0;
    }

    .sticky-cta .btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: block;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    /* Fixed header: keep #contact / in-page anchors from hiding under the bar */
    scroll-padding-top: 90px;
}

@media (max-width: 768px) {
    html {
        /* Sticky "Get Started" bar: keep bottom of form visible above it */
        scroll-padding-bottom: 88px;
    }
}

#contact {
    scroll-margin-top: 90px;
    scroll-margin-bottom: 88px;
}

html, body {
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Prevent zoom on mobile */
body {
    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
    max-width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

/* Glow effect for sections */
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 100vw;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 100vw;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: pulse 5s ease-in-out infinite;
    overflow: hidden;
}

/* ==========================================================================
   PAGE & POST CONTENT STYLES
   ========================================================================== */

/* Main content wrapper */
.site-main {
    min-height: 60vh;
    padding-top: 80px; /* Account for fixed header */
}

/* Page and Post Article Wrappers */
.page-content,
.single-post {
    background: var(--dark-bg);
    color: var(--text-primary);
}

/* Entry Header (Page/Post Title Area) */
.entry-header {
    padding: 140px 2rem 60px;
    text-align: center;
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.entry-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: radial-gradient(circle at 40% 45%, rgba(99, 102, 241, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 60% 55%, rgba(139, 92, 246, 0.25) 0%, transparent 45%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.entry-header::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    max-width: 200vw;
    z-index: 1;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    overflow: hidden;
}

.entry-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: var(--text-primary); /* White in dark mode */
    position: relative;
    z-index: 3;
}

.entry-title a {
    text-decoration: none;
    color: var(--text-primary); /* White in dark mode */
    transition: opacity 0.3s ease;
}

.entry-title a:hover {
    opacity: 0.8;
}

/* Subtitle under page h1 (first block h1 is moved here in the theme; not a second heading). */
.page-content .entry-header .page-subtitle {
    position: relative;
    z-index: 3;
    max-width: 42rem;
    margin: 1rem auto 0;
    padding: 0 0.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Entry Meta (Post Date, Category, etc.) */
.entry-meta {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 3;
}

.entry-meta span {
    display: inline-block;
}

/* Post/Page Thumbnails */
.post-thumbnail,
.page-thumbnail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.post-thumbnail img,
.page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Content Wrapper with Sidebar Layout */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    align-items: start;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 40px 1.5rem;
    }
}

/* Entry Content (Main Content Area) */
.entry-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 1.125rem;
    color: var(--text-primary);
    min-width: 0; /* Prevents grid overflow */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.entry-content h1 {
    font-size: 2.5rem;
}

.entry-content h2 {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.entry-content h3 {
    font-size: 1.75rem;
}

.entry-content h4 {
    font-size: 1.5rem;
}

.entry-content h5 {
    font-size: 1.25rem;
}

.entry-content h6 {
    font-size: 1.125rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-primary);
}

.entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    color: var(--secondary-color);
}

.entry-content strong {
    font-weight: 700;
    color: var(--text-primary);
}

.entry-content em {
    font-style: italic;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content blockquote p {
    margin-bottom: 0;
}

.entry-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

.entry-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.entry-content table th,
.entry-content table td {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.entry-content table th {
    background: rgba(99, 102, 241, 0.2);
    font-weight: 600;
    color: var(--text-primary);
}

.entry-content table td {
    color: var(--text-secondary);
}

.entry-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0;
}

/* Page Links (Pagination) */
.page-links {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: var(--gradient-1);
    transform: translateY(-2px);
}

/* Entry Footer (Post Tags, etc.) */
.entry-footer {
    padding: 40px 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark-surface);
}

/* Post Tags */
.post-tags {
    margin-bottom: 1.5rem;
}

.post-tags strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.post-tags a:hover {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Post Navigation (Previous/Next) */
.post-navigation {
    padding: 60px 2rem;
    background: var(--dark-bg);
}

.post-navigation .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    position: relative;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.nav-previous span,
.nav-next span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.nav-previous h3,
.nav-next h3 {
    color: var(--text-primary);
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.nav-next {
    text-align: right;
}

/* Comments Wrapper */
.comments-wrapper {
    padding: 40px 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark-surface);
}

.comments-wrapper .container {
    max-width: 800px;
    margin: 0 auto;
}

/* Light Theme Overrides */
[data-theme="light"] .entry-header {
    background: var(--dark-surface);
}

[data-theme="light"] .entry-header::before {
    background: radial-gradient(circle at 40% 45%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 60% 55%, rgba(139, 92, 246, 0.08) 0%, transparent 45%);
}

[data-theme="light"] .entry-header::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
}

[data-theme="light"] .entry-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .entry-title a {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .entry-content h2 {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .entry-content blockquote {
    background: rgba(99, 102, 241, 0.05);
    border-left-color: var(--primary-color);
}

[data-theme="light"] .entry-content code {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .entry-content pre {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .entry-content table th {
    background: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .entry-content table td {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .entry-content hr {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .page-links {
    border-top-color: rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .entry-footer {
    background: var(--dark-surface);
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .post-tags a {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .post-tags a:hover {
    background: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .nav-previous a,
[data-theme="light"] .nav-next a {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-previous a:hover,
[data-theme="light"] .nav-next a:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .comments-wrapper {
    background: var(--dark-surface);
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .sidebar {
        position: static;
        max-height: none;
        max-width: 100%;
    }
}

.widget-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Modern gradient border effect using box-shadow */
.widget::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.widget:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25),
                0 0 0 1px rgba(99, 102, 241, 0.3),
                0 0 40px rgba(99, 102, 241, 0.15),
                inset 0 0 20px rgba(99, 102, 241, 0.05);
}

.widget:hover::before {
    opacity: 1;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.widget a:hover {
    color: var(--primary-color);
}

.widget p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.widget p:last-child {
    margin-bottom: 0;
}

/* Sidebar Placeholder Styles */
.sidebar-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-placeholder::before {
    content: "📋";
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Light Theme Sidebar Overrides */
[data-theme="light"] .widget {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .widget:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .widget li {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .sidebar-placeholder {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Resources page layout */
.resources-page .resources-subtitle {
    display: block;
    margin-top: 0.5rem;
}

/* Mobile: below-the-fold WPForms markup can steal LCP; let the browser defer painting until near viewport. */
@media (max-width: 768px) {
    .resources-page .nertzdigital-wpforms-wrap,
    .resources-page .wpforms-container {
        content-visibility: auto;
        contain-intrinsic-size: 1px 520px;
    }
}

.resources-intro {
    margin-bottom: 3rem;
}

.resources-section {
    padding: 0 0 3rem;
}

.container--resources {
    max-width: 1100px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.resources-grid,
.resources-grid a,
.resources-grid a:hover,
.resources-grid a:focus,
.resources-grid * {
    text-decoration: none;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    aspect-ratio: 1;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.45s var(--motion-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
    position: relative;
}

.resource-card:hover,
.resource-card:focus {
    text-decoration: none;
    color: var(--text-primary);
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.resource-card--a {
    background: rgba(99, 102, 241, 0.35);
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.resource-card--b {
    background: rgba(6, 182, 212, 0.35);
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.resource-card .resource-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
}

.resource-title {
    text-align: left;
    text-decoration: none;
}

.resources-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem 1rem;
}

[data-theme="light"] .resource-card--a {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .resource-card--b {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.35);
}

[data-theme="light"] .resource-card .resource-title {
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.resources-pagination {
    margin-top: 2.5rem;
    text-align: left;
}

.resources-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.resources-pagination-links a,
.resources-pagination-links span {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.resources-pagination-links a:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

.resources-pagination-links span.current {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.5);
}

.resources-pagination-links span.dots {
    background: transparent;
    border: none;
    padding: 0.5rem 0.25rem;
}

[data-theme="light"] .resources-pagination-links a,
[data-theme="light"] .resources-pagination-links span {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .resources-pagination-links a:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .resources-pagination-links span.current {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Responsive Styles for Pages/Posts */
@media (max-width: 768px) {
    .site-main {
        padding-top: 70px;
    }

    .entry-header {
        padding: 100px 1.5rem 40px;
    }

    .entry-title {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 40px 1.5rem;
    }

    .entry-content {
        font-size: 1rem;
    }
    
    .sidebar {
        position: static;
        max-height: none;
    }

    .entry-content h1 {
        font-size: 2rem;
    }

    .entry-content h2 {
        font-size: 1.75rem;
    }

    .entry-content h3 {
        font-size: 1.5rem;
    }

    .entry-content h4 {
        font-size: 1.25rem;
    }

    .post-thumbnail,
    .page-thumbnail {
        padding: 1.5rem;
    }

    .post-navigation .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-next {
        text-align: left;
    }

    .entry-footer {
        padding: 30px 1.5rem;
    }

    .comments-wrapper {
        padding: 30px 1.5rem;
    }
}

/* ==========================================================================
   SEARCH, ARCHIVE & 404 PAGE STYLES
   ========================================================================== */

/* Page Header (used in search, archive) */
.page-header {
    padding: 140px 2rem 60px;
    text-align: center;
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: radial-gradient(circle at 40% 45%, rgba(99, 102, 241, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 60% 55%, rgba(139, 92, 246, 0.25) 0%, transparent 45%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    max-width: 200vw;
    z-index: 1;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    overflow: hidden;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.archive-description {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Search Results & Archive Content */
.search-results,
.archive-content {
    padding: 60px 2rem;
    background: var(--dark-bg);
}

.search-form-wrapper {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Posts List & Grid */
.posts-list {
    display: grid;
    gap: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Search Result Item & Archive Post */
.search-result-item,
.archive-post {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.archive-post {
    padding: 2rem;
}

.search-result-item:hover,
.archive-post:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.search-result-item .entry-header,
.archive-post .entry-header {
    margin-bottom: 1rem;
}

.search-result-item .entry-title,
.archive-post .entry-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.archive-post .entry-title {
    font-size: 1.5rem;
}

.search-result-item .entry-title a,
.archive-post .entry-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-item .entry-title a:hover,
.archive-post .entry-title a:hover {
    color: var(--primary-color);
}

.search-result-item .entry-meta,
.archive-post .entry-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.search-result-item .post-thumbnail,
.archive-post .post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.search-result-item .post-thumbnail a,
.archive-post .post-thumbnail a {
    display: block;
}

.search-result-item .post-thumbnail img,
.archive-post .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.search-result-item .post-thumbnail:hover img,
.archive-post .post-thumbnail:hover img {
    transform: scale(1.05);
}

/* Entry Summary (Excerpt) */
.entry-summary {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.entry-summary p {
    margin-bottom: 1rem;
}

/* Read More Link */
.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}

/* 404 Error Page */
.error-404 {
    padding: 140px 2rem 100px;
    text-align: center;
    background: var(--dark-surface);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.error-404::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 40% 45%, rgba(99, 102, 241, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 60% 55%, rgba(139, 92, 246, 0.25) 0%, transparent 45%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.error-404::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    max-width: 200vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    overflow: hidden;
}

.error-404 .container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.error-404 .page-header {
    background: transparent;
    padding: 0;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.error-404 .error-robot {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.error-404 .robot-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4)) 
            drop-shadow(0 0 40px rgba(99, 102, 241, 0.2));
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.error-404 .section-title {
    font-size: 6rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-404 .page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.error-404 .error-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-404 .error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.error-404 .error-search {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.error-404 .search-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.error-404 .search-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.error-404 .search-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.error-404 .search-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

/* Search Form Styling */
.error-404 .search-form-wrapper form,
.search-form-wrapper form {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.error-404 .search-form-wrapper input[type="search"],
.search-form-wrapper input[type="search"] {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.error-404 .search-form-wrapper input[type="search"]:focus,
.search-form-wrapper input[type="search"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.error-404 .search-form-wrapper input[type="search"]::placeholder,
.search-form-wrapper input[type="search"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.error-404 .search-form-wrapper input[type="submit"],
.search-form-wrapper input[type="submit"],
.error-404 .search-form-wrapper button[type="submit"],
.search-form-wrapper button[type="submit"] {
    padding: 1rem 2rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
}

.error-404 .search-form-wrapper input[type="submit"]:hover,
.search-form-wrapper input[type="submit"]:hover,
.error-404 .search-form-wrapper button[type="submit"]:hover,
.search-form-wrapper button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* Light Theme Overrides for Search/Archive/404 */
[data-theme="light"] .page-header {
    background: var(--dark-surface);
}

[data-theme="light"] .page-header::before {
    background: radial-gradient(circle at 40% 45%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 60% 55%, rgba(139, 92, 246, 0.08) 0%, transparent 45%);
}

[data-theme="light"] .page-header::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
}

[data-theme="light"] .search-results,
[data-theme="light"] .archive-content {
    background: var(--dark-bg);
}

[data-theme="light"] .search-result-item,
[data-theme="light"] .archive-post {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .search-result-item:hover,
[data-theme="light"] .archive-post:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .pagination .page-numbers {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pagination .page-numbers:hover,
[data-theme="light"] .pagination .page-numbers.current {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .error-404 {
    background: var(--dark-surface);
}

[data-theme="light"] .error-404::before {
    background: radial-gradient(circle at 40% 45%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 60% 55%, rgba(139, 92, 246, 0.08) 0%, transparent 45%);
}

[data-theme="light"] .error-404::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
}

[data-theme="light"] .error-404 .search-icon-wrapper {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .error-404 .error-search {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .error-404 .search-form-wrapper input[type="search"],
[data-theme="light"] .search-form-wrapper input[type="search"] {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .error-404 .search-form-wrapper input[type="search"]:focus,
[data-theme="light"] .search-form-wrapper input[type="search"]:focus {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Responsive Styles for Search/Archive/404 */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 1.5rem 40px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .search-results,
    .archive-content {
        padding: 40px 1.5rem;
    }

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

    .search-result-item,
    .archive-post {
        padding: 1.5rem;
    }

    .search-result-item .entry-title {
        font-size: 1.5rem;
    }

    .archive-post .entry-title {
        font-size: 1.25rem;
    }

    .error-404 {
        padding: 100px 1.5rem 60px;
        min-height: 60vh;
    }

    .error-404 .robot-image {
        max-width: 200px;
    }

    .error-404 .section-title {
        font-size: 4rem;
    }

    .error-404 .page-title {
        font-size: 1.5rem;
    }

    .error-404 .error-description {
        font-size: 1rem;
    }

    .error-404 .error-actions {
        margin-bottom: 3rem;
    }

    .error-404 .error-search {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .error-404 .search-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .error-404 .search-title {
        font-size: 1.5rem;
    }

    .error-404 .search-form-wrapper form {
        flex-direction: column;
    }

    .error-404 .search-form-wrapper input[type="search"],
    .search-form-wrapper input[type="search"] {
        width: 100%;
    }

    .error-404 .search-form-wrapper input[type="submit"],
    .search-form-wrapper input[type="submit"],
    .error-404 .search-form-wrapper button[type="submit"],
    .search-form-wrapper button[type="submit"] {
        width: 100%;
    }

    .pagination {
        gap: 0.25rem;
    }

    .pagination .page-numbers {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   NEW HOMEPAGE SECTIONS STYLES
   ========================================================================== */

/* Trust Strip Section */
.trust-strip-section {
    padding: 60px 2rem;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-strip-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.trust-strip-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.trust-strip-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.trust-strip-item {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trust-strip-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.trust-strip-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.trust-strip-item:hover::before {
    transform: scaleX(1);
}

.trust-strip-item strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Problem Section */
.problem-section {
    padding: 80px 2rem;
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.problem-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.problem-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
    margin: 3rem 0;
}

.problem-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.problem-icon {
    width: 48px;
    height: 48px;
    border: 3px solid #ef4444;
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 3px;
    background: #ef4444;
    transform: rotate(45deg);
    border-radius: 2px;
}

.problem-item p {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin: 0;
}

.problem-conclusion {
    margin-top: 3rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Solution Section */
.solution-section {
    padding: 80px 2rem;
    background: var(--dark-bg);
}

.solution-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.solution-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.8;
}

.solution-that-means {
    margin-top: 2rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.solution-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 3rem auto;
    list-style: none;
    padding: 0;
}

.solution-list li {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.0625rem;
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.solution-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.solution-list li::before {
    content: "✓";
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981; /* Emerald green - complements indigo/purple theme */
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 1;
}

.solution-conclusion {
    margin-top: 3rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Differentiator Section */
.differentiator-section {
    padding: 80px 2rem;
    background: var(--dark-surface);
}

.differentiator-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.differentiator-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 3rem;
    gap: 3rem;
}

.differentiator-column {
    text-align: left;
}

.differentiator-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.differentiator-list {
    list-style: none;
    padding: 0;
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 2;
}

.differentiator-list li::before {
    content: "✗ ";
    color: #ef4444;
    font-weight: bold;
    margin-right: 0.5rem;
}

.differentiator-our-approach {
    font-size: 1.125rem;
    color: #e2e8f0; /* Improved contrast: 6.2:1 on dark-surface (meets WCAG AA) */
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.differentiator-conclusion {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Section Divider (between major homepage sections) */
.section-divider-section {
    background: var(--dark-surface);
    padding: 0 2rem;
}

.section-divider {
    height: 1px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.65),
        rgba(6, 182, 212, 0.55),
        transparent
    );
    opacity: 0.9;
}

.section-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(520px, 80vw);
    height: 22px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

/* Services List */
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 3rem auto;
    list-style: none;
    padding: 0;
}

.services-list li {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.0625rem;
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.services-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.services-list li::before {
    content: "✓";
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981; /* Emerald green - complements indigo/purple theme */
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 1;
}

.services-conclusion {
    margin-top: 2rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Who It's For Section */
.who-it-for-section {
    padding: 80px 2rem;
    background: var(--dark-bg);
}

.who-it-for-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.who-it-for-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 3rem auto;
    list-style: none;
    padding: 0;
}

.who-it-for-list li {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.0625rem;
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.who-it-for-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.who-it-for-list li::before {
    content: "✓";
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981; /* Emerald green - complements indigo/purple theme */
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 1;
}

.who-it-for-conclusion {
    margin-top: 2rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
}

/* Process Section */
.process-section {
    padding: 80px 2rem;
    background: var(--dark-surface);
}

.process-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.process-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    margin-top: 3rem;
    gap: 2rem;
}

.process-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.process-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-item p {
    color: #e2e8f0; /* Improved contrast: 6.2:1 on dark-surface (meets WCAG AA) */
    line-height: 1.7;
}

/* Credibility Section */
.credibility-section {
    padding: 80px 2rem;
    background: var(--dark-bg);
}

.credibility-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.credibility-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 2rem auto;
    line-height: 1.8;
}

.credibility-conclusion {
    margin-top: 2rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* CTA Benefits List */
.cta-benefits-list {
    max-width: 500px;
    margin: 1.5rem auto;
    text-align: left;
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 2;
    list-style: none;
    padding-left: 0;
}

.cta-benefits-list li {
    position: relative;
    padding-left: 1.5rem;
}

.cta-benefits-list li::before {
    content: "✓ ";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cta-subtext {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Light Theme Overrides */
[data-theme="light"] .trust-strip-section {
    border-top-color: rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .trust-strip-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .trust-strip-item:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .problem-item,
[data-theme="light"] .process-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .services-list li {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .services-list li:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .who-it-for-list li {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .who-it-for-list li:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .solution-list li {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .solution-list li:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

/* Light theme text color overrides for improved accessibility */
[data-theme="light"] .section-subtitle,
[data-theme="light"] .differentiator-our-approach,
[data-theme="light"] .feature-card p,
[data-theme="light"] .process-item p {
    color: var(--text-secondary); /* Use original text-secondary in light mode for proper contrast */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .trust-strip-grid {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

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

    .services-list {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .who-it-for-list {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .solution-list {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .section-divider-section {
        padding: 0 1.5rem;
    }
}

@media (max-width: 640px) {
    .problem-grid {
        grid-template-columns: 1fr !important;
    }

    .differentiator-grid {
        grid-template-columns: 1fr !important;
    }

    .process-grid {
        grid-template-columns: 1fr !important;
    }

    .problem-conclusion,
    .solution-conclusion,
    .differentiator-conclusion,
    .services-conclusion,
    .credibility-conclusion {
        font-size: 1.125rem;
    }
}
