:root {
  color-scheme: dark;
  --canvas: #050505;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.48);
  --accent: #b8ff3d;
  --cyan: #55d8ff;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.11);
  --cursor-x: 50%;
  --cursor-y: 50%;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2rem, 6vw, 5rem) 1.5rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--canvas);
}

.energy-field,
.energy-field__canvas,
.energy-field__orb,
.energy-field__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.energy-field {
  z-index: 0;
  overflow: hidden;
}

.energy-field__canvas {
  z-index: 2;
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0.86;
}

.effect-tubes .energy-field__canvas {
  display: block;
}

.energy-field__orb {
  width: min(66vw, 56rem);
  height: min(66vw, 56rem);
  margin: auto;
  border-radius: 50%;
  filter: blur(8rem);
  opacity: 0.08;
  animation: drift 18s ease-in-out infinite;
}

.energy-field__orb--magenta {
  top: -44%;
  left: 36%;
  background: #f967fb;
}

.energy-field__orb--green {
  top: 44%;
  right: 42%;
  background: #53bc28;
  animation-delay: -7s;
}

.energy-field__orb--violet {
  top: 8%;
  right: 58%;
  background: #6958d5;
  animation-delay: -12s;
}

.effect-tubes .energy-field__orb {
  opacity: 0.035;
}

.energy-field__grid {
  z-index: 3;
  opacity: 0.055;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
}

.identity {
  position: relative;
  z-index: 2;
  width: min(100%, 46rem);
  text-align: center;
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0);
  transition: transform 350ms cubic-bezier(0.2, 0, 0.2, 1);
}

.logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 38rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.4rem) clamp(1.8rem, 5vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2rem 8rem rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.logo-stage:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2rem 8rem rgba(0, 0, 0, 0.4),
    0 0 3rem rgba(96, 174, 213, 0.08);
  transform: translateY(-2px);
}

.logo-stage:focus-visible {
  outline: 2px solid #60aed5;
  outline-offset: 5px;
}

.logo-stage__mark {
  display: block;
  width: min(82%, 28rem);
  max-width: 28rem;
  margin-inline: auto;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1) brightness(1.18) contrast(1.08);
}

.tagline {
  display: inline-block;
  max-width: 46rem;
  margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
  padding-inline: 0.25rem;
  background: linear-gradient(
    110deg,
    #ffffff 0%,
    #f967fb 24%,
    #53bc28 48%,
    #6958d5 72%,
    #ffffff 100%
  );
  background-size: 220% auto;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.75rem, 4.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 1rem rgba(249, 103, 251, 0.22))
    drop-shadow(0 0 1.6rem rgba(83, 188, 40, 0.14));
  animation: tagline-spectrum 7s ease-in-out infinite alternate;
}

.company-details {
  position: absolute;
  z-index: 2;
  bottom: clamp(1.5rem, 4vw, 3rem);
  left: clamp(1.25rem, 4vw, 3.5rem);
  max-width: min(24rem, calc(100vw - 2.5rem));
  text-align: left;
}

.company-details p,
.company-details address,
.status {
  margin: 0;
}

.company-details p {
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.company-details address {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: clamp(0.6rem, 0.9vw, 0.7rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(1rem);
}

.status__dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1rem rgba(184, 255, 61, 0.75);
  animation: pulse 2.4s ease-in-out infinite;
}

.interaction-hint {
  position: absolute;
  z-index: 2;
  bottom: clamp(1.5rem, 4vw, 3rem);
  left: 50%;
  width: 1px;
  height: 2.6rem;
  overflow: hidden;
  opacity: 0.22;
  transform: translateX(-50%);
}

.interaction-hint span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, white, transparent);
  animation: hint 2.8s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3rem, -2rem, 0) scale(1.08);
  }
}

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

@keyframes tagline-spectrum {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 100% center;
  }
}

@keyframes hint {
  0%,
  100% {
    transform: translateY(-100%);
  }
  55% {
    transform: translateY(100%);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-inline: 1.25rem;
  }

  .logo-stage {
    width: min(100%, 24rem);
    padding: 1.4rem 1.6rem;
  }

  .logo-stage__mark {
    width: 82%;
  }

  .company-details address {
    max-width: 20rem;
  }

  .energy-field__grid {
    background-size: 3.5rem 3.5rem;
  }
}

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

  .identity {
    transform: none !important;
  }

  .energy-field__canvas {
    transition: none;
  }
}
