:root {
  color-scheme: dark;
  --ink: #090b0e;
  --ink-2: #11151a;
  --paper: #f2f1e9;
  --paper-2: #ddddd3;
  --acid: #c9ff45;
  --violet: #7b6cff;
  --white: #ffffff;
  --muted: #9da3aa;
  --line: rgba(255, 255, 255, 0.16);
  --display: "Arial Black", "Arial Narrow", Arial, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
select,
.drop-zone {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  content: "DROP";
  position: fixed;
  right: -0.06em;
  bottom: -0.33em;
  z-index: -1;
  color: rgba(255, 255, 255, 0.026);
  font-family: var(--display);
  font-size: clamp(10rem, 34vw, 36rem);
  line-height: 1;
  letter-spacing: -0.11em;
  pointer-events: none;
}

.topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand > span:last-child span {
  color: var(--acid);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  background: var(--acid);
  border-radius: 9px;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  width: 22px;
  height: 4px;
  background: var(--ink);
}

.brand-mark::before {
  transform: translateY(-7px);
}

.brand-mark::after {
  transform: translateY(7px);
}

.brand-mark i {
  transform: rotate(-45deg);
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.status-light {
  width: 8px;
  height: 8px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(201, 255, 69, 0.6);
}

.topbar-divider {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: var(--line);
}

.workspace {
  display: grid;
  width: min(1440px, 100%);
  min-height: calc(100vh - 148px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 0.78fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
  padding: clamp(46px, 7vw, 105px) clamp(20px, 4vw, 64px) clamp(64px, 8vw, 120px);
}

.intro {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--acid);
  font-size: 0.7rem;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.8rem, 7.7vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

h1 em {
  color: var(--acid);
  font-style: normal;
}

.intro-copy {
  max-width: 500px;
  margin: 34px 0 0;
  color: #c6cad0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.steps {
  display: grid;
  max-width: 600px;
  margin: 48px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  list-style: none;
}

.steps li {
  display: grid;
  gap: 7px;
  padding: 16px 16px 0 0;
  border-right: 1px solid var(--line);
}

.steps li + li {
  padding-left: 16px;
}

.steps li:last-child {
  border-right: 0;
}

.steps b {
  color: var(--violet);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.steps span {
  font-size: 0.875rem;
  font-weight: 650;
}

.availability {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 35px;
}

.availability span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.privacy-messages {
  display: grid;
  max-width: 660px;
  margin-top: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.privacy-messages div {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 16px 17px 0;
  border-right: 1px solid var(--line);
}

.privacy-messages div + div {
  padding-left: 16px;
}

.privacy-messages div:last-child {
  border-right: 0;
}

.privacy-messages b {
  color: var(--acid);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.privacy-messages span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.transfer-card {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 3.2vw, 42px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 18px 18px 0 var(--violet);
}

.transfer-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 52px;
  height: 52px;
  background: var(--ink);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.card-kicker {
  margin: 0 0 6px;
  color: #60646a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.card-code {
  margin-right: 40px;
  color: #696c70;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.drop-zone {
  display: flex;
  min-height: 278px;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 2px dashed #85877f;
  outline: none;
  text-align: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  flex-direction: column;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
  background: var(--acid);
  border-color: var(--ink);
  transform: translate(-4px, -4px);
  box-shadow: 7px 7px 0 var(--ink);
}

.drop-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  place-items: center;
  background: var(--ink);
  color: var(--acid);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.drop-zone:hover .drop-icon,
.drop-zone:focus-visible .drop-icon,
.drop-zone.is-dragging .drop-icon {
  transform: rotate(8deg) scale(1.04);
}

.drop-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.drop-title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.drop-subtitle {
  margin-top: 4px;
  color: #676a68;
  font-size: 0.875rem;
}

.browse-cta {
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.file-area {
  margin-top: 22px;
}

.file-area-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c5e5a;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.file-list {
  display: grid;
  max-height: 188px;
  margin: 0;
  padding: 0;
  overflow: auto;
  border-top: 1px solid #c7c7bd;
  list-style: none;
}

.file-item {
  display: grid;
  min-width: 0;
  align-items: center;
  padding: 12px 0;
  grid-template-columns: 38px minmax(0, 1fr) auto 32px;
  gap: 10px;
  border-bottom: 1px solid #c7c7bd;
}

.file-kind {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--ink);
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: #666963;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.remove-file {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #666963;
  font-size: 1.2rem;
}

.remove-file:hover,
.remove-file:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.settings-row {
  display: grid;
  margin-top: 22px;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #b7b8ae;
}

.select-field,
.total-field {
  display: grid;
  gap: 7px;
  padding: 13px 15px;
}

.select-field {
  border-right: 1px solid #b7b8ae;
}

.select-field span,
.total-field span {
  color: #6f726c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.select-field select {
  width: 100%;
  padding: 0;
  border: 0;
  outline-offset: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.total-field strong {
  font-size: 0.95rem;
}

.primary-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 18px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.primary-button:not(:disabled):hover,
.primary-button:not(:disabled):focus-visible {
  background: var(--violet);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.primary-button .button-label,
.primary-button .button-arrow {
  position: relative;
  z-index: 2;
}

.button-arrow {
  font-size: 1.45rem;
}

.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 0;
  background: var(--violet);
  transition: width 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-button.is-loading .progress-bar {
  width: 100%;
}

.privacy-note {
  margin: 13px 0 0;
  color: #737670;
  font-size: 0.75rem;
  line-height: 1.45;
}

.result {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  background: var(--acid);
  flex-direction: column;
  animation: reveal 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.result[hidden] {
  display: none;
}

.result::after {
  content: "LINK";
  position: absolute;
  right: 10px;
  bottom: -0.17em;
  color: rgba(9, 11, 14, 0.06);
  font-family: var(--display);
  font-size: clamp(6rem, 15vw, 11rem);
  letter-spacing: -0.08em;
  pointer-events: none;
}

.result-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--acid);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-badge svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
}

.result h3 {
  position: relative;
  z-index: 1;
  max-width: 7ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.result p {
  position: relative;
  z-index: 1;
  margin: 20px 0 18px;
  color: #3c451f;
}

.link-field {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.link-field input {
  min-width: 0;
  padding: 16px;
  border: 2px solid var(--ink);
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.link-field input:focus {
  box-shadow: inset 0 0 0 2px var(--white);
}

.link-field button {
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-left: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.link-field button:hover,
.link-field button:focus-visible {
  background: var(--violet);
}

.new-transfer {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 22px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 15px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: #686e75;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  padding: 14px 18px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@media (max-width: 1020px) {
  .workspace {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    column-gap: 50px;
  }

  .eyebrow,
  h1 {
    grid-column: 1;
  }

  .intro-copy,
  .steps,
  .availability {
    grid-column: 2;
  }

  .intro-copy {
    grid-row: 2;
    margin-top: 0;
    align-self: end;
  }

  .steps {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .availability,
  .privacy-messages {
    grid-row: 4;
    grid-column: 1 / -1;
  }

  .privacy-messages {
    grid-row: 5;
  }

  .transfer-card {
    width: min(720px, calc(100% - 18px));
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 70px;
  }

  .topbar-note .local-label {
    display: none;
  }

  .topbar-divider {
    display: none;
  }

  .workspace {
    gap: 44px;
    padding-top: 42px;
  }

  .intro {
    display: block;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.3rem);
  }

  .intro-copy {
    margin-top: 26px;
  }

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

  .privacy-messages div,
  .privacy-messages div + div {
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .privacy-messages div:last-child {
    border-bottom: 0;
  }

  .steps {
    margin-top: 34px;
  }

  .steps li {
    padding-right: 8px;
  }

  .steps li + li {
    padding-left: 8px;
  }

  .steps span {
    font-size: 0.75rem;
  }

  .transfer-card {
    padding: 22px;
    box-shadow: 10px 10px 0 var(--violet);
  }

  .drop-zone {
    min-height: 240px;
    padding: 22px;
  }

  .file-item {
    grid-template-columns: 36px minmax(0, 1fr) 30px;
  }

  .file-size {
    display: none;
  }

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

  .select-field {
    border-right: 0;
    border-bottom: 1px solid #b7b8ae;
  }

  .result {
    padding: 30px 22px;
  }

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

  .link-field button {
    min-height: 50px;
    border-top: 0;
    border-left: 2px solid var(--ink);
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
