.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding-inline: 1.05rem;
  padding-block: 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.96rem;
  line-height: 1;
  transition: transform var(--transition-soft), box-shadow var(--transition-soft), background-color var(--transition-soft),
    border-color var(--transition-soft), color var(--transition-soft);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.button--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.3);
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.36);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(124, 58, 237, 0.28);
  color: var(--color-primary-dark);
}

.button--link {
  background: transparent;
  color: var(--color-text-main);
  border-color: rgba(229, 231, 235, 0.85);
}

.button--link:hover,
.button--link:focus-visible {
  color: var(--color-primary-dark);
  border-color: rgba(124, 58, 237, 0.35);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  background: rgba(124, 58, 237, 0.08);
  color: #5d38ab;
  border: 1px solid rgba(124, 58, 237, 0.16);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 1rem;
  background: #fcfcff;
  transition: opacity 620ms ease, visibility 620ms ease;
}

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__network {
  inline-size: min(42vw, 220px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.preloader__svg {
  inline-size: 100%;
  block-size: 100%;
}

.preloader__edges line {
  stroke: rgba(124, 58, 237, 0.5);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 180;
  animation: preloader-edge 2.4s ease-in-out infinite;
}

.preloader__edges line:nth-child(2) {
  animation-delay: 180ms;
}

.preloader__edges line:nth-child(3) {
  animation-delay: 360ms;
}

.preloader__edges line:nth-child(4) {
  animation-delay: 520ms;
}

.preloader__edges line:nth-child(5) {
  animation-delay: 730ms;
}

.preloader__edges line:nth-child(6) {
  animation-delay: 900ms;
}

.preloader__nodes circle {
  fill: #7c3aed;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.6));
  transform-origin: center;
  animation: preloader-node 2.4s ease-in-out infinite;
}

.preloader__nodes circle:first-child {
  animation-duration: 2.1s;
}

.preloader__nodes circle:nth-child(2) {
  animation-delay: 180ms;
}

.preloader__nodes circle:nth-child(3) {
  animation-delay: 380ms;
}

.preloader__nodes circle:nth-child(4) {
  animation-delay: 520ms;
}

.preloader__nodes circle:nth-child(5) {
  animation-delay: 760ms;
}

.preloader__text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@keyframes preloader-edge {
  0%,
  100% {
    stroke-dashoffset: 180;
    opacity: 0.32;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes preloader-node {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  inline-size: 24px;
  block-size: 24px;
  z-index: 120;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: transform, opacity;
}

.cursor--visible {
  opacity: 1;
}

.cursor__outer,
.cursor__inner {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.cursor__outer {
  inline-size: 24px;
  block-size: 24px;
  border: 1.4px solid rgba(124, 58, 237, 0.85);
  background: rgba(255, 255, 255, 0.25);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.cursor__inner {
  inline-size: 5px;
  block-size: 5px;
  background: rgba(124, 58, 237, 0.95);
  transition: transform 220ms ease, background-color 220ms ease;
}

.cursor--interactive .cursor__outer {
  transform: scale(0.72);
  border-color: rgba(14, 165, 233, 0.9);
  background: rgba(14, 165, 233, 0.14);
}

.cursor--interactive .cursor__inner {
  transform: scale(1.45);
  background: rgba(14, 165, 233, 1);
}

.cursor--pressed .cursor__outer {
  transform: scale(0.62);
}

@media (hover: hover) and (pointer: fine) {
  body.cursor-enabled {
    cursor: none;
  }
  
  body.cursor-enabled a,
  body.cursor-enabled button,
  body.cursor-enabled [role='button'] {
    cursor: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}
