:root {
  --bg: #0b1120;
  --bg-elevated: rgba(15, 23, 42, 0.72);
  --panel: rgba(15, 23, 42, 0.84);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --panel-soft: rgba(30, 41, 59, 0.55);
  --text: #e5eefb;
  --text-soft: #94a3b8;
  --text-dim: #7b8aa3;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(96, 165, 250, 0.35);
  --accent: #60a5fa;
  --accent-strong: #3b82f6;
  --accent-glow: rgba(96, 165, 250, 0.24);
  --success: #34d399;
  --error: #f87171;
  --shadow-lg: 0 30px 80px rgba(2, 6, 23, 0.46);
  --shadow-md: 0 20px 45px rgba(2, 6, 23, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 26%),
    linear-gradient(180deg, #08101f 0%, #0b1120 48%, #111827 100%);
  color: var(--text);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #93c5fd;
}

code {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94rem;
}

.shell {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.28), rgba(14, 165, 233, 0.16)),
    rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 700;
  color: #eff6ff;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.header-link:hover {
  border-color: rgba(96, 165, 250, 0.32);
  color: #eff6ff;
}

.content-grid {
  display: grid;
  gap: 24px;
}

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

.card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.72));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-card {
  min-height: 560px;
}

.info-card,
.state-card {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78));
}

.glow-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.72;
}

.glow-orb.one {
  top: -36px;
  right: -18px;
  width: 144px;
  height: 144px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.32), transparent 66%);
}

.glow-orb.two {
  bottom: -30px;
  left: -26px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 68%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.18), rgba(96, 165, 250, 0.92));
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 56ch;
  margin-top: 1.1rem;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.pill strong {
  color: var(--text);
}

.upload-form,
.stack-form {
  margin-top: 2rem;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  min-height: 280px;
  padding: 2rem;
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
  text-align: center;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.dropzone:hover,
.dropzone.drag-active {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.08);
}

.dropzone input {
  display: none;
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 1.9rem;
}

.dropzone-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dropzone-subtitle {
  color: var(--text-soft);
  font-size: 1rem;
}

.dropzone-footnote {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.selected-file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 1rem 0 1.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.48);
  color: var(--text-soft);
  text-align: center;
}

.upload-progress {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.48);
}

.upload-progress[hidden] {
  display: none;
}

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

.upload-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #22d3ee);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.26);
  transition: width 140ms ease;
}

.upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #eff6ff;
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.22);
}

.button.primary:hover {
  box-shadow: 0 18px 42px rgba(59, 130, 246, 0.28);
}

.button:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
}

.button.secondary-button {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.46);
  color: var(--text);
}

.button.secondary-button:hover {
  border-color: rgba(96, 165, 250, 0.28);
  color: #eff6ff;
}

.button.danger {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.96), rgba(220, 38, 38, 0.92));
  color: #fff1f2;
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.18);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.stats-grid {
  display: grid;
  gap: 14px;
  margin-top: 1.5rem;
}

.stat {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.44);
}

.stat strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.1rem;
  color: var(--text);
}

.stat span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.details-list {
  display: grid;
  gap: 14px;
  margin-top: 2rem;
}

.details-list div {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.details-list dt {
  margin-bottom: 0.45rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.details-list dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  word-break: break-word;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field span {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.stack-form input {
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.66);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.stack-form input::placeholder {
  color: #5f6f89;
}

.stack-form input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 5px var(--accent-glow);
  background: rgba(15, 23, 42, 0.8);
}

.danger-zone {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.section-caption {
  margin-bottom: 1rem;
  color: var(--text-soft);
}

.alert {
  margin-top: 1.5rem;
  padding: 1rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 18px;
}

.alert.error {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

.alert.success {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(6, 78, 59, 0.24);
  color: #a7f3d0;
}

.single-column {
  max-width: 760px;
}

.site-footer {
  padding: 0 0 32px;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(18px);
}

.footer-version {
  color: #dbeafe;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: var(--text-soft);
}

.footer-nav a:hover,
.footer-version:hover {
  color: #eff6ff;
}

.prose-card {
  padding-bottom: 36px;
}

.prose {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--text-soft);
}

.prose p {
  line-height: 1.8;
}

.release-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.release-item {
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.42);
}

.release-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--text-dim);
}

.release-points {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.release-points li + li {
  margin-top: 0.65rem;
}

@media (max-width: 900px) {
  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1rem, 1120px);
    padding: 16px 0 28px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-link {
    justify-content: center;
  }

  .card {
    padding: 22px;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.5rem, 16vw, 4rem);
  }

  .dropzone {
    min-height: 240px;
    padding: 1.5rem;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
