/* ============================================================
   QualityMax Landing — Light Theme
   Applied when <html data-theme="light"> is set.
   All selectors are prefixed with html[data-theme="light"]
   so they override the dark defaults in landing.css.
   ============================================================ */

html[data-theme="light"] {
    /* --primary-color, --primary-dark, --secondary-color, --accent-color
       intentionally inherit from :root in landing.css — the brand purple is
       identical across themes. Override here only if a light shade is needed. */
    --text-dark: #0f0e17;
    --text-light: #6b7280;
    --bg-light: #eef0f5;
    --bg-white: #ffffff;
    --bg-dark: #e8eaf2;
    --border-color: rgba(0, 0, 0, 0.09);
    --success-color: #16a34a;
    --error-color: #dc2626;
    /* Extra semantic tokens used by inline HTML styles */
    --text-primary: #0f0e17;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;
    --text-charcoal: #374151;          /* slightly darker than secondary */
    --bg-white-soft: #f7f8fc;          /* off-white bg for subtle sections */
    --success-text-dark: #15803d;      /* darker green for high-contrast labels */
    --landing-page-section-bg: #ffffff;/* hero/section bg flips to white in light mode */
    --card-tint: rgba(0, 0, 0, 0.04);  /* dark-on-white tint flip */
    color-scheme: light;
}

html[data-theme="light"] body {
    background: #ffffff;
    color: var(--text-dark);
}

/* ── Header ── */
html[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .nav a,
html[data-theme="light"] .nav-dropdown-trigger {
    color: var(--text-charcoal);
}

html[data-theme="light"] .nav-dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .nav-dropdown-menu a {
    color: var(--text-charcoal);
}

html[data-theme="light"] .nav-dropdown-menu a:hover {
    background: rgba(124, 108, 240, 0.08);
    color: var(--primary-color);
}

html[data-theme="light"] .nav-github-btn {
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-charcoal);
}

html[data-theme="light"] .nav-github-btn:hover {
    background: var(--text-dark);
    color: #fff !important;
    border-color: var(--text-dark);
}

html[data-theme="light"] .login-link {
    color: var(--text-charcoal);
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .login-link:hover {
    color: var(--text-dark)!important;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .lang-switch {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-charcoal);
}

html[data-theme="light"] .hamburger span {
    background: var(--text-charcoal);
}

/* ── Theme toggle button ── */
.theme-toggle {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3) !important;
}

html[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-charcoal);
    background: transparent;
}

html[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3) !important;
}

/* ── Hero ── */
html[data-theme="light"] .hero {
    background: #ffffff;
    color: var(--text-dark);
}

html[data-theme="light"] .hero::before {
    /* Stronger indigo wash + secondary green hint — the 0.08 was perceptually invisible on white */
    background:
        radial-gradient(ellipse 90% 65% at 50% 0%, rgba(124, 108, 240, 0.20) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(74, 222, 128, 0.06) 0%, transparent 70%) !important;
}

html[data-theme="light"] .hero-title {
    color: var(--text-dark);
}

html[data-theme="light"] .hero-triplet {
    color: #1a1a2e;
}

html[data-theme="light"] .hero-subtitle {
    color: var(--text-light);
}

html[data-theme="light"] .hero-eyebrow {
    color: var(--primary-color);
    background: rgba(124, 108, 240, 0.08);
    border-color: rgba(124, 108, 240, 0.2);
}

html[data-theme="light"] .hero-cta-link {
    color: var(--text-secondary);
}

html[data-theme="light"] .hero-cta-link:hover,
html[data-theme="light"] .hero-cta-link:focus-visible {
    color: var(--text-dark);
}

html[data-theme="light"] .hero-value-card {
    border: 1px solid rgba(124, 108, 240, 0.15);
    background: linear-gradient(145deg, rgba(124, 108, 240, 0.05), rgba(248, 248, 255, 0.8));
}

html[data-theme="light"] .hero-value-card h3 {
    color: #1a1a2e;
}

html[data-theme="light"] .hero-value-card p {
    color: var(--text-light);
}

html[data-theme="light"] .hero-value-card--ai {
    border-color: rgba(22, 163, 74, 0.2);
    background: linear-gradient(145deg, rgba(22, 163, 74, 0.05), rgba(248, 255, 251, 0.8));
}

html[data-theme="light"] .hero-value-card--ai h3 {
    color: var(--success-text-dark);
}

html[data-theme="light"] .hero-proof-rail blockquote {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-charcoal);
}

html[data-theme="light"] .hero-proof-rail figcaption {
    color: var(--primary-color);
}

html[data-theme="light"] .cta-btn-secondary,
html[data-theme="light"] .cta-btn-demo {
    color: var(--text-charcoal);
    border-color: rgba(0, 0, 0, 0.2);
    background: transparent;
}

html[data-theme="light"] .cta-btn-secondary:hover,
html[data-theme="light"] .cta-btn-demo:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .github-follow-inline,
html[data-theme="light"] .github-follow-inline--dark {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-charcoal);
}

html[data-theme="light"] .github-follow-inline:hover,
html[data-theme="light"] .github-follow-inline--dark:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .hero-screenshot img {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Hero race card / CI banner (inline styles in <style> block) */
html[data-theme="light"] .hero-race-card {
    background: linear-gradient(135deg, rgba(124, 108, 240, 0.05), rgba(248, 248, 255, 0.6)) !important;
    border-color: rgba(124, 108, 240, 0.15) !important;
}

html[data-theme="light"] .hero-race-title {
    color: var(--text-charcoal) !important;
}

html[data-theme="light"] .hero-race-divider {
    color: rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="light"] .race-bg-seg--dashed {
    border-top-color: rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .ci-banner {
    background: #e8eaf0 !important;
    /* Top-edge inset highlight + tinted indigo upward glow — visible on grey */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 -1px 0 rgba(22, 163, 74, 0.30),
        0 -8px 24px rgba(99, 102, 241, 0.12) !important;
    border-top-color: rgba(0, 0, 0, 0.09) !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .ci-banner-label {
    color: var(--success-text-dark) !important;
}

html[data-theme="light"] .ci-banner-dot {
    background: #16a34a !important;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.5) !important;
}

html[data-theme="light"] .ci-banner-sep {
    color: rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="light"] .ci-banner-stat {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .ci-banner-stat strong {
    color: #111827 !important;
}

html[data-theme="light"] .ci-banner-stat--pass strong {
    color: var(--success-text-dark) !important;
}

html[data-theme="light"] .ci-banner-stat--fail strong {
    color: var(--error-color) !important;
}

html[data-theme="light"] .ci-banner-inner--sec .ci-banner-stat strong {
    color: #111827 !important;
}

html[data-theme="light"] .ci-banner-commit {
    color: rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="light"] .ci-banner-inner--sec {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* ── Logo Ticker ── */
html[data-theme="light"] .logo-ticker {
    background: var(--bg-white-soft);
    border-top-color: rgba(0, 0, 0, 0.07);
    border-bottom-color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .logo-ticker-item {
    /* Force to dark grey instead of desaturated colors — much crisper on white. */
    filter: brightness(0) opacity(0.42);
}

html[data-theme="light"] .logo-ticker-item:hover {
    filter: brightness(0) opacity(0.85);
}

html[data-theme="light"] .logo-ticker-name {
    color: var(--text-charcoal);
}

html[data-theme="light"] .logo-ticker-label {
    color: var(--text-light);
}

/* ── Features ── */
html[data-theme="light"] .features {
    background: var(--bg-white-soft);
}

html[data-theme="light"] .section-title {
    color: var(--text-dark);
}

html[data-theme="light"] .section-subtitle {
    color: var(--text-light);
}

html[data-theme="light"] .feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .feature-card:hover {
    border-color: rgba(124, 108, 240, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .feature-title {
    color: var(--text-dark);
}

html[data-theme="light"] .feature-description {
    color: var(--text-light);
}

/* ── Demo / Resources ── */
html[data-theme="light"] .demo {
    background: #ffffff;
}

html[data-theme="light"] .resources {
    background: var(--bg-white-soft);
}

html[data-theme="light"] .demo-subtitle {
    color: var(--text-light);
}

html[data-theme="light"] .demo-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .demo-card-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .demo-card-header h3 {
    color: var(--text-dark);
}

html[data-theme="light"] .demo-panel {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .demo-panel summary {
    color: var(--text-dark);
}

html[data-theme="light"] .code-block,
html[data-theme="light"] .log-block {
    background: #f3f4f8;
    color: #1a1a2e;
    border-top-color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .demo-media img {
    border-color: rgba(0, 0, 0, 0.08);
    background: var(--bg-white-soft);
}

html[data-theme="light"] .demo-media video {
    border-color: rgba(0, 0, 0, 0.08);
    background: #f3f4f8;
}

html[data-theme="light"] .demo-text {
    background: #ffffff;
    border-top-color: rgba(0, 0, 0, 0.07);
    color: var(--text-charcoal);
}

html[data-theme="light"] .youtube-embed {
    border-color: rgba(0, 0, 0, 0.08);
    background: #f3f4f8;
}

/* ── Proof block ── */
html[data-theme="light"] .proof-block {
    background: linear-gradient(135deg, rgba(124, 108, 240, 0.04), rgba(124, 108, 240, 0.01));
    border-color: rgba(124, 108, 240, 0.15);
}

html[data-theme="light"] .proof-dot {
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .proof-dot:hover {
    background: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .proof-stage > .proof-slide > figcaption {
    color: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .proof-stage > .proof-slide > img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ── Pain Q&A ── */
html[data-theme="light"] .pain-qa-section {
    background: var(--bg-white-soft);
    border-top-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .pain-qa-eyebrow {
    color: var(--primary-color);
    background: rgba(124, 108, 240, 0.08);
    border-color: rgba(124, 108, 240, 0.2);
}

html[data-theme="light"] .pain-qa-title {
    color: var(--text-dark);
}

html[data-theme="light"] .pain-qa-subtitle {
    color: var(--text-light);
}

html[data-theme="light"] summary.pain-qa-q {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] summary.pain-qa-q::before {
    color: var(--text-light);
    font-size: 0.72rem;
}



html[data-theme="light"] .pain-qa-a {
    background: rgba(124, 108, 240, 0.06);
    border-color: rgba(124, 108, 240, 0.2);
    color: var(--text-charcoal);
    box-shadow: 0 4px 16px rgba(124, 108, 240, 0.06);
}

html[data-theme="light"] .pain-qa-a strong {
    color: var(--text-dark);
}

html[data-theme="light"] .pain-qa-a em {
    color: var(--text-light);
}

html[data-theme="light"] .pqa-status-bar,
html[data-theme="light"] .pqa-pipe,
html[data-theme="light"] .pqa-net {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .pqa-diff-row code {
    color: var(--text-charcoal);
}

html[data-theme="light"] .pqa-status-name {
    color: var(--text-charcoal);
}

html[data-theme="light"] .pqa-status-note {
    color: var(--success-text-dark);
}

html[data-theme="light"] .pqa-status-badge--ok {
    background: rgba(21, 128, 61, 0.1);
    color: var(--success-text-dark);
}

html[data-theme="light"] .pqa-status-badge--err {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

html[data-theme="light"] .pqa-tl-label {
    color: var(--text-light);
    font-size: 0.72rem;
}

html[data-theme="light"] .pqa-pipe-step {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-charcoal);
    font-size: 0.72rem;
}

html[data-theme="light"] .pqa-pipe-arrow {
    color: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .pqa-pipe-note {
    color: var(--text-light);
    font-size: 0.72rem;
}

html[data-theme="light"] .pqa-net-node {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ── How it works / Steps ── */
html[data-theme="light"] .how-it-works,
html[data-theme="light"] #how-it-works {
    background: #ffffff;
}

html[data-theme="light"] .step-card,
html[data-theme="light"] .step {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .step-number {
    color: var(--primary-color);
}

html[data-theme="light"] .step-title {
    color: var(--text-dark);
}

html[data-theme="light"] .step-description {
    color: var(--text-light);
}

/* ── Showcase / Tabs ── */
html[data-theme="light"] .showcase,
html[data-theme="light"] .tab-section {
    background: var(--bg-white-soft);
}

html[data-theme="light"] .tab-btn {
    color: var(--text-light);
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .tab-btn.active,
html[data-theme="light"] .tab-btn:hover {
    background: rgba(124, 108, 240, 0.08);
    border-color: rgba(124, 108, 240, 0.2);
    color: var(--primary-color);
}

html[data-theme="light"] .showcase-content {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

html[data-theme="light"] .showcase-img {
    border-color: rgba(0, 0, 0, 0.08);
    background: var(--bg-white-soft);
}

html[data-theme="light"] .showcase-desc {
    color: var(--text-light);
}

/* ── Roadmap ── */
html[data-theme="light"] .roadmap,
html[data-theme="light"] .roadmap-section {
    background: #ffffff;
}

html[data-theme="light"] .roadmap-item {
    border-left-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .roadmap-item::before {
    background: var(--primary-color);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(124, 108, 240, 0.25);
}

html[data-theme="light"] .roadmap-title {
    color: var(--text-dark);
}

html[data-theme="light"] .roadmap-desc {
    color: var(--text-light);
}

/* ── Nexus / Pricing ── */
html[data-theme="light"] .nexus-section,
html[data-theme="light"] .pricing,
html[data-theme="light"] #pricing {
    background: var(--bg-white-soft);
}

html[data-theme="light"] .pricing-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Light-mode popular card — extra-light pastel gradient (lavender → blush → peach).
   Lifted one pastel tier so the card feels airier (Tailwind 200 → 100 stops). */
html[data-theme="light"] .pricing-card--popular,
html[data-theme="light"] .pricing-card--popular:hover {
    background: linear-gradient(120deg, #ede9fe 0%, #fae8ff 50%, #ffedd5 100%) !important;
    border-color: rgba(124, 108, 240, 0.18) !important;
    box-shadow:
        0 16px 48px rgba(196, 181, 253, 0.30),
        0 4px 12px rgba(254, 215, 170, 0.20) !important;
    color: #0f0e17 !important;
}

/* Text inside popular card stays dark (the pastel gradient is light enough) */
html[data-theme="light"] .pricing-card--popular .pricing-plan-name { color: #4b5563 !important; font-weight: 600; }
html[data-theme="light"] .pricing-card--popular .pricing-amount { color: #0f0e17 !important; }
html[data-theme="light"] .pricing-card--popular .pricing-period { color: #4b5563 !important; }
html[data-theme="light"] .pricing-card--popular .pricing-tagline { color: #374151 !important; }
html[data-theme="light"] .pricing-card--popular .pricing-features li { color: #1a1a2e !important; }
html[data-theme="light"] .pricing-card--popular .pricing-features li.is-highlight { color: #0f0e17 !important; font-weight: 700; }
html[data-theme="light"] .pricing-card--popular .pricing-features li svg path { stroke: #5b4fcf !important; }
html[data-theme="light"] .pricing-card--popular .pricing-yearly-savings { color: #15803d !important; }

/* CTA inside popular card: dark pill (inverse of the pastel card) */
html[data-theme="light"] .pricing-card--popular .pricing-cta {
    background: #0f0e17 !important;
    color: #ffffff !important;
    border-color: #0f0e17 !important;
}
html[data-theme="light"] .pricing-card--popular .pricing-cta:hover {
    background: #1a1a2e !important;
    color: #ffffff !important;
}

/* Badge inside the pastel card: solid dark pill with WHITE text in light mode.
   The dark-mode rainbow text-clip relies on the dark card bg for contrast — on
   the light pastel card the text-clip becomes invisible. So in light mode we
   override: solid dark pill, no text-clip, plain white text. */
html[data-theme="light"] .pricing-card--popular .pricing-badge {
    background-image: none !important;
    background-color: #0f0e17 !important;
    border-color: #0f0e17 !important;
    color: #ffffff !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    animation: none !important;
}

html[data-theme="light"] .pricing-plan-name,
html[data-theme="light"] .pricing-amount {
    color: var(--text-dark);
}

html[data-theme="light"] .pricing-tagline,
html[data-theme="light"] .pricing-period,
html[data-theme="light"] .pricing-note {
    color: var(--text-light);
}

html[data-theme="light"] .pricing-features li {
    color: var(--text-charcoal);
}

html[data-theme="light"] .pricing-features li.is-highlight {
    color: var(--text-dark);
}

html[data-theme="light"] .pricing-cta {
    background: #f4f5f9;
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .pricing-cta:hover {
    background: #e8e9f0;
}

html[data-theme="light"] .nexus-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

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

html[data-theme="light"] .nexus-card-desc {
    color: var(--text-light);
}

/* ── Early Bird ── */
html[data-theme="light"] .early-bird {
    background: var(--bg-white-soft);
    border-top-color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .early-bird .section-title {
    color: var(--text-dark);
}

html[data-theme="light"] .early-bird .section-subtitle {
    color: var(--text-light) !important;
}

html[data-theme="light"] .early-bird-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .early-bird-card:hover {
    background: #f9f9ff;
    border-color: rgba(124, 108, 240, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .early-bird-card h3 {
    color: var(--text-dark);
}

html[data-theme="light"] .early-bird-card p {
    color: var(--text-light);
}

/* ── Waitlist / Signup ── */
html[data-theme="light"] .waitlist {
    background: #ffffff;
}

html[data-theme="light"] .waitlist-subtitle {
    color: var(--text-light);
}

html[data-theme="light"] .waitlist-form {
    background: var(--bg-white-soft);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .form-group label {
    color: var(--text-charcoal);
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

html[data-theme="light"] .form-group input::placeholder,
html[data-theme="light"] .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .signup-login {
    color: var(--text-light);
}

html[data-theme="light"] #signup .cta-btn-secondary {
    color: var(--text-charcoal);
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] #signup .cta-btn-secondary:hover {
    background: #f4f5f9;
    border-color: rgba(0, 0, 0, 0.25);
}

/* ── Contact / Book a Demo ── */
html[data-theme="light"] .contact-section {
    background: #ffffff;
}

html[data-theme="light"] .book-demo-section {
    background: var(--bg-white-soft);
}

html[data-theme="light"] .contact-desc {
    color: var(--text-light);
}

html[data-theme="light"] .book-demo-text p {
    color: var(--text-light);
}

html[data-theme="light"] .contact-form label {
    color: var(--text-charcoal);
}

html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form select,
html[data-theme="light"] .contact-form textarea {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-dark);
}

html[data-theme="light"] .contact-form input::placeholder,
html[data-theme="light"] .contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .cal-embed-container {
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .cal-embed-compact {
    background: var(--bg-white-soft);
}

/* ── Testimonials / Social proof ── */
html[data-theme="light"] .testimonials,
html[data-theme="light"] .social-proof {
    background: var(--bg-white-soft);
}

html[data-theme="light"] .testimonial-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .testimonial-text {
    color: var(--text-charcoal);
}

html[data-theme="light"] .testimonial-author {
    color: var(--text-light);
}

/* ── Slideshow ── */
html[data-theme="light"] .slideshow-viewport {
    background: #f3f4f8;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .slideshow-btn {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
}

html[data-theme="light"] .slideshow-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .slideshow-dot {
    background: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .slideshow-dot.active {
    background: var(--primary-color);
}

/* ── qmax-code Banner ── */
html[data-theme="light"] .qmax-code-banner {
    background: #f4f5f9;
}

html[data-theme="light"] .qmax-code-banner::before {
    background: radial-gradient(ellipse at 30% 40%, rgba(124, 108, 240, 0.05) 0%, transparent 60%), radial-gradient(ellipse at 70% 60%, rgba(168, 85, 247, 0.04) 0%, transparent 50%) !important;
}

html[data-theme="light"] .qmc-terminal {
    background: #1a1b26;
    border-color: rgba(124, 108, 240, 0.2);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .qmc-terminal-chrome {
    background: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .qmc-info h2 {
    background: linear-gradient(135deg, #1a1a2e, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="light"] .qmc-tagline {
    color: var(--text-light);
}

html[data-theme="light"] .qmc-stat-num {
    color: var(--primary-color);
}

html[data-theme="light"] .qmc-stat-label {
    color: var(--text-light);
}

html[data-theme="light"] .qmc-feat {
    color: var(--text-charcoal);
}

/* ── Footer ── */
html[data-theme="light"] .footer,
html[data-theme="light"] footer {
    background: var(--text-dark);
}

/* Keep footer dark intentionally — it reads better as a dark anchor.
   But if you want a light footer too, uncomment below: */
/*
html[data-theme="light"] .footer,
html[data-theme="light"] footer {
    background: #f4f5f9;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-charcoal);
}
html[data-theme="light"] .footer-brand-desc,
html[data-theme="light"] .footer-link {
    color: var(--text-light);
}
*/

/* ── Misc sections ── */
html[data-theme="light"] .book-demo-bullets li {
    color: var(--text-charcoal);
}

html[data-theme="light"] .cal-note {
    color: var(--text-light);
}

html[data-theme="light"] .nexus-trial-note {
    color: var(--text-light);
}

/* ── Inline figcaption / proof dots ── */
html[data-theme="light"] .proof-dot {
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .proof-dot:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ── Platform Showcase (#features) ── */
html[data-theme="light"] .platform-showcase {
    background: #ffffff;
    color: var(--text-dark);
}

html[data-theme="light"] .platform-showcase .section-title {
    color: var(--text-dark);
}

html[data-theme="light"] .showcase-subtitle {
    color: var(--text-light);
}

html[data-theme="light"] .showcase-text h3 {
    color: var(--text-dark);
}

html[data-theme="light"] .showcase-text p {
    color: var(--text-light);
}

html[data-theme="light"] .showcase-features li {
    color: var(--text-charcoal);
}

html[data-theme="light"] .showcase-badge {
    background: rgba(124, 108, 240, 0.08);
    border-color: rgba(124, 108, 240, 0.18);
    color: var(--primary-color);
}

html[data-theme="light"] .showcase-image {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ── Feature Highlights Grid (More Capabilities) ── */
html[data-theme="light"] .feature-highlights-divider h3 {
    color: var(--text-dark);
}

html[data-theme="light"] .feature-highlights-divider p {
    color: var(--text-light);
}

html[data-theme="light"] .feature-highlight-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .feature-highlight-card:hover {
    border-color: rgba(124, 108, 240, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .feature-highlight-card h4 {
    color: var(--text-dark);
}

html[data-theme="light"] .feature-highlight-card p {
    color: var(--text-light);
}

html[data-theme="light"] .feature-highlight-icon {
    background: rgba(124, 108, 240, 0.08);
    color: var(--primary-color);
}

/* ── Feature cards (old .features section) ── */
html[data-theme="light"] .feature-card h3 {
    color: var(--text-dark);
}

/* ── Newsletter forms ── */
html[data-theme="light"] .newsletter-email {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

html[data-theme="light"] .newsletter-email::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .hero-newsletter .newsletter-email {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
    backdrop-filter: blur(8px);
}

html[data-theme="light"] .hero-newsletter .newsletter-email::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .hero-newsletter .newsletter-email:focus {
    border-color: var(--primary-color);
    background: #ffffff;
}

html[data-theme="light"] .hero-newsletter .newsletter-btn {
    background: var(--primary-color);
    color: #ffffff;
}

/* ── Success/Error messages in forms ── */
html[data-theme="light"] .success-message,
html[data-theme="light"] .error-message {
    background: var(--bg-white-soft);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ── Newsletter banner ── */
html[data-theme="light"] .newsletter-banner {
    background: var(--bg-white-soft);
    border-top-color: rgba(0, 0, 0, 0.07);
}

/* ── Benefits section ── */
html[data-theme="light"] .benefits {
    background: var(--bg-white-soft);
}

html[data-theme="light"] .benefit-card,
html[data-theme="light"] .benefits-grid > div {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
}

/* ── How it works steps ── */
html[data-theme="light"] .step-card,
html[data-theme="light"] .steps-grid > div {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
}

/* ── Footer subscribe form ── */
html[data-theme="light"] .footer-subscribe-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ── Testimonial section ── */
html[data-theme="light"] .testimonial-section {
    background: var(--bg-white-soft) !important;
}

/* ── Product demo / YouTube sections using var(--bg-dark) ── */
html[data-theme="light"] #product-demo {
    background: #f0f1f7 !important;
}

/* ── Agent Safety CTA section ── */
html[data-theme="light"] .agent-safety-cta {
    border-top-color: rgba(0, 0, 0, 0.07) !important;
    border-bottom-color: rgba(0, 0, 0, 0.07) !important;
}

html[data-theme="light"] .agent-safety-heading {
    color: var(--text-dark) !important;
}

html[data-theme="light"] .agent-safety-desc {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* ── net-label / net-sub / net-line (inside pain-qa) ── */
html[data-theme="light"] .pqa-net-label {
    color: var(--text-charcoal);
}

html[data-theme="light"] .pqa-net-line {
    color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .pqa-keys-note,
html[data-theme="light"] .pqa-counter-unit,
html[data-theme="light"] .pqa-counter-meta {
    color: var(--text-light);
    font-size: 0.78rem;
}

html[data-theme="light"] .pqa-key-chip {
    background: rgba(124, 108, 240, 0.08);
    border-color: rgba(124, 108, 240, 0.35);
    color: #5b4fcf;
    font-size: 0.73rem;
}

html[data-theme="light"] .pqa-counter-num {
    color: var(--success-text-dark);
}

html[data-theme="light"] .pqa-net-sub {
    color: var(--text-light);
    font-size: 0.68rem;
}

html[data-theme="light"] .pqa-stack-compare {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

html[data-theme="light"] .pqa-stack-them {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: unset;
}

html[data-theme="light"] .pqa-stack-row {
    color: var(--text-secondary);
    font-size: 0.68rem;
}

html[data-theme="light"] .pqa-stack-tool {
    color: var(--text-dark);
    white-space: nowrap;
}

html[data-theme="light"] .pqa-stack-price {
    color: var(--error-color);
    white-space: nowrap;
}

html[data-theme="light"] .pqa-stack-covers {
    color: var(--text-light);
    font-size: 0.68rem;
    white-space: nowrap;
}

html[data-theme="light"] .pqa-stack-total {
    color: var(--text-secondary);
    border-top-color: rgba(0, 0, 0, 0.1);
    font-size: 0.68rem;
    flex-wrap: wrap;
    row-gap: 2px;
}

html[data-theme="light"] .pqa-stack-total > span:last-child {
    flex: 1 0 100%;
    color: var(--text-light);
}

html[data-theme="light"] .pqa-stack-total-price {
    color: var(--error-color);
    white-space: nowrap;
    flex: 0 0 auto;
}

html[data-theme="light"] .pqa-stack-vs {
    color: var(--text-muted);
    text-align: center;
    padding: 2px 0;
}

html[data-theme="light"] .pqa-stack-us {
    background: rgba(124, 108, 240, 0.08);
    border-color: rgba(124, 108, 240, 0.3);
    min-width: unset;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    box-sizing: border-box;
}

html[data-theme="light"] .pqa-stack-us-name {
    color: #5b4fcf;
    font-size: 0.72rem;
}

html[data-theme="light"] .pqa-stack-us-price {
    color: var(--success-text-dark);
}

html[data-theme="light"] .pqa-stack-us-price span {
    color: var(--text-light);
}

html[data-theme="light"] .pqa-stack-us-covers {
    color: var(--text-light);
    font-size: 0.68rem;
}

html[data-theme="light"] .pqa-loop-steps {
    background: rgba(124, 108, 240, 0.06);
    border: 1px solid rgba(124, 108, 240, 0.15);
}

html[data-theme="light"] .pqa-loop-step {
    background: rgba(124, 108, 240, 0.1);
    border-color: rgba(124, 108, 240, 0.3);
    color: #5b4fcf;
    font-size: 0.73rem;
}

html[data-theme="light"] .pqa-loop-arrow {
    color: rgba(91, 79, 207, 0.6);
}

html[data-theme="light"] .pqa-loop-back {
    color: #5b4fcf;
}

html[data-theme="light"] .pqa-loop-vs {
    color: var(--text-light);
    font-size: 0.73rem;
}

html[data-theme="light"] .pqa-loop-vs-lbl {
    color: var(--text-secondary);
}

html[data-theme="light"] .pqa-loop-vs-path {
    color: var(--text-muted);
}

html[data-theme="light"] .pqa-pipe-step--ai {
    background: rgba(91, 79, 207, 0.1);
    border-color: rgba(91, 79, 207, 0.3);
    color: #5b4fcf;
}

html[data-theme="light"] .pqa-pipe-step--ok {
    background: rgba(21, 128, 61, 0.1);
    border-color: rgba(21, 128, 61, 0.3);
    color: var(--success-text-dark);
}

html[data-theme="light"] .pqa-status-badge {
    font-size: 0.72rem;
}

/* ── Hero title gradient — swap white-start to dark ── */
html[data-theme="light"] .hero-title {
    color: var(--text-dark);
}

/* ── Vibe Check Banner ("The Vibe Coding Tax") ── */
html[data-theme="light"] .vibe-check-banner {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05), rgba(255, 159, 67, 0.05));
    border-top-color: rgba(255, 71, 87, 0.18);
    border-bottom-color: rgba(255, 71, 87, 0.18);
}

html[data-theme="light"] .vibe-banner-content {
    background: #ffffff;
    border-color: rgba(255, 71, 87, 0.2);
    box-shadow: 0 2px 16px rgba(255, 71, 87, 0.06);
}

html[data-theme="light"] .vibe-banner-content:hover {
    border-color: rgba(255, 71, 87, 0.35);
    box-shadow: 0 8px 32px rgba(255, 71, 87, 0.1);
}

html[data-theme="light"] .vibe-banner-icon {
    background: rgba(255, 71, 87, 0.07);
    border-color: rgba(255, 71, 87, 0.18);
}

html[data-theme="light"] .vibe-banner-text p {
    color: var(--text-secondary);
}

html[data-theme="light"] .vibe-banner-note {
    color: var(--text-light);
}

/* ── Matrix / Live Demo Banner ── */
html[data-theme="light"] .matrix-demo-banner {
    background: var(--bg-light);
}

html[data-theme="light"] .matrix-banner-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.09);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .matrix-banner-text h2 {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 50%, #2dbd6e 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .matrix-banner-text p {
    color: var(--text-secondary);
}

html[data-theme="light"] .matrix-banner-note {
    color: var(--text-light);
}

html[data-theme="light"] .matrix-banner-badge {
    background: rgba(124, 108, 240, 0.08);
    border-color: rgba(124, 108, 240, 0.2);
    color: var(--primary-color);
}

/* ── Proof block (multi-model resilience) ── */
html[data-theme="light"] .proof-block {
    background: #ffffff;
    border-color: rgba(124, 108, 240, 0.15);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

/* Inline-styled h3/p inside proof-block use var(--text-primary,#fff) fallbacks
   — the variables are now defined above so they resolve correctly. */

/* ── Section contrast boost ── */
/* Alternate sections: use a more distinct off-white rather than near-white */
html[data-theme="light"] .features,
html[data-theme="light"] .pain-qa-section,
html[data-theme="light"] .resources,
html[data-theme="light"] .early-bird,
html[data-theme="light"] .nexus-section,
html[data-theme="light"] .book-demo-section,
html[data-theme="light"] .testimonials,
html[data-theme="light"] .testimonial-section,
html[data-theme="light"] #product-demo {
    background: var(--bg-light) !important;
}

html[data-theme="light"] .logo-ticker {
    background: var(--bg-light);
}

/* Cards pop on sections: give them clear white + stronger border + shadow */
html[data-theme="light"] .feature-highlight-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .early-bird-card,
html[data-theme="light"] .pricing-card,
html[data-theme="light"] .nexus-card,
html[data-theme="light"] .testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* Section titles: bolder weight for better hierarchy */
html[data-theme="light"] .section-title {
    color: var(--text-dark);
    font-weight: 600;
}

/* Body text & subtitles: proper dark-gray hierarchy */
html[data-theme="light"] .section-subtitle,
html[data-theme="light"] .showcase-subtitle,
html[data-theme="light"] .hero-subtitle,
html[data-theme="light"] .waitlist-subtitle {
    color: var(--text-secondary);
}

/* ── Roadmap (if present) ── */
html[data-theme="light"] .roadmap-section,
html[data-theme="light"] .roadmap {
    background: #ffffff;
}

/* ── Transition for smooth theme switch ── */
@media (prefers-reduced-motion: no-preference) {
    html[data-theme="light"] * {
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.1s ease;
    }
}

/* But don't animate transitions on images/SVGs */
html[data-theme="light"] img,
html[data-theme="light"] svg,
html[data-theme="light"] video {
    transition: none;
}
