:root {
  --background: #f6f7f9;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111827;
  --accent-soft: #f3f4f6;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}

button,
input {
  font: inherit;
}

button,
label {
  cursor: pointer;
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent);
  display: inline-block;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.hero {
  min-height: 330px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 44px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.subtext {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.upload-card {
  margin-top: 24px;
  padding: 28px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-title span {
  color: var(--muted);
  font-size: 0.95rem;
}

.dropzone {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 20px;
  background: #fafafa;
  transition: border-color 160ms ease, background 160ms ease;
}

.dropzone:hover,
.dropzone.has-file {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--surface);
  background: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
}

.dropzone strong,
.dropzone small {
  display: block;
}

.dropzone small {
  margin-top: 7px;
  color: var(--muted);
}

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

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  color: var(--surface);
  background: var(--accent);
}

.secondary {
  color: var(--text);
  background: var(--accent-soft);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.small-card {
  min-height: 130px;
  padding: 22px;
  display: grid;
  align-content: space-between;
}

.card-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.small-card strong {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1040px);
    padding-top: 10px;
  }

  .header,
  .hero,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 420px;
    padding: 28px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
