/* Shared theme controls; loaded after the page-specific styles. */
:root { color-scheme: light; }
.header-inner { gap: 20px; }
.site-nav { position: static; transform: none; margin-inline: auto; }
.header-actions { flex: 0 0 auto; gap: 12px; }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #0b1220;
  cursor: pointer;
  transition: color .2s ease;
}
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .theme-icon-sun { display: none; }
/* Match the frameless language control; keep a keyboard-only focus indicator. */
.theme-toggle:hover { color: var(--cyan-deep); }
.theme-toggle:focus-visible { outline: 3px solid var(--cyan-deep); outline-offset: 3px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef6ff;
  --ink-soft: #b4c4d5;
  --ice: #142c3d;
  --line: #2b4155;
  --theme-bg: #0b1220;
  --theme-surface: #132133;
  --theme-raised: #1a2d42;
}
html[data-theme="dark"] body { background: var(--theme-bg); }
html[data-theme="dark"] .brand img { content: url(../images/logo-footer.svg); }
html[data-theme="dark"] ::selection { background: #00c3ff; color: #0b1220; }
html[data-theme="dark"] .skip-link { background: var(--cyan); color: #0b1220; }
html[data-theme="dark"] .site-header {
  background: rgba(14, 28, 44, 0.75);
  border: 1px solid var(--cyan-deep);
/*  background: rgba(255,255,255,0); */
/*  border: none;
  backdrop-filter: none;
  box-shadow: none; */
  /*edit*/
}
html[data-theme="dark"] .site-header.scrolled {
/*  background: rgba(14, 28, 44, .7); */
  background: rgba(11, 18, 32, .75);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}
html[data-theme="dark"] .theme-toggle {
  background: transparent;
  color: var(--ink);
}
html[data-theme="dark"] .theme-toggle:hover { color: var(--cyan); }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible { color: var(--cyan); }

html[data-theme="dark"] .plan-badge { color: #0b1220; }
/* Keep secondary button edges visible on dark surfaces in every state. */
html[data-theme="dark"] .button-outline,
html[data-theme="dark"] .contact-captcha-refresh { border-color: #83dfff; }

/* Light-page surfaces and gradients. */
html[data-theme="dark"] .page-gradient {
  background: linear-gradient(105deg, #12354a 0%, #102638 40%, #0b1220 76%);
}
html[data-theme="dark"] .pricing-hero,
html[data-theme="dark"] .team-hero,
html[data-theme="dark"] .contact-hero {
  background: radial-gradient(ellipse at 50% 0, rgba(0, 195, 255, .21), transparent 72%), var(--theme-bg);
}
html[data-theme="dark"] .faq-top::before {
  background: radial-gradient(ellipse at 50% 0, rgba(0, 195, 255, .22), transparent 75%);
}
html[data-theme="dark"] .faq-cta { background: #102b3d; }
html[data-theme="dark"] .faq-cta-bg { opacity: .2; }
html[data-theme="dark"] .product-page-hero {
  background: linear-gradient(90deg, rgba(11, 18, 32, .96), rgba(11, 18, 32, .83) 55%, rgba(11, 18, 32, .55)), url(../images/product-hero.jpg) center 35% / cover no-repeat #102638;
}
html[data-theme="dark"] .page-hero-copy > p,
html[data-theme="dark"] .product-copy p { color: var(--ink-soft); }
html[data-theme="dark"] .benefits-section { background: #0e1b2b; }
html[data-theme="dark"] .product-results {
  background: radial-gradient(90% 70% at 50% 0, #15394d 0%, var(--theme-bg) 62%);
}
html[data-theme="dark"] .pricing-plans {
  background: linear-gradient(rgba(11, 18, 32, .94), rgba(11, 18, 32, .97)), url(../images/pricing-bg.png) center / cover no-repeat;
}
/* A quiet gradient replaces the dense dot texture in the dark developers section. */
html[data-theme="dark"] .team-developers {
  background:
    radial-gradient(ellipse at 50% 0, rgba(0, 195, 255, .1), transparent 65%),
    linear-gradient(145deg, #152537, #101c2c);
}
html[data-theme="dark"] .team-developers::before { content: none; }
html[data-theme="dark"] .contact-hero::before { background: rgba(19, 33, 51, .35); border-color: var(--line); }
html[data-theme="dark"] .migration-copy {
  background: radial-gradient(ellipse at 0 0, #143c50, transparent 75%), var(--theme-surface);
}
html[data-theme="dark"] .product-tab,
html[data-theme="dark"] .product-panel,
html[data-theme="dark"] .benefit-card,
html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .team-badge,
html[data-theme="dark"] .developer-card,
html[data-theme="dark"] .contact-item {
  background: var(--theme-surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}
html[data-theme="dark"] .product-panel,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .contact-item { border-color: #257699; }
html[data-theme="dark"] .audience-card,
html[data-theme="dark"] .expert-card { background: var(--theme-raised); box-shadow: 0 14px 35px rgba(0, 0, 0, .18); }
html[data-theme="dark"] .product-tab span { background: #24394e; color: #b4d7ec; }
html[data-theme="dark"] .product-tab.active,
html[data-theme="dark"] .product-tab:hover,
html[data-theme="dark"] .product-tab:focus-visible { border-color: var(--cyan); }
html[data-theme="dark"] .product-tab.active span,
html[data-theme="dark"] .product-tab:hover span,
html[data-theme="dark"] .product-tab:focus-visible span { background: var(--cyan); color: #0b1220; }
html[data-theme="dark"] .benefit-card > img,
html[data-theme="dark"] .contact-item-icon { background: #142c3d; }
html[data-theme="dark"] .difference-card:hover,
html[data-theme="dark"] .difference-card:focus-visible,
html[data-theme="dark"] .pillar-card:hover,
html[data-theme="dark"] .pillar-card:focus-visible,
html[data-theme="dark"] .developer-card:hover,
html[data-theme="dark"] .developer-card:focus-visible {
  background: var(--theme-raised);
  border-color: var(--cyan);
  color: var(--ink);
}
html[data-theme="dark"] .audience-card:hover,
html[data-theme="dark"] .expert-card:hover { background: #223d54; }
html[data-theme="dark"] .benefit-card:hover,
html[data-theme="dark"] .catalog-card:hover,
html[data-theme="dark"] .catalog-card:focus-visible { border-color: var(--cyan); }
html[data-theme="dark"] .plan-card.dark { background: #091320; border-color: #345168; }
html[data-theme="dark"] .plan-saving { border-color: var(--line); }
html[data-theme="dark"] .plan-features li::before { background-color: #17394b; }
html[data-theme="dark"] #billing-monthly:checked ~ .billing-toggle label[for="billing-yearly"],
html[data-theme="dark"] #billing-yearly:checked ~ .billing-toggle label[for="billing-monthly"] { background: var(--theme-raised); color: var(--ink); }

/* Form controls, with the CAPTCHA and all photography left unmodified. */
html[data-theme="dark"] .contact-form-card { background: #142c3d; }
html[data-theme="dark"] .contact-field input,
html[data-theme="dark"] .contact-field textarea {
  background: #0b1928;
  border-color: #345168;
  color: var(--ink);
}
html[data-theme="dark"] .contact-field input::placeholder,
html[data-theme="dark"] .contact-field textarea::placeholder { color: #9aaec1; opacity: 1; }
html[data-theme="dark"] .contact-field input:focus,
html[data-theme="dark"] .contact-field textarea:focus { border-color: var(--cyan); }
html[data-theme="dark"] .contact-form-status { color: #73e3a6; }
html[data-theme="dark"] .contact-form-status.is-error { color: #ff9c9c; }

@media (max-width: 1100px) {
  .header-inner { gap: 12px; } 
  .menu-toggle { flex: 0 0 44px; margin-left: auto; backdrop-filter: blur(16px);/*edit*/}
  .site-nav { position: fixed; margin-inline: 0; transform: translateY(-12px); }
  .site-nav.open { transform: none; }
  .header-actions { gap: 8px; }
  html[data-theme="dark"] .site-nav { background: #132133; border-color: #345168; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
  html[data-theme="dark"] .site-header {
  background: rgba(14, 28, 44, 0);
  border: none;
  backdrop-filter: none;
  box-shadow: none;
  }
  html[data-theme="dark"] .site-header.scrolled { border: 1px solid var(--cyan-deep); }
}
@media (max-width: 370px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 6px; }
/*  .theme-toggle { width: 38px; height: 38px; flex-basis: 38px; } */
  .theme-toggle { width: 44px; height: 44px; flex-basis: 44px; backdrop-filter: blur(16px); border-radius: 8px;}
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
  html[data-theme="dark"] .audience-card:hover,
  html[data-theme="dark"] .expert-card:hover,
  html[data-theme="dark"] .developer-card:hover,
  html[data-theme="dark"] .pillar-card:hover { transform: none; }
}

html[data-theme="dark"] .plan-card:hover,
html[data-theme="dark"] .plan-card:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 195, 255, .35), 0 24px 52px rgba(0, 0, 0, .3);
}
