:root {
  color-scheme: light;
  --ink: #151413;
  --muted: #6f6a63;
  --line: #ded8cf;
  --paper: #fbfaf7;
  --wash: #f1eee8;
  --hot: #ff4e2f;
  --green: #178a5c;
  --blue: #244b6b;
  --shadow: 0 22px 60px rgba(21, 20, 19, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100svh;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.74) 46%, rgba(251, 250, 247, 0.94) 100%),
    repeating-linear-gradient(90deg, rgba(21, 20, 19, 0.045) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(21, 20, 19, 0.035) 0 1px, transparent 1px 78px),
    #e8dfd2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 78, 47, 0.2), transparent 21%),
    radial-gradient(circle at 20% 28%, rgba(36, 75, 107, 0.16), transparent 24%),
    radial-gradient(circle at 82% 70%, rgba(23, 138, 92, 0.14), transparent 24%);
}

.hero-center {
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(900px, 100%);
  text-align: center;
  animation: hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow,
.kicker {
  margin: 0 0 16px;
  color: var(--hot);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.95;
}

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 10vw, 9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: #3c3833;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.button,
.run-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
}

.button:hover,
.run-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.primary,
.run-button {
  background: var(--ink);
  color: #fff;
}

.secondary {
  border: 1px solid rgba(21, 20, 19, 0.22);
  background: rgba(255, 255, 255, 0.44);
  color: var(--ink);
}

.text-link {
  color: var(--ink);
  background: transparent;
}

.hero-dropzone {
  position: relative;
  display: flex;
  width: min(540px, 100%);
  min-height: 180px;
  margin-top: 34px;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(21, 20, 19, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 30px 80px rgba(21, 20, 19, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}

.hero-dropzone::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(255, 78, 47, 0.28);
  opacity: 0.7;
}

.hero-dropzone:hover,
.hero-dropzone.is-dragging {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--hot);
  background: #fff8f4;
}

.hero-drop-core {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
}

.drop-plus {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.hero-drop-core small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.logo-burst {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 1;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.logo-shot {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: clamp(44px, 5.4vw, 76px);
  height: clamp(44px, 5.4vw, 76px);
  place-items: center;
  border: 1px solid rgba(21, 20, 19, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 48px rgba(21, 20, 19, 0.13);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.18);
  animation: logo-shoot 950ms cubic-bezier(0.16, 1, 0.3, 1) var(--d) forwards;
}

.logo-shot::before {
  content: "";
  position: absolute;
  right: 50%;
  top: 50%;
  width: clamp(90px, 13vw, 190px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 20, 19, 0.18));
  transform: translateY(-50%) rotate(180deg);
  transform-origin: right center;
}

.logo-shot img {
  position: relative;
  width: 56%;
  height: 56%;
  object-fit: contain;
  filter: saturate(0);
}

.real {
  border-radius: 999px;
}

.ai-mark {
  border-radius: 18px;
}

.mark-a {
  background: #151413;
}

.mark-a::after {
  content: "";
  width: 42%;
  height: 42%;
  border: 9px solid #fff;
  border-radius: 999px;
}

.mark-b {
  background: #ff4e2f;
}

.mark-b::after {
  content: "";
  width: 42%;
  height: 72%;
  background: #fff;
  transform: skewX(-18deg);
}

.mark-c {
  background: #244b6b;
  border-radius: 999px 999px 999px 8px;
}

.mark-c::after {
  content: "";
  width: 48%;
  height: 48%;
  border-radius: 6px;
  background: #fff;
  transform: rotate(45deg);
}

.mark-d {
  background: linear-gradient(135deg, #151413 0 50%, #178a5c 50% 100%);
}

.mark-d::after {
  content: "";
  width: 58%;
  height: 14px;
  background: #fff;
  transform: rotate(-28deg);
}

.mark-e {
  background: #fff;
}

.mark-e::after {
  content: "";
  width: 52%;
  height: 52%;
  border: 12px solid #ff4e2f;
  border-top-color: #151413;
  border-radius: 999px;
}

.mark-f {
  background: #178a5c;
  border-radius: 999px;
}

.mark-f::after {
  content: "";
  width: 56%;
  height: 56%;
  background: #fff;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.burst-caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  margin: 0;
  color: rgba(21, 20, 19, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-shoot {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(0deg);
  }
  56% {
    opacity: 1;
    transform: translate(calc(-50% + var(--x) * 1.035), calc(-50% + var(--y) * 1.035)) scale(1.03) rotate(var(--r));
  }
  to {
    opacity: 0.82;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r));
  }
}

.workspace,
.explain {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.dropzone {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 28px;
  border: 2px dashed #c8beb2;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border 180ms ease, transform 180ms ease, background 180ms ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--hot);
  background: #fff6f2;
  transform: translateY(-2px);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.drop-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.drop-title {
  display: block;
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 800;
}

.drop-note {
  display: block;
  max-width: 280px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.preview-wrap {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 320px;
  padding: 24px;
  background:
    linear-gradient(45deg, #e8e3db 25%, transparent 25% 75%, #e8e3db 75%),
    linear-gradient(45deg, #e8e3db 25%, transparent 25% 75%, #e8e3db 75%);
  background-color: #fff;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.preview-wrap img {
  align-self: center;
  justify-self: center;
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--hot);
  cursor: pointer;
  font-weight: 800;
}

.persona-block {
  margin-top: 22px;
}

.persona-block label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 112px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 18px;
  text-align: left;
  transition: border 180ms ease, transform 180ms ease, background 180ms ease;
}

.metric:hover,
.metric.is-active {
  border-color: var(--ink);
  background: #fff8f4;
  transform: translateY(-2px);
}

.metric span {
  display: block;
  font-weight: 900;
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.run-button {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  font-size: 1rem;
}

.run-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.status {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.4;
}

.result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.scoreline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.score-label {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

#score {
  color: var(--hot);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 500;
  line-height: 0.9;
}

.breakdown {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 140px 1fr 46px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.bar {
  height: 8px;
  overflow: hidden;
  background: #e7e0d8;
}

.bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--ink);
  transition: width 500ms ease;
}

blockquote {
  margin: 22px 0 0;
  padding: 0;
  color: #2f2b27;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-style: italic;
  line-height: 1.45;
}

.explain {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: 72px 0 96px;
  border-top: 1px solid var(--line);
}

.explain p:last-child {
  margin: 6px 0 0;
  color: #3c3833;
  font-size: 1.12rem;
  line-height: 1.6;
}

.is-hidden {
  display: none;
}

@media (max-width: 860px) {
  .workspace,
  .explain {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100svh;
    padding: 46px 20px 58px;
  }

  .logo-burst {
    top: 60%;
    transform: scale(0.68);
  }

  .logo-shot:nth-child(2),
  .logo-shot:nth-child(5),
  .logo-shot:nth-child(8),
  .logo-shot:nth-child(11) {
    display: none;
  }

  .hero-dropzone {
    min-height: 150px;
    border-radius: 34px;
  }

  .burst-caption {
    bottom: 18px;
    font-size: 0.68rem;
  }

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

  .breakdown-row {
    grid-template-columns: 112px 1fr 42px;
  }
}
