/* Oxys-specific visual tokens and component styles. */

:root[data-accent="petal-purple"] {
  /* sRGB fallback */
  --accent: light-dark(#74229e, #c986f5);
  --accent-hover: light-dark(#5e1982, #d9a4fa);
  --accent-soft: light-dark(rgba(116, 34, 158, 0.12), rgba(201, 134, 245, 0.16));
  --accent-ink: light-dark(#ffffff, #111214);
}

@media (color-gamut: p3) {
  :root[data-accent="petal-purple"] {
    --accent: light-dark(
      color(display-p3 0.42 0.14 0.59),
      color(display-p3 0.76 0.53 0.94)
    );
    --accent-hover: light-dark(
      color(display-p3 0.34 0.10 0.48),
      color(display-p3 0.83 0.65 0.96)
    );
    --accent-soft: light-dark(
      color(display-p3 0.42 0.14 0.59 / 0.12),
      color(display-p3 0.76 0.53 0.94 / 0.16)
    );
  }
}

@media (color-gamut: rec2020) {
  :root[data-accent="petal-purple"] {
    --accent: light-dark(
      color(rec2020 0.38 0.06 0.56),
      color(rec2020 0.72 0.40 0.92)
    );
    --accent-hover: light-dark(
      color(rec2020 0.31 0.04 0.47),
      color(rec2020 0.79 0.50 0.96)
    );
    --accent-soft: light-dark(
      color(rec2020 0.38 0.06 0.56 / 0.12),
      color(rec2020 0.72 0.40 0.92 / 0.16)
    );
  }
}

/* Hero mascot */

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mascot-icon {
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.mascot-tile-border {
  stroke: var(--border);
  stroke-width: 16;
}

.mascot-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: oxys-blink 6.5s ease-in-out infinite;
}

@keyframes oxys-blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-eye {
    animation: none;
  }
}

/* Oxys widescreen screenshot carousel (1600x941 window captures) */

:root {
  --carousel-aspect-ratio: 1600 / 941;
  --carousel-max-width: 480px;
  --carousel-mobile-max-width: 100%;
  --carousel-lightbox-max-width: 1280px;
  --carousel-lightbox-image-max-width: 1220px;
}

.carousel-image,
.carousel-lightbox-image {
  border-radius: var(--radius-md);
}

.carousel-image {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Oxys procedural pine canopy background */

.oxys-canopy {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg);
}

.oxys-canopy-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
