/* AINA — Sovereign Circuit Design System
 * Shared utilities referenced by every page.
 */

:root {
  color-scheme: dark;
  --aina-bg: #0b1326;
  --aina-primary: #00daf3;
  --aina-tertiary: #fdb96a;
}

html, body {
  background-color: var(--aina-bg);
  scroll-behavior: smooth;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

/* Circuit-motif overlay: radial dots + subtle grid.
 * Use on deep surfaces to suggest tech/infrastructure texture.
 */
.circuit-pattern {
  background-image:
    radial-gradient(circle at 2px 2px, rgba(0, 218, 243, 0.06) 1px, transparent 0),
    linear-gradient(to right, rgba(0, 218, 243, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 218, 243, 0.025) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px, 64px 64px;
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(0, 218, 243, 0.15) 0%, rgba(0, 84, 94, 0.4) 100%);
}

.text-gradient-primary {
  background-image: linear-gradient(90deg, #00daf3, #9cf0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-ochre {
  background-image: linear-gradient(90deg, #fdb96a, #ffddba);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Ambient glow used behind hero sections. */
.ambient-glow-primary {
  background: radial-gradient(circle at center, rgba(0, 218, 243, 0.18) 0%, transparent 65%);
  filter: blur(80px);
}
.ambient-glow-ochre {
  background: radial-gradient(circle at center, rgba(253, 185, 106, 0.14) 0%, transparent 65%);
  filter: blur(80px);
}

/* Horizontal scroll-snap carousel (no JS dep). */
.aina-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.5rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: #00daf3 #131b2e;
}
.aina-carousel > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(85vw, 360px);
}
.aina-carousel::-webkit-scrollbar { height: 6px; }
.aina-carousel::-webkit-scrollbar-track { background: #131b2e; border-radius: 999px; }
.aina-carousel::-webkit-scrollbar-thumb { background: #00545e; border-radius: 999px; }

/* Mobile drawer backdrop + panel. */
.aina-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 14, 32, 0.85);
  backdrop-filter: blur(16px);
  display: none;
}
.aina-mobile-nav[data-open="true"] { display: flex; }

/* Respect user motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Make native selects read consistently on dark bg. */
select.aina-select {
  background-color: #222a3d;
  color: #dae2fd;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: "Manrope", sans-serif;
}
select.aina-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #00daf3;
}
