@keyframes spinRadar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.12); }
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8vw, -6vh, 0) scale(1.05); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-8vw, 8vh, 0) scale(1.08); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.82; filter: blur(130px); }
  50% { opacity: 0.5; filter: blur(150px); }
}

@keyframes dustDrift1 {
  0% { background-position: 0 0; }
  100% { background-position: 250px -500px; }
}

@keyframes dustDrift2 {
  0% { background-position: 0 0; }
  100% { background-position: -200px -400px; }
}

@keyframes sweepLight {
  0% { transform: translateX(-100vw) skewX(-45deg); opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { transform: translateX(200vw) skewX(-45deg); opacity: 0; }
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-deep);
  overflow: hidden;
}

.hero-bg-character {
  position: absolute;
  inset: -50px;
  z-index: 1;
  background-image: url("../img/cs2_character.png");
  background-size: auto 80%;
  background-repeat: no-repeat;
  background-position: right 15% bottom 0%;
  opacity: 0.42;
  filter: blur(1px) brightness(0.78);
  transition: opacity 0.5s ease;
}

.hero-bg-character-left {
  position: absolute;
  left: -25vw;
  bottom: -15vh;
  width: 50vw;
  height: 90vh;
  background-image: url("../img/image_1.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;
  transform: scaleX(-1) rotate(25deg);
  z-index: 3;
  opacity: 0.18;
  filter: blur(2px) brightness(0.68);
  transition: opacity 0.5s ease;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(4, 2, 8, 0.42) 0%, rgba(4, 2, 8, 0.98) 100%),
    radial-gradient(circle at 75% 40%, transparent 0%, rgba(4, 2, 8, 0.82) 100%);
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.hero-bg::before {
  width: min(800px, 52vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(145, 70, 255, 0.4) 0%, transparent 70%);
  top: -100px;
  left: -150px;
  animation: floatOrb1 25s ease-in-out infinite, pulseGlow 6s ease-in-out infinite;
}

.hero-bg::after {
  width: min(700px, 48vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(79, 29, 179, 0.38) 0%, transparent 70%);
  bottom: -50px;
  right: -100px;
  animation: floatOrb2 30s ease-in-out infinite, pulseGlow 7s ease-in-out infinite;
}

.hero-dust-1,
.hero-dust-2 {
  position: absolute;
  inset: -150px;
  z-index: 3;
  pointer-events: none;
}

.hero-dust-1 {
  background-image: radial-gradient(circle, rgba(145, 70, 255, 0.5) 1px, transparent 1.5px);
  background-size: 80px 80px;
  animation: dustDrift1 35s linear infinite;
}

.hero-dust-2 {
  background-image: radial-gradient(circle, rgba(0, 243, 255, 0.42) 1px, transparent 2px);
  background-size: 130px 130px;
  animation: dustDrift2 50s linear infinite;
  opacity: 0.75;
}

.hero-light-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20vw;
  background: linear-gradient(90deg, transparent, rgba(145, 70, 255, 0.02), rgba(255, 255, 255, 0.05), rgba(145, 70, 255, 0.02), transparent);
  z-index: 3;
  animation: sweepLight 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(to bottom, transparent, transparent 50%, rgba(0, 0, 0, 0.14) 50%, rgba(0, 0, 0, 0.14));
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.45;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 10%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 90%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-height: 100vh;
  padding: 0 clamp(20px, 3vw, 56px);
  gap: 24px;
}

.hero-left {
  position: sticky;
  top: 0;
  width: 320px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: perspective(1500px) rotateY(10deg);
  transform-origin: left center;
  z-index: 10;
  flex-shrink: 0;
}

.hero-right {
  position: sticky;
  top: 0;
  width: 350px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: perspective(1500px) rotateY(-10deg);
  transform-origin: right center;
  z-index: 10;
  flex-shrink: 0;
}

.hero-center {
  flex: 1;
  max-width: 860px;
  min-height: 100vh;
  height: 100vh;
  display: block;
  position: relative;
  z-index: 20;
  overflow: hidden;
}

.hero-center-snap-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 86px 0 18px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(40px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease,
    visibility 0s linear 0.7s;
  will-change: opacity, transform, filter;
}

.hero-center-snap-section.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
  z-index: 2;
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease,
    visibility 0s linear 0s;
}

.hero-center-snap-section.is-leaving-up {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateY(-42px) scale(0.985);
  filter: blur(8px);
  z-index: 1;
}

.hero-center-snap-section.is-leaving-down {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateY(42px) scale(0.985);
  filter: blur(8px);
  z-index: 1;
}

.hero-center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  height: 100%;
  padding: 0 15px;
}

.section-nav-arrows {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 90;
}

.sec-arrow {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(10, 5, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
}

.sec-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sec-arrow::after {
  content: attr(aria-label);
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(10, 5, 18, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.5);
}

.sec-arrow:hover {
  background: rgba(145, 70, 255, 0.15);
  border-color: rgba(0, 242, 254, 0.85);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.22), inset 0 0 12px rgba(145, 70, 255, 0.3);
  transform: scale(1.12);
}

.sec-arrow:hover svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.sec-arrow:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.sec-arrow:focus-visible {
  outline: 2px solid rgba(145, 70, 255, 0.9);
  outline-offset: 3px;
}

@media (max-width: 1700px) {
  .hero-left {
    width: 290px;
  }

  .hero-right {
    width: 310px;
  }

  .hero-center {
    max-width: 820px;
  }
}

@media (max-width: 1500px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    height: auto;
    padding: 140px 4vw 60px;
    gap: 40px;
    overflow: visible;
  }

  .hero-left,
  .hero-center,
  .hero-right,
  .section-nav-arrows {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none !important;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    max-width: 760px;
    height: auto;
  }

  .hero-left {
    order: 2;
  }

  .hero-center {
    order: 1;
    width: 100%;
    max-width: 760px;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .hero-right {
    order: 3;
  }

  .hero-center-snap-section {
    position: relative;
    inset: auto;
    height: auto;
    min-height: auto;
    padding: 0;
    margin-bottom: 40px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    filter: none;
    transition: none;
  }

  .hero-center-snap-section:last-child {
    margin-bottom: 0;
  }

  .hero-center-wrapper {
    max-width: 100%;
    height: auto;
    justify-content: flex-start;
    padding: 0;
  }

  .section-nav-arrows {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-bg-character {
    background-size: auto 72%;
    background-position: right 8% bottom 0%;
    opacity: 0.28;
  }

  .hero-bg-character-left {
    opacity: 0.12;
  }

  .hero-scanlines {
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 130px 16px 40px;
    gap: 32px;
  }

  .hero-center-wrapper {
    padding: 0;
  }

  .hero-bg-character,
  .hero-bg-character-left {
    opacity: 0.12;
  }

  .hero-bg::before {
    width: 420px;
    top: -80px;
    left: -120px;
  }

  .hero-bg::after {
    width: 360px;
    right: -100px;
    bottom: -80px;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 120px 12px 30px;
    gap: 24px;
  }

  .hero-dust-1,
  .hero-dust-2,
  .hero-light-beam,
  .hero-scanlines,
  .hero-bg-grid {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg::before,
  .hero-bg::after,
  .hero-dust-1,
  .hero-dust-2,
  .hero-light-beam {
    animation: none !important;
  }

  .hero-center-snap-section,
  .hero-center-snap-section.is-active,
  .hero-center-snap-section.is-leaving-up,
  .hero-center-snap-section.is-leaving-down,
  .sec-arrow,
  .sec-arrow svg,
  .sec-arrow::after,
  .hero-bg-character,
  .hero-bg-character-left {
    transition: none !important;
  }
}