:root {
  --accent: #27f5e4;
  --bg: #0a0d11;
  --text: #ecf3ff;
  --muted: #9cabbd;
  --glass: rgba(18, 26, 38, 0.5);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --transition: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --particle-alpha-dot: 0.2;
  --particle-alpha-link: 0.25;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 12% 14%, rgba(39, 245, 228, 0.08), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(39, 245, 228, 0.09), transparent 26%), var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  cursor: none;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 1rem 0;
  z-index: 20;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: lowercase;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 5.5rem 1rem 2rem;
}

.hero-card {
  width: min(950px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glitch {
  margin: 0;
  font-size: clamp(2.1rem, 11vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0.02em;
  position: relative;
  text-shadow: 0 0 22px rgba(39, 245, 228, 0.35);
  animation: huePulse 4.8s ease-in-out infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch::before {
  color: rgba(39, 245, 228, 0.92);
  transform: translate(2px, -1px);
  mix-blend-mode: screen;
  clip-path: polygon(0 2%, 100% 2%, 100% 38%, 0 38%);
  animation: glitchShift 2.3s steps(2, end) infinite;
}

.glitch::after {
  color: rgba(255, 255, 255, 0.85);
  transform: translate(-2px, 1px);
  mix-blend-mode: lighten;
  clip-path: polygon(0 64%, 100% 64%, 100% 96%, 0 96%);
  animation: glitchShift 2.1s steps(2, end) infinite reverse;
}

.status-text {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--transition), height var(--transition), background var(--transition),
    border-color var(--transition), opacity var(--transition);
}

.cursor--outer {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(39, 245, 228, 0.8);
  background: transparent;
}

.cursor--inner {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.cursor.is-hover {
  opacity: 1;
}

.cursor--outer.is-hover {
  width: 58px;
  height: 58px;
  border-color: rgba(39, 245, 228, 0.55);
  background: rgba(39, 245, 228, 0.08);
}

.cursor--inner.is-hover {
  width: 12px;
  height: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes glitchShift {
  0%,
  20%,
  100% {
    transform: translate(0, 0);
  }
  30% {
    transform: translate(2px, -2px);
  }
  32% {
    transform: translate(-2px, 2px);
  }
  34% {
    transform: translate(1px, -1px);
  }
}

@keyframes huePulse {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(-14deg);
  }
}

@media (min-width: 720px) {
  .topbar {
    padding: 1.1rem 1.8rem 0;
  }

  .hero {
    padding-inline: 1.8rem;
  }

  .status-text {
    font-size: 1.2rem;
  }
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}
