:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --text-muted: #5b6475;
  --border: #b9c3d3;
  --accent: #1d5fc2;
  --accent-hover: #174e9f;
  --accent-soft: #e6eefb;
  --radius: 20px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --border-soft: #cbd5e1;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 30px;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 64px;
}
.card {
  width: 100%;
  max-width: 560px;
  background-color: var(--surface);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.08);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: var(--surface-muted);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.dropzone.dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropzone-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.dropzone-or {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--accent-hover);
}
.button-large {
  min-height: 56px;
  border-radius: 12px;
  font-size: 18px;
}
.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-soft);
  font-weight: 500;
  padding: 0 16px;
}
.button-secondary:hover {
  background: var(--surface-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.status:empty {
  display: none;
}
.status.error {
  color: #b42318;
}

.file-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.file-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-name {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.file-details {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}
.stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat dt {
  font-size: 13px;
  color: var(--text-muted);
}
.stat dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share label {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}
.share-row {
  display: flex;
  gap: 8px;
}
.share-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
  }
  .card h1 {
    font-size: 26px;
  }
}
