:root {
  --bg-deep: #05060a;
  --bg-card: rgba(12, 14, 24, 0.72);
  --neon-cyan: #00f5ff;
  --neon-magenta: #ff00aa;
  --neon-violet: #8b5cf6;
  --text: #e8ecf4;
  --text-muted: #8b92a8;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3 {
  margin-block: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.9375rem, 2.4vw, 1.125rem);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 0, 170, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(0, 245, 255, 0.1), transparent),
    var(--bg-deep);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 20%, transparent 70%);
  animation: grid-drift 20s linear infinite;
  pointer-events: none;
}

@keyframes grid-drift {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(48px);
  }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.5;
}

.wrap {
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: max(clamp(0.75rem, 2.5vh, 1.75rem), env(safe-area-inset-top, 0px));
  padding-right: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-right, 0px));
  padding-bottom: max(clamp(0.75rem, 2.5vh, 1.75rem), env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left, 0px));
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (min-width: 48rem) {
  .hero {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 0;
  }
}

@media (max-width: 47.99rem) {
  .hero {
    flex: 0 0 auto;
  }
}

.badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 245, 255, 0.35);
  background: rgba(0, 245, 255, 0.06);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.15);
  animation: badge-pulse 3s ease-in-out infinite;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-magenta);
  box-shadow: 0 0 10px var(--neon-magenta);
  animation: dot-blink 1.2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(0, 245, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 32px rgba(0, 245, 255, 0.28);
  }
}

@keyframes dot-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.brand {
  margin-top: 1.75rem;
  max-width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 7.5vw, 4.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  background: linear-gradient(
    105deg,
    var(--text) 0%,
    var(--neon-cyan) 35%,
    var(--neon-violet) 55%,
    var(--neon-magenta) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-shine 6s ease infinite;
  filter: drop-shadow(0 0 40px rgba(0, 245, 255, 0.25));
}

@keyframes brand-shine {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.brand-sub {
  margin-top: 0.35rem;
  max-width: 100%;
  padding: 0 0.25rem;
  text-align: center;
  font-size: clamp(0.75rem, 2.2vw, 1rem);
  letter-spacing: clamp(0.12em, 1.5vw, 0.35em);
  text-transform: uppercase;
  color: var(--text-muted);
}

.headline {
  margin-top: 2.5rem;
  margin-bottom: 0;
  max-width: 100%;
  padding: 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 10.5vw, 6.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.headline-glitch {
  position: relative;
  display: inline-block;
  max-width: 100%;
  color: var(--text);
  text-shadow:
    0 0 20px rgba(0, 245, 255, 0.5),
    0 0 40px rgba(139, 92, 246, 0.3);
  animation: headline-float 4s ease-in-out infinite;
}

.headline-glitch::before,
.headline-glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.headline-glitch::before {
  color: var(--neon-cyan);
  animation: glitch-1 2.5s infinite linear alternate-reverse;
  opacity: 0.85;
  z-index: -1;
}

.headline-glitch::after {
  color: var(--neon-magenta);
  animation: glitch-2 3s infinite linear alternate-reverse;
  opacity: 0.75;
  z-index: -2;
}

@keyframes headline-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes glitch-1 {
  0% {
    clip-path: inset(40% 0 55% 0);
    transform: translate(-2px, 1px);
  }
  20% {
    clip-path: inset(10% 0 75% 0);
    transform: translate(2px, -1px);
  }
  40% {
    clip-path: inset(70% 0 15% 0);
    transform: translate(-1px, 2px);
  }
  60% {
    clip-path: inset(25% 0 60% 0);
    transform: translate(1px, -2px);
  }
  80% {
    clip-path: inset(55% 0 30% 0);
    transform: translate(-2px, 0);
  }
  100% {
    clip-path: inset(5% 0 85% 0);
    transform: translate(0, 1px);
  }
}

@keyframes glitch-2 {
  0% {
    clip-path: inset(65% 0 20% 0);
    transform: translate(2px, 0);
  }
  25% {
    clip-path: inset(15% 0 70% 0);
    transform: translate(-2px, 2px);
  }
  50% {
    clip-path: inset(45% 0 40% 0);
    transform: translate(1px, -1px);
  }
  75% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(-1px, 1px);
  }
  100% {
    clip-path: inset(30% 0 55% 0);
    transform: translate(2px, -2px);
  }
}

.card {
  margin-top: 2rem;
  width: 100%;
  max-width: min(42rem, 100%);
  padding: clamp(1.1rem, 3.5vw, 1.75rem) clamp(1rem, 4.5vw, 2.25rem);
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.06) inset,
    0 24px 48px rgba(0, 0, 0, 0.45);
  animation: card-glow 4s ease-in-out infinite;
}

@keyframes card-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(0, 245, 255, 0.06) inset,
      0 24px 48px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(139, 92, 246, 0.12) inset,
      0 24px 56px rgba(139, 92, 246, 0.08);
  }
}

.card p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.card strong {
  color: var(--text);
  font-weight: 700;
}

.tags {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag {
  font-family: var(--font-display);
  font-size: clamp(0.45rem, 2.8vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem clamp(0.5rem, 2vw, 0.85rem);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 10, 0.65);
  color: var(--neon-cyan);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag:nth-child(2) {
  color: var(--neon-magenta);
}

.tag:nth-child(3) {
  color: var(--neon-violet);
}

.tag:nth-child(4) {
  color: var(--neon-cyan);
}

.tag:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.15);
}

.progress-wrap {
  margin-top: 1.75rem;
  width: 100%;
  max-width: min(280px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 38%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan), var(--neon-magenta));
  background-size: 200% 100%;
  animation: progress-shine 2s linear infinite, progress-width 8s ease-in-out infinite alternate;
}

@keyframes progress-shine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes progress-width {
  0% {
    width: 32%;
  }
  100% {
    width: 62%;
  }
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: clamp(1.5rem, 4vh, 3rem);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer__address {
  margin: 0;
  font-style: normal;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15em 0;
  max-width: 100%;
}

.footer__sep {
  display: inline-block;
  padding: 0 0.35em;
}

.footer a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer a:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.5);
}

@media (max-width: 24rem) {
  .badge {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    padding: 0.3rem 0.65rem;
  }
}

@media (max-height: 40rem) {
  .brand {
    margin-top: 0.85rem;
  }

  .headline {
    margin-top: 1.15rem;
  }

  .card {
    margin-top: 1.1rem;
  }

  .footer {
    padding-top: 1.25rem;
  }
}

@media (min-width: 90rem) {
  .wrap {
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
  }

  .card {
    max-width: min(44rem, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .bg-grid {
    animation: none;
  }
}
