:root {
  --bg: #eef3f7;
  --bg-grid: rgba(71, 85, 105, 0.03);
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --text: #17212e;
  --muted: #5f6f82;
  --line: #d5dee8;
  --line-strong: #becbd9;
  --primary: #4a7891;
  --primary-strong: #3e667c;
  --primary-soft: #dbeaf2;
  --shadow: 0 16px 36px rgba(36, 59, 85, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background-image: url('https://upload1.nickystore.biz.id/uploads/ugrovq.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 24px;
  position: relative;
}

.bg-orb {
  display: none;
}

.orb-a {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -120px;
  background: #b9d7ea;
}

.orb-b {
  width: 320px;
  height: 320px;
  bottom: -130px;
  left: -120px;
  background: #c7e5d6;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.hero {
  background: linear-gradient(
    135deg,
    rgba(54, 83, 107, 0.78),
    rgba(79, 111, 135, 0.68) 55%,
    rgba(111, 143, 154, 0.62) 135%
  );
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(221, 233, 245, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 18px 34px rgba(12, 23, 34, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -24px 34px rgba(33, 49, 63, 0.16);
  animation: rise 0.45s ease;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -90px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.18) 34%,
    rgba(255, 255, 255, 0) 72%
  );
}

.hero::after {
  width: 140px;
  height: 140px;
  left: -35px;
  bottom: -55px;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0) 76%
  );
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 12px;
  color: #d6e8f4;
}

.hero h1 {
  margin: 10px 0 8px;
  line-height: 1.15;
  font-size: clamp(28px, 4.7vw, 42px);
}

.subtitle {
  margin: 0;
  max-width: 720px;
  color: #e4edf4;
  font-size: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(213, 222, 232, 0.72);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow:
    0 16px 30px rgba(17, 30, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -12px 20px rgba(17, 30, 46, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: rise 0.5s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 38px rgba(17, 30, 46, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -14px 22px rgba(17, 30, 46, 0.1);
}

.card::before,
.card::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.card::before {
  width: 150px;
  height: 150px;
  right: -45px;
  top: -58px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.16) 42%,
    rgba(255, 255, 255, 0) 75%
  );
}

.card::after {
  width: 92px;
  height: 92px;
  left: -22px;
  bottom: -34px;
  background: radial-gradient(
    circle at 32% 32%,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.13) 40%,
    rgba(255, 255, 255, 0) 78%
  );
}

h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 800;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-head h2 {
  margin: 0;
}

.status-pill {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(197, 210, 223, 0.84);
  background: rgba(232, 240, 247, 0.75);
  color: #41556a;
}

.status-pill[data-tone='loading'] {
  background: rgba(239, 243, 248, 0.8);
  color: #526578;
}

.status-pill[data-tone='ok'] {
  background: rgba(227, 246, 236, 0.84);
  border-color: rgba(169, 217, 189, 0.9);
  color: #245842;
}

.status-pill[data-tone='error'] {
  background: rgba(250, 232, 236, 0.82);
  border-color: rgba(227, 177, 187, 0.9);
  color: #8d3a49;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.spec-item {
  background: rgba(251, 253, 255, 0.62);
  border: 1px solid rgba(213, 222, 232, 0.72);
  border-radius: 11px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.spec-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.spec-value {
  display: block;
  font-weight: 700;
  color: #213247;
  overflow-wrap: anywhere;
}

.metric-list {
  display: grid;
  gap: 10px;
}

.metric-item {
  background: rgba(251, 253, 255, 0.62);
  border: 1px solid rgba(213, 222, 232, 0.72);
  border-radius: 11px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.metric-track {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 233, 241, 0.82);
  overflow: hidden;
}

.metric-fill {
  width: 0;
  height: 100%;
  transition: width 0.16s ease;
}

.metric-cpu {
  background: linear-gradient(90deg, #577ea1, #6d96bb);
}

.metric-ram {
  background: linear-gradient(90deg, #5e8f86, #72a9a0);
}

.metric-disk {
  background: linear-gradient(90deg, #7b88a8, #97a5c4);
}

.metric-sub,
.metric-footnote {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
}

.metric-footnote {
  margin-top: 10px;
}

.drop-zone {
  border: 1.8px dashed var(--line-strong);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.58),
    rgba(246, 249, 252, 0.5)
  );
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(74, 120, 145, 0.14);
}

#file-input {
  display: none;
}

.drop-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.drop-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
}

.actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}

.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 9px 18px rgba(74, 120, 145, 0.24);
}

.btn-ghost {
  background: rgba(242, 246, 250, 0.68);
  border: 1px solid rgba(215, 226, 238, 0.88);
  color: #26384d;
}

.progress-panel {
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid rgba(213, 222, 232, 0.72);
  background: rgba(247, 251, 255, 0.64);
  padding: 11px;
}

.hidden {
  display: none;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-track,
.file-progress {
  border-radius: 999px;
  overflow: hidden;
  background: rgba(226, 233, 241, 0.82);
}

.progress-track {
  height: 10px;
}

.file-progress {
  margin-top: 8px;
  height: 7px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #5a8da8, #7aa8bc 62%, #8eb9aa);
  transition: width 0.12s linear;
}

.file-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6e97b0, #5f8395);
  transition: width 0.12s linear;
}

.file-list,
.results {
  display: grid;
  gap: 10px;
}

.file-item,
.result-item {
  background: rgba(252, 253, 255, 0.62);
  border: 1px solid rgba(213, 222, 232, 0.72);
  border-radius: 11px;
  padding: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.file-main,
.result-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.file-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-meta,
.result-meta {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-queued {
  background: #e7edf4;
  color: #3f5267;
}

.badge-uploading {
  background: #e6f0f8;
  color: #2f5f82;
}

.badge-success {
  background: #e7f5ee;
  color: #245a41;
}

.badge-error {
  background: #f7e6e8;
  color: #8f3744;
}

.result-link {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.result-link:hover {
  text-decoration: underline;
}

.copy-btn {
  margin-top: 8px;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(186, 208, 223, 0.82);
  background: rgba(242, 248, 252, 0.75);
  color: #355972;
  font-weight: 700;
  cursor: pointer;
}

.empty {
  color: var(--muted);
  padding: 8px 0;
}

textarea {
  width: 100%;
  min-height: 86px;
  border-radius: 10px;
  border: 1px solid rgba(213, 222, 232, 0.75);
  background: rgba(247, 250, 255, 0.65);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  padding: 12px;
  resize: vertical;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

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

@media (max-width: 700px) {
  body {
    padding: 12px;
  }

  .hero,
  .card {
    padding: 14px;
  }

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

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

  .file-main,
  .result-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .subtitle {
    font-size: 14px;
  }
}
