#hero {
  min-height: 100vh;
  background: var(--bg-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg,
      #0A0A1AFF 0%, #0A0A1A99 30%, #0A0A1ACC 60%, #0A0A1AFF 100%),
    repeating-linear-gradient(0deg,
      transparent, transparent 59px, rgba(176, 38, 255, 0.15) 60px),
    repeating-linear-gradient(90deg,
      transparent, transparent 59px, rgba(176, 38, 255, 0.15) 60px);
  background-color: #0A0A1A;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), var(--cyan), var(--purple), transparent);
  filter: blur(6px);
  opacity: .6;
}

/* ── Animated perspective grid ── */
.hero-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 300px;
}

.hero-grid-inner {
  position: absolute;
  bottom: -10%;
  left: -20%;
  width: 140%;
  height: 70%;
  background-image:
    linear-gradient(rgba(176, 38, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 38, 255, 0.35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(55deg);
  transform-origin: bottom center;
  animation: gridScroll 6s linear infinite;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

/* ── Neon horizon line ── */
.hero-horizon {
  position: absolute;
  bottom: 30%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--pink) 20%, var(--cyan) 50%, var(--pink) 80%, transparent 100%);
  filter: blur(3px);
  animation: horizonPulse 3s ease-in-out infinite;
}

.hero-horizon::after {
  content: '';
  position: absolute;
  inset: -4px 0;
  background: inherit;
  filter: blur(12px);
  opacity: .5;
}

@keyframes horizonPulse {
  0%, 100% { opacity: .7; }
  50%       { opacity: 1; filter: blur(2px); }
}

/* ── Floating particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .6; }
  100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

/* ── Hero content ── */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 45, 149, 0.13);
  border: 1px solid rgba(255, 45, 149, 0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--pink);
}

/* ── GLITCH on headline ── */
.hero-headline {
  position: relative;
  font-family: var(--mono);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  animation: glitchMain 8s infinite;
}

.hero-headline::before,
.hero-headline::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--pink) 0%, var(--purple) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline::before {
  left: 2px;
  animation: glitchTop 8s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.hero-headline::after {
  left: -2px;
  animation: glitchBot 8s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitchMain {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(0); }
}

@keyframes glitchTop {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92% { transform: translate(-4px, 0); opacity: .8; filter: hue-rotate(90deg); }
  94% { transform: translate(3px, 0); opacity: .6; }
  96% { opacity: 0; }
}

@keyframes glitchBot {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(4px, 0); opacity: .7; filter: hue-rotate(-90deg); }
  95% { transform: translate(-3px, 0); opacity: .5; }
  97% { opacity: 0; }
}

.hero-subtitle {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--text-gray);
}

/* ── Typing cursor ── */
.hero-subtitle::after {
  content: '█';
  color: var(--cyan);
  animation: blink 1s step-end infinite;
  margin-left: 4px;
  font-size: .9em;
}

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

.hero-tagline {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  opacity: .85;
  letter-spacing: .5px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--bg-dark);
  background: var(--pink);
  border: none;
  border-radius: 6px;
  padding: 16px 32px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 45, 149, 0.4), 0 0 4px rgba(255, 45, 149, 0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover  { box-shadow: 0 0 40px rgba(255, 45, 149, 0.7); transform: translateY(-3px); }
.btn-primary:active { transform: translate(1px, 2px) scale(0.98); box-shadow: none; }

.btn-outline {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 6px;
  padding: 16px 32px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-outline:hover  { border-color: var(--cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); transform: translateY(-3px); }
.btn-outline:active { transform: translate(1px, 2px) scale(0.98); }