@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #060a10;
  --bg-elevated: #0c1219;
  --bg-muted: #111a24;
  --ink: #e2e8f0;
  --ink-soft: #8b9cb3;
  --muted: #5c6b80;
  --line: rgba(0, 229, 255, 0.1);
  --sky: #00e5ff;
  --sky-deep: #00a8cc;
  --sky-soft: #0a1a22;
  --teal: #00ff9d;
  --teal-deep: #00c978;
  --teal-soft: #0a1f18;
  --amber: #ff6b2b;
  --amber-soft: #1a120c;
  --violet: #b44dff;
  --glow-indigo: rgba(0, 229, 255, 0.14);
  --glow-teal: rgba(0, 255, 157, 0.12);
  --glow-coral: rgba(180, 77, 255, 0.1);
  --shadow-soft: 0 4px 24px -8px rgba(0, 229, 255, 0.08);
  --shadow-card: 0 12px 40px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 229, 255, 0.08);
}

* { box-sizing: border-box; }

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.research-mesh > :not(#cyber-rain):not(script) {
  position: relative;
  z-index: 1;
}

#cyber-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
}

.font-display { font-family: 'Fraunces', Georgia, serif; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

.text-balance { text-wrap: balance; }

/* Cyber terminal mesh background */
.research-mesh {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(0, 255, 157, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.025) 1px, transparent 1px),
    radial-gradient(ellipse 75% 55% at 8% -8%, var(--glow-indigo), transparent 52%),
    radial-gradient(ellipse 55% 45% at 100% 0%, var(--glow-teal), transparent 48%),
    radial-gradient(ellipse 45% 35% at 50% 100%, var(--glow-coral), transparent 50%),
    linear-gradient(180deg, #080d14 0%, var(--bg) 42%, #030508 100%);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px, auto, auto, auto, auto;
}

.research-mesh::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 229, 255, 0.025) 3px,
    rgba(0, 229, 255, 0.025) 4px
  );
  opacity: 0.9;
}

.research-mesh::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(6, 10, 16, 0.65) 100%),
    linear-gradient(180deg, rgba(0, 229, 255, 0.04) 0%, transparent 8%, transparent 92%, rgba(0, 255, 157, 0.04) 100%);
}

.cyber-glass {
  background: rgba(12, 18, 25, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.06), inset 0 1px 0 rgba(0, 255, 157, 0.08);
}

.hero-research {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 92vh;
  background: #020406;
}

.hero-hack-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 255, 157, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 72px,
      rgba(0, 229, 255, 0.025) 72px,
      rgba(0, 229, 255, 0.025) 73px
    ),
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(0, 255, 157, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(0, 229, 255, 0.05), transparent 50%),
    linear-gradient(180deg, #010204 0%, #020406 55%, #030508 100%);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px, auto, auto, auto, auto;
  animation: hero-grid-shift 24s linear infinite;
}

@keyframes hero-grid-shift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 20px 20px, 20px 20px, 100px 100px, 100px 100px, 120px 0, 0 0, 0 0, 0 0; }
}

#hero-matrix {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.hero-research::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 4px
  );
  opacity: 0.65;
}

.hero-research::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 255, 157, 0.12) 0, transparent 28%),
    linear-gradient(270deg, rgba(0, 229, 255, 0.1) 0, transparent 22%),
    radial-gradient(ellipse at center, transparent 40%, rgba(2, 4, 6, 0.85) 100%);
}

.hero-hud {
  position: absolute;
  inset: 1rem;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(0, 255, 157, 0.12);
  opacity: 0.7;
}

.hero-hud::before,
.hero-hud::after {
  content: 'SYS://FLASH_USDT_RESEARCH';
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: rgba(0, 255, 157, 0.35);
  text-transform: uppercase;
}

.hero-hud::before { top: -0.55rem; left: 0.75rem; background: #020406; padding: 0 0.35rem; }
.hero-hud::after {
  content: 'NODE::ONLINE ● PING 12ms';
  bottom: -0.55rem;
  right: 0.75rem;
  color: rgba(0, 229, 255, 0.35);
  background: #020406;
  padding: 0 0.35rem;
}

.hero-figure {
  position: relative;
  box-shadow: 0 0 40px rgba(0, 255, 157, 0.08), inset 0 0 0 1px rgba(0, 229, 255, 0.15);
}

.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.06) 0%, transparent 35%, rgba(2, 4, 6, 0.35) 100%);
  mix-blend-mode: multiply;
}

.hero-figure img {
  filter: saturate(0.85) contrast(1.08) brightness(0.72);
}

.section-dark {
  background:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(0, 255, 157, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(0, 229, 255, 0.08), transparent 50%),
    linear-gradient(165deg, #020406 0%, #0a1218 45%, #060a10 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  color: #f0fdfa;
  border-block: 1px solid rgba(0, 255, 157, 0.12);
  box-shadow: inset 0 1px 0 rgba(0, 229, 255, 0.06);
}

.section-dark .text-ink-soft,
.section-dark p { color: rgba(248, 250, 252, 0.78); }

.glass-header {
  background: rgba(6, 10, 16, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

/* —— Hacker runners header —— */
.hack-header {
  background: #030508;
  border-bottom: 1px solid rgba(0, 255, 157, 0.22);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.06), 0 12px 32px -16px rgba(0, 0, 0, 0.8);
}

.hack-runner {
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  background: linear-gradient(90deg, #020406, #060a10 50%, #020406);
  user-select: none;
}

.hack-runner--fast { height: 1.35rem; }
.hack-runner--slow { height: 1.25rem; border-bottom: none; }

.hack-runner-track {
  display: flex;
  width: max-content;
  gap: 2.75rem;
  padding: 0.2rem 0;
  animation: hack-runner-scroll 28s linear infinite;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hack-runner--fast .hack-runner-track {
  animation-duration: 22s;
  color: rgba(0, 255, 157, 0.75);
}

.hack-runner--slow .hack-runner-track {
  animation-duration: 38s;
  animation-direction: reverse;
  color: rgba(0, 229, 255, 0.65);
}

.hack-runner-track span {
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.25);
}

.hack-runner--slow .hack-runner-track span {
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

@keyframes hack-runner-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hack-header-bar {
  position: relative;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.04) 0%, transparent 100%),
    #060a10;
}

.hack-header-bar::before,
.hack-header-bar::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.hack-header-bar::before {
  top: 6px;
  left: 8px;
  border-top: 1px solid rgba(0, 255, 157, 0.45);
  border-left: 1px solid rgba(0, 255, 157, 0.45);
}

.hack-header-bar::after {
  top: 6px;
  right: 8px;
  border-top: 1px solid rgba(0, 229, 255, 0.45);
  border-right: 1px solid rgba(0, 229, 255, 0.45);
}

.hack-logo {
  letter-spacing: -0.02em;
  transition: text-shadow 0.25s ease;
}

.hack-logo:hover {
  text-shadow: 0 0 14px rgba(0, 255, 157, 0.35);
}

.hack-cursor {
  animation: hack-blink 1.1s step-end infinite;
}

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

.hack-nav .hack-nav-link {
  position: relative;
  padding: 0.4rem 0.65rem;
  color: var(--ink-soft);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.hack-nav .hack-nav-link:hover,
.hack-nav .hack-nav-link.is-active {
  color: var(--teal);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.45);
}

.hack-nav .nav-glow {
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
  height: 1px;
  bottom: 2px;
}

.hack-cta {
  align-items: center;
  border: 1px solid rgba(0, 255, 157, 0.45);
  background: rgba(0, 255, 157, 0.06);
  padding: 0.45rem 0.85rem;
  color: var(--teal);
  letter-spacing: 0.04em;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.hack-cta:hover {
  background: rgba(0, 255, 157, 0.14);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.25);
  color: #fff;
}

.hack-menu-btn {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.05);
  color: var(--sky);
}

.hack-mobile {
  border-top: 1px solid rgba(0, 255, 157, 0.15);
  background: #060a10;
  padding: 0.75rem 1rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
}

.hack-mobile a {
  display: block;
  border-left: 2px solid transparent;
  padding: 0.5rem 0.65rem;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s, padding-left 0.2s;
}

.hack-mobile a:hover {
  border-left-color: var(--teal);
  padding-left: 0.85rem;
  color: var(--teal);
}

#site-header.hack-header.is-scrolled {
  box-shadow: 0 0 48px rgba(0, 255, 157, 0.08), 0 16px 40px -20px rgba(0, 0, 0, 0.9);
}

#site-header.hack-header.is-scrolled .hack-header-bar {
  background: rgba(6, 10, 16, 0.97);
}

.card-surface {
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.card-surface:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(0, 255, 157, 0.08), var(--shadow-card);
  border-color: rgba(0, 255, 157, 0.35);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--sky) 45%, var(--violet) 100%);
  background-size: 200% 200%;
  color: #060a10;
  font-weight: 700;
  transition: background-position 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 28px -8px rgba(0, 255, 157, 0.45), 0 0 24px rgba(0, 229, 255, 0.2);
}

.btn-gradient:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(0, 255, 157, 0.55), 0 0 32px rgba(0, 229, 255, 0.25);
}

.cta-banner {
  background: linear-gradient(120deg, #020406 0%, var(--teal-deep) 25%, var(--sky-deep) 55%, var(--violet) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 12s ease infinite;
  border-top: 1px solid rgba(0, 255, 157, 0.2);
}

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

@keyframes mesh-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-72px, 36px, 0); }
}

@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 52% 48%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 58% 42% 48% 52%; transform: rotate(6deg) scale(1.04); }
  66% { border-radius: 48% 52% 58% 42%; transform: rotate(-5deg) scale(0.97); }
}

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

.rise {
  animation: rise-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.22s; }
.rise-3 { animation-delay: 0.34s; }
.rise-4 { animation-delay: 0.46s; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes underline-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.accent-line {
  display: block;
  height: 3px;
  width: 4.5rem;
  background: linear-gradient(90deg, var(--sky), var(--teal), var(--amber));
  transform-origin: left;
  border-radius: 999px;
}
.accent-line.is-visible {
  animation: underline-grow 0.9s ease-out both;
}

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

.keyword-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(0, 255, 157, 0.18);
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.06), rgba(6, 10, 16, 0.95), rgba(0, 229, 255, 0.06));
}

.keyword-marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  padding: 0.9rem 0;
  animation: marquee 42s linear infinite;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.keyword-marquee-track span {
  opacity: 0.85;
}

.keyword-marquee-track:hover {
  animation-play-state: paused;
}

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

.float-soft {
  animation: float-y 5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.55); }
  50% { opacity: 0.85; transform: scale(1.2); box-shadow: 0 0 0 6px rgba(0, 255, 157, 0); }
}

.live-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--teal));
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.faq-content {
  display: grid;
  transition: grid-template-rows 0.35s ease, opacity 0.35s ease;
}
.faq-content.collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
}
.faq-content.expanded {
  grid-template-rows: 1fr;
  opacity: 1;
}

.toc-link {
  transition: color 0.2s, border-color 0.2s, padding-left 0.25s, background 0.2s;
  border-radius: 0 0.5rem 0.5rem 0;
}
.toc-link.is-active {
  color: var(--teal);
  border-left-color: var(--sky);
  background: rgba(0, 229, 255, 0.08);
  padding-left: 0.85rem;
  font-weight: 600;
}

.stat-value {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--sky-deep), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose-flash h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.prose-flash p { color: var(--ink-soft); }

.plan-btn.active {
  border-color: var(--teal) !important;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 255, 157, 0.1)) !important;
  box-shadow: 0 16px 40px -20px rgba(0, 255, 157, 0.35), 0 0 24px rgba(0, 229, 255, 0.12);
}

#progress-bar {
  background: linear-gradient(90deg, var(--teal), var(--sky), var(--violet), var(--teal)) !important;
  background-size: 200% 100%;
  animation: progress-shimmer 4s linear infinite;
}

@keyframes progress-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* —— Motion & effects —— */

.text-shimmer {
  background: linear-gradient(110deg, var(--teal) 0%, var(--sky) 30%, var(--violet) 55%, var(--teal) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 6s linear infinite;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

.stagger-group .reveal.is-visible:nth-child(1) { transition-delay: 0.05s; }
.stagger-group .reveal.is-visible:nth-child(2) { transition-delay: 0.12s; }
.stagger-group .reveal.is-visible:nth-child(3) { transition-delay: 0.19s; }
.stagger-group .reveal.is-visible:nth-child(4) { transition-delay: 0.26s; }
.stagger-group .reveal.is-visible:nth-child(5) { transition-delay: 0.33s; }
.stagger-group .reveal.is-visible:nth-child(6) { transition-delay: 0.4s; }

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.35s ease;
  will-change: transform;
}

.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.2), var(--shadow-card); }
  50% { box-shadow: 0 0 32px 4px rgba(0, 229, 255, 0.25), var(--shadow-card); }
}

.img-zoom-wrap { overflow: hidden; }
.img-zoom {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-zoom-wrap:hover .img-zoom {
  transform: scale(1.06);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-float var(--dur, 14s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.08); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.04); }
}

#site-header.is-scrolled {
  background: rgba(6, 10, 16, 0.94);
  box-shadow: 0 8px 32px -12px rgba(0, 229, 255, 0.15), 0 0 0 1px rgba(0, 255, 157, 0.08);
}

#site-header.glass-header.is-scrolled .font-display {
  transform: scale(0.97);
  transform-origin: left center;
  transition: transform 0.4s ease;
}

.nav-glow {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--teal));
  border-radius: 999px;
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

#main-nav { position: relative; }

.btn-gradient:active {
  transform: scale(0.97) translateY(0);
}

.keyword-marquee-track span {
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.keyword-marquee-track span:hover {
  color: var(--sky);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
}

#cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 40;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.1) 0%, rgba(0, 229, 255, 0.06) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.workflow-step {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.workflow-step.is-visible {
  opacity: 1;
  transform: none;
}

.faq-content.expanded > div > p {
  animation: faq-fade-in 0.45s ease both;
}

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .hero-research::before, .hero-research::after,
  .hero-hack-bg,
  #hero-matrix,
  .research-mesh::before,
  #cyber-rain,
  .keyword-marquee-track, .float-soft, .live-dot, .accent-line.is-visible,
  .cta-banner, #progress-bar, .text-shimmer, .glow-pulse, .hero-orb,
  .workflow-step, .hack-runner-track, .hack-cursor {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .workflow-step {
    opacity: 1; transform: none;
  }
  .stat-value { color: var(--teal); background: none; -webkit-background-clip: unset; }
  .text-shimmer { color: var(--sky); background: none; -webkit-background-clip: unset; }
  #cursor-glow, #cyber-rain, #hero-matrix { display: none; }
  .hero-hack-bg { animation: none !important; }
}

#google_translate_element {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
body > .skiptranslate { display: none !important; }
body { top: 0 !important; }
