:root {
  color-scheme: dark;
  --home-bg: #040405;
  --home-bg-2: #09090c;
  --home-bg-mid: #0c0c10;
  --home-surface: #0e0e12;
  --home-surface-2: #15151a;
  --home-surface-elevated: #1a1a22;
  --home-border: rgba(255, 255, 255, 0.065);
  --home-border-strong: rgba(255, 255, 255, 0.1);
  --home-text: #f8f8fa;
  --home-muted: #b8b8c4;
  --home-muted-dim: #7c7c8a;
  --home-accent: #a78bfa;
  --home-accent-dim: #8b6ff0;
  --home-accent-deep: #6d4ec4;
  --home-accent-glow: rgba(167, 139, 250, 0.2);
  --home-cyan: #2dd4bf;
  --home-cyan-soft: rgba(45, 212, 191, 0.12);
  --home-amber: #fcd34d;
  --home-amber-soft: rgba(252, 211, 77, 0.1);
  --home-rose: #fb7185;
  --home-rose-soft: rgba(251, 113, 133, 0.11);
  --home-mint: #4ade80;
  --home-mint-soft: rgba(74, 222, 128, 0.09);
  --home-indigo: #818cf8;
  --home-indigo-soft: rgba(129, 140, 248, 0.11);
  --home-violet-mist: rgba(109, 40, 217, 0.14);
  --home-radius: 14px;
  --home-radius-lg: 20px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

body.home-page {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  background-color: var(--home-bg);
  background-image:
    radial-gradient(ellipse 85% 55% at 50% -15%, rgba(109, 40, 217, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(45, 212, 191, 0.05), transparent 45%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--home-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
  body.home-page {
    background-size: 200% 200%, 180% 180%;
    animation: homeBodyBgDrift 58s ease-in-out infinite alternate;
  }
}

@keyframes homeBodyBgDrift {
  0% {
    background-position: 0% 0%, 100% 0%;
  }

  100% {
    background-position: 85% 35%, 15% 85%;
  }
}

body.home-page::before {
  content: "";
  position: fixed;
  inset: -15%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 75% at 5% 15%, var(--home-violet-mist), transparent 58%),
    radial-gradient(ellipse 80% 70% at 95% 25%, var(--home-cyan-soft), transparent 52%),
    radial-gradient(ellipse 75% 65% at 45% 95%, var(--home-amber-soft), transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 60%, var(--home-rose-soft), transparent 50%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%;
  background-repeat: no-repeat;
  opacity: 0.88;
  will-change: transform, opacity, background-position;
}

body.home-page::after {
  content: "";
  position: fixed;
  inset: -25%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 90% at 20% 40%, rgba(167, 139, 250, 0.09), transparent 55%),
    radial-gradient(ellipse 90% 80% at 85% 70%, rgba(45, 212, 191, 0.07), transparent 52%);
  opacity: 0.72;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: no-preference) {
  body.home-page::before {
    animation:
      homeAuraDrift 32s ease-in-out infinite alternate,
      homeAuraSheet 76s ease-in-out infinite alternate;
  }

  body.home-page::after {
    animation:
      homeAuraFloat 48s ease-in-out infinite alternate-reverse,
      homeAuraBreath 16s ease-in-out infinite,
      homeAuraHue 100s linear infinite;
  }
}

@keyframes homeAuraSheet {
  0% {
    background-position:
      0% 20%,
      100% 0%,
      50% 100%,
      80% 60%;
  }

  100% {
    background-position:
      100% 60%,
      0% 80%,
      50% 0%,
      20% 40%;
  }
}

@keyframes homeAuraHue {
  0%,
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }

  33% {
    filter: hue-rotate(4deg) saturate(1.04);
  }

  66% {
    filter: hue-rotate(-3deg) saturate(1.02);
  }
}

@keyframes homeAuraBreath {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 0.82;
  }
}

@keyframes homeAuraDrift {
  0% {
    opacity: 0.78;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.94;
    transform: translate3d(4%, -2%, 0) scale(1.04);
  }

  100% {
    opacity: 0.85;
    transform: translate3d(-3%, 3%, 0) scale(1.02);
  }
}

@keyframes homeAuraFloat {
  0% {
    transform: translate3d(6%, 4%, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(-8%, -6%, 0) rotate(-2deg);
  }
}

body.home-page > *:not(.home-bg-motion) {
  position: relative;
  z-index: 2;
}

.home-bg-motion {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 1;
}

.home-bg-night-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-bg-night-sky-photo {
  position: absolute;
  left: -18%;
  top: -18%;
  width: 136%;
  height: 136%;
  background-color: var(--home-bg);
  background-image: url("https://images.unsplash.com/photo-1419242902214-272b3f66ee7a?auto=format&fit=crop&w=2400&q=82");
  background-size: cover;
  background-position: 50% 45%;
  background-repeat: no-repeat;
  opacity: 0.42;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .home-bg-night-sky-photo {
    animation: homeNightSkyDrift 200s ease-in-out infinite alternate;
  }
}

@keyframes homeNightSkyDrift {
  0% {
    transform: translate3d(-2.5%, -1.5%, 0) scale(1.06);
  }

  100% {
    transform: translate3d(3.5%, 2.5%, 0) scale(1.12);
  }
}

.home-bg-night-sky-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(4, 4, 8, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(4, 4, 8, 0.5) 0%, rgba(4, 4, 8, 0.72) 45%, rgba(4, 4, 8, 0.88) 100%);
}

body.home-page > .home-bg-sim-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  max-width: min(280px, calc(100vw - 28px));
  pointer-events: auto;
}

.home-bg-sim-details {
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border);
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--home-muted);
  font-family: var(--font);
  font-size: 13px;
}

.home-bg-sim-summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--home-text);
  user-select: none;
}

.home-bg-sim-summary::-webkit-details-marker {
  display: none;
}

.home-bg-sim-summary::after {
  content: "▸";
  float: right;
  opacity: 0.55;
  font-size: 11px;
}

.home-bg-sim-details[open] .home-bg-sim-summary::after {
  content: "▾";
}

.home-bg-sim-fields {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-bg-sim-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-bg-sim-label-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--home-muted);
}

.home-bg-sim-out {
  font-variant-numeric: tabular-nums;
  color: var(--home-accent);
  font-weight: 600;
}

.home-bg-sim-range {
  width: 100%;
  accent-color: var(--home-accent);
}

.home-bg-sim-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--home-muted-dim);
}

.home-bg-sim-hint--sub {
  margin-top: 4px;
  opacity: 0.92;
}

.home-bg-sim-reset {
  margin-top: 4px;
  align-self: flex-start;
  padding: 6px 10px;
  font-size: 11px;
  font-family: var(--font);
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--home-border);
  border-radius: 8px;
  cursor: pointer;
}

.home-bg-sim-reset:hover {
  color: var(--home-text);
  border-color: rgba(167, 139, 250, 0.35);
}

@media (max-width: 768px) {
  body.home-page > .home-bg-sim-panel {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-bg-night-sky-photo {
    animation: none;
    left: -10%;
    top: -10%;
    width: 120%;
    height: 120%;
    transform: none;
  }
}

.home-bg-asteroids {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
}

.home-bg-asteroid-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-bg-dots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
}

.home-bg-dot {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  pointer-events: none;
  will-change: opacity;
  contain: strict;
  opacity: 0;
  animation: homeDotTwinkle var(--home-dot-dur, 16s) ease-in-out infinite;
  animation-delay: var(--home-dot-delay, 0s);
}

.home-bg-dot--t1 {
  background: rgba(255, 255, 255, 0.42);
}

.home-bg-dot--t2 {
  background: rgba(167, 139, 250, 0.4);
}

.home-bg-dot--t3 {
  background: rgba(45, 212, 191, 0.34);
}

.home-bg-dot--static {
  opacity: 0.12;
  animation: none;
}

@keyframes homeDotTwinkle {
  0% {
    opacity: 0;
  }

  12% {
    opacity: 0.03;
  }

  28% {
    opacity: 0.2;
  }

  44% {
    opacity: 0.04;
  }

  58% {
    opacity: 0.14;
  }

  74% {
    opacity: 0.03;
  }

  88% {
    opacity: 0.1;
  }

  100% {
    opacity: 0;
  }
}

.home-bg-motion::before,
.home-bg-motion::after {
  content: "";
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  will-change: transform;
  pointer-events: none;
}

.home-bg-motion::before {
  width: min(120vmin, 720px);
  height: min(120vmin, 720px);
  left: max(-18%, -120px);
  top: 8%;
  background: radial-gradient(circle closest-side, rgba(167, 139, 250, 0.5), rgba(109, 40, 217, 0.18) 45%, transparent 70%);
  filter: blur(44px);
  opacity: 0.92;
}

.home-bg-motion::after {
  width: min(100vmin, 560px);
  height: min(100vmin, 560px);
  right: max(-12%, -80px);
  bottom: 5%;
  background: radial-gradient(circle closest-side, rgba(45, 212, 191, 0.42), rgba(45, 212, 191, 0.12) 50%, transparent 72%);
  filter: blur(52px);
  opacity: 0.88;
}

@media (prefers-reduced-motion: no-preference) {
  .home-bg-motion::before {
    animation: homeBgOrbA 22s ease-in-out infinite alternate;
  }

  .home-bg-motion::after {
    animation: homeBgOrbB 28s ease-in-out infinite alternate;
  }
}

@keyframes homeBgOrbA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(12vw, 6vh, 0) scale(1.12);
  }
}

@keyframes homeBgOrbB {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }

  100% {
    transform: translate3d(-10vw, -8vh, 0) scale(1);
  }
}

#home-main {
  position: relative;
}

#home-main > * {
  position: relative;
  z-index: 1;
}

main > section + section {
  position: relative;
  border-top: 1px solid var(--home-border);
}

main > section + section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45, 212, 191, 0.35) 22%,
    rgba(167, 139, 250, 0.45) 50%,
    rgba(251, 191, 36, 0.3) 78%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
  main > section + section::before {
    animation: homeDividerShimmer 10s ease-in-out infinite;
    background-size: 200% 100%;
  }
}

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

  50% {
    background-position: 100% 50%;
  }
}

html.home-animate-ready .home-reveal:not(.home-reveal--visible) {
  opacity: 0;
  transform: translateY(20px);
}

html.home-animate-ready .home-reveal.home-reveal--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html.home-animate-ready .home-reveal.home-reveal--visible .home-cards .home-card {
  animation: homeCardRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

html.home-animate-ready .home-reveal.home-reveal--visible .home-cards .home-card:nth-child(1) {
  animation-delay: 0.04s;
}

html.home-animate-ready .home-reveal.home-reveal--visible .home-cards .home-card:nth-child(2) {
  animation-delay: 0.1s;
}

html.home-animate-ready .home-reveal.home-reveal--visible .home-cards .home-card:nth-child(3) {
  animation-delay: 0.16s;
}

html.home-animate-ready .home-reveal.home-reveal--visible .home-cards .home-card:nth-child(4) {
  animation-delay: 0.22s;
}

html.home-animate-ready .home-reveal.home-reveal--visible .home-cards .home-card:nth-child(5) {
  animation-delay: 0.28s;
}

@keyframes homeCardRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.home-animate-ready .home-diagram--observe:not(.home-diagram--inview) .home-diagram__bar {
  transform: scaleX(0);
  transform-origin: left center;
}

html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-diagram__bar--def {
  animation:
    homeBarGrow 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    homeBarPulse 2.8s ease-in-out infinite 1.1s;
}

html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-diagram__bar--rt {
  animation: homeBarGrow 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

@keyframes homeBarGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes homeBarPulse {
  0%,
  100% {
    box-shadow: 0 0 22px var(--home-accent-glow);
    filter: brightness(1);
  }

  50% {
    box-shadow:
      0 0 36px rgba(45, 212, 191, 0.35),
      0 0 48px rgba(167, 139, 250, 0.25);
    filter: brightness(1.06);
  }
}

.home-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.home-skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  background: var(--home-accent);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--home-border);
  background: rgba(4, 4, 5, 0.82);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 28px rgba(45, 212, 191, 0.05),
    0 -1px 0 rgba(167, 139, 250, 0.1) inset;
}

@media (prefers-reduced-motion: no-preference) {
  .home-header {
    animation: homeHeaderSheen 16s ease-in-out infinite alternate;
  }
}

@keyframes homeHeaderSheen {
  0% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.04),
      0 4px 24px rgba(45, 212, 191, 0.06),
      0 -1px 0 rgba(167, 139, 250, 0.09) inset;
  }

  100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.07),
      0 4px 32px rgba(252, 211, 77, 0.05),
      0 -1px 0 rgba(45, 212, 191, 0.12) inset;
  }
}

.home-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(135deg, #f4f4f5 0%, var(--home-accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-brand:hover {
  background: linear-gradient(135deg, #ffffff 0%, #d4c8fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-nav-toggle {
  display: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  color: var(--home-text);
  font-size: 14px;
  cursor: pointer;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.home-nav a {
  color: var(--home-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.22s ease, text-shadow 0.28s ease;
}

.home-nav a:hover {
  color: var(--home-text);
  text-shadow: 0 0 28px rgba(45, 212, 191, 0.18);
}

.home-nav a:focus-visible {
  color: var(--home-text);
  outline: 2px solid var(--home-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.home-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.home-btn:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
}

.home-btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--home-cyan) 0%, var(--home-accent) 42%, var(--home-accent-deep) 100%);
  background-size: 200% 200%;
  color: #fafafa;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 4px 22px rgba(45, 212, 191, 0.2),
    0 4px 28px rgba(91, 74, 184, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .home-btn--primary {
    animation: homeBtnGradient 8s ease-in-out infinite alternate;
  }
}

@keyframes homeBtnGradient {
  0% {
    background-position: 0% 40%;
  }

  100% {
    background-position: 100% 60%;
  }
}

.home-btn--primary:hover {
  animation: none;
  background: linear-gradient(165deg, #5eead4 0%, #a896f7 50%, var(--home-accent-dim) 100%);
  background-size: 200% 200%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 6px 32px rgba(45, 212, 191, 0.28),
    0 8px 36px rgba(91, 74, 184, 0.45);
}

.home-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .home-btn--primary:hover::after {
    animation: homeBtnShine 0.85s ease forwards;
  }
}

@keyframes homeBtnShine {
  to {
    transform: translateX(120%);
  }
}

.home-btn--primary:active {
  transform: translateY(1px);
}

.home-btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--home-border-strong);
  color: var(--home-text);
}

.home-btn--ghost:hover {
  border-color: rgba(167, 139, 250, 0.42);
  background: rgba(167, 139, 250, 0.09);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.06);
}

.home-btn--lg {
  padding: 14px 22px;
  font-size: 15px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 88px;
  border-bottom: 1px solid var(--home-border);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.76;
  background:
    radial-gradient(ellipse 100% 80% at 12% 0%, rgba(167, 139, 250, 0.15), transparent 52%),
    radial-gradient(ellipse 80% 60% at 88% 15%, rgba(99, 102, 241, 0.11), transparent 48%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(109, 40, 217, 0.12), transparent 55%),
    linear-gradient(180deg, var(--home-bg-2) 0%, var(--home-bg-mid) 45%, var(--home-bg) 100%);
  pointer-events: none;
}

.home-hero-bg::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 45% 55% at 15% 25%, var(--home-cyan-soft), transparent 55%),
    radial-gradient(ellipse 50% 45% at 85% 30%, var(--home-amber-soft), transparent 52%),
    radial-gradient(ellipse 40% 50% at 55% 85%, var(--home-rose-soft), transparent 50%),
    radial-gradient(ellipse 35% 40% at 75% 65%, var(--home-mint-soft), transparent 48%);
  opacity: 0.95;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero-bg {
    animation: home-hero-shift 24s ease-in-out infinite alternate;
  }

  .home-hero-bg::before {
    animation: homeHeroAurora 22s ease-in-out infinite alternate;
  }
}

@keyframes home-hero-shift {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.9;
  }
}

@keyframes homeHeroAurora {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.85;
  }

  100% {
    transform: translate(4%, -3%) rotate(2deg);
    opacity: 1;
  }
}

.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(var(--home-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 45% 35%, #000 15%, transparent 68%);
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero-bg::after {
    animation: homeGridDrift 40s linear infinite;
  }
}

@keyframes homeGridDrift {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 56px 56px, 56px 56px;
  }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
}

.home-hero-split {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .home-hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: 48px;
    align-items: center;
  }
}

.home-hero-copy .home-lead {
  margin-bottom: 24px;
  max-width: 38rem;
}

.home-hero-copy .home-lead em {
  font-style: normal;
  color: var(--home-accent);
  font-weight: 600;
}

.home-hero-diagram {
  padding: 22px 18px;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-border-strong);
  background: linear-gradient(155deg, rgba(26, 26, 34, 0.85) 0%, var(--home-bg) 100%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.home-hero-flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.home-hero-flow__step {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 12px;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border-strong);
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.9) 0%, var(--home-bg) 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.home-hero-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--home-accent-dim), var(--home-accent-deep));
}

.home-hero-flow__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--home-text);
  line-height: 1.25;
}

.home-hero-flow__line {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--home-muted-dim);
}

.home-hero-flow__arrow {
  flex: 0 0 28px;
  align-self: center;
  position: relative;
  height: 3px;
  margin: 0 4px;
  background: linear-gradient(90deg, var(--home-accent-deep), var(--home-cyan));
  border-radius: 2px;
  opacity: 0.85;
}

.home-hero-flow__arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--home-cyan);
}

@media (max-width: 959px) {
  .home-hero-flow {
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 260px;
    margin: 0 auto;
  }

  .home-hero-flow__arrow {
    width: 3px;
    height: 22px;
    margin: 6px 0;
    flex: 0 0 auto;
    background: linear-gradient(180deg, var(--home-accent-deep), var(--home-cyan));
  }

  .home-hero-flow__arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--home-cyan);
    border-left-color: transparent;
  }
}

html.home-animate-ready .home-diagram--observe:not(.home-diagram--inview) .home-hero-flow__step,
html.home-animate-ready .home-diagram--observe:not(.home-diagram--inview) .home-hero-flow__arrow {
  opacity: 0;
}

html.home-animate-ready .home-diagram--observe:not(.home-diagram--inview) .home-hero-flow__step {
  transform: translateY(14px);
}

html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-hero-flow__step {
  animation: homeHeroStepIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-hero-flow__step:nth-child(1) {
  animation-delay: 0.06s;
}

html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-hero-flow__step:nth-child(3) {
  animation-delay: 0.16s;
}

html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-hero-flow__step:nth-child(5) {
  animation-delay: 0.26s;
}

html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-hero-flow__arrow {
  animation: homeHeroArrowIn 0.45s ease forwards;
}

html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-hero-flow__arrow:nth-child(2) {
  animation-delay: 0.12s;
}

html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-hero-flow__arrow:nth-child(4) {
  animation-delay: 0.22s;
}

@keyframes homeHeroArrowIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.88;
  }
}

@keyframes homeHeroStepIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  max-width: 52ch;
}

.home-hero-pills li {
  font-size: 13px;
  font-weight: 500;
  color: var(--home-text);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--home-border-strong);
  background: rgba(24, 24, 28, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-hero-pills li:nth-child(1) {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.08), 0 4px 24px rgba(45, 212, 191, 0.12);
}

.home-hero-pills li:nth-child(2) {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.1), 0 4px 24px rgba(167, 139, 250, 0.15);
}

.home-hero-pills li:nth-child(3) {
  border-color: rgba(251, 191, 36, 0.38);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08), 0 4px 24px rgba(251, 191, 36, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero-pills li:hover {
    transform: translateY(-2px);
  }

  .home-hero-pills li:nth-child(1):hover {
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), 0 8px 32px rgba(45, 212, 191, 0.22);
  }

  .home-hero-pills li:nth-child(2):hover {
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.22), 0 8px 32px rgba(167, 139, 250, 0.28);
  }

  .home-hero-pills li:nth-child(3):hover {
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18), 0 8px 32px rgba(251, 191, 36, 0.2);
  }
}

.home-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.home-wrap--narrow {
  max-width: 720px;
}

.home-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--home-cyan) 0%, var(--home-accent) 45%, var(--home-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 160% 100%;
  opacity: 0.98;
}

@media (prefers-reduced-motion: no-preference) {
  .home-eyebrow {
    animation: homeEyebrowHue 12s ease-in-out infinite alternate;
  }
}

@keyframes homeEyebrowHue {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.home-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: min(36rem, 100%);
  background: linear-gradient(
    125deg,
    #ffffff 0%,
    #e4e4e7 25%,
    #d4c8fc 55%,
    var(--home-cyan) 85%,
    var(--home-accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 120%;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero h1 {
    animation: homeTitleFlow 14s ease-in-out infinite alternate;
  }
}

@keyframes homeTitleFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.home-lead {
  margin: 0 0 28px;
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--home-muted);
  max-width: 42rem;
  line-height: 1.65;
}

.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-section {
  padding: 72px 24px;
}

.home-section--muted {
  background:
    radial-gradient(ellipse 70% 80% at 100% 50%, var(--home-indigo-soft), transparent 55%),
    linear-gradient(180deg, var(--home-surface) 0%, rgba(18, 18, 21, 0.55) 100%);
}

.home-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--home-text);
  text-shadow: 0 0 48px rgba(167, 139, 250, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .home-section h2 {
    animation: homeHeadingGlow 10s ease-in-out infinite alternate;
  }
}

@keyframes homeHeadingGlow {
  0% {
    text-shadow: 0 0 40px rgba(167, 139, 250, 0.1);
  }

  100% {
    text-shadow:
      0 0 52px rgba(45, 212, 191, 0.09),
      0 0 64px rgba(167, 139, 250, 0.08);
  }
}

.home-prose--block {
  margin-top: 12px;
}

.home-split {
  display: grid;
  gap: 40px;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .home-split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 56px;
  }
}

.home-diagram {
  padding: 26px 24px 24px;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-border-strong);
  background: linear-gradient(155deg, var(--home-surface-elevated) 0%, var(--home-bg) 100%);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.home-diagram__lane {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.home-diagram__lane:last-of-type {
  margin-bottom: 18px;
}

.home-diagram__label {
  flex: 0 0 124px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--home-muted-dim);
  line-height: 1.25;
}

.home-diagram__bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  min-width: 0;
  transform-origin: left center;
}

.home-diagram__bar--def {
  background: linear-gradient(90deg, var(--home-accent-deep), var(--home-accent) 55%, var(--home-cyan));
  box-shadow: 0 0 28px var(--home-accent-glow);
}

.home-diagram__bar--rt {
  background: linear-gradient(90deg, #1e293b, #3f3f4a 60%, rgba(45, 212, 191, 0.25));
  max-width: 40%;
}

.home-diagram__caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--home-muted);
}

.home-section--accent {
  background:
    radial-gradient(ellipse 60% 100% at 0% 30%, var(--home-cyan-soft), transparent 50%),
    radial-gradient(ellipse 50% 80% at 100% 70%, var(--home-rose-soft), transparent 45%),
    linear-gradient(180deg, rgba(167, 139, 250, 0.09) 0%, transparent 62%);
}

.home-section--sms {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.home-sms-card {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.85rem;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-border-strong);
  background: linear-gradient(165deg, var(--home-surface-elevated) 0%, var(--home-surface) 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.home-sms-join {
  font-size: 1.125rem;
  margin: 1rem 0 1.25rem;
  color: var(--home-text);
}

.home-sms-meta {
  font-size: 0.9375rem;
  color: var(--home-muted);
  margin: 1rem 0 0.75rem;
}

.home-sms-consent {
  font-size: 0.9375rem;
  color: var(--home-muted-dim);
  margin: 0 0 1rem;
}

.home-sms-legal {
  font-size: 0.875rem;
  margin: 0;
}

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

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

@media (min-width: 640px) {
  .home-sms-card {
    padding: 2rem 2.25rem;
  }
}

.home-use-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.home-use-card {
  padding: 24px 24px 26px;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border-strong);
  background: linear-gradient(165deg, var(--home-surface-2) 0%, var(--home-bg) 100%);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}

.home-use-card:nth-child(1) {
  border-color: rgba(45, 212, 191, 0.22);
}

.home-use-card:nth-child(2) {
  border-color: rgba(167, 139, 250, 0.28);
}

.home-use-card:nth-child(3) {
  border-color: rgba(251, 191, 36, 0.22);
}

.home-use-card:nth-child(4) {
  border-color: rgba(251, 113, 133, 0.22);
}

.home-use-card:hover {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.12);
}

.home-use-card:nth-child(1):hover {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 40px rgba(45, 212, 191, 0.12);
}

.home-use-card:nth-child(2):hover {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 40px rgba(167, 139, 250, 0.15);
}

.home-use-card:nth-child(3):hover {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 40px rgba(251, 191, 36, 0.12);
}

.home-use-card:nth-child(4):hover {
  border-color: rgba(251, 113, 133, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 40px rgba(251, 113, 133, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .home-use-card:hover {
    transform: translateY(-3px);
  }
}

.home-use-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.home-use-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--home-muted);
}

.home-compare-panel {
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-border-strong);
  background: linear-gradient(180deg, var(--home-surface-2) 0%, var(--home-bg) 100%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.home-compare-scroll {
  overflow-x: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  -webkit-overflow-scrolling: touch;
}

.home-compare-scroll:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
}

.home-compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.home-compare thead th {
  text-align: left;
  padding: 16px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-muted-dim);
  border-bottom: 1px solid var(--home-border-strong);
  background: rgba(0, 0, 0, 0.25);
}

.home-compare tbody th[scope="row"] {
  text-align: left;
  vertical-align: top;
  padding: 16px;
  font-weight: 600;
  color: var(--home-text);
  border-bottom: 1px solid var(--home-border);
  width: 22%;
  min-width: 140px;
}

.home-compare tbody td {
  vertical-align: top;
  padding: 16px;
  color: var(--home-muted);
  border-bottom: 1px solid var(--home-border);
}

.home-compare tbody tr:last-child th,
.home-compare tbody tr:last-child td {
  border-bottom: none;
}

.home-compare tbody tr:hover td,
.home-compare tbody tr:hover th[scope="row"] {
  background: linear-gradient(
    90deg,
    rgba(45, 212, 191, 0.06) 0%,
    rgba(167, 139, 250, 0.08) 45%,
    rgba(251, 191, 36, 0.04) 100%
  );
}

.home-compare tbody tr:nth-child(1):hover th[scope="row"] {
  box-shadow: inset 3px 0 0 var(--home-cyan);
}

.home-compare tbody tr:nth-child(2):hover th[scope="row"] {
  box-shadow: inset 3px 0 0 var(--home-accent);
}

.home-compare tbody tr:nth-child(3):hover th[scope="row"] {
  box-shadow: inset 3px 0 0 var(--home-amber);
}

.home-compare tbody tr:nth-child(4):hover th[scope="row"] {
  box-shadow: inset 3px 0 0 var(--home-mint);
}

.home-compare tbody tr:nth-child(5):hover th[scope="row"] {
  box-shadow: inset 3px 0 0 var(--home-rose);
}

.home-compare em {
  font-style: normal;
  color: #d4c8fc;
  font-weight: 600;
}

.home-section-intro {
  margin: 0 0 32px;
  color: var(--home-muted);
  max-width: 48rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.home-prose {
  margin: 0;
  color: var(--home-muted);
  font-size: 1.05rem;
}

.home-prose a {
  color: var(--home-accent);
  text-decoration: none;
}

.home-prose a:hover {
  text-decoration: underline;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.home-card {
  padding: 24px;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border-strong);
  background: var(--home-bg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.home-card--interactive {
  cursor: pointer;
}

.home-card--interactive:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 3px;
}

.home-card:nth-child(1) {
  border-color: rgba(45, 212, 191, 0.22);
}

.home-card:nth-child(2) {
  border-color: rgba(167, 139, 250, 0.28);
}

.home-card:nth-child(3) {
  border-color: rgba(251, 191, 36, 0.22);
}

.home-card:nth-child(4) {
  border-color: rgba(129, 140, 248, 0.28);
}

.home-card:nth-child(5) {
  border-color: rgba(251, 113, 133, 0.22);
}

.home-card:hover {
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.home-card:nth-child(1):hover {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), 0 0 36px rgba(45, 212, 191, 0.12);
}

.home-card:nth-child(2):hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), 0 0 36px rgba(167, 139, 250, 0.14);
}

.home-card:nth-child(3):hover {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), 0 0 36px rgba(251, 191, 36, 0.1);
}

.home-card:nth-child(4):hover {
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), 0 0 36px rgba(129, 140, 248, 0.12);
}

.home-card:nth-child(5):hover {
  border-color: rgba(251, 113, 133, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), 0 0 36px rgba(251, 113, 133, 0.1);
}

.home-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.home-card__hint {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--home-muted-dim);
}

.home-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-accent);
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.home-card__link:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page {
    animation: none;
    background-size: 100% 100%, 100% 100%;
  }

  .home-bg-motion::before,
  .home-bg-motion::after {
    animation: none;
  }

  .home-bg-dot {
    animation: none;
    opacity: 0.1;
  }

  body.home-page::before,
  body.home-page::after {
    animation: none;
  }

  body.home-page::before {
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  }

  body.home-page::after {
    filter: none;
  }

  .home-section h2 {
    animation: none;
    text-shadow: none;
  }

  main > section + section::before {
    animation: none;
    background-size: 100% 100%;
  }

  .home-header {
    animation: none;
  }

  .home-hero-bg,
  .home-hero-bg::before,
  .home-hero-bg::after {
    animation: none;
  }

  .home-eyebrow {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--home-accent);
    animation: none;
  }

  .home-hero h1 {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--home-text);
    animation: none;
  }

  .home-btn--primary {
    animation: none;
    background: linear-gradient(165deg, var(--home-accent) 0%, var(--home-accent-deep) 100%);
  }

  .home-btn--primary::after {
    display: none;
  }

  .home-footer {
    animation: none;
  }

  html.home-animate-ready .home-diagram--observe.home-diagram--inview .home-diagram__bar--def {
    animation: homeBarGrow 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .home-dialog[open] {
    animation: none;
  }

  .home-dialog::backdrop {
    animation: none;
  }

  .home-card:hover {
    transform: none;
  }

  .home-use-card:hover {
    transform: none;
  }

  .home-btn--primary:active {
    transform: none;
  }
}

.home-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.home-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--home-muted);
}

.home-card:not(.home-card--interactive) a {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-accent);
  text-decoration: none;
}

.home-card:not(.home-card--interactive) a:hover {
  text-decoration: underline;
}

.home-dialog {
  z-index: 200;
  max-width: min(32rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid rgba(167, 139, 250, 0.42);
  border-radius: var(--home-radius-lg);
  background: linear-gradient(
    165deg,
    var(--home-surface-elevated) 0%,
    rgba(45, 212, 191, 0.04) 40%,
    var(--home-bg) 100%
  );
  color: var(--home-text);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(167, 139, 250, 0.14),
    0 0 0 1px rgba(45, 212, 191, 0.1) inset;
}

.home-dialog[open] {
  animation: homeDialogPop 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes homeDialogPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.home-dialog::backdrop {
  background: radial-gradient(ellipse 120% 100% at 50% 50%, rgba(91, 74, 184, 0.35), rgba(0, 0, 0, 0.75));
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: no-preference) {
  .home-dialog::backdrop {
    animation: homeBackdropIn 0.38s ease;
  }
}

@keyframes homeBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.home-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--home-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.home-dialog__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--home-text);
}

.home-dialog__title {
  margin: 0;
  padding: 28px 52px 12px 24px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-dialog__body {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--home-muted);
}

.home-dialog__body p {
  margin: 0;
}

.home-dialog__actions {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--home-border);
  display: flex;
  justify-content: flex-end;
}

.home-footer {
  position: relative;
  padding: 32px 24px 44px;
  border-top: 1px solid var(--home-border);
  border-image: linear-gradient(
      90deg,
      transparent,
      rgba(45, 212, 191, 0.4),
      rgba(167, 139, 250, 0.5),
      rgba(251, 191, 36, 0.35),
      transparent
    )
    1;
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(167, 139, 250, 0.08), transparent 55%),
    linear-gradient(0deg, rgba(18, 18, 21, 0.65) 0%, transparent 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .home-footer {
    animation: homeFooterGlow 18s ease-in-out infinite alternate;
  }
}

@keyframes homeFooterGlow {
  0% {
    filter: saturate(1);
  }

  100% {
    filter: saturate(1.15);
  }
}

.home-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-footer-brand {
  font-weight: 600;
  color: var(--home-muted);
  font-size: 14px;
}

.home-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.home-footer-nav a {
  font-size: 14px;
  color: var(--home-muted);
  text-decoration: none;
}

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

@media (max-width: 768px) {
  .home-nav-toggle {
    display: inline-block;
  }

  .home-nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

  .home-nav.is-open {
    display: flex;
  }

  .home-nav-actions {
    margin-left: 0;
    flex-direction: column;
    width: 100%;
  }

  .home-nav-actions .home-btn {
    width: 100%;
  }

  .home-header-inner {
    flex-wrap: wrap;
  }
}

/* During on-page game: only the real page + overlay (no Try Ananke / particles chrome). */
body.home-page--nl-game-active > aside.home-nl-demo,
body.home-page--nl-game-active > aside.home-bg-sim-panel {
  display: none !important;
}

/* NL demo: must beat body.home-page > *:not(.home-bg-motion) { position:relative; z-index:2 } */
body.home-page > aside.home-nl-demo {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: min(380px, calc(100vw - 32px));
  font-size: 13px;
  pointer-events: auto;
}

.home-nl-demo__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border-strong);
  background: rgba(22, 22, 28, 0.92);
  color: var(--home-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.home-nl-demo__toggle:hover {
  border-color: rgba(167, 139, 250, 0.35);
  color: #fff;
}

.home-nl-demo__panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border-strong);
  background: rgba(14, 14, 18, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.home-nl-demo__saved {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--home-border);
}

.home-nl-demo__saved-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 6px;
}

.home-nl-demo__saved-select {
  flex: 1 1 140px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  color: var(--home-text);
  font: inherit;
  font-size: 12px;
}

.home-nl-demo__saved-btn {
  flex: 0 0 auto;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 12px;
}

.home-nl-demo__hint--saved {
  margin: 0;
  font-size: 11px;
  opacity: 0.9;
}

.home-nl-demo__bridge:empty {
  display: none;
}

.home-nl-demo__bridge-text {
  margin: 0 0 10px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-nl-demo__hint {
  margin: 0 0 10px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-nl-demo__link {
  color: var(--home-accent);
  text-decoration: none;
  font-weight: 600;
}

.home-nl-demo__link:hover {
  text-decoration: underline;
}

.home-nl-demo__label {
  display: block;
  margin-bottom: 6px;
  color: var(--home-muted);
  font-size: 12px;
}

.home-nl-demo__input {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  color: var(--home-text);
  font: inherit;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 10px;
}

.home-nl-demo__input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.45);
}

.home-nl-demo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.home-nl-demo__undo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.home-nl-demo__undo,
.home-nl-demo__original {
  flex: 1 1 auto;
  min-width: 120px;
  font-size: 12px;
}

.home-nl-demo__send {
  flex: 1 1 auto;
  min-width: 100px;
}

.home-nl-demo__send.home-nl-demo__send--busy {
  cursor: wait;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding-left: 14px;
  padding-right: 14px;
}

.home-nl-demo__send.home-nl-demo__send--busy::before {
  content: "";
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(196, 181, 253, 0.95);
  border-radius: 50%;
  animation: home-nl-demo-send-spin 0.65s linear infinite;
}

@keyframes home-nl-demo-send-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Shine overlay (::after) would sit above the spinner; hide it while busy. */
.home-nl-demo__send.home-nl-demo__send--busy.home-btn--primary::after {
  opacity: 0;
}

.home-nl-demo__send.home-nl-demo__send--busy.home-btn--primary {
  animation: none;
}

.home-nl-demo__open {
  flex: 1 1 auto;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
}

.home-nl-demo__modes {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.home-nl-demo__mode {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--home-border);
  background: rgba(18, 18, 22, 0.9);
  color: var(--home-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.home-nl-demo__mode:hover {
  border-color: rgba(167, 139, 250, 0.35);
  color: var(--home-text);
}

.home-nl-demo__mode.is-active {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(109, 40, 217, 0.15);
  color: var(--home-text);
}

.home-nl-demo__code {
  font-size: 0.95em;
  color: var(--home-accent);
}

.home-nl-demo__copy {
  margin: 0 0 8px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--home-border);
  background: transparent;
  color: var(--home-muted);
  cursor: pointer;
  width: 100%;
}

.home-nl-demo__copy:hover {
  color: var(--home-text);
  border-color: var(--home-border-strong);
}

.home-nl-demo__status {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--home-muted);
  line-height: 1.45;
  min-height: 2.5em;
}

.home-nl-demo__status--long {
  max-height: min(50vh, 420px);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--home-border);
  background: rgba(8, 8, 12, 0.65);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: var(--home-text);
}

.home-nl-demo__intro {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--home-muted);
  line-height: 1.45;
}

/*
 * Game layer: full viewport — page shows through transparent areas; game mount on top.
 */
/* Must beat body.home-page > *:not(.home-bg-motion) { position:relative; z-index:2 } */
body.home-page > #homeNlGameOverlay.home-nl-game-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.home-nl-game-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 100001;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 12, 18, 0.96);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.home-nl-game-overlay__close:hover {
  border-color: rgba(167, 139, 250, 0.65);
  color: #fff;
}

.home-nl-game-overlay__controls-hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100001;
  margin: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0));
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(6, 8, 14, 0.2) 0%, rgba(6, 8, 14, 0.92) 35%, rgba(6, 8, 14, 0.97) 100%);
  color: #f4f4f8;
  font-size: clamp(14px, 2.1vmin, 17px);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.home-nl-game-overlay__controls-line {
  margin: 0;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.home-nl-game-overlay__controls-kicker {
  font-size: 1.05em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
}

body.home-page > #homeNlGameOverlay .home-nl-game-overlay__controls-hud kbd {
  display: inline-block;
  margin: 0 0.12em;
  padding: 0.2em 0.45em;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.92em;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.home-page > #homeNlGameOverlay .home-nl-game-overlay__mount {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  overflow: hidden;
}

.home-nl-demo__details {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--home-muted);
}

.home-nl-demo__details-summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--home-text);
}

.home-nl-demo__full {
  margin: 8px 0 0;
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--home-border);
  background: rgba(8, 8, 12, 0.65);
  font-size: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}
