/* Shared OpalCloud palette. Loaded after page styles on every local page. */
:root {
  --background: #f3f8fe;
  --foreground: #10243d;
  --primary: #176fae;
  --secondary: #1468a2;
  --surface: #ffffff;
  --surface-hover: #eaf3fc;
  --border: #c8dced;
  --muted: #526b86;
  --glow-strong: #2775bb;
  --glow-soft: #529cda;
  --glow-line: #267ab799;
  --map-accent: #268acb;
  --vps-accent: #176fae;
}

html.dark {
  color-scheme: dark;
  --background: #071426;
  --foreground: #f1f6fc;
  --primary: #3d9cde;
  --secondary: #247bb9;
  --surface: #0e2138;
  --surface-hover: #15304d;
  --border: #24415e;
  --muted: #9aafc6;
  --glow-strong: #226eb4;
  --glow-soft: #347ab9;
  --glow-line: #2875ad88;
  --map-accent: #4aa9e7;
  --vps-accent: #3d9cde;
  --card-edge: color-mix(in srgb, var(--primary) 30%, transparent);
}

html.dark body { background-color: var(--background); }
html.dark [class~="dark:bg-[#080a0e]"] { background-color: var(--surface); }

/* Keep the few fixed-color panels in the same navy family. */
html.dark .opal-performance { background: #081a33; }
html.dark .opal-performance-hero { border-color: #285b8e; background: #06142c; }
html.dark .opal-performance-item { border-color: #285b8e; background: #091c37; }
html.dark .opal-performance-icon { color: var(--primary); }
html.dark .opal-performance-description { color: #c3d6eb; }

html.dark .opal-hero-eyebrow,
html.dark .opal-hero-title span,
html.dark .testimonials-summary strong,
html.dark .faq-discord-cta p strong { color: var(--primary); }

html.dark .opal-hero-action-primary,
html.dark .faq-discord-cta-button,
html.dark .minecraft-winter-cta { background: var(--primary); color: #061424; }
html.dark .opal-hero-action-primary:hover,
html.dark .faq-discord-cta-button:hover,
html.dark .minecraft-winter-cta:hover { background: #61b5ed; }

html.dark .faq-discord-cta-inner {
  border-color: #284b6d;
  background: linear-gradient(110deg, #102b48, #0b1d34 57%, #0a1930);
}
html.dark .minecraft-winter-inner { border-color: #285b8e; }
html.dark .minecraft-winter-code { border-color: #32658e; background: #0b2a4a; }
html.dark .minecraft-winter-code strong,
html.dark .minecraft-winter-eyebrow { color: #72bced; }

html.dark .testimonials {
  background: linear-gradient(#061426c9, #061426e8), url("../testimonial-bg.gif") center / cover;
}
html.dark .testimonial-card {
  border-color: #345575;
  background: linear-gradient(145deg, #18304bbd, #0b1a30e3);
}
html.dark .testimonial-card p { color: #d6e2ef; }

/* A restrained common finish for the newly added sections. */
html.dark .host-locations-item,
html.dark .why-opalcloud-card,
html.dark .opal-security-grid,
html.dark .faq-discord-cta-inner {
  box-shadow: inset 0 1px 0 #ffffff08;
}

@media (prefers-reduced-motion: reduce) {
  html.dark .opal-hero-action-primary:hover,
  html.dark .faq-discord-cta-button:hover,
  html.dark .minecraft-winter-cta:hover { transform: none; }
}
