:root {
  --theme-bg: #f7fafc;
  --theme-bg-alt: #eef3f8;
  --theme-surface: #ffffff;
  --theme-surface-2: #f8fbff;
  --theme-text: #111827;
  --theme-muted: #475569;
  --theme-border: #d8e1ee;
  --theme-primary: #0f3f7f;
  --theme-primary-strong: #0a2b56;
  --theme-accent: #7dd3fc;
  --theme-highlight: #cbd5e1;
  --theme-shadow: 0 14px 34px rgba(9, 31, 58, 0.12);
}

html,
body {
  background: var(--theme-bg);
  color: var(--theme-text);
}

body,
main,
section,
article,
nav,
footer,
.page-main,
.feature-card,
.product-card,
.standard-item,
.stat-card,
.trust-grid article,
.testimonial-grid blockquote,
.intro-panel,
.glass-form,
.contact-cards article,
.vision-grid article,
.card-grid article,
.stats article {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.button,
button,
a {
  transition: all 0.25s ease;
}

[data-theme="dark"] {
  --theme-bg: #0f172a;
  --theme-bg-alt: #111827;
  --theme-surface: #1e293b;
  --theme-surface-2: #111827;
  --theme-text: #e2e8f0;
  --theme-muted: #94a3b8;
  --theme-border: #334155;
  --theme-primary: #3b82f6;
  --theme-primary-strong: #60a5fa;
  --theme-accent: #22d3ee;
  --theme-highlight: #475569;
  --theme-shadow: 0 16px 34px rgba(2, 6, 23, 0.55);
}

[data-theme="dark"] body,
[data-theme="dark"] .page-main,
[data-theme="dark"] main {
  background: var(--theme-bg);
  color: var(--theme-text);
}

[data-theme="light"] .section:nth-child(even),
[data-theme="light"] .section-alt,
[data-theme="light"] .filter-strip {
  background: var(--theme-bg-alt) !important;
}

[data-theme="dark"] .section,
[data-theme="dark"] .section-alt,
[data-theme="dark"] .filter-strip {
  background: var(--theme-bg-alt) !important;
}

[data-theme="dark"] .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 45%);
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .standard-item,
[data-theme="dark"] .intro-panel,
[data-theme="dark"] .glass-form,
[data-theme="dark"] .contact-cards article,
[data-theme="dark"] .vision-grid article,
[data-theme="dark"] .card-grid article,
[data-theme="dark"] .stats article,
[data-theme="dark"] .testimonial-grid blockquote,
[data-theme="dark"] .trust-grid article {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #273449 !important;
  box-shadow: var(--theme-shadow);
}

[data-theme="light"] .product-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .standard-item,
[data-theme="light"] .intro-panel,
[data-theme="light"] .glass-form,
[data-theme="light"] .contact-cards article,
[data-theme="light"] .vision-grid article,
[data-theme="light"] .card-grid article,
[data-theme="light"] .stats article,
[data-theme="light"] .testimonial-grid blockquote,
[data-theme="light"] .trust-grid article {
  background: var(--theme-surface);
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow);
}

[data-theme="dark"] .meta,
[data-theme="dark"] .section-label,
[data-theme="dark"] .product-link,
[data-theme="dark"] .hover-panel a {
  color: var(--theme-accent) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] .section-text,
[data-theme="dark"] .product-content p {
  color: #cbd5e1 !important;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #0b1220 !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}

[data-theme="dark"] .button-primary,
[data-theme="dark"] button,
[data-theme="dark"] .product-link {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 8px 24px rgba(2, 6, 23, 0.45);
}

[data-theme="dark"] .rc-nav-title {
  color: #f1f5f9;
}

[data-theme="dark"] .rc-nav-title:hover {
  color: var(--theme-accent, #7dd3fc);
}

[data-theme="dark"] nav.sticky.fixed {
  background: rgba(15, 23, 42, 0.96) !important;
  border-bottom-color: rgba(51, 65, 85, 0.55) !important;
}

[data-theme="dark"] .top-nav ul li > a::after {
  background: var(--theme-accent);
}

[data-theme="dark"] .simple-footer {
  background: #030712 !important;
}

[data-theme="dark"] .top-bar {
  background: #020617;
}

/* Homepage (index) premium layout */
[data-theme="dark"] footer.rc-footer {
  background: #020617 !important;
  border-top-color: rgba(51, 65, 85, 0.45) !important;
}

[data-theme="dark"] .rc-industry-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}

[data-theme="dark"] .rc-cta-panel {
  background: #020617;
  border-color: rgba(51, 65, 85, 0.55);
  box-shadow: var(--theme-shadow);
}
