:root {
  --bg: #060606;
  --panel: rgba(13, 13, 13, 0.88);
  --panel-strong: rgba(18, 18, 18, 0.96);
  --line: rgba(255, 44, 44, 0.85);
  --line-soft: rgba(255, 44, 44, 0.35);
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 42, 42, 0.12), transparent 30%),
    linear-gradient(180deg, #090909 0%, #050505 100%);
  color: var(--text);
  font-family: "Outfit", sans-serif;
}

body {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 2rem 3rem 1rem;
}

.brand-mark {
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 44, 44, 0.18);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 44, 44, 0.18), rgba(255, 44, 44, 0.02));
  box-shadow: inset 0 0 20px rgba(255, 44, 44, 0.1);
}

.brand-p {
  color: #ff2d2d;
  font-size: 2.8rem;
  font-weight: 700;
  transform: skew(-10deg);
}

.hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.intro {
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow {
  color: #ff5f5f;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  margin: 0 0 1rem;
}

.intro h1,
.selector-card h2,
.share-card h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  line-height: 1;
}

.subcopy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
}

.upload-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.upload-layout.has-upload {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.dropzone-panel {
  min-height: 520px;
  transition: min-height 0.4s ease;
}

.upload-layout.has-upload .dropzone-panel {
  min-height: 260px;
}

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  min-height: 520px;
  border: 2px dashed var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.86), rgba(10, 10, 10, 0.96));
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  transition:
    min-height 0.45s ease,
    transform 0.45s ease,
    border-radius 0.45s ease,
    padding 0.45s ease,
    gap 0.45s ease,
    background 0.45s ease;
}

.dropzone.is-dragging {
  transform: scale(1.01);
  border-color: #ff6b6b;
  box-shadow: 0 24px 90px rgba(255, 44, 44, 0.14);
}

.upload-layout.has-upload .dropzone {
  min-height: 220px;
  border-radius: 26px;
  align-content: center;
  padding: 1.25rem 2rem;
  gap: 0.55rem;
  transform-origin: top center;
  animation: shrinkUp 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.upload-layout.has-upload .dropzone h2 {
  font-size: 1.4rem;
}

.upload-layout.has-upload .cloud-icon {
  transform: scale(0.74);
}

.cloud-icon {
  width: 100px;
  height: 74px;
  position: relative;
  transition: transform 0.45s ease;
}

.cloud-icon::before,
.cloud-icon::after,
.cloud-icon span {
  content: "";
  position: absolute;
  border: 8px solid #ff2d2d;
  border-bottom-color: transparent;
  border-left-color: #ff2d2d;
  border-right-color: #ff2d2d;
  border-radius: 999px;
}

.cloud-icon::before {
  width: 52px;
  height: 52px;
  left: 8px;
  top: 18px;
}

.cloud-icon::after {
  width: 64px;
  height: 64px;
  right: 2px;
  top: 10px;
}

.cloud-icon span {
  width: 68px;
  height: 68px;
  top: 0;
  left: 26px;
}

.cloud-icon span::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 30px;
  background: #ff2d2d;
  left: 30px;
  top: 34px;
  border-radius: 999px;
}

.cloud-icon span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-top: 8px solid #ff2d2d;
  border-left: 8px solid #ff2d2d;
  transform: rotate(45deg);
  left: 21px;
  top: 30px;
}

.dropzone h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
}

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

.primary-button,
.secondary-button,
.expiry-option {
  border: 1px solid #ff2d2d;
  border-radius: 18px;
  background: transparent;
  color: #ff2d2d;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-button,
.secondary-button {
  padding: 0.95rem 1.5rem;
  min-width: 210px;
  text-decoration: none;
  text-align: center;
}

.primary-button:hover,
.secondary-button:hover,
.expiry-option:hover,
.expiry-option.is-active {
  background: #ff2d2d;
  color: #fff;
  transform: translateY(-1px);
}

.fine-print {
  margin-top: 0.5rem;
  color: #d4d4d4;
}

.progress-card,
.selector-card,
.share-card {
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.progress-card {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
}

.progress-card.hidden,
.selector-panel.hidden {
  display: none;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.progress-copy strong {
  color: var(--text);
  font-weight: 500;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff2d2d 0%, #ff7d7d 100%);
  transition: width 0.2s ease;
}

.selector-panel {
  animation: slideIn 0.5s ease;
}

.selector-card {
  padding: 2rem;
}

.selector-card h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.file-summary {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.file-summary div,
.share-meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: var(--panel-strong);
  color: var(--muted);
}

.file-summary strong,
.share-meta strong {
  color: var(--text);
  text-align: right;
}

.expiry-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.expiry-option {
  padding: 0.95rem 1rem;
}

.link-box {
  display: grid;
  gap: 0.85rem;
}

.link-box input {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.status-message {
  margin-top: 1rem;
  color: var(--muted);
}

.share-page {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.share-card {
  width: min(680px, 100%);
  padding: 2rem;
}

.share-meta {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

@keyframes shrinkUp {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-2px) scale(0.98);
  }
}

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

@media (max-width: 900px) {
  .upload-layout.has-upload {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 1.25rem 1rem 0.5rem;
  }

  .hero {
    width: min(100%, calc(100% - 1rem));
    padding-bottom: 2rem;
  }

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

  .upload-layout.has-upload .dropzone {
    min-height: 200px;
  }

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