:root {
  color-scheme: dark;
  --bg: #070815;
  --bg-2: #10142e;
  --panel: rgba(18, 22, 48, 0.76);
  --panel-strong: rgba(27, 32, 68, 0.9);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f7ff;
  --muted: #aeb8d6;
  --hot: #ff3df2;
  --hot-2: #fbbf24;
  --cold: #28f7ff;
  --good: #5dffab;
  --bad: #ff5d6c;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 61, 242, 0.28), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(40, 247, 255, 0.22), transparent 30%),
    radial-gradient(circle at 55% 85%, rgba(251, 191, 36, 0.12), transparent 34%),
    linear-gradient(140deg, var(--bg), var(--bg-2) 62%, #060712);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: -2;
  background:
    conic-gradient(from 0deg, transparent, rgba(40, 247, 255, 0.08), transparent, rgba(255, 61, 242, 0.12), transparent);
  animation: spin 24s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  z-index: 2;
  background-image: repeating-radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

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

.compact-shell {
  width: min(820px, calc(100% - 32px));
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(40, 247, 255, 0.22), rgba(255, 61, 242, 0.2));
  box-shadow: 0 0 28px rgba(40, 247, 255, 0.2);
  font-size: 0.78rem;
}

.topbar-actions,
.actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-link,
.pill,
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  font-size: 0.9rem;
}

.pill.online {
  color: var(--good);
  border-color: rgba(93, 255, 171, 0.35);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero {
  min-height: 600px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.stats,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.stat-card,
.feature-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
  border-radius: 24px;
}

.stat-card span {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
}

.stat-card small,
.feature-card p,
.result-card p,
.delete-panel p,
.download-meta {
  color: var(--muted);
}

.panel {
  border-radius: 34px;
  padding: 26px;
}

.upload-panel {
  position: relative;
  overflow: hidden;
}

.upload-panel::before,
.result-card::before,
.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(40, 247, 255, 0.18), transparent 30%, rgba(255, 61, 242, 0.18));
  mask: linear-gradient(#000, transparent 42%);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  position: relative;
}

.upload-form,
.result-card > *,
.download-panel > * {
  position: relative;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 230px;
  padding: 28px;
  border: 1px dashed rgba(40, 247, 255, 0.55);
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(40, 247, 255, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.035);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
  transform: translateY(-2px);
  border-color: var(--hot);
  background:
    radial-gradient(circle at center, rgba(255, 61, 242, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.055);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 28px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cold), var(--hot));
  font-size: 3rem;
  font-weight: 300;
  box-shadow: 0 0 46px rgba(40, 247, 255, 0.32);
}

.dropzone strong {
  font-size: 1.15rem;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(3, 5, 14, 0.55);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(40, 247, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(40, 247, 255, 0.12);
}

button,
.primary,
.secondary {
  border: 0;
  border-radius: 17px;
  padding: 14px 18px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.primary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  background: linear-gradient(135deg, var(--hot), #7c3aed 50%, var(--cold));
  box-shadow: 0 0 34px rgba(255, 61, 242, 0.24);
}

.secondary,
.copy-row button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.progress-wrap {
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cold), var(--hot), var(--hot-2));
  transition: width 0.12s ease;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}

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

.status.good {
  color: var(--good);
}

.result-zone {
  display: grid;
  gap: 18px;
  margin: 34px 0;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  overflow: hidden;
}

.result-main h2 {
  word-break: break-word;
}

.link-stack {
  display: grid;
  gap: 12px;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.copy-row.danger input {
  border-color: rgba(255, 93, 108, 0.34);
}

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

.feature-card span {
  color: var(--hot);
  font-weight: 900;
}

.download-panel {
  position: relative;
  overflow: hidden;
  margin-top: 90px;
}

.download-panel h1 {
  max-width: none;
  font-size: clamp(2.4rem, 7vw, 5rem);
  word-break: break-word;
}

.download-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.download-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
}

.password-box {
  margin: 18px 0;
}

.delete-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
  margin-top: 18px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .grid-two,
  .result-card,
  .delete-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .topbar {
    margin-bottom: 34px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .topbar,
  .topbar-actions,
  .actions-row,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stats,
  .feature-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    border-radius: 24px;
    padding: 18px;
  }

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