:root {
  color-scheme: light;

  /* BE | Life Sciences — WAVE Purchase Meet 2026 Logo Palette */
  --wave-deep: #091d42;
  --wave-navy: #0b285c;
  --wave-indigo: #2c2776;
  --wave-mid: #0c56a8;
  --wave-azure: #0e7ae6;
  --wave-aqua: #00c7d6;
  --wave-aqua-soft: rgba(0, 199, 214, 0.16);
  --wave-azure-soft: rgba(14, 122, 230, 0.12);
  --wave-indigo-soft: rgba(44, 39, 118, 0.10);

  --wave-grad: linear-gradient(125deg, #2c2776 0%, #0b285c 30%, #0e7ae6 74%, #00c7d6 100%);
  --wave-grad-bright: linear-gradient(90deg, #2c2776 0%, #0e7ae6 55%, #00c7d6 100%);
  --wave-grad-btn: linear-gradient(115deg, #211d63 0%, #0c56a8 48%, #0e7ae6 78%, #00b8c9 100%);
  --wave-grad-ok: linear-gradient(115deg, #0b6e5b 0%, #0ea5a0 60%, #00c7d6 100%);

  /* Light Luminous Surfaces & Ocean Ink */
  --bg: #f3f8fc;
  --surface: #ffffff;
  --surface-subtle: #edf5fc;
  --ink: #0a1b3d;
  --ink-soft: #263b60;
  --muted: #586f90;
  --line: rgba(11, 40, 92, 0.11);
  --line-strong: rgba(14, 122, 230, 0.24);

  --shadow-sm: 0 2px 6px rgba(11, 40, 92, 0.05), 0 8px 22px rgba(11, 40, 92, 0.05);
  --shadow-md: 0 12px 34px rgba(11, 40, 92, 0.10), 0 3px 10px rgba(14, 122, 230, 0.06);
  --shadow-lg: 0 28px 80px rgba(11, 40, 92, 0.16), 0 8px 24px rgba(14, 122, 230, 0.09);

  --danger: #c62828;
  --ok: #0d9488;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
}

button, input { font: inherit; }

button {
  min-height: 48px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.22s ease;
}

@media (pointer: coarse) {
  button {
    min-height: 52px;
  }
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--wave-azure);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

[hidden] { display: none !important; }

/* Shared Ambient WAVE Background Layer */
.wave-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave-ribbons {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -2px;
  width: 108%;
  height: clamp(120px, 20vh, 220px);
  display: block;
}

.wave-ribbon {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.wave-ribbon.r1 { animation: waveDrift1 13s ease-in-out infinite alternate; }
.wave-ribbon.r2 { animation: waveDrift2 10.5s ease-in-out infinite alternate; }
.wave-ribbon.r3 { animation: waveDrift3 8.5s ease-in-out infinite alternate; }

/* Science molecule droplets echoing the logo's "i" accent */
.wave-molecules {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mol {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6ef2ff 0%, var(--wave-aqua) 45%, var(--wave-azure) 100%);
  opacity: 0.22;
  animation: molFloat 11s ease-in-out infinite;
}

.mol.m1 { width: 10px; height: 10px; top: 14%; left: 7%; animation-delay: 0s; animation-duration: 9.5s; }
.mol.m2 { width: 6px; height: 6px; top: 22%; left: 11%; animation-delay: -2.4s; animation-duration: 7.8s; opacity: 0.32; }
.mol.m3 { width: 14px; height: 14px; top: 18%; right: 8%; animation-delay: -1.6s; animation-duration: 12s; opacity: 0.16; }
.mol.m4 { width: 7px; height: 7px; top: 28%; right: 12%; animation-delay: -4.2s; animation-duration: 8.6s; opacity: 0.28; }
.mol.m5 { width: 9px; height: 9px; bottom: 26%; left: 4%; animation-delay: -5.1s; animation-duration: 10.4s; opacity: 0.20; }
.mol.m6 { width: 11px; height: 11px; bottom: 22%; right: 6%; animation-delay: -3.3s; animation-duration: 11.2s; opacity: 0.18; }

/* Top brand accent hairline */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 50;
  background: var(--wave-grad-bright);
  background-size: 200% 100%;
  animation: gradFlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Keyframes */
@keyframes waveDrift1 {
  0% { transform: translateX(-2.5%) translateY(0px) scaleY(1); }
  100% { transform: translateX(2.5%) translateY(6px) scaleY(1.06); }
}

@keyframes waveDrift2 {
  0% { transform: translateX(2.2%) translateY(4px) scaleY(1.04); }
  100% { transform: translateX(-2.4%) translateY(-4px) scaleY(0.96); }
}

@keyframes waveDrift3 {
  0% { transform: translateX(-1.8%) translateY(-2px); }
  100% { transform: translateX(2.2%) translateY(5px); }
}

@keyframes molFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6px, -16px, 0) scale(1.16); }
}

@keyframes gradFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 199, 214, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(0, 199, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 199, 214, 0); }
}

@keyframes sheenSweep {
  0% { transform: translateX(-140%) skewX(-22deg); }
  100% { transform: translateX(240%) skewX(-22deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
