﻿:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-heading: #6b7280;
  --text-muted: #9ca3af;
  --border: #d1d5db;
  --focus: #6366f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg);
  padding: 0 16px;
}

main {
  width: 100%;
  max-width: 920px;
  margin: 80px auto;
  background: var(--surface);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(1.95rem, 3.6vw, 2.2rem);
  line-height: 1.22;
  font-weight: 600;
  color: #374151;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  white-space: pre-line;
}

.hero-subtitle {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3.2vw, 1.75rem);
  line-height: 1.38;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hero-body {
  margin: 0 0 28px;
  font-size: clamp(1.12rem, 2.7vw, 1.2rem);
  line-height: 1.58;
  font-weight: 400;
  color: var(--text-secondary);
}

.action-line {
  margin: 0 0 14px;
  font-size: clamp(1.02rem, 2.5vw, 1.1rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-primary);
}

.field {
  margin-top: 0;
}

.dropzone {
  position: relative;
  margin-top: 16px;
  padding: 38px 24px;
  border: 2px dashed #c4cdd8;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f3f7fb 100%);
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dropzone:hover {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  border-color: #8795ff;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.14);
  cursor: pointer;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dropzone:focus-within {
  outline: 3px solid #dbe4ff;
  outline-offset: 2px;
  border-color: #5d6bff;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.16);
}

.dropzone-content {
  text-align: center;
}

.upload-icon {
  width: 86px;
  height: 86px;
  color: #6b7280;
  margin: 0 auto 14px;
  display: block;
}

.dropzone-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-primary);
  white-space: normal;
}

.dropzone-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: #7a8698;
  white-space: normal;
}

.dropzone-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.dropzone:hover .dropzone-cta,
.dropzone:focus-within .dropzone-cta {
  border-color: #a5b4fc;
  background: #f8faff;
}

.disclaimer {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: #94a3b8;
}

.status {
  margin-top: 24px;
  min-height: 1.5em;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: #4b5563;
}

.loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5563;
  animation: pulse 1s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 640px) {
  main {
    margin: 40px auto;
    padding: 28px 22px;
  }
}
