:root {
  color-scheme: dark;
  --bg: #06080c;
  --bg-2: #0b1018;
  --card: rgba(13, 18, 28, 0.88);
  --card-2: rgba(18, 25, 38, 0.88);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #f4f7fb;
  --fg-2: #b8c2d3;
  --fg-3: #7f8ca3;
  --accent: #2bd4c8;
  --accent-2: #7c5cff;
  --accent-3: #ffb347;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/Michroma.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at 20% 0%, rgba(43, 212, 200, 0.12), transparent 28%),
    radial-gradient(circle at 85% 100%, rgba(124, 92, 255, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  background:
    radial-gradient(circle at top left, rgba(43, 212, 200, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 179, 71, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(980px, 100%);
  padding: clamp(22px, 3.8vw, 38px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.landing {
  display: grid;
  gap: 16px;
}

.hero-band {
  margin: -16px -16px 0;
  padding: 16px;
  border-radius: 28px 28px 20px 20px;
  background: rgba(9, 13, 20, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-meta {
  padding-top: 4px;
}

.brand-lockup {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(43, 212, 200, 0.09), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(9, 13, 20, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 44px rgba(0, 0, 0, 0.22);
}

.brand-lockup--band {
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(43, 212, 200, 0.08), transparent 40%),
    rgba(9, 13, 20, 0.94);
}

.brand-lockup--band-download {
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
}

.brand-lockup--compact {
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  padding: 14px 16px;
}

.brand-mark-frame {
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 18px;
  border-radius: 24px;
  background: #090d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.brand-lockup--compact .brand-mark-frame {
  min-height: 112px;
  padding: 14px;
  border-radius: 20px;
}

.brand-mark {
  width: min(100%, 190px);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.brand-lockup--compact .brand-mark {
  width: min(100%, 120px);
}

.brand-copy {
  display: grid;
  gap: 10px;
}

.brand-lockup--compact .brand-copy {
  gap: 8px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(43, 212, 200, 0.10);
  border: 1px solid rgba(43, 212, 200, 0.20);
}

.hero-title {
  margin: 0;
  font-family: "Michroma", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.55rem, 3.1vw, 3.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.lede {
  margin: 0;
  max-width: 60ch;
  color: var(--fg-2);
  font-size: 1.02rem;
  line-height: 1.65;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-chip,
.meta-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.86rem;
}

.meta-link {
  color: var(--accent);
  border-color: rgba(43, 212, 200, 0.20);
}

.meta-link:hover {
  border-color: rgba(43, 212, 200, 0.34);
  background: rgba(43, 212, 200, 0.08);
}

p {
  line-height: 1.5;
  margin: 0;
}

.status {
  margin-top: 16px;
  min-height: 1.5em;
  color: var(--fg-2);
}

.share-panel {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
}

.share-panel--collapsed {
  display: none;
}

.share-panel__heading {
  display: grid;
  gap: 8px;
}

.share-panel__eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.share-panel__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.share-panel__note {
  color: var(--fg-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.share-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.share-mode {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 14px 13px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.share-mode input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.share-mode__copy {
  display: grid;
  gap: 5px;
}

.share-mode__copy strong {
  font-size: 0.96rem;
  color: var(--fg);
}

.share-mode__copy span {
  color: var(--fg-2);
  font-size: 0.88rem;
  line-height: 1.45;
}

.share-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-actions button {
  min-width: 140px;
}

.share-actions button:last-child {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: none;
}

.share-actions button:last-child:hover {
  background: rgba(255, 255, 255, 0.04);
}

.share-result {
  display: grid;
  gap: 10px;
}

.share-result__label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-2);
}

.share-result__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.share-result__row input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--fg);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
}

.share-result__row input[type="text"]:focus {
  outline: 1px solid rgba(43, 212, 200, 0.38);
  outline-offset: 1px;
}

.share-result__row button {
  min-width: 110px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: none;
}

.share-result__row button:hover {
  background: rgba(255, 255, 255, 0.04);
}

.share-status {
  color: var(--fg-2);
  font-size: 0.88rem;
}

.upload-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 132px;
  border-radius: 20px;
  border: 1px dashed color-mix(in srgb, var(--line-2) 70%, var(--accent));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--card-2);
  color: var(--fg);
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: border-color 120ms ease, transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone--active {
  border-color: rgba(43, 212, 200, 0.45);
  box-shadow: 0 0 0 1px rgba(43, 212, 200, 0.12), 0 16px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  outline: none;
}

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

.dropzone span {
  color: var(--fg-2);
  font-size: 0.95rem;
}

.dropzone--filled strong {
  color: var(--accent);
}

.file-field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.file-field__label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-2);
}

input[type="file"] {
  width: 100%;
  max-width: 100%;
  color: var(--fg-2);
}

input[type="file"]::file-selector-button {
  appearance: none;
  margin-right: 14px;
  border: 1px solid rgba(43, 212, 200, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(43, 212, 200, 0.10);
  color: var(--fg);
  font-weight: 700;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(43, 212, 200, 0.16);
}

.file-name {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--fg-2);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.actions {
  margin-top: 14px;
}

button,
a {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  color: #081018;
  background: linear-gradient(135deg, var(--accent), #7ff2eb);
  box-shadow: 0 10px 24px rgba(43, 212, 200, 0.16);
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

button {
  cursor: pointer;
}

button:hover,
a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(43, 212, 200, 0.20);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.actions a,
.actions button {
  min-width: 120px;
}

.actions button:last-child {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: none;
}

.actions button:last-child:hover {
  background: rgba(255, 255, 255, 0.04);
}

#download[hidden],
#copy[hidden],
#delete[hidden],
#create-share[hidden],
#revoke-share[hidden],
#copy-share[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .card {
    border-radius: 22px;
  }

  .hero-band {
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
    border-radius: 22px 22px 16px 16px;
  }

  .brand-lockup,
  .brand-lockup--band,
  .brand-lockup--compact {
    grid-template-columns: 1fr;
  }

  .brand-mark-frame {
    min-height: 148px;
  }

  .brand-lockup--compact .brand-mark-frame {
    min-height: 102px;
  }

  .meta-row,
  .actions,
  .share-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions a,
  .actions button,
  .share-actions button,
  .share-result__row button {
    width: 100%;
  }

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

  .share-result__row {
    display: grid;
    grid-template-columns: 1fr;
  }
}
