:root {
  --rh-green: #00c805;
  --rh-green-bright: #1bff4a;
  --rh-green-dim: #00a004;
  --rh-green-glow: rgba(0, 200, 5, 0.45);
  --bg: #050806;
  --bg-elevated: #0b120e;
  --ink: #f4f7f5;
  --muted: #8a9a90;
  --line: rgba(0, 200, 5, 0.18);
  --gold: #e8c547;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 200, 5, 0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 40%, rgba(232, 197, 71, 0.06), transparent 55%),
    linear-gradient(180deg, #040705 0%, #08110c 45%, #050806 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--rh-green-bright);
  font-size: 0.92em;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 200, 5, 0.55), transparent 70%);
  box-shadow: 0 0 40px 12px var(--rh-green-glow);
  mix-blend-mode: screen;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.cursor-glow.hot {
  width: 56px;
  height: 56px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, var(--rh-green-dim), var(--rh-green-bright), var(--gold));
  box-shadow: 0 0 16px var(--rh-green-glow);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(5, 8, 6, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 8, 6, 0.85);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(0, 200, 5, 0.35), 0 0 24px var(--rh-green-glow);
  animation: pulse-ring 3s ease-in-out infinite;
}

.nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--rh-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px var(--rh-green-glow);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 35;
  background: rgba(5, 8, 6, 0.96);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(12px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rh-green) 0%, var(--rh-green-bright) 100%);
  color: #031006;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 28px var(--rh-green-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4s ease-in-out infinite;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 40px rgba(0, 200, 5, 0.65);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  background: rgba(0, 200, 5, 0.04);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.btn-ghost:hover {
  border-color: rgba(0, 200, 5, 0.55);
  background: rgba(0, 200, 5, 0.1);
  box-shadow: 0 0 24px rgba(0, 200, 5, 0.2);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.magnetic span {
  display: inline-block;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding-top: var(--nav-h);
  overflow: hidden;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.05);
  will-change: transform;
  filter: saturate(1.05) contrast(1.05);
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 6, 0.35) 0%, rgba(5, 8, 6, 0.15) 35%, rgba(5, 8, 6, 0.75) 70%, rgba(5, 8, 6, 0.98) 100%),
    linear-gradient(90deg, rgba(5, 8, 6, 0.75) 0%, rgba(5, 8, 6, 0.25) 45%, transparent 70%),
    radial-gradient(ellipse at 70% 40%, transparent 20%, rgba(0, 200, 5, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem) 4.5rem;
  max-width: 760px;
  animation: hero-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  box-shadow:
    0 0 0 3px rgba(0, 200, 5, 0.4),
    0 0 48px var(--rh-green-glow);
  animation: float-y 5s ease-in-out infinite, pulse-ring 3s ease-in-out infinite;
}

.brand-mark {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 0 40px rgba(0, 200, 5, 0.35);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--rh-green-bright);
}

.shimmer {
  background: linear-gradient(
    105deg,
    var(--rh-green-dim) 0%,
    var(--rh-green-bright) 35%,
    #fff 50%,
    var(--rh-green-bright) 65%,
    var(--gold) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3.5s linear infinite;
  filter: drop-shadow(0 0 24px var(--rh-green-glow));
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(244, 247, 245, 0.82);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-fiber {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  z-index: 3;
  height: 120px;
  pointer-events: none;
}

.hero-fiber svg {
  width: 100%;
  height: 100%;
}

.fiber-path {
  fill: none;
  stroke: var(--rh-green);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.55;
  stroke-dasharray: 8 14;
  animation: fiber-flow 8s linear infinite;
  filter: drop-shadow(0 0 6px var(--rh-green-glow));
}

.fiber-path.delay {
  stroke: var(--gold);
  opacity: 0.35;
  animation-duration: 11s;
  animation-direction: reverse;
}

.ticker {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--line);
  background: rgba(0, 200, 5, 0.04);
  overflow: hidden;
  padding: 0.85rem 0;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticker-track span:nth-child(odd) {
  color: var(--rh-green);
}

.section {
  position: relative;
  z-index: 2;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-inner {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rh-green);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-lead {
  margin: 0 0 2.75rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.35s ease;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--rh-green);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 12px var(--rh-green-glow));
}

.feature h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.how {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(0, 200, 5, 0.08), transparent 70%),
    linear-gradient(180deg, transparent, rgba(0, 200, 5, 0.03), transparent);
  overflow: hidden;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--rh-green);
  text-shadow: 0 0 20px var(--rh-green-glow);
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36rem;
}

.how-cta {
  margin-top: 2.5rem;
}

.wave-canvas-wrap {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  pointer-events: none;
  opacity: 0.45;
}

#wave {
  width: 100%;
  height: 100%;
  display: block;
}

.join {
  text-align: center;
}

.join .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.join-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 18, 14, 0.8);
  font-weight: 600;
  font-size: 1.1rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
}

.social-link:hover {
  border-color: rgba(0, 200, 5, 0.55);
  box-shadow: 0 0 36px rgba(0, 200, 5, 0.25);
  background: rgba(0, 200, 5, 0.08);
}

.social-link svg {
  color: var(--rh-green);
}

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: rgba(0, 0, 0, 0.35);
}

.footer-inner {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  border-radius: 50%;
  box-shadow: 0 0 16px var(--rh-green-glow);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-ca {
  margin: 0;
  color: var(--muted);
}

.linkish {
  color: var(--rh-green-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: none;
}

.footer-note {
  margin: 0;
  color: rgba(138, 154, 144, 0.7);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 80;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--rh-green);
  color: #031006;
  font-weight: 700;
  box-shadow: 0 0 30px var(--rh-green-glow);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 2px rgba(0, 200, 5, 0.35), 0 0 24px var(--rh-green-glow); }
  50% { box-shadow: 0 0 0 5px rgba(0, 200, 5, 0.15), 0 0 40px rgba(0, 200, 5, 0.65); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fiber-flow {
  to { stroke-dashoffset: -200; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 3.5rem 1fr;
  }
}

@media (max-width: 640px) {
  body {
    cursor: auto;
  }

  .cursor-glow {
    display: none;
  }

  button,
  a {
    cursor: pointer;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
  }
}

/* ——— Quantum effects ——— */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 200, 5, 0.08) 2px,
    rgba(0, 200, 5, 0.08) 3px
  );
  mix-blend-mode: overlay;
  animation: scan-drift 8s linear infinite;
}

#quantum-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.cursor-orbit {
  position: fixed;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 200, 5, 0.25);
  opacity: 0.7;
}

.cursor-orbit span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rh-green-bright);
  box-shadow: 0 0 10px var(--rh-green-glow);
  top: 50%;
  left: 50%;
  margin: -2.5px;
  animation: cursor-electron 2.4s linear infinite;
}

.cursor-orbit span:nth-child(2) {
  background: var(--gold);
  animation-duration: 3.2s;
  animation-direction: reverse;
}

.cursor-orbit span:nth-child(3) {
  animation-duration: 1.8s;
  width: 3px;
  height: 3px;
}

.entangle-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

#entangle-path {
  filter: drop-shadow(0 0 6px var(--rh-green-glow));
  stroke-dasharray: 12 18;
  animation: fiber-flow 3s linear infinite;
  opacity: 0;
  transition: opacity 0.35s;
}

#entangle-path.active {
  opacity: 1;
}

.qubit-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.qubit-drop {
  position: absolute;
  top: -2em;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: rgba(0, 200, 5, 0.35);
  animation: qubit-fall linear forwards;
  text-shadow: 0 0 8px var(--rh-green-glow);
}

.qubit-drop.gold {
  color: rgba(232, 197, 71, 0.4);
}

.hero-quantum {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.atom {
  position: absolute;
  width: 160px;
  height: 160px;
}

.atom-a {
  top: 18%;
  right: 12%;
  animation: float-y 7s ease-in-out infinite;
}

.atom-b {
  bottom: 28%;
  right: 28%;
  width: 110px;
  height: 110px;
  animation: float-y 5.5s ease-in-out infinite reverse;
  opacity: 0.7;
}

.atom-core {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--rh-green-bright) 40%, transparent 70%);
  box-shadow: 0 0 30px var(--rh-green-glow), 0 0 60px rgba(0, 200, 5, 0.3);
  animation: core-pulse 2s ease-in-out infinite;
}

.atom-core.gold {
  background: radial-gradient(circle, #fff 0%, var(--gold) 45%, transparent 70%);
  box-shadow: 0 0 30px rgba(232, 197, 71, 0.5);
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 50%;
  animation: spin 6s linear infinite;
}

.orbit.o2 {
  inset: 12%;
  border-color: rgba(232, 197, 71, 0.3);
  animation-duration: 4.5s;
  animation-direction: reverse;
  transform: rotateX(65deg) rotateZ(20deg);
}

.orbit.o3 {
  inset: 22%;
  animation-duration: 8s;
  transform: rotateX(70deg) rotateZ(-40deg);
  border-color: rgba(0, 200, 5, 0.2);
}

.orbit i {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--rh-green-bright);
  box-shadow: 0 0 12px var(--rh-green-glow);
}

.orbit.o2 i {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 197, 71, 0.7);
}

.interference {
  position: absolute;
  right: 8%;
  top: 42%;
  width: 220px;
  height: 220px;
  opacity: 0.4;
}

.interference span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 50%;
  animation: ripple-out 4s ease-out infinite;
}

.interference span:nth-child(2) { animation-delay: 1s; }
.interference span:nth-child(3) { animation-delay: 2s; }
.interference span:nth-child(4) { animation-delay: 3s; }

.q-tags {
  position: absolute;
  inset: 0;
}

.q-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(27, 255, 74, 0.75);
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(0, 200, 5, 0.3);
  background: rgba(5, 8, 6, 0.45);
  backdrop-filter: blur(4px);
  animation: tag-flicker 5s ease-in-out infinite;
  text-shadow: 0 0 10px var(--rh-green-glow);
}

.q-tag:nth-child(2) { animation-delay: 1.2s; color: rgba(232, 197, 71, 0.8); border-color: rgba(232, 197, 71, 0.3); }
.q-tag:nth-child(3) { animation-delay: 2.1s; }
.q-tag:nth-child(4) { animation-delay: 0.6s; }

.photon-stream {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.photon-stream i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rh-green-bright);
  box-shadow: 0 0 14px 4px var(--rh-green-glow);
  animation: photon-dash 3.5s linear infinite;
  opacity: 0;
}

.photon-stream i:nth-child(1) { top: 20%; left: -5%; animation-delay: 0s; }
.photon-stream i:nth-child(2) { top: 35%; left: -5%; animation-delay: 0.6s; background: var(--gold); }
.photon-stream i:nth-child(3) { top: 50%; left: -5%; animation-delay: 1.1s; }
.photon-stream i:nth-child(4) { top: 65%; left: -5%; animation-delay: 1.7s; background: var(--gold); }
.photon-stream i:nth-child(5) { top: 25%; left: -5%; animation-delay: 2.2s; }
.photon-stream i:nth-child(6) { top: 55%; left: -5%; animation-delay: 2.8s; }
.photon-stream i:nth-child(7) { top: 40%; left: -5%; animation-delay: 0.3s; }
.photon-stream i:nth-child(8) { top: 72%; left: -5%; animation-delay: 1.4s; }

.logo-orbit-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
}

.logo-orbit-wrap .hero-logo {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  width: 88px;
  height: 88px;
}

.logo-ring {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(0, 200, 5, 0.4);
  border-radius: 50%;
  border-top-color: transparent;
  border-left-color: transparent;
  animation: spin 3s linear infinite;
  z-index: 1;
}

.logo-ring.r2 {
  inset: -18px;
  border-color: rgba(232, 197, 71, 0.3);
  border-bottom-color: transparent;
  border-right-color: transparent;
  animation-duration: 5s;
  animation-direction: reverse;
}

.logo-ring.r3 {
  inset: -26px;
  border-color: rgba(0, 200, 5, 0.15);
  animation-duration: 7s;
}

.qubit {
  position: absolute;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rh-green-bright);
  text-shadow: 0 0 10px var(--rh-green-glow);
  animation: qubit-orbit 4s linear infinite;
}

.qubit.q0 { --a: 0deg; }
.qubit.q1 {
  --a: 180deg;
  color: var(--gold);
  animation-delay: -2s;
}

.glitch {
  position: relative;
}

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

.glitch::before {
  color: var(--rh-green-bright);
  animation: glitch-a 4s infinite;
}

.glitch::after {
  color: var(--gold);
  animation: glitch-b 4s infinite;
}

.superpose {
  position: relative;
}

.superpose::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  opacity: 0.25;
  filter: blur(1px);
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  animation: superpose-shift 3s ease-in-out infinite;
  pointer-events: none;
}

.coherence-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  max-width: 320px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.coherence-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 200, 5, 0.15);
  overflow: hidden;
  position: relative;
}

.coherence-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rh-green-dim), var(--rh-green-bright), var(--gold));
  box-shadow: 0 0 12px var(--rh-green-glow);
  animation: coherence-fill 2.5s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.coherence-val {
  color: var(--rh-green-bright);
  min-width: 3.5rem;
}

.fiber-path.pulse {
  stroke: var(--rh-green-bright);
  opacity: 0.25;
  stroke-dasharray: 4 20;
  animation: fiber-flow 5s linear infinite, fiber-pulse 2s ease-in-out infinite;
}

.quantum-btn {
  position: relative;
}

.quantum-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(0, 200, 5, 0.35);
  opacity: 0;
  animation: btn-ring 2.8s ease-out infinite;
  pointer-events: none;
}

.q-card {
  position: relative;
  overflow: hidden;
}

.q-pulse {
  position: absolute;
  right: -20px;
  top: 50%;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 5, 0.2);
  animation: ripple-out 3s ease-out infinite;
  pointer-events: none;
}

.atom-mini {
  position: relative;
  width: 48px;
  height: 48px;
}

.mini-core {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: var(--rh-green-bright);
  box-shadow: 0 0 14px var(--rh-green-glow);
}

.mini-orbit {
  position: absolute;
  inset: 4px;
  border: 1.5px solid rgba(0, 200, 5, 0.45);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 2.5s linear infinite;
}

.bloch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: center;
  justify-content: space-between;
}

.bloch {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.bloch-sphere {
  position: relative;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(0, 200, 5, 0.1), 0 0 20px rgba(0, 200, 5, 0.15);
}

.bloch-sphere i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 200, 5, 0.25);
  border-radius: 50%;
}

.bloch-sphere i:nth-child(1) {
  transform: rotateX(70deg);
  animation: spin 8s linear infinite;
}

.bloch-sphere i:nth-child(2) {
  transform: rotateY(70deg);
  border-color: rgba(232, 197, 71, 0.3);
  animation: spin 6s linear infinite reverse;
}

.bloch-sphere i:nth-child(3) {
  width: 10px;
  height: 10px;
  inset: auto;
  top: 12%;
  left: 50%;
  margin-left: -5px;
  background: var(--rh-green-bright);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 14px var(--rh-green-glow);
  animation: bloch-state 4s ease-in-out infinite;
}

.tunnel-viz {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.tunnel-wall {
  width: 8px;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(0, 200, 5, 0.5), transparent);
  box-shadow: 0 0 12px var(--rh-green-glow);
}

.tunnel-particle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(232, 197, 71, 0.7);
  animation: tunnel 1.8s ease-in-out infinite;
}

.step {
  overflow: hidden;
}

.step-beam {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--rh-green-bright), transparent);
  opacity: 0;
  box-shadow: 0 0 12px var(--rh-green-glow);
  transition: opacity 0.4s;
}

.step.in .step-beam,
.step.reveal.in .step-beam {
  opacity: 0.8;
  animation: beam-scan 2.5s ease-in-out infinite;
}

.q-flip {
  display: inline-block;
  animation: q-flip 6s ease-in-out infinite;
}

.join {
  position: relative;
  overflow: hidden;
}

.join-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hex-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(0, 200, 5, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 5, 0.35) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  animation: grid-drift 20s linear infinite;
}

.portal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 280px;
  margin: -140px;
  opacity: 0.35;
}

.portal span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 200, 5, 0.4);
  animation: portal-spin 10s linear infinite;
}

.portal span:nth-child(2) {
  inset: 18%;
  border-color: rgba(232, 197, 71, 0.35);
  animation-duration: 7s;
  animation-direction: reverse;
}

.portal span:nth-child(3) {
  inset: 36%;
  border-style: dashed;
  animation-duration: 5s;
}

.join .section-inner {
  position: relative;
  z-index: 1;
}

.quantum-burst {
  position: fixed;
  pointer-events: none;
  z-index: 90;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rh-green-bright);
  box-shadow: 0 0 20px var(--rh-green-glow);
  animation: burst-fade 0.9s ease-out forwards;
}

@keyframes scan-drift {
  to { background-position: 0 40px; }
}

@keyframes cursor-electron {
  from { transform: rotate(0deg) translateX(24px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(24px) rotate(-360deg); }
}

@keyframes qubit-fall {
  to { transform: translateY(110vh); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

@keyframes ripple-out {
  0% { transform: scale(0.3); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes tag-flicker {
  0%, 90%, 100% { opacity: 0.85; }
  92% { opacity: 0.2; }
  94% { opacity: 1; }
  96% { opacity: 0.35; }
}

@keyframes photon-dash {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(110vw); opacity: 0; }
}

@keyframes qubit-orbit {
  from { transform: rotate(var(--a, 0deg)) translateX(55px) rotate(calc(-1 * var(--a, 0deg))); }
  to { transform: rotate(calc(var(--a, 0deg) + 360deg)) translateX(55px) rotate(calc(-1 * var(--a, 0deg) - 360deg)); }
}

@keyframes glitch-a {
  0%, 88%, 100% { opacity: 0; transform: none; }
  90% { opacity: 0.7; transform: translate(-3px, 1px); clip-path: inset(20% 0 55% 0); }
  92% { opacity: 0.5; transform: translate(3px, -1px); clip-path: inset(60% 0 10% 0); }
  94% { opacity: 0; }
}

@keyframes glitch-b {
  0%, 90%, 100% { opacity: 0; transform: none; }
  91% { opacity: 0.6; transform: translate(3px, -2px); clip-path: inset(40% 0 30% 0); }
  93% { opacity: 0.4; transform: translate(-4px, 1px); clip-path: inset(10% 0 70% 0); }
  95% { opacity: 0; }
}

@keyframes superpose-shift {
  0%, 100% { transform: translate(0, 0); opacity: 0.15; }
  50% { transform: translate(4px, -2px); opacity: 0.35; }
}

@keyframes coherence-fill {
  to { width: 99.73%; }
}

@keyframes fiber-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.45; }
}

@keyframes btn-ring {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

@keyframes bloch-state {
  0%, 100% { top: 12%; }
  50% { top: 72%; }
}

@keyframes tunnel {
  0% { transform: translateX(-8px) scale(1); opacity: 1; }
  45% { transform: translateX(18px) scale(0.4); opacity: 0.3; }
  55% { transform: translateX(28px) scale(0.4); opacity: 0.3; }
  100% { transform: translateX(54px) scale(1); opacity: 1; }
}

@keyframes beam-scan {
  0%, 100% { transform: translateY(-30%); opacity: 0.2; }
  50% { transform: translateY(30%); opacity: 1; }
}

@keyframes q-flip {
  0%, 45%, 55%, 100% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); color: var(--gold); }
}

@keyframes grid-drift {
  to { background-position: 40px 40px; }
}

@keyframes portal-spin {
  to { transform: rotate(360deg); }
}

@keyframes burst-fade {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(12); opacity: 0; }
}

@media (max-width: 900px) {
  .atom-b,
  .interference,
  .q-tag:nth-child(3),
  .q-tag:nth-child(4) {
    display: none;
  }

  .atom-a {
    right: 4%;
    opacity: 0.5;
    transform: scale(0.7);
  }
}

@media (max-width: 640px) {
  .cursor-orbit,
  .hero-quantum,
  .qubit-rain,
  .scanlines {
    display: none;
  }

  .logo-orbit-wrap {
    width: 72px;
    height: 72px;
  }

  .bloch-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
