:root {
  --bs-primary: #2f3fe4;
  --bs-primary-rgb: 47, 63, 228;
  --bs-link-color: var(--bs-primary);
  --bs-link-color-rgb: 47, 63, 228;
  --bs-link-hover-color: #232fb8;
  --bs-link-hover-color-rgb: 35, 47, 184;
}

[data-bs-theme="dark"] {
  --bs-link-color: #5B8DEF;
  --bs-link-color-rgb: 91, 141, 239;
  --bs-link-hover-color: #85AAF3;
  --bs-link-hover-color-rgb: 133, 170, 243;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Blazor's FocusOnNavigate (Routes.razor) sets tabindex="-1" on the page's h1
   and focuses it after each navigation, purely so screen readers announce
   the new page — it's never reachable via keyboard Tab (tabindex="-1"
   removes it from the tab order), so hiding the visual outline here doesn't
   affect real keyboard-focus visibility anywhere else. */
h1[tabindex="-1"]:focus {
  outline: none;
}

/* Keep the utility group (theme toggle + CTA) flush right. Only applies at
   the navbar-expand-lg breakpoint; below that, it stacks normally in the
   collapsed mobile menu. */
@media (min-width: 992px) {
  .navbar-center-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
  }
}

.navbar-brand {
  color: var(--bs-primary) !important;
  letter-spacing: 0.02em;
}

.hero-section {
  background: linear-gradient(180deg, rgba(47, 63, 228, 0.06) 0%, rgba(255, 255, 255, 0) 60%);
}

/* Under-construction icon: the dark tile (enci-icon-dark.svg) reads best
   against a light page, and the light tile (enci-icon-light.svg) reads best
   against a dark page, so the pairing is the opposite of the filenames. */
.under-construction-icon-for-dark {
  display: none;
}

[data-bs-theme="dark"] .under-construction-icon-for-light {
  display: none;
}

[data-bs-theme="dark"] .under-construction-icon-for-dark {
  display: inline-block;
}

/* Hero carousel: replace Bootstrap's default full-height edge overlays (built
   for full-bleed photo carousels) with a small control row below the slides,
   since each slide here is a two-column text+image layout, not a single
   image. */
.hero-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-carousel-nav .carousel-control-prev,
.hero-carousel-nav .carousel-control-next {
  position: static;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  color: var(--bs-link-color);
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
}

.hero-carousel-nav .carousel-control-prev:hover,
.hero-carousel-nav .carousel-control-next:hover {
  background: var(--bs-tertiary-bg);
}

.hero-carousel-indicators {
  position: static;
  margin: 0;
}

.hero-carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--bs-link-color);
  opacity: .3;
  margin: 0 5px;
  text-indent: -9999px;
}

.hero-carousel-indicators .active {
  opacity: 1;
}

/* Placeholder "screenshot" for the cross-platform slide, until a real
   graphic exists. */
.platform-card {
  aspect-ratio: 1400 / 786;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  background: linear-gradient(160deg, rgba(47, 63, 228, 0.12) 0%, rgba(47, 63, 228, 0.04) 100%);
}

.platform-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: var(--bs-primary);
  font-weight: 600;
}

.platform-card-item-pending {
  opacity: 0.55;
}

.platform-status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.platform-status-available {
  color: #1a9c5c;
}

.platform-status-pending {
  color: var(--bs-secondary-color);
}

.feature-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.5rem rgba(16, 24, 64, 0.08);
}

.feature-mark {
  width: 2.25rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--bs-primary);
}

.article-copy p,
.article-copy li {
  line-height: 1.75;
}

.article-copy {
  max-width: 70ch;
}

.article-copy h2 {
  scroll-margin-top: 5rem;
}

.article-copy h1 {
  scroll-margin-top: 5rem;
}

/* Theme switching: logo and toggle-button icon swap based on data-bs-theme,
   set on <html> by the inline script in App.razor and js/theme-toggle.js. */
.navbar-brand .logo-dark-theme {
  display: none;
}

[data-bs-theme="dark"] .navbar-brand .logo-light-theme {
  display: none;
}

[data-bs-theme="dark"] .navbar-brand .logo-dark-theme {
  display: inline-block;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 999px;
}

.theme-toggle-btn .theme-icon {
  width: 13px;
  height: 13px;
}

.theme-toggle-btn .theme-icon-sun {
  display: none;
}

[data-bs-theme="dark"] .theme-toggle-btn .theme-icon-sun {
  display: inline-block;
}

[data-bs-theme="dark"] .theme-toggle-btn .theme-icon-moon {
  display: none;
}

/* Gallery placeholder tiles, until each area has a real screenshot. */
.gallery-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, rgba(47, 63, 228, 0.12) 0%, rgba(47, 63, 228, 0.04) 100%);
  color: var(--bs-primary);
}
