* {
  box-sizing: border-box;
}

:root {
  --bg: #030408;
  --text: #f5f7fb;
  --muted: #8c95a5;
  --cyan: #5cecff;
  --violet: #9275ff;
  --grid: rgba(255, 255, 255, 0.045);
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: crosshair;
}

#scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(123, 91, 255, 0.12), transparent 27%),
    radial-gradient(circle at 75% 25%, rgba(40, 210, 255, 0.07), transparent 24%),
    #030408;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tech-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 40%;
  bottom: -40%;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 55px 55px;
  transform:
    perspective(650px)
    rotateX(62deg)
    scale(1.35);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), transparent 78%);
  animation: gridMove 12s linear infinite;
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 55px, 55px 0;
  }
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 236, 255, 0.75),
    transparent
  );
  box-shadow: 0 0 22px rgba(92, 236, 255, 0.65);
  animation: scanning 7s linear infinite;
}

@keyframes scanning {
  to {
    top: 105%;
  }
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 20%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.cursor-glow {
  position: fixed;
  z-index: 20;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(92, 236, 255, 0.065),
    transparent 68%
  );
  mix-blend-mode: screen;
}

.page {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.hero-card {
  position: relative;
  width: min(900px, 100%);
  padding: 55px 40px 45px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 30px;
  background: rgba(5, 7, 13, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.58),
    inset 0 1px rgba(255, 255, 255, 0.055);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, 0.035) 50%,
    transparent 75%
  );
  transform: translateX(-120%);
  animation: lightSweep 6s ease-in-out infinite;
}

@keyframes lightSweep {
  55%,
  100% {
    transform: translateX(120%);
  }
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: rgba(92, 236, 255, 0.7);
  border-style: solid;
  opacity: 0.8;
}

.top-left {
  top: 14px;
  left: 14px;
  border-width: 1px 0 0 1px;
}

.top-right {
  top: 14px;
  right: 14px;
  border-width: 1px 1px 0 0;
}

.bottom-left {
  bottom: 14px;
  left: 14px;
  border-width: 0 0 1px 1px;
}

.bottom-right {
  bottom: 14px;
  right: 14px;
  border-width: 0 1px 1px 0;
}

.logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
}

.logo {
  width: min(270px, 60vw);
  max-height: 100px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(146, 117, 255, 0.2))
    drop-shadow(0 0 35px rgba(92, 236, 255, 0.08));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  50% {
    transform: translateY(-5px);
    filter:
      drop-shadow(0 0 22px rgba(146, 117, 255, 0.32))
      drop-shadow(0 0 45px rgba(92, 236, 255, 0.14));
  }
}

.system-status {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(92, 236, 255, 0.18);
  border-radius: 999px;
  color: #a9edf7;
  background: rgba(92, 236, 255, 0.045);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
  animation: statusBlink 1.4s infinite;
}

@keyframes statusBlink {
  50% {
    opacity: 0.2;
  }
}

.headline {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-top: 27px;
  color: #6d7788;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

h1 {
  margin: 15px 0 0;
  font-size: clamp(50px, 8vw, 94px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 850;
}

h1 span {
  background: linear-gradient(
    100deg,
    #ffffff 10%,
    #cfc6ff 55%,
    #6cecff 95%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.description {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 27px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.tech-info {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  margin-top: 32px;
  color: #697385;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.tech-info i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #566173;
}

.loading {
  position: relative;
  z-index: 2;
  max-width: 300px;
  margin: 30px auto 0;
}

.loading-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #596375;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.loading-track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(92, 236, 255, 0.55);
}

.footer {
  position: fixed;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #4f5868;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.footer-line {
  width: 22px;
  height: 1px;
  background: #4f5868;
}

@media (max-width: 600px) {
  .page {
    padding: 16px;
  }

  .hero-card {
    padding: 43px 20px 38px;
    border-radius: 23px;
  }

  .logo {
    width: min(230px, 64vw);
  }

  .description {
    font-size: 14px;
  }

  .tech-info {
    gap: 11px;
    font-size: 8px;
  }

  .footer {
    font-size: 7px;
  }

  .tech-grid {
    background-size: 40px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
