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

:root {
  --bg: #0a0a0e;
  --bg-raised: rgba(255, 255, 255, 0.03);
  --panel: rgba(13, 13, 19, 0.66);
  --text: #f2f2f5;
  --muted: #a2a2b0;
  --faint: #8f8f9d;
  --accent: #7b96ff;
  --accent-bright: #93aaff;
  --on-accent: #0b0d16;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --green: #34d399;
  --amber: #ffb454;
  --red: #ff5c5c;
  --ember: #ff8c52;
  --r-card: 18px;
  --r-input: 14px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  /* always reserve the scrollbar gutter so locking scroll (modal) never
     changes the viewport width — fixed elements like the navbar stay put */
  scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

#scene {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: #07070c;
}

html.webgl-active #scene {
  opacity: 1;
}

html:not(.webgl-active) #scene {
  background: radial-gradient(ellipse at 50% 30%, #0f1020 0%, #07070c 65%);
}

.bg {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

html.no-webgl .bg,
html:not(.js) .bg {
  opacity: 1;
  visibility: visible;
}

.bg-orbs {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: orb-drift 40s ease-in-out infinite alternate;
}

.orb-1 {
  width: 58vmax;
  height: 58vmax;
  top: -20vmax;
  left: -14vmax;
  background: radial-gradient(closest-side, rgba(96, 130, 255, 0.3), transparent 72%);
  animation-duration: 44s;
}

.orb-2 {
  width: 46vmax;
  height: 46vmax;
  top: 8vmax;
  right: -16vmax;
  background: radial-gradient(closest-side, rgba(64, 201, 222, 0.13), transparent 72%);
  animation-duration: 36s;
  animation-delay: -12s;
}

.orb-3 {
  width: 52vmax;
  height: 52vmax;
  bottom: -22vmax;
  left: 18vmax;
  background: radial-gradient(closest-side, rgba(255, 140, 82, 0.1), transparent 72%);
  animation-duration: 48s;
  animation-delay: -24s;
}

.orb-4 {
  width: 32vmax;
  height: 32vmax;
  top: -10vmax;
  right: 20vmax;
  background: radial-gradient(closest-side, rgba(147, 170, 255, 0.14), transparent 72%);
  animation-duration: 32s;
  animation-delay: -6s;
}

@keyframes orb-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(6vw, -4vh, 0) scale(1.08); }
  66% { transform: translate3d(-5vw, 6vh, 0) scale(0.94); }
  100% { transform: translate3d(3vw, 2vh, 0) scale(1.04); }
}

.bg-grain {
  position: absolute;
  top: -50%; right: -50%; bottom: -50%; left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  animation: grain-shift 0.9s steps(1) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 2%); }
  100% { transform: translate(0, 0); }
}

.bg-vignette {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(4, 4, 9, 0.62) 100%);
}

.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
  padding-inline: 1.25rem;
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    opacity 0.8s var(--ease) 0.15s, transform 0.8s var(--ease) 0.15s;
}

.site-nav.scrolled {
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(123, 150, 255, 0.35));
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-text em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

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

.engine-badge {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

.engine-badge.ok {
  border-color: rgba(123, 150, 255, 0.45);
  color: var(--accent-bright);
}

.engine-badge.bad {
  border-color: rgba(255, 92, 92, 0.45);
  color: var(--red);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.lang-toggle:hover {
  border-color: rgba(123, 150, 255, 0.55);
  color: var(--accent-bright);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text);
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease), width 0.3s var(--ease);
}

.nav-burger span:nth-child(2) {
  width: 70%;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 55;
  padding: 0.75rem 1.25rem 1.25rem;
  background: rgba(9, 9, 13, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 0.95rem 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 34px -10px rgba(123, 150, 255, 0.55);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

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

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

html:not(.js) .intro {
  display: none;
}

html.locked,
body.locked {
  overflow: hidden;
  overscroll-behavior: none;
}

.intro {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: #060609;
  transition: opacity 1s var(--ease), visibility 1s;
}

.js .intro {
  display: flex;
}

.intro.leave {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-inner {
  text-align: center;
  padding-inline: 1.5rem;
}

.intro-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--faint);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease) 0.2s, transform 0.9s var(--ease) 0.2s;
}

.intro-title {
  margin-top: 1.75rem;
  font-size: 3rem;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.intro-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.intro-line > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease);
}

.intro.entering .intro-kicker {
  opacity: 1;
  transform: translateY(0);
}

.intro.entering .intro-line:nth-child(1) > span { transition-delay: 0.45s; }
.intro.entering .intro-line:nth-child(2) > span { transition-delay: 0.6s; }

.intro.entering .intro-line > span {
  transform: translateY(0);
}

.intro-enter {
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease) 1s, transform 0.9s var(--ease) 1s, border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.intro-devs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease) 0.85s, transform 0.9s var(--ease) 0.85s;
}

.intro.entering .intro-devs {
  opacity: 1;
  transform: translateY(0);
}

.intro-dev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}

.intro-dev:hover {
  color: var(--text);
  transform: translateY(-3px);
}

.intro-dev img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 22px rgba(0,0,0,0.45);
  animation: introAvatarFloat 3.2s ease-in-out infinite;
}

.intro-dev:nth-child(1) img { animation-delay: 0s; }
.intro-dev:nth-child(3) img { animation-delay: 1.2s; }

.intro-dev-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.intro-dev-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.intro-dev:hover .intro-dev-tag {
  border-color: rgba(123,150,255,0.45);
  background: rgba(123,150,255,0.12);
  color: var(--text);
}

.intro-dev-tag::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: translateX(-100%);
  animation: introShimmer 2.6s linear infinite;
}

.intro-dev-sep {
  width: 1px;
  height: 42px;
  background: var(--line);
  flex-shrink: 0;
}

@keyframes introAvatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes introShimmer {
  100% { transform: translateX(100%); }
}

.intro-stage {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  padding: clamp(0.75rem, 2.5vh, 2rem) 1.5rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  filter: blur(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease), visibility 0.7s;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.intro-stage::-webkit-scrollbar { display: none; }

.intro-stage.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  filter: blur(0);
}

.intro-stage.is-exiting {
  opacity: 0;
  transform: scale(0.97);
  filter: blur(8px);
}

.intro-stage--dev .intro-kicker {
  opacity: 0;
  transform: translateY(16px);
}

.intro-stage--dev .intro-dev-title-line > span {
  transform: translateY(118%) rotate(2.5deg);
}

.intro-stage--dev.is-active .intro-kicker {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease) 0.2s, transform 0.8s var(--ease) 0.2s;
}

.intro-stage--dev.is-active .intro-dev-title-line:nth-child(1) > span {
  transform: none;
  transition: transform 1.15s var(--ease) 0.35s;
}

.intro-stage--dev.is-active .intro-dev-title-line:nth-child(2) > span {
  transform: none;
  transition: transform 1.15s var(--ease) 0.48s;
}

.intro-stage--dev .intro-dev-sub {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
}

.intro-stage--dev.is-active .intro-dev-sub {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 0.8s var(--ease) 0.62s, transform 0.8s var(--ease) 0.62s, filter 0.8s var(--ease) 0.62s;
}

.intro-stage--dev .intro-dev-card {
  opacity: 0;
}

.intro-stage--dev .intro-dev-card:first-of-type {
  transform: translateX(-44px) scale(0.95);
  filter: blur(6px);
}

.intro-stage--dev .intro-dev-card:last-of-type {
  transform: translateX(44px) scale(0.95);
  filter: blur(6px);
}

.intro-stage--dev.is-active .intro-dev-card {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    transform 1s var(--spring) 0.75s,
    opacity 0.7s var(--ease) 0.75s,
    filter 0.9s var(--ease) 0.75s,
    border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
}

.intro-stage--dev .intro-dev-avatar-wrap {
  opacity: 0;
  transform: scale(0.55);
}

.intro-stage--dev.is-active .intro-dev-avatar-wrap {
  opacity: 1;
  transform: scale(1);
  transition: transform 0.9s var(--spring) 1.05s, opacity 0.5s var(--ease) 1.05s;
}

.intro-stage--dev .intro-dev-role,
.intro-stage--dev .intro-dev-name,
.intro-stage--dev .intro-dev-cta {
  opacity: 0;
  transform: translateY(10px);
}

.intro-stage--dev.is-active .intro-dev-role {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease) 1.25s, transform 0.6s var(--ease) 1.25s;
}

.intro-stage--dev.is-active .intro-dev-name {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease) 1.33s, transform 0.6s var(--ease) 1.33s;
}

.intro-stage--dev.is-active .intro-dev-cta {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease) 1.41s, transform 0.6s var(--ease) 1.41s,
    border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.intro-stage--dev .intro-dev-plus {
  opacity: 0;
  transform: scale(0) rotate(-120deg);
}

.intro-stage--dev.is-active .intro-dev-plus {
  opacity: 0.85;
  transform: none;
  transition: transform 0.75s var(--spring) 1.05s, opacity 0.45s var(--ease) 1.05s;
  animation: plus-glow 3s ease-in-out 1.8s infinite;
}

@keyframes plus-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(123,150,255,0); }
  50% { text-shadow: 0 0 18px rgba(123,150,255,0.9), 0 0 42px rgba(123,150,255,0.35); }
}

.intro-stage--dev .intro-continue {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
}

.intro-stage--dev.is-active .intro-continue {
  opacity: 1;
  transform: none;
  transition:
    transform 0.8s var(--spring) 1.55s,
    opacity 0.6s var(--ease) 1.55s,
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.intro-dev-title {
  margin-top: 0.5rem;
  margin-top: clamp(0.5rem, 1.8vh, 1rem);
  font-size: 1.7rem;
  font-size: clamp(1.7rem, 4.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.intro-dev-title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-top: -0.06em;
}

.intro-dev-title-line > span {
  display: inline-block;
  will-change: transform;
}

.intro-dev-sub {
  margin-top: 0.4rem;
  margin-top: clamp(0.4rem, 1.4vh, 0.75rem);
  color: var(--muted);
  font-size: 0.86rem;
  font-size: clamp(0.86rem, 1.2vw, 0.95rem);
}

.intro-devs-luxe {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.85rem;
  gap: clamp(0.85rem, 2.2vw, 1.25rem);
  margin-top: 1.1rem;
  margin-top: clamp(1.1rem, 3.4vh, 2.5rem);
}

.intro-stage--dev {
  background: radial-gradient(ellipse 85% 65% at 50% 30%, rgba(123,150,255,0.09) 0%, transparent 62%),
              radial-gradient(ellipse 70% 45% at 15% 85%, rgba(255,140,82,0.06) 0%, transparent 55%),
              radial-gradient(ellipse 55% 35% at 85% 15%, rgba(147,170,255,0.07) 0%, transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 40%);
}

.intro-stage--dev::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 32px 32px;
  mask: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.intro-dev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-width: 158px;
  min-width: clamp(158px, 19vw, 190px);
  padding: 1.2rem 1.05rem 1rem;
  padding: clamp(1.2rem, 2.6vh, 2rem) clamp(1.05rem, 2vw, 1.5rem) clamp(1rem, 2.2vh, 1.6rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.08) inset;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}

.intro-dev-card::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px; bottom: -1px; left: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 30%, rgba(123,150,255,0.5) 50%, transparent 70%);
  background-size: 250% 250%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  animation: dev-sheen 5s linear infinite;
  pointer-events: none;
}

.intro-dev-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(123,150,255,0.45);
  box-shadow: 0 18px 48px -18px rgba(123,150,255,0.4), 0 8px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.12) inset;
}

.intro-dev-card:hover::before { opacity: 1; }

.intro-dev-card-spot {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(123, 150, 255, 0.16),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.intro-dev-card:last-of-type .intro-dev-card-spot {
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 140, 82, 0.14),
    transparent 68%
  );
}

.intro-dev-card:hover .intro-dev-card-spot { opacity: 1; }

.intro-dev-avatar-wrap {
  position: relative;
  width: 66px;
  width: clamp(66px, 9.5vh, 84px);
  height: 66px;
  height: clamp(66px, 9.5vh, 84px);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.intro-dev-avatar-wrap::after {
  content: "";
  position: absolute;
  top: -16px; right: -16px; bottom: -16px; left: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 150, 255, 0.28) 0%, transparent 70%);
  animation: intro-halo 3.6s ease-in-out infinite;
  pointer-events: none;
}

.intro-dev-card:last-of-type .intro-dev-avatar-wrap::after {
  background: radial-gradient(circle, rgba(255, 140, 82, 0.24) 0%, transparent 70%);
  animation-delay: 1.4s;
}

@keyframes intro-halo {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.intro-dev-ring {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(123,150,255,0) 0%, rgba(123,150,255,0.95) 18%, rgba(147,170,255,0.25) 32%, rgba(255,140,82,0.5) 52%, rgba(123,150,255,0) 70%);
  animation: ring-spin 4.5s linear infinite;
}

.intro-dev-card img {
  position: relative;
  z-index: 1;
  width: 58px;
  width: clamp(58px, 8.2vh, 74px);
  height: 58px;
  height: clamp(58px, 8.2vh, 74px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0b0d16;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

.intro-dev-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

/* margin-based spacing for engines without flexbox gap (pre-Chrome-84):
   modern browsers support gap and skip this whole block */
@supports not (gap: 1rem) {
  .intro-devs-luxe { gap: 0; }
  .intro-dev-plus { margin: 0 1.25rem; }
  .intro-dev-card { gap: 0; }
  .intro-dev-card .intro-dev-info { margin-top: 0.7rem; }
  .intro-dev-info { gap: 0; }
  .intro-dev-info .intro-dev-role { margin-bottom: 0.3rem; }
  .intro-dev-info .intro-dev-name { margin-bottom: 0.4rem; }
  .intro-devs-luxe .intro-dev-card + .intro-dev-card { margin-top: 0.65rem; }
  .dev-links { gap: 0; }
  .dev-links a + a { margin-left: 0.5rem; }
  .results-actions { gap: 0; }
  .results-actions > * + * { margin-left: 0.75rem; }
  .dev-grid { gap: 0; }
  .dev-grid .dev-card + .dev-card { margin-top: 20px; }
  .nav-tools { gap: 0; }
  .nav-tools > * + * { margin-left: 0.6rem; }
  .sound-toggle { gap: 0; }
  .how-grid { grid-gap: 20px; }
  .stat-grid { grid-gap: 14px; }
  .tabs { grid-gap: 4px; }

  @media (max-width: 640px) {
    .intro-dev-plus { margin: 0.5rem 0; }
    .intro-dev-card .intro-dev-info { margin-top: 0; margin-left: 0.85rem; }
  }
}

.intro-dev-card .intro-dev-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.intro-dev-card .intro-dev-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.intro-dev-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.intro-dev-card:hover .intro-dev-cta {
  border-color: rgba(123,150,255,0.45);
  background: rgba(123,150,255,0.12);
  color: var(--text);
}

.intro-dev-cta::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: translateX(-100%);
  animation: introShimmer 2.8s linear infinite;
}

.intro-dev-plus {
  align-self: center;
  font-size: 1.4rem;
  color: var(--faint);
  font-weight: 300;
  opacity: 0.7;
}

.intro-continue {
  position: relative;
  margin-top: 1rem;
  margin-top: clamp(1rem, 3.2vh, 2.25rem);
  overflow: hidden;
}

.intro-continue::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 38%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: btn-shine 3.6s var(--ease) 2.2s infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0% { transform: translateX(-160%) skewX(-18deg); }
  45%, 100% { transform: translateX(420%) skewX(-18deg); }
}

.intro-stage--dev.intro-done .intro-dev-card {
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}

.intro-stage--dev.intro-done .intro-continue {
  transition:
    transform 0.35s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.35s var(--ease);
}

@media (max-height: 680px) {
  .intro-stage--dev { padding-block: 1rem; }
  .intro-dev-title { font-size: 1.35rem; font-size: clamp(1.35rem, 4vw, 2.3rem); }
  .intro-dev-sub { font-size: 0.84rem; }
  .intro-devs-luxe { margin-top: 0.85rem; margin-top: clamp(0.85rem, 2.6vh, 1.3rem); }
  .intro-dev-card { padding: 0.95rem 1rem; }
  .intro-continue { margin-top: 0.85rem; margin-top: clamp(0.85rem, 2.6vh, 1.25rem); padding: 0.72rem 1.4rem; }
}

@media (max-width: 640px) {
  .intro-dev-title { font-size: 1.35rem; font-size: clamp(1.35rem, 6.2vw, 1.9rem); }
  .intro-dev-sub { font-size: 0.85rem; }
  .intro-devs-luxe { flex-direction: column; gap: 0.65rem; margin-top: 0.85rem; margin-top: clamp(0.85rem, 2.4vh, 1.4rem); }
  .intro-dev-plus { transform: rotate(90deg); }
  .intro-stage--dev .intro-dev-card:first-of-type { transform: scale(0.95); }
  .intro-stage--dev .intro-dev-card:last-of-type { transform: scale(0.95); }
  .intro-stage--dev.is-active .intro-dev-plus { transform: rotate(90deg); }
  .intro-dev-card { min-width: 0; width: 100%; max-width: 320px; flex-direction: row; align-items: center; padding: 0.8rem 0.95rem; gap: 0.85rem; text-align: left; }
  .intro-dev-info { flex: 1 1 auto; align-items: flex-start; gap: 0.3rem; }
  .intro-dev-card .intro-dev-avatar-wrap { width: 56px; height: 56px; }
  .intro-dev-card img { width: 48px; height: 48px; }
  .intro-dev-card .intro-dev-role, .intro-dev-card .intro-dev-name { text-align: left; }
  .intro-continue { margin-top: 0.85rem; margin-top: clamp(0.85rem, 2.4vh, 1.5rem); }
}

@media (max-width: 480px) {
  .intro-devs { gap: 1rem; margin-top: 1.5rem; }
  .intro-dev img { width: 44px; height: 44px; }
}

.intro.entering .intro-enter {
  opacity: 1;
  transform: translateY(0);
}

.intro.leave .intro-inner {
  transform: scale(0.97);
  filter: blur(6px);
  transition: transform 1s var(--ease), filter 1s var(--ease);
}

.sound-toggle {
  position: fixed;
  right: 1.35rem;

  right: max(1.35rem, env(safe-area-inset-right));
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.1rem;
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease) 1.2s, transform 0.8s var(--ease) 1.2s, border-color 0.25s var(--ease), color 0.25s var(--ease);
}

html.entered .sound-toggle,
body.locked .sound-toggle {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

/* ---- site entrance — mirrors the intro stage choreography ---- */
/* pre-entrance is applied by JS before first paint; removing it replays the intro-style reveal */
html.pre-entrance .site-nav,
html.pre-entrance .hero-kicker,
html.pre-entrance .hero-sub,
html.pre-entrance .scan-card,
html.pre-entrance .hero-line > span {
  transition: none !important;
}

html.pre-entrance .site-nav {
  opacity: 0;
  transform: translateY(-18px);
}

html.pre-entrance .hero-kicker {
  opacity: 0;
  transform: translateY(14px);
}

html.pre-entrance .hero-line > span {
  transform: translateY(115%);
}

html.pre-entrance .hero-sub {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
}

html.pre-entrance .scan-card {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(6px);
}

/* watchdog end-states: if the renderer was throttled and entrance transitions
   stalled mid-flight, JS adds intro-forced / entrance-forced to commit the
   finished state so elements never stay stuck overlapping each other.
   stage 1 keeps a short glide so slow renders settle smoothly; stage 2
   (intro-forced-final / entrance-forced-final) hard-commits for frozen ones */
html.intro-forced .intro-stage.is-active {
  transition: opacity 0.35s var(--ease) !important, transform 0.35s var(--ease) !important, filter 0.35s var(--ease) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}

html.intro-forced-final .intro-stage.is-active { transition: none !important; }

html.intro-forced .intro-stage--dev .intro-kicker,
html.intro-forced .intro-stage--dev .intro-dev-title-line > span,
html.intro-forced .intro-stage--dev .intro-dev-sub,
html.intro-forced .intro-stage--dev .intro-dev-card,
html.intro-forced .intro-stage--dev .intro-dev-avatar-wrap,
html.intro-forced .intro-stage--dev .intro-dev-role,
html.intro-forced .intro-stage--dev .intro-dev-name,
html.intro-forced .intro-stage--dev .intro-dev-cta,
html.intro-forced .intro-stage--dev .intro-continue,
html.intro-forced .intro-stage--dev .intro-dev-plus,
html.intro-forced .intro.entering .intro-kicker,
html.intro-forced .intro.entering .intro-line > span,
html.intro-forced .intro.entering .intro-enter,
html.entrance-forced .site-nav,
html.entrance-forced .hero-kicker,
html.entrance-forced .hero-sub,
html.entrance-forced .scan-card,
html.entrance-forced .hero-line > span {
  transition: opacity 0.35s var(--ease) !important, transform 0.35s var(--ease) !important, filter 0.35s var(--ease) !important;
  opacity: 1 !important;
  filter: none !important;
}

html.intro-forced-final .intro-stage--dev .intro-kicker,
html.intro-forced-final .intro-stage--dev .intro-dev-title-line > span,
html.intro-forced-final .intro-stage--dev .intro-dev-sub,
html.intro-forced-final .intro-stage--dev .intro-dev-card,
html.intro-forced-final .intro-stage--dev .intro-dev-avatar-wrap,
html.intro-forced-final .intro-stage--dev .intro-dev-role,
html.intro-forced-final .intro-stage--dev .intro-dev-name,
html.intro-forced-final .intro-stage--dev .intro-dev-cta,
html.intro-forced-final .intro-stage--dev .intro-continue,
html.intro-forced-final .intro-stage--dev .intro-dev-plus,
html.intro-forced-final .intro.entering .intro-kicker,
html.intro-forced-final .intro.entering .intro-line > span,
html.intro-forced-final .intro.entering .intro-enter,
html.entrance-forced-final .site-nav,
html.entrance-forced-final .hero-kicker,
html.entrance-forced-final .hero-sub,
html.entrance-forced-final .scan-card,
html.entrance-forced-final .hero-line > span {
  transition: none !important;
}

html.intro-forced .intro-stage--dev .intro-dev-plus {
  opacity: 0.85 !important;
}

/* low-fps mode: spring/blur/backdrop effects smear and strobe when frames are
   scarce, so switch the entrance to plain fades at final positions */
html.low-fps .intro-stage {
  transition: opacity 0.4s ease !important;
  transform: none !important;
  filter: none !important;
}

html.low-fps .intro-stage--dev .intro-kicker,
html.low-fps .intro-stage--dev .intro-dev-title-line > span,
html.low-fps .intro-stage--dev .intro-dev-sub,
html.low-fps .intro-stage--dev .intro-dev-card,
html.low-fps .intro-stage--dev .intro-dev-avatar-wrap,
html.low-fps .intro-stage--dev .intro-dev-role,
html.low-fps .intro-stage--dev .intro-dev-name,
html.low-fps .intro-stage--dev .intro-dev-cta,
html.low-fps .intro-stage--dev .intro-dev-plus,
html.low-fps .intro-stage--dev .intro-continue,
html.low-fps .intro.entering .intro-kicker,
html.low-fps .intro.entering .intro-line > span,
html.low-fps .intro.entering .intro-enter,
html.low-fps .site-nav,
html.low-fps .hero-kicker,
html.low-fps .hero-sub,
html.low-fps .hero-line > span,
html.low-fps .scan-card {
  transition: opacity 0.4s ease !important;
  transform: none !important;
  filter: none !important;
}

html.low-fps .intro-dev-card,
html.low-fps .scan-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.low-fps .intro-dev-card::before,
html.low-fps .intro-dev-cta::after,
html.low-fps .intro-dev-avatar-wrap::after,
html.low-fps .intro-continue::after {
  animation: none !important;
}

html.intro-forced .intro-stage--dev .intro-dev-title-line > span,
html.intro-forced .intro-stage--dev .intro-dev-sub,
html.intro-forced .intro-stage--dev .intro-dev-card,
html.intro-forced .intro-stage--dev .intro-continue,
html.intro-forced .intro.entering .intro-line > span,
html.intro-forced .intro.entering .intro-enter,
html.entrance-forced .site-nav,
html.entrance-forced .hero-kicker,
html.entrance-forced .hero-sub,
html.entrance-forced .scan-card,
html.entrance-forced .hero-line > span {
  transform: none !important;
}

.sound-toggle:hover,
.sound-toggle[aria-pressed="true"] {
  border-color: rgba(123, 150, 255, 0.55);
  color: var(--text);
}

.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-bars i {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: var(--accent);
  transform-origin: bottom;
  transform: scaleY(0.25);
  transition: transform 0.3s ease;
}

.sound-toggle[aria-pressed="true"] .sound-bars i {
  animation: soundbar 0.9s ease-in-out infinite alternate;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(1) { animation-duration: 0.7s; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-duration: 1.1s; animation-delay: -0.2s; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-duration: 0.85s; animation-delay: -0.4s; }

@keyframes soundbar {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

.scene-tooltip {
  position: fixed;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px)) scale(0.94);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

.scene-tooltip.show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px)) scale(1);
}

.scene-tooltip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- in-page legal modal (keeps the music alive — no navigation) ---- */
.legal-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 85;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(4, 4, 9, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: legal-fade 0.3s var(--ease);
}

@keyframes legal-fade {
  from { opacity: 0; }
}

.legal-modal-scroll {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  padding-top: 1.5rem;
  padding-top: clamp(1.25rem, 4vh, 2.5rem);
  padding-bottom: clamp(2rem, 8vh, 5rem);
}

/* the close button lives inside the card's top-right corner and scrolls
   away with the document — it is part of the box, not a floating control */
.legal-modal-close {
  position: absolute;
  top: 1.4rem;
  right: 2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(10, 11, 18, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

html.legal-open .sound-toggle {
  display: none !important;
}

.legal-modal-close:hover {
  border-color: rgba(123, 150, 255, 0.6);
  background: rgba(123, 150, 255, 0.16);
}

.legal-modal-panel {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  animation: legal-rise 0.45s var(--ease);
}

@keyframes legal-rise {
  from { opacity: 0; transform: translateY(22px); }
}

/* smooth exit: backdrop fades, card sinks away */
.legal-modal.closing .legal-modal-backdrop {
  animation: legal-fade-out 0.28s var(--ease) forwards;
}

.legal-modal.closing .legal-modal-panel {
  animation: legal-sink 0.3s var(--ease) forwards;
}

@keyframes legal-fade-out {
  to { opacity: 0; }
}

@keyframes legal-sink {
  to { opacity: 0; transform: translateY(24px) scale(0.985); }
}

.legal-modal-panel .legal-main {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .legal-modal-backdrop,
  .legal-modal-panel,
  .legal-modal-close {
    animation: none !important;
    transition: none !important;
  }
}

main > section {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 75;
  pointer-events: none;
  will-change: transform;
}

.hero {
  min-height: 560px;

  min-height: min(68dvh, 560px);
  display: grid;
  align-content: center;
  padding-top: 96px;
  padding-bottom: 1.25rem;
}

.scanner-section {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  padding-block: 0.75rem 1rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 0.75rem;
  }
}

.hero-cinema {
  background: radial-gradient(ellipse 62% 46% at 50% 44%, rgba(6, 6, 10, 0.82), transparent 72%);
}

.hero-inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: inherit;
  background: var(--accent);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero-title {
  margin-top: 1.75rem;
  font-size: 2.6rem;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-line > span {
  display: inline-block;
  will-change: transform;
  transition: transform 1.1s var(--ease);
}

.hero-line:nth-child(1) > span { transition-delay: 0.45s; }
.hero-line:nth-child(2) > span { transition-delay: 0.6s; }

.hero-kicker {
  transition: opacity 0.9s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s;
}

.hero-sub {
  transition: opacity 0.9s var(--ease) 0.7s, transform 0.9s var(--ease) 0.7s, filter 0.9s var(--ease) 0.7s;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
}

.scan-card {
  margin-top: 2.5rem;
  padding: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  text-align: left;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  transition: opacity 0.9s var(--ease) 0.95s, transform 1s var(--spring) 0.95s, filter 0.9s var(--ease) 0.95s;
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  isolation: isolate;
}

.tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 16px) / 3);
  background: var(--accent);
  border-radius: 999px;
  z-index: 0;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.tab {
  position: relative;
  z-index: 1;
  padding: 0.55rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  background: transparent;
  color: var(--on-accent);
}

.scan-panel {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.scan-panel.is-active {
  display: flex;
}

.scan-panel input[type="text"] {
  flex: 1;
  width: 100%;
  padding: 0.9rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.98rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.scan-panel input::placeholder {
  color: var(--faint);
}

.scan-panel input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 150, 255, 0.22);
}

#urlForm,
#hashForm {
  flex-direction: row;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.25rem 1.25rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-input);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(123, 150, 255, 0.07);
  color: var(--text);
}

.dropzone.has-file {
  border-style: solid;
  border-color: rgba(123, 150, 255, 0.55);
}

.dz-title {
  font-weight: 500;
}

.dz-hint {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.scan-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(123, 150, 255, 0.08);
  border: 1px solid rgba(123, 150, 255, 0.25);
  border-radius: var(--r-input);
  font-size: 0.9rem;
  color: var(--text);
}

.status-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  flex-shrink: 0;
}

.status-eq i {
  width: 3px;
  height: 100%;
  border-radius: 1.5px;
  background: var(--accent-bright);
  transform-origin: bottom;
  animation: eqbar 1s ease-in-out infinite alternate;
}

.status-eq i:nth-child(1) { animation-duration: 0.8s; }
.status-eq i:nth-child(2) { animation-duration: 1.2s; animation-delay: -0.3s; }
.status-eq i:nth-child(3) { animation-duration: 0.9s; animation-delay: -0.6s; }
.status-eq i:nth-child(4) { animation-duration: 1.4s; animation-delay: -0.2s; }
.status-eq i:nth-child(5) { animation-duration: 1.05s; animation-delay: -0.5s; }

@keyframes eqbar {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

.scan-error {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 92, 92, 0.09);
  border: 1px solid rgba(255, 92, 92, 0.35);
  border-radius: var(--r-input);
  font-size: 0.9rem;
  color: #ffb0a6;
}

.results {
  padding-block: 3rem;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.results:not([hidden]) {
  margin-top: 1.5rem;
  padding: 0 1rem;
  padding: 0 clamp(1rem, 5vw, 3rem);
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.results.v-clean { --verdict-glow: rgba(52, 211, 153, 0.16); --verdict-glow-strong: rgba(52, 211, 153, 0.45); }
.results.v-suspicious { --verdict-glow: rgba(255, 180, 84, 0.16); --verdict-glow-strong: rgba(255, 180, 84, 0.5); }
.results.v-malicious { --verdict-glow: rgba(255, 92, 92, 0.18); --verdict-glow-strong: rgba(255, 92, 92, 0.55); }

.results-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  flex-wrap: wrap;
  padding: 1.75rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.results-head::before {
  content: "";
  position: absolute;
  top: -55%;
  left: 50%;
  width: 340px;
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--verdict-glow, rgba(123, 150, 255, 0.15)), transparent 72%);
  pointer-events: none;
}

.verdict-ring {
  position: relative;
  filter: drop-shadow(0 0 16px var(--verdict-glow-strong, rgba(123, 150, 255, 0.45)));
}

.verdict-ring .ring-track {
  stroke: rgba(255, 255, 255, 0.07);
}

.verdict-ring .ring-value {
  stroke: var(--accent);
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.2s var(--ease), stroke 0.4s var(--ease);
}

.verdict-ring.v-clean .ring-value { stroke: var(--green); }
.verdict-ring.v-suspicious .ring-value { stroke: var(--amber); }
.verdict-ring.v-malicious .ring-value { stroke: var(--red); }

.ring-label {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.ring-sub {
  fill: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.results-meta {
  min-width: 240px;
  flex: 1;
}

.verdict-chip {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid;
}

.v-clean .verdict-chip { color: var(--green); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); }
.v-suspicious .verdict-chip { color: var(--amber); border-color: rgba(255, 180, 84, 0.45); background: rgba(255, 180, 84, 0.08); }
.v-malicious .verdict-chip { color: var(--red); border-color: rgba(255, 92, 92, 0.45); background: rgba(255, 92, 92, 0.08); }

.target-name {
  margin-top: 0.9rem;
  font-size: 1.3rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.target-sub {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 2rem;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.75;
}

.stat-red::after { background: linear-gradient(90deg, transparent, rgba(255, 92, 92, 0.8), transparent); }
.stat-amber::after { background: linear-gradient(90deg, transparent, rgba(255, 180, 84, 0.8), transparent); }
.stat-green::after { background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.8), transparent); }
.stat-dim::after { background: linear-gradient(90deg, transparent, rgba(162, 162, 176, 0.6), transparent); }

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
}

.stat span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.stat-red strong { color: var(--red); }
.stat-amber strong { color: var(--amber); }
.stat-green strong { color: var(--green); }
.stat-dim strong { color: var(--muted); }

.detail-card {
  margin-top: 14px;
  padding: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.detail-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.detail-rows {
  display: flex;
  flex-direction: column;
}

.detail-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 0.2em;
}

.detail-row dd {
  color: var(--text);
  word-break: break-all;
}

.detail-row dd.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.engine-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.engine-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.engine-item:last-child {
  border-bottom: none;
}

.engine-name {
  color: var(--text);
  font-weight: 500;
}

.engine-result {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-align: right;
  word-break: break-word;
}

.engine-item.c-malicious .engine-result { color: var(--red); }
.engine-item.c-suspicious .engine-result { color: var(--amber); }

.all-clear {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.08);
  color: var(--green);
  font-size: 0.88rem;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (max-width: 640px) {
  .results-head {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }

  .results-meta {
    min-width: 0;
    width: 100%;
  }

  .verdict-ring {
    width: 104px;
    height: 104px;
  }

  .ring-label {
    font-size: 23px;
  }

  .results-head::before {
    width: 260px;
    height: 200px;
  }
}

.how {
  padding-block: 4rem 5rem;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(5rem, 10vw, 8rem);
}

.section-head h2 {
  font-size: 2rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
}

.section-head p {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.how-grid .card:nth-child(1) {
  grid-column: span 7;
}

.how-grid .card:nth-child(2) {
  grid-column: span 5;
}

.how-grid .card:nth-child(3) {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 1.4rem;
  row-gap: 0.4rem;
  align-items: start;
}

.how-grid .card:nth-child(3) .how-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 0.2rem;
}

.how-grid .card:nth-child(3) h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.how-grid .card:nth-child(3) p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: 58ch;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card-tint {
  background:
    radial-gradient(130% 150% at 18% 8%, rgba(123, 150, 255, 0.17), transparent 62%),
    var(--panel);
}

.card-mono {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 26px),
    var(--panel);
}

.how-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
  padding: 2rem 1.25rem 3rem;
  padding: 2rem clamp(1.25rem, 5vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
}

.footer-legal {
  display: flex;
  gap: 1.4rem;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer-legal a:hover {
  color: var(--accent-bright);
}

.legal-page .site-nav {
  position: relative;
  height: auto;
  padding-block: 1rem;
  border-bottom-color: var(--line);
  background: transparent;
}

.legal-main {
  width: calc(100% - 2rem);
  max-width: 760px;
  margin-inline: auto;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 2rem 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 5vw, 2.25rem) clamp(2rem, 5vw, 2.75rem);
  background: rgba(9, 10, 17, 0.62);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--r-card);
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.legal-page .bg-grain {
  opacity: 0;
  display: none;
}

/* legal pages share the animated 3D scene with the landing page */
.legal-page .bg {
  display: none;
}

@media (max-width: 480px) {
  .legal-page .site-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

.legal-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-main h1 {
  margin-top: 1rem;
  font-size: 2.1rem;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.legal-body {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.legal-body p {
  color: var(--muted);
  font-size: 0.97rem;
}

.legal-body ul {
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.97rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-body strong,
.legal-body a {
  color: var(--text);
}

.legal-body a {
  color: var(--accent-bright);
  text-decoration: none;
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-back {
  margin-top: 3rem;
}

.legal-foot {
  max-width: 760px;
  margin-inline: auto;
  padding: 2rem 1.25rem 3.5rem;
  padding: 2rem clamp(1.25rem, 5vw, 2rem) 3.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.site-footer {
  flex-wrap: wrap;
}

.footer-brandline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.dev-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  padding: 2rem 1.25rem 4rem;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem);
}

.dev-heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.dev-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 980px;
}

.dev-grid .dev-card {
  flex: 1 1 280px;
  max-width: 440px;
}

.dev-grid .dev-card:first-child {
  flex: 1.25 1 320px;
  max-width: 480px;
  padding: 1.75rem 2.5rem;
}

.dev-grid .dev-card:first-child .dev-avatar-wrap {
  width: 104px;
  height: 104px;
}

.dev-grid .dev-card:first-child .dev-avatar {
  width: 94px;
  height: 94px;
}

.dev-grid .dev-card:first-child .dev-name {
  font-size: 1.6rem;
}

.dev-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.5rem 2.25rem;
  background:
    radial-gradient(120% 160% at 85% 0%, rgba(123, 150, 255, 0.14), transparent 60%),
    var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.dev-card::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px; bottom: -1px; left: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 30%, rgba(123, 150, 255, 0.55) 50%, transparent 70%);
  background-size: 250% 250%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  animation: dev-sheen 5s linear infinite;
  pointer-events: none;
}

.dev-card:hover {
  border-color: rgba(123, 150, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -24px rgba(123, 150, 255, 0.35);
}

.dev-card:hover::before {
  opacity: 1;
}

@keyframes dev-sheen {
  to {
    background-position: 250% 0;
  }
}

.js .dev-card .dev-avatar-wrap,
.js .dev-card .dev-name,
.js .dev-card .dev-role,
.js .dev-card .dev-links {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .dev-card.is-visible .dev-avatar-wrap { transition-delay: 0.05s; }
.js .dev-card.is-visible .dev-name { transition-delay: 0.18s; }
.js .dev-card.is-visible .dev-role { transition-delay: 0.28s; }
.js .dev-card.is-visible .dev-links { transition-delay: 0.38s; }

.js .dev-card.is-visible .dev-avatar-wrap,
.js .dev-card.is-visible .dev-name,
.js .dev-card.is-visible .dev-role,
.js .dev-card.is-visible .dev-links {
  opacity: 1;
  transform: translateY(0);
}

.dev-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dev-avatar-ring {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(123, 150, 255, 0) 0%,
    rgba(123, 150, 255, 0.95) 18%,
    rgba(147, 170, 255, 0.25) 32%,
    rgba(255, 140, 82, 0.5) 52%,
    rgba(123, 150, 255, 0) 70%
  );
  animation: ring-spin 5s linear infinite;
}

.dev-avatar {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0b0d16;
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.45s var(--ease);
}

.dev-card:hover .dev-avatar {
  transform: scale(1.05);
}

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

.dev-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
  margin-left: 0.6rem;
}

.dev-eq i {
  width: 3px;
  border-radius: 1.5px;
  background: var(--accent-bright);
  transform-origin: bottom;
  animation: eqbar 1s ease-in-out infinite alternate;
}

.dev-eq i:nth-child(1) { height: 60%; animation-duration: 0.8s; }
.dev-eq i:nth-child(2) { height: 100%; animation-duration: 1.15s; animation-delay: -0.25s; }
.dev-eq i:nth-child(3) { height: 75%; animation-duration: 0.95s; animation-delay: -0.5s; }
.dev-eq i:nth-child(4) { height: 90%; animation-duration: 1.3s; animation-delay: -0.15s; }

.dev-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.dev-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.dev-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
}

.dev-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.ring-warm {
  background: conic-gradient(
    from 180deg,
    rgba(255, 140, 82, 0) 0%,
    rgba(255, 140, 82, 0.9) 18%,
    rgba(123, 150, 255, 0.3) 36%,
    rgba(255, 92, 92, 0.45) 56%,
    rgba(255, 140, 82, 0) 74%
  );
}

.dev-links {
  display: flex;
  gap: 0.5rem;
}

.dev-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.dev-links a:hover {
  border-color: rgba(123, 150, 255, 0.55);
  color: var(--text);
  transform: translateY(-1px);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--rd, 0) * 80ms);
}

.js .hero [data-reveal] {
  transform: translateY(32px);
  transition-delay: calc(var(--rd, 0) * 110ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .how-grid .card:nth-child(1),
  .how-grid .card:nth-child(2) {
    grid-column: span 6;
  }
}

@media (max-width: 1024px) {
  :root {
    --panel: rgba(17, 17, 24, 0.88);
  }

  .scan-card,
  .card,
  .stat,
  .detail-card,
  .dev-card,
  .legal-main,
  .results-head {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .legal-main {
    background: rgba(10, 11, 18, 0.86);
  }

  .bg-grain {
    animation: none;
    opacity: 0.28;
  }
}

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

  .nav-burger {
    display: inline-flex;
  }

  .engine-badge {
    display: none;
  }

  /* 16px prevents iOS Safari from auto-zooming when focusing the input */
  .scan-panel input[type="text"] {
    font-size: 16px;
  }

  .tab {
    padding: 0.75rem 0.5rem;
  }

  .sound-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .sound-toggle .sound-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .site-footer {
    padding-bottom: calc(3rem + 60px);
  }

  #urlForm,
  #hashForm {
    flex-direction: column;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 640px) {
  .dev-card {
    flex-direction: column;
    text-align: center;
    padding-inline: 1.5rem;
    gap: 1.1rem;
  }

  .dev-info {
    align-items: center;
  }

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

  .how-grid .card:nth-child(1),
  .how-grid .card:nth-child(2),
  .how-grid .card:nth-child(3) {
    grid-column: span 12;
  }

  .how-grid .card:nth-child(3) {
    display: flex;
    flex-direction: column;
  }

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 0.9rem;
  }

  .logo-mark {
    width: 26px;
    height: 26px;
  }

  .lang-toggle {
    padding: 0.38rem 0.65rem;
    font-size: 0.56rem;
  }

  .tab {
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .scan-card {
    padding: 1.1rem;
  }

  .hero-title {
    font-size: 2.1rem;
    font-size: clamp(2.1rem, 11vw, 2.85rem);
  }

  .stat-grid {
    gap: 10px;
  }

  .dev-avatar-wrap {
    width: 84px;
    height: 84px;
  }

  .dev-avatar {
    width: 74px;
    height: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .orb,
  .bg-grain,
  .pulse-dot::after,
  .status-eq i,
  .dev-eq i,
  .dev-avatar-ring,
  .dev-card::before,
  .intro-dev img,
  .intro-dev-tag::after,
  .sound-toggle[aria-pressed="true"] .sound-bars i {
    animation: none !important;
  }

  .dev-avatar-ring {
    background: rgba(123, 150, 255, 0.4);
  }

  .intro-kicker,
  .intro-line > span,
  .intro-enter,
  .intro-devs,
  .intro-dev-title-line > span,
  .intro-stage--dev .intro-dev-sub,
  .intro-stage--dev .intro-dev-card,
  .intro-stage--dev .intro-dev-avatar-wrap,
  .intro-stage--dev .intro-dev-role,
  .intro-stage--dev .intro-dev-name,
  .intro-stage--dev .intro-dev-cta,
  .intro-stage--dev .intro-dev-plus,
  .intro-stage--dev .intro-continue {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .intro-dev-avatar-wrap::after,
  .intro-continue::after,
  .intro-dev-card-spot {
    display: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .verdict-ring .ring-value {
    stroke-dashoffset: 0 !important;
  }
}
