*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1e3a5f;
  --ink:    #1a1a2e;
  --muted:  #6b7280;
  --light:  #f8f7f4;
  --border: #e5e2da;
  --white:  #ffffff;
  --green:  #22a06b;
  --red:    #e53e3e;
  --accent: #c8a96e;
}

html { font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--light);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.header {
  padding: 48px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.logo-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Main ── */
.main {
  flex: 1;
  padding: 56px 0 48px;
}

/* ── Hero ── */
.hero {
  margin-bottom: 48px;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 16px;
  animation: fadeUp 0.6s ease both;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  animation: fadeUp 0.6s 0.1s ease both;
}

/* ── Form ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.input::placeholder { color: #b0aaa0; }

.input:focus {
  border-color: var(--navy);
}

/* ── Dropzone ── */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--navy);
  background: #f0f4f8;
}

.dropzone.has-file {
  border-style: solid;
  border-color: var(--green);
  background: #f0faf6;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-content {
  padding: 32px 24px;
  text-align: center;
  pointer-events: none;
}

.dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light);
  color: var(--muted);
  margin-bottom: 12px;
}

.dropzone-icon.success {
  background: #dcfce7;
  color: var(--green);
}

.dropzone-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: 12px;
  color: var(--muted);
}

/* ── Button ── */
.btn {
  height: 52px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.btn:hover  { background: #162d4a; }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Spinner ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Result ── */
.result {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
  animation: fadeUp 0.3s ease both;
}

.result.success-msg {
  background: #f0faf6;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.result.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.result svg { flex-shrink: 0; }

/* ── Footer ── */
.footer {
  padding: 24px 0 32px;
  text-align: center;
  font-size: 12px;
  color: #b0aaa0;
  letter-spacing: 0.04em;
}

/* ── Divider line ── */
.header::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .page { padding: 0 20px; }
  .header { padding-top: 32px; }
  .main { padding: 40px 0 32px; }
  .hero { margin-bottom: 36px; }
}
