:root {
  color-scheme: dark;
  --bg: #020807;
  --bg-2: #061311;
  --panel: rgba(7, 22, 20, 0.86);
  --panel-strong: rgba(9, 31, 28, 0.96);
  --field: rgba(2, 13, 12, 0.92);
  --line: rgba(117, 255, 229, 0.22);
  --line-strong: rgba(117, 255, 229, 0.42);
  --text: #f1fffb;
  --muted: #a4c7c0;
  --dim: #6c918a;
  --ion: #1af0cd;
  --ion-2: #77ffd8;
  --ion-3: #0fb89f;
  --blue: #3d68ff;
  --blue-hover: #5b82ff;
  --danger: #ff6f8f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background:
    radial-gradient(circle at 15% 10%, rgba(26, 240, 205, 0.22), transparent 22rem),
    radial-gradient(circle at 90% 20%, rgba(61, 104, 255, 0.14), transparent 25rem),
    linear-gradient(180deg, #020807 0%, #06110f 55%, #020807 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(117, 255, 229, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 255, 229, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    rgba(255, 255, 255, 0.025) 50%,
    rgba(0, 0, 0, 0.025) 50%
  );
  background-size: 100% 4px;
  opacity: 0.28;
  mix-blend-mode: soft-light;
}

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

.orb {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.28;
  animation: drift 11s ease-in-out infinite alternate;
}

.orb-one {
  top: 8rem;
  left: -8rem;
  background: var(--ion);
}

.orb-two {
  right: -9rem;
  bottom: 8rem;
  background: var(--blue);
  animation-delay: -3s;
}

.grid-glow {
  position: absolute;
  inset: 12% 7% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119, 255, 216, 0.7), transparent);
  box-shadow: 0 0 42px rgba(26, 240, 205, 0.8);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(2rem, -1rem, 0) scale(1.08);
  }
}

.app-shell {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 8, 7, 0.76);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(26, 240, 205, 0.22), transparent 30%, rgba(61, 104, 255, 0.18));
}

.brand,
.toplinks,
.toplinks a {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(26, 240, 205, 0.35);
}

.toplinks {
  gap: 0.45rem;
}

.toplinks a {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.toplinks a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 20rem);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-bottom: 1.2rem;
}

.hero-copy {
  max-width: 46rem;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 16rem;
  isolation: isolate;
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(119, 255, 216, 0.35);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.hero-mark::before {
  width: 18rem;
  height: 7rem;
  transform: rotate(-15deg);
}

.hero-mark::after {
  width: 17rem;
  height: 6.25rem;
  transform: rotate(28deg);
  animation-duration: 16s;
  animation-direction: reverse;
}

.hero-mark img {
  position: relative;
  z-index: 1;
  width: min(80vw, 13rem);
  height: min(80vw, 13rem);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 70px rgba(26, 240, 205, 0.3);
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes logoPulse {
  50% {
    transform: translateY(-0.25rem);
    box-shadow: 0 0 92px rgba(26, 240, 205, 0.42);
  }
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--ion-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 42px rgba(26, 240, 205, 0.22);
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: 0;
}

p {
  margin: 0.35rem 0 0;
}

.hero p:not(.eyebrow),
.hint,
.field small,
.downloads p,
.maven p {
  color: var(--muted);
}

.hero p:not(.eyebrow) {
  max-width: 40rem;
  font-size: 1.08rem;
}

.generator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.panel {
  position: relative;
  margin: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ion), transparent);
  opacity: 0.7;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(26, 240, 205, 0.11), transparent 18rem);
  opacity: 0.8;
}

.panel > * {
  position: relative;
  z-index: 1;
}

legend {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(2, 8, 7, 0.9);
  color: var(--ion-2);
  font-weight: 800;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-weight: 900;
}

.field.compact {
  max-width: 14rem;
}

input,
select {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

input::placeholder {
  color: var(--dim);
}

input:hover,
select:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 2px;
}

.section-block {
  margin-bottom: 1.35rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: inline-flex;
  width: 100%;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.segmented input:checked + span {
  border-color: rgba(119, 255, 216, 0.7);
  background: linear-gradient(135deg, var(--ion), var(--ion-2));
  color: #001411;
  box-shadow: 0 0 30px rgba(26, 240, 205, 0.25);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
}

.check-row input {
  width: auto;
  min-height: auto;
  accent-color: var(--ion);
}

.blueprint {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.blueprint div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 13, 12, 0.55);
}

.blueprint div:hover,
.output-list li:hover {
  border-color: var(--line-strong);
  background: rgba(26, 240, 205, 0.1);
}

.blueprint span {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blueprint strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.output-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.output-list li {
  padding: 0.55rem 0.65rem;
  border-left: 2px solid var(--ion);
  border-radius: 0 8px 8px 0;
  background: rgba(26, 240, 205, 0.06);
}

code {
  color: var(--ion-2);
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

.generate-button {
  position: relative;
  width: 100%;
  min-height: 3.2rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ion), var(--ion-2));
  color: #001411;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 0 32px rgba(26, 240, 205, 0.24);
  overflow: hidden;
}

.generate-button::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: -120% 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: translate 0.55s ease;
}

.generate-button:hover {
  filter: brightness(1.08);
}

.generate-button:hover::after {
  translate: 120% 0;
}

.generate-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.status {
  min-height: 1.4rem;
  color: var(--muted);
}

.downloads,
.maven {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.downloads,
.maven,
.panel,
.topbar {
  backdrop-filter: blur(18px);
}

.code-grid {
  display: grid;
  gap: 0.75rem;
}

.code-grid pre {
  margin: 0;
  padding: 0.85rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 5, 5, 0.74);
}

.code-grid code {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.download-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-weight: 850;
}

.download-grid a:hover {
  background: rgba(26, 240, 205, 0.1);
  border-color: var(--ion);
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 1rem, 1120px);
  }

  .topbar {
    position: static;
  }

  .hero,
  .generator,
  .maven,
  .downloads {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
  }

  h1 {
    max-width: none;
  }

  .hero-mark {
    order: -1;
    min-height: 10rem;
  }

  .hero-mark::before,
  .hero-mark::after {
    display: none;
  }

  .hero-mark img {
    width: 8rem;
    height: 8rem;
  }
}

@media (max-width: 560px) {
  .topbar,
  .toplinks {
    align-items: stretch;
    flex-direction: column;
  }

  .toplinks a {
    justify-content: center;
  }

  .segmented,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .blueprint div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

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