:root {
  --bg: #08111f;
  --panel: rgba(10, 23, 42, 0.78);
  --panel-border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #9fb2c9;
  --cpu: #ff7a59;
  --ram: #6ee7b7;
  --download: #7dd3fc;
  --upload: #f9a8d4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 122, 89, 0.16), transparent 28%),
    linear-gradient(160deg, #020617 0%, #0b1120 50%, #071826 100%);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 36px;
}

.hero {
  padding: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: #8ecae6;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
}

.language-button {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
}

.language-button.active {
  color: #06111f;
  background: #7dd3fc;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-meta span,
.card-header span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  font-size: 0.92rem;
}

.api-link-panel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(8, 145, 178, 0.08);
}

.api-link-panel span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.16);
  color: #bae6fd;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.api-link-panel a {
  color: #e0f2fe;
  text-decoration: none;
  word-break: break-all;
}

.api-link-panel a:hover {
  text-decoration: underline;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.metric-card,
.footer-panel,
.storage-panel {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(8px);
}

.accent-cpu::after {
  background: var(--cpu);
}

.accent-ram::after {
  background: var(--ram);
}

.accent-download::after {
  background: var(--download);
}

.accent-upload::after {
  background: var(--upload);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-header h2,
.footer-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.metric-value {
  margin-top: 24px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.metric-detail,
.footer-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.progress-track {
  margin-top: 18px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 0.45s ease;
}

#cpuBar {
  background: linear-gradient(90deg, #ffae7b, var(--cpu));
}

#ramBar {
  background: linear-gradient(90deg, #b7f7d8, var(--ram));
}

.footer-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: 24px;
}

.storage-panel {
  margin-top: 20px;
  padding: 24px;
}

.storage-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.storage-header h2 {
  margin: 0;
}

.storage-header p {
  margin: 0;
  color: var(--muted);
}

.disk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.disk-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.55);
}

.disk-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.disk-topline h3 {
  margin: 0;
  font-size: 1rem;
}

.disk-topline p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.disk-topline span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.12);
  color: #b7f7d8;
  font-size: 0.92rem;
}

.disk-bar {
  background: linear-gradient(90deg, #b7f7d8, #34d399);
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-panel {
    grid-template-columns: 1fr;
  }

  .disk-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .hero,
  .metric-card,
  .footer-panel,
  .storage-panel {
    border-radius: 20px;
    padding: 20px;
  }

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

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

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