@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Serif+JP:wght@600;800&display=swap");

:root {
  color-scheme: dark;
  --ink: #f1eadf;
  --muted: #9f9a91;
  --night: #090b0e;
  --panel: #111418;
  --line: #292d31;
  --red: #e34335;
  --gold: #d5a75c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 74% 8%, rgb(227 67 53 / 12%), transparent 27rem),
    var(--night);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 100% 5px;
  content: "";
  pointer-events: none;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--red);
  color: white;
  font-family: "Noto Serif JP", serif;
  font-size: 19px;
}

.prototype-label,
.demo-chip {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.hero {
  min-height: 500px;
  padding: 110px 0 80px;
}

.eyebrow,
.card-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero h1 {
  max-width: 920px;
  margin: 20px 0 24px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(3.3rem, 8vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.hero p {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.workspace,
.results {
  scroll-margin-top: 30px;
  padding: 42px;
  border: 1px solid var(--line);
  background: rgb(17 20 24 / 88%);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.section-heading p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.step-number {
  color: var(--red);
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.upload-card {
  display: flex;
  min-height: 320px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #4b4f54;
  background: #0c0f12;
  text-align: center;
  transition: 180ms ease;
}

.upload-card:hover,
.upload-card:focus-within,
.upload-card.has-file {
  border-color: var(--red);
  background: rgb(227 67 53 / 5%);
}

.upload-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
  font-size: 28px;
}

.upload-card strong {
  max-width: 80%;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-card > span:last-child {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

label {
  color: #bbb6ad;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

select,
textarea {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: #0c0f12;
  color: var(--ink);
  font: inherit;
}

select {
  height: 52px;
  padding: 0 14px;
}

textarea {
  min-height: 180px;
  padding: 15px;
  line-height: 1.5;
  resize: vertical;
}

select:focus,
textarea:focus {
  border-color: var(--red);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-footer p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

button {
  min-width: 230px;
  padding: 17px 20px;
  border: 0;
  background: var(--red);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

button span {
  float: right;
}

.results {
  margin-top: 28px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.result-grid article {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-grid .priority-card {
  background: var(--ink);
  color: var(--night);
}

.priority-card .card-kicker {
  color: var(--red);
}

.result-grid h3 {
  margin: 18px 0 12px;
  font-family: "Noto Serif JP", serif;
  font-size: 25px;
  line-height: 1.25;
}

.result-grid p,
.result-grid li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.priority-card p {
  color: #54514d;
}

.result-grid ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.disclaimer {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
}

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 100px;
  padding: 30px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .prototype-label,
  .section-heading > p {
    display: none;
  }

  .hero {
    min-height: 430px;
    padding-top: 90px;
  }

  .workspace,
  .results {
    padding: 24px;
  }

  .form-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .upload-card {
    min-height: 240px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
