:root {
  --abyss: #06182e;
  --ocean: #0a2540;
  --basin: #0e3a6b;
  --blue: #1e5bd6;
  --sky: #38bdf8;
  --aqua: #22d3ee;
  --glow: #39e0ff;
  --mist: #eaf6ff;
  --pale: #f4fbff;
  --soft: #9dbbd6;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--abyss);
  background-image:
    linear-gradient(180deg, rgba(2, 10, 24, 0.16) 0%, rgba(2, 10, 24, 0.66) 50%, rgba(2, 10, 24, 0.26) 100%),
    url("../assets/protivs-background.webp");
  background-position: center top, center top;
  background-repeat: no-repeat, repeat-y;
  background-size: cover, 100% auto;
}

body {
  position: relative;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--abyss);
  color: var(--mist);
  font-family: "Zen Kaku Gothic New", sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    radial-gradient(ellipse at 50% 16%, rgba(57, 224, 255, 0.12), transparent 38rem),
    linear-gradient(90deg, rgba(2, 10, 24, 0.42), transparent 24%, transparent 76%, rgba(2, 10, 24, 0.36));
  opacity: 0.72;
}

body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.46'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.14;
}

::selection {
  background: var(--glow);
  color: var(--abyss);
}

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 4px;
}

.font-display {
  font-family: "Clash Display", "Syne", sans-serif;
}

.page-shell {
  position: relative;
  z-index: 10;
}

.site-header {
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(57, 224, 255, 0.24);
  background: rgba(6, 24, 46, 0.74);
  box-shadow: 0 16px 48px rgba(2, 18, 36, 0.30);
}

.glass {
  border: 1px solid rgba(57, 224, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(234, 246, 255, 0.13), rgba(234, 246, 255, 0.045)),
    linear-gradient(180deg, rgba(57, 224, 255, 0.08), transparent);
  box-shadow:
    inset 0 1px 0 rgba(234, 246, 255, 0.20),
    0 24px 80px rgba(2, 18, 36, 0.34),
    0 0 34px rgba(57, 224, 255, 0.10);
  backdrop-filter: blur(22px);
}

.glass-strong {
  border-color: rgba(57, 224, 255, 0.44);
  background:
    linear-gradient(150deg, rgba(234, 246, 255, 0.18), rgba(234, 246, 255, 0.06)),
    radial-gradient(circle at 20% 0%, rgba(57, 224, 255, 0.22), transparent 20rem);
  box-shadow:
    inset 0 1px 0 rgba(234, 246, 255, 0.30),
    0 26px 90px rgba(2, 18, 36, 0.42),
    0 0 42px rgba(57, 224, 255, 0.26);
}

.nav-link {
  position: relative;
  color: rgba(234, 246, 255, 0.78);
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.65rem;
  left: 0;
  height: 1px;
  background: var(--glow);
  box-shadow: 0 0 14px rgba(57, 224, 255, 0.86);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 190ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--mist);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.glow-button,
.ghost-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.glow-button {
  border: 1px solid rgba(234, 246, 255, 0.36);
  background: linear-gradient(90deg, rgba(57, 224, 255, 0.98), rgba(56, 189, 248, 0.92));
  color: var(--abyss);
  box-shadow: 0 0 26px rgba(57, 224, 255, 0.50), 0 18px 42px rgba(30, 91, 214, 0.35);
}

.ghost-button {
  border: 1px solid rgba(57, 224, 255, 0.28);
  background: rgba(234, 246, 255, 0.07);
  color: var(--mist);
  backdrop-filter: blur(20px);
}

.glow-button:hover,
.ghost-button:hover {
  border-color: rgba(57, 224, 255, 0.64);
  box-shadow: 0 0 36px rgba(57, 224, 255, 0.52), 0 20px 54px rgba(30, 91, 214, 0.34);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  border: 1px solid rgba(57, 224, 255, 0.28);
  border-radius: 999px;
  background: rgba(234, 246, 255, 0.06);
  padding: 0.52rem 0.86rem;
  color: var(--glow);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(18px);
}

.crystal {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(234, 246, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(234, 246, 255, 0.48), rgba(57, 224, 255, 0.08) 45%, rgba(14, 58, 107, 0.05)),
    linear-gradient(45deg, transparent, rgba(57, 224, 255, 0.24));
  box-shadow:
    inset 10px 10px 28px rgba(234, 246, 255, 0.13),
    inset -18px -18px 36px rgba(57, 224, 255, 0.07),
    0 0 34px rgba(57, 224, 255, 0.22);
  clip-path: polygon(48% 0, 88% 18%, 100% 62%, 62% 100%, 18% 84%, 0 34%);
  backdrop-filter: blur(8px);
}

.crystal-a {
  width: 7rem;
  height: 10rem;
  transform: rotate(-18deg);
}

.crystal-b {
  width: 5.2rem;
  height: 7rem;
  transform: rotate(18deg);
}

.shine-card {
  position: relative;
  overflow: hidden;
}

.shine-card::before {
  position: absolute;
  inset: -100% -32%;
  z-index: 1;
  background: linear-gradient(105deg, transparent 38%, rgba(234, 246, 255, 0.22), transparent 58%);
  content: "";
  opacity: 0;
  transform: translateX(-44%) rotate(10deg);
  transition: opacity 180ms ease, transform 520ms ease;
}

.shine-card:hover::before {
  opacity: 1;
  transform: translateX(48%) rotate(10deg);
}

.shine-card > * {
  position: relative;
  z-index: 2;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-icon {
  transition: transform 220ms ease;
}

.faq-button[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

@keyframes auroraFlow {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(-8deg) scale(1);
  }

  100% {
    transform: translate3d(3%, 2%, 0) rotate(-3deg) scale(1.05);
  }
}

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

@media (max-width: 767px) {
  .crystal {
    opacity: 0.45;
  }
}
