html {
  color-scheme: dark;
  background-color: #141416;
  scroll-behavior: smooth;
}

body {
  background-color: #141416;
  color: #ECECE8;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.15;
  text-transform: none;
  color: #ECECE8;
}

h3, h4 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.15;
  text-transform: none;
  color: #ECECE8;
}

table a,
table td a {
  color: #BFF54A;
}

/* Smooth charcoal-olive card surfaces */
.glass-card {
  background-color: #1C1D1A;
  border: 1px solid #2C2E29;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04), 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}

.glass-card:hover {
  border-color: #3B4D1E;
  background-color: #21231E;
}

/* Smooth continuous section textures */
.bg-grid,
.bg-dots,
.bg-glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%);
}

.bg-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(65% 55% at 20% 0%, rgba(191, 245, 74, 0.06), transparent),
    radial-gradient(55% 45% at 85% 15%, rgba(152, 201, 56, 0.05), transparent);
}

@keyframes heroGlowDrift {
  0%, 100% {
    opacity: 0.85;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate3d(0, 12px, 0) scale(1.03);
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero-glow-animate.bg-glow::after {
    animation: heroGlowDrift 24s ease-in-out infinite;
  }
}

/* Dark-surface logo tiles */
.logo-tile {
  width: 140px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
}

.logo-tile img {
  max-height: 36px;
  width: auto;
  max-width: 116px;
  object-fit: contain;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
  opacity: 0.6;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-tile:hover img {
  opacity: 1;
  filter: grayscale(1) invert(1) brightness(1.25);
}

/* High-contrast text selection */
::selection {
  background-color: #BFF54A;
  color: #141416;
}

/* Visible focus rings */
:focus-visible {
  outline: 2px solid #BFF54A;
  outline-offset: 2px;
}

/* Primary accent button hover glow */
a[class*="bg-[#BFF54A]"]:hover,
button[class*="bg-[#BFF54A]"]:hover,
a.bg-primary:hover,
button.bg-primary:hover {
  box-shadow: 0 0 20px rgba(191, 245, 74, 0.28);
}

/* Dark form inputs & selects */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea,
select {
  background-color: #141416;
  color: #ECECE8;
  border-color: #2C2E29;
}

input::placeholder,
textarea::placeholder {
  color: #8C8E86;
}
