/*
 * NVABio brand layer v2.
 * Everything is scoped to nvabio-theme-v2 to protect the shared AI4Bio UI.
 */
html.nvabio-theme-v2 {
  --primary: #087f6a;
  --primary-foreground: #ffffff;
  --ring: #20a989;
  --border: #d8ebe6;
  --radius: .85rem;
}

html.nvabio-theme-v2.dark {
  --primary: #45d7b4;
  --primary-foreground: #03251d;
  --ring: #45d7b4;
  --border: #214940;
}

html.nvabio-theme-v2 body {
  background:
    radial-gradient(circle at 8% 2%, rgba(69, 215, 180, .14), transparent 28rem),
    radial-gradient(circle at 91% 9%, rgba(14, 165, 233, .11), transparent 31rem),
    radial-gradient(circle at 54% 42%, rgba(163, 230, 53, .055), transparent 25rem),
    var(--background);
}

html.nvabio-theme-v2 body::before {
  background-image:
    linear-gradient(rgba(8, 127, 106, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 106, .032) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 52rem);
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

html.nvabio-theme-v2 body::after {
  background:
    url("/nvabio-assets/nvabio-dna-v2.svg") top 5rem right -8rem / min(44rem, 58vw) auto no-repeat;
  content: "";
  inset: 0;
  opacity: .22;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

html.nvabio-theme-v2.dark body::after {
  opacity: .13;
}

html.nvabio-theme-v2 header {
  background: color-mix(in srgb, var(--background) 82%, transparent);
  border-bottom-color: color-mix(in srgb, #20a989 14%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
}

html.nvabio-theme-v2 a[href="/"].group img[alt="logo"],
html.nvabio-theme-v2 a[href="/"] img[alt="Logo"] {
  border-radius: .7rem;
  box-shadow:
    0 8px 22px rgba(8, 127, 106, .21),
    0 0 0 1px rgba(255, 255, 255, .62) inset;
}

html.nvabio-theme-v2 .nvabio-brand-word {
  background: linear-gradient(110deg, #076c5b, #12a487 55%, #087aa4);
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: -.02em;
}

html.nvabio-theme-v2 .landing-animate-fade-up {
  letter-spacing: -.025em;
}

html.nvabio-theme-v2 h1 {
  letter-spacing: -.045em;
  text-wrap: balance;
}

html.nvabio-theme-v2 h1 span {
  background-image: linear-gradient(105deg, #087f6a 4%, #16a085 47%, #0785b5) !important;
}

html.nvabio-theme-v2 [class*="text-blue-"],
html.nvabio-theme-v2 [class*="text-amber-"] {
  color: #087f6a !important;
}

html.nvabio-theme-v2 [class*="border-blue-"],
html.nvabio-theme-v2 [class*="border-amber-"] {
  border-color: rgba(8, 127, 106, .34) !important;
}

html.nvabio-theme-v2 [class*="bg-blue-"],
html.nvabio-theme-v2 [class*="bg-amber-"] {
  background-color: rgba(32, 169, 137, .10) !important;
}

html.nvabio-theme-v2 .nvabio-bio-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.15rem;
  position: relative;
  z-index: 1;
}

html.nvabio-theme-v2 .nvabio-bio-disciplines span {
  align-items: center;
  background: color-mix(in srgb, var(--background) 76%, #d9fff4);
  border: 1px solid rgba(8, 127, 106, .17);
  border-radius: 999px;
  color: color-mix(in srgb, var(--foreground) 70%, #087f6a);
  display: inline-flex;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .34rem .66rem;
}

html.nvabio-theme-v2 .nvabio-bio-disciplines span::before {
  background: #20a989;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(32, 169, 137, .10);
  content: "";
  height: .32rem;
  margin-right: .42rem;
  width: .32rem;
}

html.nvabio-theme-v2 .nvabio-molecule-orbit {
  height: 8.5rem;
  left: -4.2rem;
  opacity: .34;
  pointer-events: none;
  position: absolute;
  top: -3.2rem;
  width: 8.5rem;
  z-index: 0;
}

html.nvabio-theme-v2 .nvabio-molecule-orbit span {
  border: 1px solid rgba(8, 127, 106, .30);
  border-radius: 50%;
  inset: 16%;
  position: absolute;
  transform: rotate(-18deg);
}

html.nvabio-theme-v2 .nvabio-molecule-orbit i {
  background: #20a989;
  border: 3px solid color-mix(in srgb, var(--background) 84%, transparent);
  border-radius: 50%;
  height: .74rem;
  position: absolute;
  width: .74rem;
}

html.nvabio-theme-v2 .nvabio-molecule-orbit i:nth-child(1) { left: 16%; top: 22%; }
html.nvabio-theme-v2 .nvabio-molecule-orbit i:nth-child(2) { right: 13%; top: 18%; }
html.nvabio-theme-v2 .nvabio-molecule-orbit i:nth-child(3) { bottom: 14%; right: 17%; }
html.nvabio-theme-v2 .nvabio-molecule-orbit i:nth-child(4) { bottom: 18%; left: 11%; }
html.nvabio-theme-v2 .nvabio-molecule-orbit i:nth-child(5) { left: 45%; top: 43%; }
html.nvabio-theme-v2 .nvabio-molecule-orbit i:nth-child(6) {
  background: #0ea5e9;
  right: 8%;
  top: 50%;
}

html.nvabio-theme-v2 main > div,
html.nvabio-theme-v2 [data-slot="card"] {
  position: relative;
}

html.nvabio-theme-v2 main [class*="rounded-xl"],
html.nvabio-theme-v2 main [class*="rounded-2xl"] {
  border-color: rgba(8, 127, 106, .14);
}

html.nvabio-theme-v2 main button,
html.nvabio-theme-v2 main a {
  transition-duration: 180ms;
}

html.nvabio-theme-v2 main button:hover,
html.nvabio-theme-v2 main a:hover {
  transform: translateY(-1px);
}

html.nvabio-theme-v2 [role="option"] {
  border-radius: .75rem;
}

html.nvabio-theme-v2 .nvabio-legal {
  color: var(--muted-foreground);
  font-size: .72rem;
  letter-spacing: .015em;
}

@media (max-width: 1024px) {
  html.nvabio-theme-v2 body::after {
    background-position: top 8rem right -10rem;
    background-size: 34rem auto;
    opacity: .14;
  }
}

@media (max-width: 640px) {
  html.nvabio-theme-v2 body::before {
    background-size: 26px 26px;
  }

  html.nvabio-theme-v2 body::after {
    background-position: top 13rem right -12rem;
    background-size: 29rem auto;
    opacity: .10;
  }

  html.nvabio-theme-v2 h1 {
    letter-spacing: -.035em;
  }

  html.nvabio-theme-v2 .nvabio-bio-disciplines {
    gap: .35rem;
    margin-top: .9rem;
  }

  html.nvabio-theme-v2 .nvabio-bio-disciplines span {
    font-size: .62rem;
    padding: .29rem .5rem;
  }

  html.nvabio-theme-v2 .nvabio-molecule-orbit {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.nvabio-theme-v2 *,
  html.nvabio-theme-v2 *::before,
  html.nvabio-theme-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
