:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --surface: #fffaf0;
  --ink: #211b14;
  --muted: #756b5e;
  --line: #dfd3c0;
  --accent: #255f4b;
  --accent-2: #c96e2c;
  --accent-soft: #e8f0e7;
  --shadow: 0 18px 50px rgba(58, 44, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    sans-serif;
}

button,
textarea {
  font: inherit;
}

.hero {
  min-height: 100vh;
  padding: 24px clamp(20px, 5vw, 72px) 64px;
  background:
    linear-gradient(120deg, rgba(37, 95, 75, 0.08), transparent 42%),
    radial-gradient(circle at top right, rgba(201, 110, 44, 0.16), transparent 34%),
    var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 110px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.ghost-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.ghost-btn {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
  box-shadow: var(--shadow);
}

.flow-node {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.flow-node.active {
  background: var(--accent);
  color: #fff;
}

.flow-line {
  width: 2px;
  height: 26px;
  margin-left: 24px;
  background: var(--line);
}

main {
  padding: 72px clamp(20px, 5vw, 72px);
}

.section-head,
.pitch {
  max-width: 1180px;
  margin: 0 auto 28px;
}

.section-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.steps {
  display: grid;
  align-content: start;
  gap: 10px;
}

.step-tab {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.76);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.step-tab span {
  color: var(--accent-2);
}

.step-tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.panels {
  min-width: 0;
}

.panel {
  display: none;
  min-height: 640px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel.active {
  display: block;
}

.panel-title {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

textarea {
  width: 100%;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  background: #fff;
  color: var(--ink);
  line-height: 1.7;
}

textarea:focus {
  border-color: var(--accent);
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.result-strip div,
.pitch-cards article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.result-strip strong {
  display: block;
  font-size: 34px;
  color: var(--accent);
}

.result-strip span {
  color: var(--muted);
}

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

.asset-card,
.match-card,
.lesson-plan,
.posd-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.asset-card {
  padding: 18px;
}

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

.asset-card h4 {
  margin: 12px 0;
  font-size: 20px;
}

.asset-card p {
  color: var(--muted);
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3eadb;
  color: #6b4a26;
  font-size: 12px;
  font-weight: 800;
}

.output-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 22px;
}

.match-list {
  display: grid;
  gap: 12px;
}

.match-card {
  padding: 14px;
}

.match-card strong {
  display: block;
  margin-bottom: 8px;
}

.score {
  color: var(--accent-2);
  font-weight: 900;
}

.lesson-plan {
  min-height: 250px;
  padding: 18px;
  line-height: 1.7;
}

.lesson-plan.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.lesson-plan ul {
  padding-left: 20px;
}

.posd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.posd-item {
  padding: 18px;
}

.posd-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.pitch {
  padding-top: 72px;
}

.pitch h2 {
  max-width: 960px;
}

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

.pitch-cards p {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero-grid,
  .workspace,
  .output-layout {
    grid-template-columns: 1fr;
  }

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

  .asset-grid,
  .posd-grid,
  .pitch-cards {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
    padding: 20px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 42px;
  }

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

  .panel-title {
    display: block;
  }

  .status-pill {
    margin-top: 12px;
  }
}
