:root {
  --bg-0: #0a1414;
  --bg-1: #122021;
  --panel: rgba(9, 20, 20, 0.76);
  --panel-strong: rgba(15, 29, 30, 0.9);
  --text: #ecf3f2;
  --muted: #a6b8b6;
  --line: rgba(209, 238, 231, 0.18);
  --accent: #34e2ae;
  --accent-strong: #1bcf99;
  --warn: #f2b95f;
  --radius: 18px;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background: radial-gradient(circle at 18% 15%, #173536 0%, transparent 38%),
    radial-gradient(circle at 84% 10%, #2b2020 0%, transparent 30%),
    linear-gradient(135deg, var(--bg-0), var(--bg-1));
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  pointer-events: none;
  transform: translateY(20px);
  animation: float 8s ease-in-out infinite;
}

.orb-a {
  top: -12vw;
  left: -14vw;
  background: #2ab4cf;
}

.orb-b {
  bottom: -14vw;
  right: -14vw;
  background: #d87a46;
  animation-delay: 1.4s;
}

.app-shell {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 44px 0 64px;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.hero {
  animation: rise 0.5s ease-out;
}

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

h1 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  animation: rise 0.55s ease-out;
}

.uploader {
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.uploader:hover,
.uploader:focus-visible,
.uploader.drag-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 54%, white 8%);
  background: var(--panel-strong);
  outline: none;
}

.upload-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.upload-hint {
  margin: 0;
  color: var(--muted);
}

code {
  font-family: var(--mono);
  font-size: 0.95em;
}

.controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px;
}

label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.check {
  margin-right: auto;
}

select,
button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #112223;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}

select {
  padding: 8px 10px;
}

button {
  padding: 9px 13px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}

button:enabled:hover {
  transform: translateY(-1px);
  background: #173334;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#decompileBtn {
  border-color: color-mix(in srgb, var(--accent) 60%, black 35%);
  background: #15493d;
  font-weight: 700;
}

.output-panel {
  overflow: hidden;
}

.output-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 22, 22, 0.6);
}

.actions {
  display: flex;
  gap: 8px;
}

.status {
  font-size: 13px;
  color: var(--warn);
  font-family: var(--mono);
}

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

.status.error {
  color: #ff8f8f;
}

.output {
  margin: 0;
  padding: 18px;
  min-height: 320px;
  max-height: 60vh;
  overflow: auto;
  background: rgba(8, 15, 15, 0.9);
  color: #d8e5e2;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(20px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding-top: 28px;
  }

  .controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .check {
    margin-right: 0;
  }

  .output-head {
    flex-direction: column;
    align-items: flex-start;
  }
}


.credits {
  text-align: center;
  color: color-mix(in srgb, var(--muted) 88%, white 12%);
  font-size: 12px;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.credits p {
  margin: 2px 0 0;
}

.credits a {
  color: color-mix(in srgb, var(--accent) 72%, white 10%);
  text-decoration: none;
}

.credits a:hover {
  text-decoration: underline;
}
