:root {
  --bg: #05060a;
  --cyan: #00e5ff;
  --violet: #a855f7;
  --pink: #ff2bd6;
  --lime: #9cff57;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --glass: rgba(255, 255, 255, 0.05);
  --glass2: rgba(0, 229, 255, 0.08);
}

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: #05060a;
  color: var(--text);
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  overflow: hidden;
  cursor: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.22;
}

.vignette {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 35%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.grid3d,
.scanbar {
  display: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.custom-cursor {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(0, 229, 255, 0.85);
  box-shadow:
    0 0 24px rgba(0, 229, 255, 0.55),
    inset 0 0 12px rgba(0, 229, 255, 0.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition:
    width 0.28s ease,
    height 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.08s linear;
}

.custom-cursor.hover {
  width: 64px;
  height: 64px;
  border-color: rgba(255, 43, 214, 0.85);
  box-shadow:
    0 0 55px rgba(255, 43, 214, 0.55),
    0 0 90px rgba(168, 85, 247, 0.25);
}

.cursor-dot {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  opacity: 0.75;
}

.orb {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.22) 0%,
    rgba(168, 85, 247, 0.18) 35%,
    rgba(255, 43, 214, 0.1) 55%,
    transparent 72%
  );
  filter: blur(70px) saturate(1.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  will-change: transform, left, top;
  opacity: 0.95;
}

.stage {
  position: relative;
  z-index: 10;
  width: min(980px, 92vw);
  padding: clamp(24px, 4vw, 42px);
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(0, 229, 255, 0.05);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  overflow: visible;
  transform-style: preserve-3d;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  transform: translateZ(-15px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    transparent 45%,
    transparent 55%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.3) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.stage .glass-content {
  position: relative;
  z-index: 5;
  transform: translateZ(20px);
}

.stage .glass-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
  border-radius: 20px 20px 50% 50%;
}

.kicker {
  font-family:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  user-select: none;
  perspective: 500px;
}

.pill {
  position: relative;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.2),
    rgba(168, 85, 247, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform-style: preserve-3d;
  transform: translateZ(6px);
  transition: transform 0.3s ease;
}

.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.1),
    rgba(168, 85, 247, 0.05)
  );
  transform: translateZ(-6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.3) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.pill:hover {
  transform: translateZ(20px);
}

.pill:hover::before {
  transform: translateZ(-10px);
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.15),
    rgba(168, 85, 247, 0.08)
  );
}

.pill:hover::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0.4) 100%
  );
}

.pill .space {
  display: none;
}

.pill .sep {
  display: inline;
}

.logoWrap {
  display: inline-block;
  position: relative;
  user-select: none;
  display: flex;
  justify-content: center;
  perspective: 800px;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
  padding: 20px 40px;
  margin: 10px;
}

.logoWrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: logoRing 6s linear infinite;
}

.logoWrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  height: 160%;
  border: 1px solid rgba(168, 85, 247, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: logoRing 8s linear infinite reverse;
}

@keyframes logoRing {
  from {
    opacity: 0.3;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(360deg) scale(1.2);
  }
}

.logo {
  font-size: clamp(3.2rem, 10vw, 6.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  transform-style: preserve-3d;
  animation: logoFloat 7s ease-in-out infinite;
  transition:
    transform 0.4s ease,
    filter 0.4s ease,
    letter-spacing 0.4s ease;
  position: relative;
}

.logo::before {
  content: "ITwave";
  position: absolute;
  inset: 0;
  color: transparent;
  transform: translateZ(-2px);
  text-shadow:
    1px 1px 0 rgba(0, 229, 255, 0.3),
    2px 2px 0 rgba(0, 229, 255, 0.2),
    3px 3px 0 rgba(0, 229, 255, 0.15),
    4px 4px 0 rgba(0, 229, 255, 0.1),
    5px 5px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: -1;
}

.logo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 229, 255, 0.15) 0%,
    rgba(168, 85, 247, 0.08) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%) translateZ(-30px);
  filter: blur(20px);
  pointer-events: none;
  z-index: -2;
  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) translateZ(-30px) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) translateZ(-30px) scale(1.1);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-8px) rotateX(5deg);
  }
}

.logoWrap:hover .logo {
  animation: none;
  transform: translateZ(50px) scale(1.08) rotateX(-5deg);
  letter-spacing: 0.05em;
  filter: drop-shadow(0 0 50px rgba(0, 229, 255, 0.6))
    drop-shadow(0 0 80px rgba(168, 85, 247, 0.3));
}

.logoWrap:hover .logo::before {
  transform: translateZ(-3px);
  text-shadow:
    1px 1px 0 rgba(0, 229, 255, 0.4),
    2px 2px 0 rgba(0, 229, 255, 0.3),
    3px 3px 0 rgba(0, 229, 255, 0.2),
    4px 4px 0 rgba(0, 229, 255, 0.15),
    5px 5px 0 rgba(0, 229, 255, 0.1),
    6px 6px 15px rgba(0, 0, 0, 0.4);
}

.logoWrap:hover .logo::after {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 229, 255, 0.25) 0%,
    rgba(168, 85, 247, 0.15) 40%,
    rgba(255, 43, 214, 0.08) 70%,
    transparent 80%
  );
}

.it {
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(0, 229, 255, 0.2);
  display: inline-block;
  transform: translateZ(10px);
}

.wave {
  position: relative;
  background: linear-gradient(
    90deg,
    var(--cyan),
    var(--violet),
    var(--pink),
    var(--cyan)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(168, 85, 247, 0.3);
  animation: gradShift 4.5s ease-in-out infinite;
  display: inline-block;
  transform: translateZ(15px);
}

@keyframes gradShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.wave::after {
  content: "wave";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 40%,
      rgba(255, 255, 255, 0.5),
      transparent 55%
    ),
    radial-gradient(circle at 80% 60%, rgba(0, 229, 255, 0.4), transparent 60%),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0)
    );
  mix-blend-mode: overlay;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'%3E%3Cpath d='M0 100 C 60 40, 140 160, 200 100 S 340 40, 400 100 S 540 160, 600 100 V200 H0 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 220% 140%;
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: 0% 55%;
  animation: waveMask 2.6s linear infinite;
  opacity: 1;
  pointer-events: none;
  transform: translateZ(5px);
}

@keyframes waveMask {
  from {
    -webkit-mask-position: 0% 55%;
  }
  to {
    -webkit-mask-position: 200% 55%;
  }
}

.descArea {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  padding: 18px 26px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.06) inset;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.descArea:hover {
  transform: scale(1.045);
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.22);
  box-shadow:
    0 0 55px rgba(0, 229, 255, 0.16),
    0 0 85px rgba(255, 43, 214, 0.08);
}

.desc {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.14);
}

.statusDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 30% 30%,
      #fff,
      rgba(255, 255, 255, 0.2) 45%,
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 229, 255, 0.9), rgba(255, 43, 214, 0.7));
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
  animation: blink 1.35s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.subline {
  margin-top: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  user-select: none;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 10;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  user-select: none;
}

.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer a:hover {
  border-bottom-color: rgba(0, 229, 255, 0.35);
}

.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.9);
  box-shadow:
    0 0 12px rgba(0, 229, 255, 0.9),
    0 0 24px rgba(168, 85, 247, 0.22);
  pointer-events: none;
  z-index: 6;
}

.star {
  position: fixed;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: twinkle 3.5s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  body {
    cursor: auto;
  }
  .custom-cursor,
  .cursor-dot {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    cursor: auto;
  }
  .custom-cursor,
  .cursor-dot {
    display: none;
  }
  .stage {
    border-radius: 18px;
  }
  .grid3d {
    opacity: 0.35;
  }
  .pill {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
  .pill .sep {
    display: none;
  }
  .pill .space {
    display: inline;
  }
  .kicker {
    gap: 0.4rem;
  }
  .logoWrap {
    padding: 15px 25px;
  }
}
