.fluxdesk-page {
  --bg: #050905;
  --surface: #0a100c;
  --surface-2: #111a13;
  --border: rgba(182, 255, 57, 0.13);
  --border-strong: rgba(182, 255, 57, 0.34);
  --text: #f3f8ef;
  --dim: #94a28f;
  --cyan: #b6ff39;
  --magenta: #35ff9a;
  --glow-cyan: rgba(182, 255, 57, 0.24);
  --glow-magenta: rgba(53, 255, 154, 0.18);
  --nav-bg: rgba(5, 9, 5, 0.78);
  --nav-mobile-bg: rgba(5, 9, 5, 0.97);
  --scanline-opacity: 0.02;
  --flux: #b6ff39;
  --flux-2: #35ff9a;
  --flux-ink: #091100;
  --flux-copy: #cbd7c6;
  --flux-panel: rgba(9, 16, 11, 0.78);
  --flux-panel-solid: #0a100c;
  --flux-grid: rgba(182, 255, 57, 0.045);
  --flux-shadow: rgba(65, 255, 114, 0.12);
  --flux-ring: rgba(182, 255, 57, 0.56);
  background:
    radial-gradient(circle at 83% 7%, rgba(182, 255, 57, 0.085), transparent 31rem),
    radial-gradient(circle at 14% 48%, rgba(53, 255, 154, 0.05), transparent 30rem),
    var(--bg);
}

[data-theme="light"] .fluxdesk-page {
  --bg: #f3f7ef;
  --surface: #ffffff;
  --surface-2: #e9efe3;
  --border: rgba(57, 115, 0, 0.15);
  --border-strong: rgba(57, 115, 0, 0.37);
  --text: #14210d;
  --dim: #596752;
  --cyan: #397300;
  --magenta: #007c4d;
  --glow-cyan: rgba(88, 173, 0, 0.13);
  --glow-magenta: rgba(0, 145, 89, 0.1);
  --nav-bg: rgba(243, 247, 239, 0.86);
  --nav-mobile-bg: rgba(243, 247, 239, 0.98);
  --scanline-opacity: 0;
  --flux: #397300;
  --flux-2: #007c4d;
  --flux-ink: #ffffff;
  --flux-copy: #45513f;
  --flux-panel: rgba(255, 255, 255, 0.82);
  --flux-panel-solid: #ffffff;
  --flux-grid: rgba(57, 115, 0, 0.05);
  --flux-shadow: rgba(57, 115, 0, 0.12);
  --flux-ring: rgba(57, 115, 0, 0.58);
  background:
    radial-gradient(circle at 83% 7%, rgba(122, 205, 31, 0.12), transparent 31rem),
    radial-gradient(circle at 14% 48%, rgba(0, 160, 93, 0.065), transparent 30rem),
    var(--bg);
}

.fluxdesk-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--flux-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--flux-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
}

.fluxdesk-page .nav {
  border-color: var(--border);
}

.fluxdesk-page .neon {
  background-image: linear-gradient(100deg, var(--flux), var(--flux-2));
}

.fluxdesk-page .nav-links a {
  position: relative;
  transition: color 160ms ease;
}

.fluxdesk-page .nav-links a:hover,
.fluxdesk-page .footer a:hover {
  color: var(--flux);
}

.fluxdesk-page .flux-nav-download {
  color: var(--flux);
}

.fluxdesk-page .lang-toggle:hover,
.fluxdesk-page .theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--flux);
}

.fluxdesk-page :where(a, button):focus-visible {
  outline: 2px solid var(--flux-ring);
  outline-offset: 4px;
  border-radius: 6px;
}

.fluxdesk-page main {
  width: 100%;
  max-width: 1180px;
  padding-bottom: 5.5rem;
}

.flux-glow {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(92px);
}

.flux-glow--hero {
  top: 7rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  background: rgba(182, 255, 57, 0.09);
  animation: flux-breathe 9s ease-in-out infinite;
}

.flux-glow--lower {
  top: 62rem;
  left: -14rem;
  width: 32rem;
  height: 32rem;
  background: rgba(53, 255, 154, 0.07);
  animation: flux-breathe 12s ease-in-out infinite reverse;
}

@keyframes flux-breathe {
  0%,
  100% { transform: scale(0.92); opacity: 0.72; }
  50% { transform: scale(1.06); opacity: 1; }
}

.flux-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
  min-height: min(820px, calc(100vh - var(--nav-h)));
  padding: clamp(5.5rem, 10vw, 8rem) 0 clamp(5.5rem, 9vw, 7.5rem);
}

.flux-hero__copy {
  min-width: 0;
}

.flux-kicker,
.flux-section__head > span,
.flux-download__tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--flux);
}

.flux-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
  padding: 0.52rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.flux-pulse {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--flux);
  box-shadow: 0 0 0 0 rgba(182, 255, 57, 0.42);
  animation: flux-pulse 2.1s ease-out infinite;
}

@keyframes flux-pulse {
  0% { box-shadow: 0 0 0 0 rgba(182, 255, 57, 0.44); }
  75%,
  100% { box-shadow: 0 0 0 0.62rem rgba(182, 255, 57, 0); }
}

.flux-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 7.1vw, 6.1rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.flux-hero h1 span {
  display: inline-block;
  padding-bottom: 0.1em;
  background: linear-gradient(100deg, var(--flux) 5%, var(--flux-2) 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flux-lead {
  max-width: 62ch;
  margin-top: 1.8rem;
  color: var(--flux-copy);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.75;
}

.flux-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.flux-button {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.flux-button:hover {
  transform: translateY(-2px);
}

.flux-button--primary {
  border-color: transparent;
  background: linear-gradient(105deg, var(--flux), var(--flux-2));
  color: var(--flux-ink);
  box-shadow: 0 10px 34px var(--flux-shadow);
}

.flux-button--primary:hover {
  box-shadow: 0 14px 42px color-mix(in srgb, var(--flux-shadow) 82%, var(--flux) 18%);
}

.flux-button--secondary {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
}

.flux-button--secondary:hover {
  border-color: var(--flux);
  color: var(--flux);
}

.flux-download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
  color: var(--dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.flux-download-meta a {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 0.25rem;
}

.flux-download-meta a:hover {
  color: var(--flux);
}

.flux-version {
  margin-top: 0.7rem;
  color: color-mix(in srgb, var(--dim) 72%, transparent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flux-app {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--flux-panel-solid) 91%, transparent);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.28),
    0 0 70px var(--flux-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: perspective(1000px) rotateY(-2.5deg) rotateX(1deg);
  animation: flux-float 7s ease-in-out infinite;
}

.flux-app::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(125deg, rgba(182, 255, 57, 0.06), transparent 33%),
    repeating-linear-gradient(90deg, transparent 0 42px, var(--flux-grid) 42px 43px);
}

@keyframes flux-float {
  0%,
  100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.flux-app__bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.flux-app__logo {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--flux), var(--flux-2));
  color: var(--flux-ink);
}

.flux-app__window {
  color: var(--dim);
  letter-spacing: 0.28em;
}

.flux-app__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 8.8rem 1fr;
  min-height: 310px;
}

.flux-app__side {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.3rem 0.8rem;
  border-right: 1px solid var(--border);
  color: var(--dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.63rem;
}

.flux-app__side span {
  padding: 0.65rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 7px;
}

.flux-app__side .is-active {
  border-color: var(--border);
  background: color-mix(in srgb, var(--flux) 8%, transparent);
  color: var(--flux);
}

.flux-app__side small {
  margin-top: auto;
  padding: 0 0.7rem;
  color: var(--flux);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.flux-app__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.5rem;
}

.flux-app__status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--flux);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.flux-app__status i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0.6rem currentColor;
}

.flux-app__id {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
}

.flux-app__id small {
  color: var(--dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.flux-app__id strong {
  overflow: hidden;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.86rem, 1.7vw, 1.08rem);
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
}

.flux-app__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.flux-app__metrics span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
}

.flux-app__metrics b {
  color: var(--flux);
  font-size: 0.82rem;
}

.flux-app__tls {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: var(--dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
}

.flux-app__tls span {
  color: var(--flux);
}

.flux-section {
  position: relative;
  padding: clamp(5rem, 9vw, 7.5rem) 0;
  border-top: 1px solid var(--border);
}

.flux-section__head {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.flux-section__head h2,
.flux-download h2 {
  max-width: 18ch;
  margin-top: 0.75rem;
  font-size: clamp(2.25rem, 5.2vw, 4.3rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.flux-section__head p {
  max-width: 70ch;
  margin-top: 1.2rem;
  color: var(--flux-copy);
  line-height: 1.75;
}

.flux-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.flux-signal-grid article {
  position: relative;
  display: flex;
  min-height: 9rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--flux-panel);
}

.flux-signal-grid article::after {
  position: absolute;
  top: -3.5rem;
  right: -3.5rem;
  width: 7rem;
  height: 7rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  content: "";
}

.flux-signal-grid b {
  color: var(--flux);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.flux-signal-grid span {
  max-width: 23ch;
  color: var(--flux-copy);
  font-size: 0.9rem;
}

.flux-route {
  margin-top: 0.8rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(130deg, var(--flux-panel), color-mix(in srgb, var(--surface-2) 50%, transparent));
}

.flux-route__line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
}

.flux-route__line i {
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--flux), var(--border));
}

.flux-route__line em {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--flux);
  font-size: 0.58rem;
  font-style: normal;
}

.flux-route > p {
  max-width: 76ch;
  margin-top: 1.5rem;
  color: var(--flux-copy);
}

.flux-route__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.flux-route__chips span {
  padding: 0.35rem 0.52rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
}

.flux-security {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.flux-security .flux-section__head {
  margin-bottom: 1.2rem;
}

.flux-security p {
  max-width: 64ch;
  color: var(--flux-copy);
}

.flux-security__note {
  margin-top: 1.15rem;
  padding-left: 1rem;
  border-left: 2px solid var(--flux);
}

.flux-terminal {
  position: relative;
  overflow: auto;
  padding: 1.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(182, 255, 57, 0.04), transparent 48%),
    #060b07;
  color: #a8b7a2;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.67rem, 1.15vw, 0.79rem);
  line-height: 2.05;
}

.flux-terminal::before {
  display: block;
  margin-bottom: 1rem;
  color: #b6ff39;
  content: "●  ●  ●";
  font-size: 0.52rem;
  letter-spacing: 0.4em;
}

.flux-terminal span {
  color: #b6ff39;
}

.flux-limits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.flux-limits div {
  min-height: 6.25rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--flux-panel);
  color: var(--flux-copy);
}

.flux-limits div::before {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--flux);
  content: "—";
  font-family: "IBM Plex Mono", monospace;
}

.flux-honest {
  max-width: 82ch;
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--flux-copy);
}

.flux-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 3.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--flux) 12%, transparent), transparent 20rem),
    linear-gradient(135deg, var(--flux-panel), color-mix(in srgb, var(--surface-2) 55%, transparent));
  box-shadow: 0 28px 80px var(--flux-shadow);
}

.flux-download h2 {
  max-width: 16ch;
  margin-top: 0.8rem;
}

.flux-download p {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--flux-copy);
}

.flux-download__actions {
  display: flex;
  min-width: 13rem;
  flex-direction: column;
  gap: 0.65rem;
}

.flux-checksum {
  padding: 0.3rem;
  color: var(--dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-align: center;
}

.flux-checksum:hover {
  color: var(--flux);
}

.fluxdesk-page .footer {
  border-color: var(--border);
}

@media (max-width: 980px) {
  .flux-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .flux-hero__copy {
    max-width: 760px;
  }

  .flux-app {
    width: min(100%, 680px);
    transform: none;
  }

  .flux-security {
    grid-template-columns: 1fr;
  }

  .flux-terminal {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .fluxdesk-page main {
    padding-bottom: 3.5rem;
  }

  .fluxdesk-page .nav-links a {
    padding: 0.55rem 0;
  }

  .flux-hero {
    gap: 3.25rem;
    padding: 4.5rem 0 5rem;
  }

  .flux-hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.6rem);
  }

  .flux-app__body {
    grid-template-columns: 1fr;
  }

  .flux-app__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .flux-app__side small {
    display: none;
  }

  .flux-app__main {
    min-height: 280px;
  }

  .flux-signal-grid,
  .flux-limits {
    grid-template-columns: 1fr;
  }

  .flux-signal-grid article {
    min-height: 7.5rem;
  }

  .flux-route__line {
    grid-template-columns: auto 1fr auto;
  }

  .flux-route__line em {
    display: none;
  }

  .flux-route__line i:nth-of-type(2) {
    display: none;
  }

  .flux-download {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-top: 2rem;
  }

  .flux-download__actions {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .flux-kicker {
    max-width: 100%;
    font-size: 0.62rem;
    line-height: 1.45;
  }

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

  .flux-button {
    width: 100%;
  }

  .flux-app__bar {
    grid-template-columns: auto 1fr;
  }

  .flux-app__window {
    display: none;
  }

  .flux-app__main {
    padding: 1rem;
  }

  .flux-app__metrics {
    gap: 0.35rem;
  }

  .flux-app__metrics span {
    padding: 0.55rem;
  }

  .flux-route__line {
    font-size: 0.62rem;
  }

  .flux-section {
    padding: 4.2rem 0;
  }

  .flux-download {
    padding: 1.4rem;
  }

  .fluxdesk-page .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .flux-app {
    transform: none;
  }
}
