﻿:root {
  --bg: #06090d;
  --bg-soft: #0d1219;
  --panel: rgba(17, 24, 33, 0.82);
  --panel-strong: rgba(20, 29, 40, 0.95);
  --line: rgba(116, 146, 176, 0.32);
  --line-strong: rgba(144, 177, 209, 0.58);
  --text: #f4f7fb;
  --muted: #a7b4c4;
  --accent: #5dd0ff;
  --accent-alt: #ffb84d;
  --ok: #7ee0a6;
  --error: #ff8f8f;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(80vw 80vh at 8% 0%, #17304d 0%, transparent 60%),
    radial-gradient(80vw 80vh at 95% 8%, #4a2f1d 0%, transparent 62%),
    linear-gradient(180deg, #06090d 0%, #090d13 45%, #05080c 100%);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.bg-orb-a {
  top: -120px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: rgba(74, 171, 255, 0.18);
}

.bg-orb-b {
  right: -120px;
  bottom: -130px;
  width: 420px;
  height: 420px;
  background: rgba(255, 152, 69, 0.14);
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 100% 3px;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1360px, 94vw);
  margin: 1rem auto 2.2rem;
  display: grid;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 1.1rem 1.2rem 1.15rem;
  background:
    linear-gradient(130deg, rgba(84, 170, 255, 0.15) 0%, transparent 36%),
    linear-gradient(310deg, rgba(255, 170, 80, 0.13) 0%, transparent 42%),
    var(--panel-strong);
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kicker {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
}

.badge-live {
  border: 1px solid rgba(126, 224, 166, 0.6);
  border-radius: 999px;
  padding: 0.18rem 0.56rem;
  font-size: 0.74rem;
  color: #c2f3d6;
  background: rgba(40, 112, 76, 0.25);
}

h1,
h2,
label,
.wf-step strong {
  font-family: "Rajdhani", "Space Grotesk", sans-serif;
}

.hero h1 {
  margin: 0.25rem 0 0;
  line-height: 0.95;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  letter-spacing: 0.035em;
}

.sub {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 860px;
}

.hero-stats {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stats article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem 0.74rem;
  background: rgba(7, 12, 18, 0.55);
}

.hero-stats span {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 700;
}

.hero-stats label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.workflow {
  padding: 0.7rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 17, 24, 0.75);
  padding: 0.55rem 0.68rem;
  transition: 180ms ease;
}

.wf-step strong {
  width: 1.56rem;
  height: 1.56rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(93, 208, 255, 0.15);
  color: #c8eeff;
}

.wf-step span {
  color: var(--muted);
  font-size: 0.84rem;
}

.wf-step.active {
  border-color: rgba(93, 208, 255, 0.62);
  background: linear-gradient(140deg, rgba(40, 80, 120, 0.42), rgba(17, 31, 45, 0.92));
  transform: translateY(-1px);
}

.wf-step.active strong {
  background: rgba(93, 208, 255, 0.85);
  color: #052136;
}

.wf-step.done {
  border-color: rgba(126, 224, 166, 0.55);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.95fr) minmax(320px, 1fr);
}

.selection-pane,
.load-pane {
  min-height: 64vh;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
}

.pane-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.field-group {
  margin-top: 0.76rem;
}

.field-group.stretch {
  flex: 1;
  min-height: 0;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.selection-path {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58%;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(8, 13, 20, 0.72);
  padding: 0.62rem 0.72rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
button:focus-visible {
  outline: none;
  border-color: rgba(93, 208, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(93, 208, 255, 0.16);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-list button,
.chip-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.84);
  color: #d2dcea;
  cursor: pointer;
  padding: 0.36rem 0.66rem;
  font-size: 0.82rem;
  transition: 170ms ease;
}

.pill-list button:hover,
.chip-row button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.pill-list button.active,
.chip-row button.active {
  border-color: rgba(93, 208, 255, 0.86);
  background: linear-gradient(180deg, rgba(103, 218, 255, 0.95), rgba(67, 180, 237, 0.9));
  color: #072235;
  font-weight: 700;
}

.version-pills button.active {
  border-color: rgba(255, 184, 77, 0.9);
  background: linear-gradient(180deg, #ffd08b 0%, #f2a83e 100%);
  color: #2b1400;
}

.package-list {
  margin-top: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  background: rgba(6, 10, 16, 0.62);
  max-height: 52vh;
  overflow: auto;
  display: grid;
  gap: 0.48rem;
}

.package-card {
  width: 100%;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(20, 31, 44, 0.86), rgba(9, 14, 21, 0.88));
  cursor: pointer;
  padding: 0.62rem 0.68rem;
  transition: 190ms ease;
}

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

.package-card.active {
  border-color: rgba(93, 208, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(93, 208, 255, 0.35);
  background: linear-gradient(150deg, rgba(20, 49, 74, 0.95), rgba(12, 20, 31, 0.96));
}

.package-title {
  font-weight: 700;
  font-size: 0.94rem;
}

.package-meta {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.package-tags {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.package-tags span {
  border: 1px solid rgba(113, 143, 172, 0.44);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.7rem;
  color: #c8d5e4;
}

.details {
  margin-top: 0.68rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(11, 18, 26, 0.95), rgba(8, 12, 18, 0.95));
  padding: 0.74rem;
  min-height: 8.2rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

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

.details-grid div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.38rem 0.45rem;
  background: rgba(5, 9, 13, 0.55);
}

.details-grid strong {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.14rem;
}

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.cta {
  margin-top: 0.85rem;
  width: 100%;
  border: 1px solid rgba(255, 184, 77, 0.95);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd697 0%, #ffae45 100%);
  color: #2b1300;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.72rem 0.78rem;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.cta:disabled {
  opacity: 0.52;
  cursor: default;
  transform: none;
}

.status-line {
  margin-top: 0.62rem;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: pre-wrap;
}

.status-line.ok {
  color: var(--ok);
}

.status-line.error {
  color: var(--error);
}

.reveal-up {
  animation: revealUp 460ms ease both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .selection-pane,
  .load-pane {
    min-height: auto;
  }

  .package-list {
    max-height: 44vh;
  }
}

@media (max-width: 760px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .pane-head {
    grid-template-columns: 1fr;
  }

  .selection-path {
    max-width: 100%;
  }

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

@media (max-width: 540px) {
  .shell {
    width: 95vw;
  }

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