:root {
  color-scheme: dark;
  --bg: #050507;
  --panel: rgba(12, 14, 16, 0.7);
  --panel-strong: rgba(18, 22, 24, 0.86);
  --text: #f4f7f5;
  --muted: #9ca7a2;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #46f8d5;
  --lime: #c6ff66;
  --rose: #ff4d8d;
  --amber: #ffcf66;
  --shadow: rgba(0, 0, 0, 0.5);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(70, 248, 213, 0.06), transparent 30%),
    linear-gradient(225deg, rgba(255, 77, 141, 0.06), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: rgba(70, 248, 213, 0.28);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

#hika-field,
.ambient-grid,
.grain {
  inset: 0;
  pointer-events: none;
  position: fixed;
}

#hika-field {
  height: 100%;
  width: 100%;
  z-index: -3;
}

.ambient-grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 78%, transparent);
  z-index: -2;
}

.grain {
  background-image:
    repeating-radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 5px),
    repeating-radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 6px);
  mix-blend-mode: soft-light;
  opacity: 0.18;
  z-index: -1;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 50%;
  max-width: 1180px;
  padding: 24px clamp(18px, 4vw, 36px);
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: min(100%, 1240px);
  z-index: 10;
}

.brand,
.top-nav {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  height: 34px;
  place-items: center;
  position: relative;
  width: 34px;
}

.brand-mark::before {
  border: 1px solid var(--line);
  border-radius: 8px;
  content: "";
  inset: 0;
  position: absolute;
  transform: rotate(45deg);
}

.top-nav {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 70px var(--shadow);
  gap: 4px;
  padding: 6px;
}

.top-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 9px 14px;
  transition: color 180ms ease, background 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

main {
  margin: 0 auto;
  max-width: 1240px;
  min-height: 100vh;
  padding: 0 clamp(18px, 4vw, 36px) 48px;
}

.site-header,
main,
.hero,
.hero-copy,
.notify,
.notify-box {
  min-width: 0;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(38px, 7vw, 92px);
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, 0.78fr);
  min-height: 92vh;
  padding-top: 104px;
}

.hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  gap: 10px;
  margin: 0 0 18px;
}

.live-dot {
  background: var(--lime);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(198, 255, 102, 0.36);
  height: 9px;
  width: 9px;
  animation: livePulse 1.8s ease-in-out infinite;
}

h1 {
  animation: titleGlow 7s ease-in-out infinite;
  background: linear-gradient(110deg, var(--text), var(--cyan), var(--lime), var(--text));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(4.2rem, 13vw, 10.2rem);
  line-height: 0.86;
  margin: 0;
}

.lead {
  color: #d8dfdc;
  font-size: clamp(1.05rem, 2vw, 1.36rem);
  line-height: 1.72;
  margin: clamp(24px, 4vw, 34px) 0 0;
  max-width: 670px;
  overflow-wrap: break-word;
}

.notify {
  margin-top: clamp(28px, 4.4vw, 44px);
  max-width: 590px;
  width: 100%;
}

.notify-box {
  align-items: center;
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 62px;
  overflow: hidden;
  padding: 6px;
}

.notify input {
  background: transparent;
  border: 0;
  color: var(--text);
  min-width: 0;
  outline: none;
  padding: 0 16px;
  width: 100%;
}

.notify input::placeholder {
  color: rgba(244, 247, 245, 0.48);
}

.notify button {
  align-items: center;
  background: var(--text);
  border: 0;
  border-radius: 7px;
  color: #050507;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  min-width: 138px;
  padding: 0 18px;
  transition: transform 180ms ease, background 180ms ease;
}

.notify button:hover,
.notify button:focus-visible {
  background: var(--cyan);
  outline: none;
  transform: translateY(-1px);
}

.notify button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-message {
  color: var(--cyan);
  min-height: 24px;
  margin: 12px 0 0;
}

.hero-visual {
  display: grid;
  min-height: 430px;
  place-items: center;
  perspective: 1100px;
}

.holo-panel {
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48), inset 0 0 48px rgba(70, 248, 213, 0.06);
  max-width: 450px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 220ms ease;
  width: min(82vw, 450px);
}

.holo-panel::before,
.holo-panel::after {
  content: "";
  position: absolute;
}

.holo-panel::before {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  inset: 18px;
}

.holo-panel::after {
  background:
    linear-gradient(90deg, transparent, rgba(70, 248, 213, 0.38), transparent),
    linear-gradient(transparent 0 48%, rgba(255, 255, 255, 0.08) 49% 50%, transparent 51%);
  height: 42%;
  left: -20%;
  opacity: 0.42;
  top: 26%;
  transform: rotate(-18deg);
  width: 140%;
  animation: panelSweep 5.6s ease-in-out infinite;
}

.scanline {
  background: linear-gradient(to bottom, transparent, rgba(198, 255, 102, 0.22), transparent);
  height: 110px;
  left: 0;
  position: absolute;
  right: 0;
  top: -130px;
  animation: scan 4.4s linear infinite;
}

.signal-core {
  display: grid;
  inset: 16%;
  place-items: center;
  position: absolute;
  transform: translateZ(56px);
}

.ring,
.axis,
.core-mark {
  position: absolute;
}

.ring {
  border: 1px solid rgba(70, 248, 213, 0.64);
  border-radius: 50%;
  inset: 0;
}

.ring-one {
  animation: orbitA 7s linear infinite;
  box-shadow: 0 0 36px rgba(70, 248, 213, 0.12);
}

.ring-two {
  border-color: rgba(255, 77, 141, 0.5);
  inset: 14%;
  transform: rotateX(64deg);
  animation: orbitB 9s linear infinite reverse;
}

.ring-three {
  border-color: rgba(198, 255, 102, 0.54);
  inset: 25%;
  transform: rotateY(68deg);
  animation: orbitC 6s linear infinite;
}

.axis {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  height: 1px;
  width: 82%;
}

.axis-y {
  transform: rotate(90deg);
}

.core-mark {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(70, 248, 213, 0.34), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 0 42px rgba(70, 248, 213, 0.2);
  display: flex;
  font-size: clamp(3.6rem, 8vw, 5.8rem);
  font-weight: 800;
  height: 34%;
  justify-content: center;
  width: 34%;
  animation: coreBreath 2.6s ease-in-out infinite;
}

.panel-readout {
  background: rgba(5, 5, 7, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  min-width: 116px;
  padding: 12px 14px;
  position: absolute;
}

.panel-readout span {
  color: var(--muted);
  font-size: 0.76rem;
}

.panel-readout strong {
  color: var(--text);
  font-size: 1rem;
}

.readout-top {
  right: 34px;
  top: 36px;
}

.readout-bottom {
  bottom: 38px;
  left: 34px;
}

.data-stream {
  bottom: 32px;
  display: grid;
  gap: 8px;
  position: absolute;
  right: 34px;
  width: 118px;
}

.data-stream span {
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 999px;
  display: block;
  height: 2px;
  opacity: 0.82;
  transform-origin: left;
  animation: stream 1.8s ease-in-out infinite;
}

.data-stream span:nth-child(2) {
  animation-delay: 0.15s;
  width: 72%;
}

.data-stream span:nth-child(3) {
  animation-delay: 0.3s;
  width: 84%;
}

.data-stream span:nth-child(4) {
  animation-delay: 0.45s;
  width: 58%;
}

.data-stream span:nth-child(5) {
  animation-delay: 0.6s;
  width: 92%;
}

.signal-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 22px;
}

.signal-strip article {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 168px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.signal-strip article::before {
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--rose), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(-72%);
  animation: edgeRun 4.6s ease-in-out infinite;
}

.signal-strip span {
  color: var(--amber);
  display: inline-flex;
  font-size: 0.85rem;
  margin-bottom: 26px;
}

.signal-strip strong {
  display: block;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  margin-bottom: 10px;
}

.signal-strip p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(198, 255, 102, 0.36);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(198, 255, 102, 0);
  }
}

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

@keyframes panelSweep {
  0%,
  100% {
    transform: translateX(-8%) rotate(-18deg);
  }
  50% {
    transform: translateX(8%) rotate(-18deg);
  }
}

@keyframes scan {
  to {
    transform: translateY(620px);
  }
}

@keyframes orbitA {
  to {
    transform: rotate(360deg) rotateX(62deg);
  }
}

@keyframes orbitB {
  to {
    transform: rotate(360deg) rotateX(64deg);
  }
}

@keyframes orbitC {
  to {
    transform: rotate(360deg) rotateY(68deg);
  }
}

@keyframes coreBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes stream {
  0%,
  100% {
    transform: scaleX(0.36);
  }
  50% {
    transform: scaleX(1);
  }
}

@keyframes edgeRun {
  0%,
  100% {
    transform: translateX(-72%);
  }
  50% {
    transform: translateX(54%);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-top: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 118px;
  }

  .hero-visual {
    min-height: 360px;
    order: -1;
  }

  .holo-panel {
    width: min(78vw, 390px);
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .top-nav {
    display: none;
  }

  .hero {
    gap: 30px;
    padding-top: 96px;
  }

  .hero-visual {
    min-height: 288px;
  }

  .holo-panel {
    width: min(88vw, 320px);
  }

  .notify-box {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .notify input {
    min-height: 48px;
    padding: 0 12px;
  }

  .notify button {
    width: 100%;
  }

  .panel-readout {
    min-width: 92px;
    padding: 9px 10px;
  }

  .readout-top {
    right: 24px;
    top: 26px;
  }

  .readout-bottom {
    bottom: 28px;
    left: 24px;
  }

  .data-stream {
    display: none;
  }
}

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