@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4f1ec;
  --bg-2: #fce6bf;
  --bg-3: #e0f0eb;
  --ink: #1e1c1a;
  --muted: #5b5248;
  --accent: #d85a1a;
  --accent-2: #0b6d6b;
  --card: #fff9f1;
  --stroke: #e2d6c7;
  --shadow: 0 18px 45px rgba(29, 24, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 90, 26, 0.12), transparent 45%),
    radial-gradient(circle at 82% 8%, rgba(11, 109, 107, 0.12), transparent 45%),
    linear-gradient(120deg, var(--bg-2), var(--bg) 45%, var(--bg-3));
  min-height: 100vh;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  position: relative;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 48% 52% 60% 40%;
  filter: blur(40px);
  opacity: 0.6;
  z-index: 0;
}

.page::before {
  background: rgba(216, 90, 26, 0.18);
  top: 20px;
  right: -40px;
}

.page::after {
  background: rgba(11, 109, 107, 0.18);
  bottom: 40px;
  left: -60px;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
  animation: reveal 0.8s ease both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
}

.hero-text h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 12px 0 8px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
}

.hero-panel {
  background: #1f2a27;
  color: #f6f2ea;
  padding: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(216, 90, 26, 0.35), transparent 55%);
  opacity: 0.8;
}

.panel-title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.panel-list li {
  font-size: 0.95rem;
  line-height: 1.4;
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
}

.card {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--stroke);
  padding: 28px;
  box-shadow: var(--shadow);
  animation: reveal 0.8s ease both;
}

.form-card {
  animation-delay: 0.1s;
}

.info-card {
  animation-delay: 0.2s;
}

h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

h3 {
  margin-bottom: 10px;
}

.form {
  display: grid;
  gap: 18px;
}

.dropzone {
  border: 2px dashed var(--stroke);
  border-radius: 18px;
  padding: 26px;
  min-height: 150px;
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dropzone.dragover {
  border-color: var(--accent-2);
  background: rgba(11, 109, 107, 0.08);
  transform: translateY(-2px);
}

.drop-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.drop-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.field span {
  font-weight: 600;
}

.field em {
  color: var(--muted);
  font-size: 0.85rem;
}

input[type="file"],
input[type="text"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-family: inherit;
}

input[type="file"] {
  background: #fff4e6;
}

button {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #e57c45);
  box-shadow: 0 12px 24px rgba(216, 90, 26, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.secondary {
  background: #1f2a27;
  box-shadow: 0 12px 24px rgba(31, 42, 39, 0.25);
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(216, 90, 26, 0.3);
}

button.secondary:hover {
  box-shadow: 0 16px 28px rgba(31, 42, 39, 0.35);
}

button.ghost:hover {
  transform: translateY(-1px);
  background: rgba(31, 42, 39, 0.06);
  box-shadow: none;
}

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

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.notice.error {
  background: #fee4d7;
  border: 1px solid #f2b59c;
  color: #8a2c0a;
}

.steps {
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.divider {
  height: 1px;
  background: var(--stroke);
  margin: 22px 0;
}

.code {
  display: grid;
  gap: 8px;
}

code {
  background: #f0ede6;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.log-card {
  margin-top: 28px;
}

.log-hint {
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 16px;
}

.log-output {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  max-height: 420px;
  overflow: auto;
}

.log-empty,
.log-loading,
.log-error {
  color: var(--muted);
  font-size: 0.95rem;
}

.log-error {
  color: #8a2c0a;
}

.log-wrapper {
  display: grid;
  gap: 18px;
}

.log-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: #fff8f0;
}

.log-title {
  font-weight: 600;
  cursor: pointer;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.log-table th,
.log-table td {
  border-bottom: 1px solid var(--stroke);
  padding: 8px 6px;
  text-align: left;
}

.log-table th {
  color: var(--muted);
  font-weight: 600;
}

.status.found {
  color: #0b6d6b;
  font-weight: 600;
}

.status.missing {
  color: #c2461c;
  font-weight: 600;
}

.foot {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: 2;
  }

  .hero-text {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
