:root {
  --bg: #f4efe6;
  --bg-strong: #e6dccd;
  --surface: rgba(255, 251, 245, 0.78);
  --surface-strong: #fffaf2;
  --text: #1f2430;
  --muted: #5f6875;
  --line: rgba(31, 36, 48, 0.12);
  --accent: #d65a31;
  --accent-deep: #9f3918;
  --accent-soft: #f3b269;
  --teal: #2f6f6d;
  --shadow: 0 20px 60px rgba(59, 46, 30, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(243, 178, 105, 0.45), transparent 26%),
    radial-gradient(circle at right 20%, rgba(47, 111, 109, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f1e7 0%, #efe5d6 100%);
  color: var(--text);
}

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

.topbar,
.hero-grid,
.card-grid,
.workflow-list,
.vision-layout,
.prompt-panels {
  display: grid;
  gap: 20px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff7f0;
}

.brand-text {
  font-size: 1.15rem;
}

.hero {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 36px;
  background: rgba(255, 249, 241, 0.52);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.hero-text,
.info-card p,
.workflow-step p,
.vision-card p,
.prompt-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-text {
  max-width: 54ch;
  margin: 20px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.primary-button {
  background: var(--accent);
  color: #fff7f0;
}

.secondary-button,
.ghost-button {
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  border: 1px solid var(--line);
}

.button-link {
  text-decoration: none;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text);
}

.hero-points li {
  padding-left: 18px;
  position: relative;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.score-card,
.info-card,
.workflow-step,
.vision-card,
.prompt-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.score-card {
  width: min(100%, 380px);
  padding: 20px;
}

.score-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-weight: 700;
}

.score-value {
  color: var(--accent-deep);
}

.radar-placeholder {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  margin: 0 auto 18px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(47, 111, 109, 0.07), rgba(214, 90, 49, 0.04)),
    var(--surface-strong);
  overflow: hidden;
}

.ring,
.radar-center,
.shape {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.ring {
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: 50%;
}

.ring-1 {
  width: 82%;
  height: 82%;
}

.ring-2 {
  width: 56%;
  height: 56%;
}

.ring-3 {
  width: 28%;
  height: 28%;
}

.radar-center {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

.shape {
  width: 68%;
  height: 68%;
  background: linear-gradient(135deg, rgba(214, 90, 49, 0.68), rgba(47, 111, 109, 0.52));
  clip-path: polygon(50% 8%, 86% 30%, 75% 84%, 26% 72%, 12% 28%);
  opacity: 0.88;
  animation: pulse 4.6s ease-in-out infinite;
}

.signal-grid {
  display: grid;
  gap: 12px;
}

.signal-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: 68px 0 0;
}

.report-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.preview-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inline-link {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

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

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.workflow-step,
.vision-card,
.prompt-panel {
  padding: 22px;
}

.workflow-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--bg-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.vision-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vision-card.accent {
  background: linear-gradient(180deg, rgba(214, 90, 49, 0.16), rgba(255, 251, 245, 0.72));
}

.prompt-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-shell {
  width: min(1320px, calc(100% - 32px));
}

.report-topbar,
.report-hero,
.report-main-grid,
.report-double {
  display: grid;
  gap: 20px;
}

.report-topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 8px 0 28px;
}

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

.report-layout {
  display: grid;
  gap: 20px;
}

.report-hero {
  grid-template-columns: 1.2fr 0.8fr;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 36px;
  background: rgba(255, 249, 241, 0.52);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  align-items: center;
}

.report-score-panel {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.score-badge {
  min-width: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: right;
  box-shadow: var(--shadow);
}

.score-badge strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.06em;
}

.report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chip {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  font-weight: 600;
}

.chip-positive {
  background: rgba(47, 111, 109, 0.12);
}

.chip-warning {
  background: rgba(214, 90, 49, 0.12);
}

.report-main-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.report-radar-card {
  width: 100%;
}

.radar-large {
  max-width: 520px;
}

.role-shape {
  background: rgba(214, 90, 49, 0.32);
  clip-path: polygon(50% 4%, 92% 24%, 82% 88%, 24% 80%, 8% 24%);
}

.profile-shape {
  background: rgba(47, 111, 109, 0.54);
  clip-path: polygon(50% 16%, 76% 28%, 72% 74%, 32% 70%, 20% 32%);
}

.legend-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 600;
}

.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: -2px;
}

.legend-swatch.role {
  background: rgba(214, 90, 49, 0.5);
}

.legend-swatch.profile {
  background: rgba(47, 111, 109, 0.68);
}

.axis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.report-side-stack {
  display: grid;
  gap: 20px;
}

.compact-heading {
  margin-bottom: 18px;
}

.report-section {
  padding-top: 12px;
}

.mapping-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mapping-row {
  display: grid;
  grid-template-columns: 110px 1.3fr 120px 1.2fr;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.mapping-head {
  border-top: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.req-type,
.status {
  font-weight: 700;
}

.req-type.must,
.status.partial {
  color: var(--accent-deep);
}

.req-type.should,
.status.good {
  color: var(--teal);
}

.req-type.could,
.status.weak {
  color: var(--muted);
}

.report-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-panel {
  padding-top: 26px;
}

.analysis-list,
.action-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.analysis-list li,
.action-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid,
  .workflow-list,
  .vision-layout,
  .prompt-panels,
  .report-preview,
  .report-hero,
  .report-main-grid,
  .report-double {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .mapping-row {
    grid-template-columns: 92px 1fr;
  }

  .mapping-row span:nth-child(3),
  .mapping-row span:nth-child(4) {
    justify-self: start;
  }
}

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

  .hero {
    padding: 18px;
    border-radius: 26px;
  }

  .topbar,
  .hero-grid,
  .card-grid,
  .workflow-list,
  .vision-layout,
  .prompt-panels,
  .report-preview,
  .report-topbar,
  .report-hero,
  .report-main-grid,
  .report-double {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .report-topbar-actions {
    display: grid;
  }

  .report-score-panel {
    justify-items: stretch;
  }

  .report-chips {
    justify-content: flex-start;
  }

  .score-badge {
    min-width: 0;
    text-align: left;
  }

  .axis-grid,
  .mapping-row {
    grid-template-columns: 1fr;
  }
}
