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

:root {
  --bg: #f6f1e9;
  --surface: #ffffff;
  --ink: #1c1b1a;
  --muted: #6c6a68;
  --accent: #e85d04;
  --accent-dark: #c44a00;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff6eb, #f6f1e9 55%, #efe6dc 100%);
}

.page {
  min-height: 100vh;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  animation: floatIn 0.7s ease;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #231f20;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.hero__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat {
  background: #1c1b1a;
  color: #fefefe;
  padding: 16px 18px;
  border-radius: 14px;
  min-width: 170px;
}

.stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fcd5b5;
}

.stat__value {
  font-size: 24px;
  font-weight: 700;
  margin-top: 6px;
}

.stat__hint {
  font-size: 12px;
  color: #f7eee3;
}

.content {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.card__head p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.upload input {
  padding: 12px;
  border: 1px dashed #c9c2b8;
  border-radius: 12px;
  background: #fff7f0;
}

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

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d8d0c5;
  background: #fffaf4;
}


.actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: #1c1b1a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn--ghost {
  background: #fff1e4;
  color: #1c1b1a;
  border: 1px solid #e2c8b0;
}

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

.btn--primary:hover {
  background: var(--accent-dark);
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

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

@media (max-width: 720px) {
  .hero__meta {
    justify-content: flex-start;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
  }
}
