:root {
  --paper: #f4f7f2;
  --white: #ffffff;
  --ink: #172019;
  --muted: #667069;
  --line: #d8ded8;
  --green: #0b6b4c;
  --green-soft: #ccebd8;
  --yellow: #f0c858;
  --blue: #526bc1;
  --coral: #e2715f;
  --shadow: 0 18px 48px rgba(23, 32, 25, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: rgba(244, 247, 242, 0.94);
  border-bottom: 1px solid rgba(216, 222, 216, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-weight: 800;
}

.brand-name {
  font-weight: 800;
  font-size: 17px;
}

.brand-label {
  padding-left: 10px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 34px;
  color: #465049;
  font-size: 14px;
}

.main-nav a,
.header-contact {
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green);
}

.header-contact {
  justify-self: end;
  padding: 9px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 247, 242, 0.84);
  pointer-events: none;
}

.hero-inner,
.section-inner {
  width: min(1420px, calc(100% - clamp(40px, 10vw, 152px)));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr);
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
  padding: 58px 0 72px;
}

.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 36px;
  height: 3px;
  background: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 1;
  font-weight: 900;
}

.hero-kicker {
  max-width: 600px;
  margin: 28px 0 16px;
  font-size: clamp(24px, 2.3vw, 36px);
  line-height: 1.35;
  font-weight: 700;
}

.hero-intro {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 5px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #095c41;
}

.button-quiet {
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-proof {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
}

.hero-proof span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--green);
  font-weight: 900;
}

.studio {
  min-height: 560px;
  background: var(--white);
  border: 1px solid #cfd7d0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.studio-topbar {
  min-height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
}

.studio-topbar div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #76dc98;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(118, 220, 152, 0.16);
}

.studio-meta {
  color: #aeb8b0;
}

.agent-switcher {
  min-height: 62px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: #f8faf7;
}

.agent-tab,
.prompt-preset,
.generate-button,
.agent-card button {
  border: 0;
  cursor: pointer;
}

.agent-tab {
  min-height: 40px;
  padding: 8px 10px;
  background: transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.agent-tab.active {
  color: var(--green);
  background: var(--green-soft);
}

.studio-body {
  min-height: 438px;
  display: grid;
  grid-template-columns: 156px 1fr;
}

.studio-sidebar {
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #f3f5f2;
  border-right: 1px solid var(--line);
}

.sidebar-title {
  margin: 0 8px 8px;
  color: #859087;
  font-size: 11px;
  font-weight: 800;
}

.prompt-preset {
  min-height: 42px;
  padding: 9px 10px;
  color: #566158;
  background: transparent;
  border-radius: 4px;
  text-align: left;
  font-size: 12px;
}

.prompt-preset:hover,
.prompt-preset:focus-visible,
.prompt-preset.active {
  color: var(--ink);
  background: var(--white);
}

.response-panel {
  padding: clamp(22px, 3vw, 36px);
}

.response-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.agent-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-weight: 850;
}

.response-heading div {
  display: flex;
  flex-direction: column;
}

.response-heading strong {
  font-size: 17px;
}

.response-heading span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.prompt-line {
  margin-top: 22px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  background: #f6f8f5;
  border-left: 3px solid var(--yellow);
}

.prompt-line span {
  color: var(--muted);
  font-size: 12px;
}

.prompt-line p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.response-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: lesson;
}

.response-list li {
  position: relative;
  min-height: 58px;
  padding: 9px 0 9px 38px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e6eae6;
  counter-increment: lesson;
}

.response-list li::before {
  content: counter(lesson, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.response-list b {
  font-size: 13px;
}

.response-list span {
  color: var(--muted);
  font-size: 12px;
}

.generate-button {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
}

.next-section {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
}

.next-section span {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
}

.agents-section,
.workflow-section,
.about-section,
.contact-section {
  padding: clamp(78px, 10vw, 144px) 0;
}

.agents-section {
  background: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.workflow-copy h2,
.about-statement h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.15;
}

.section-heading > p:last-child,
.workflow-copy > p:last-child,
.contact-copy > p:last-of-type {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.agent-card {
  position: relative;
  min-height: 350px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(23, 32, 25, 0.09);
}

.card-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(23, 32, 25, 0.36);
  font-size: 12px;
  font-weight: 850;
}

.card-symbol {
  width: 62px;
  height: 62px;
  margin-bottom: 58px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 900;
}

.agent-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.agent-card p {
  margin: 0 0 22px;
  color: #556158;
  font-size: 14px;
}

.agent-card button {
  margin-top: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.agent-green {
  background: #e9f5ed;
  color: var(--green);
}

.agent-yellow {
  background: #fbf2d9;
  color: #8a6507;
}

.agent-blue {
  background: #e9edfa;
  color: var(--blue);
}

.agent-coral {
  background: #fae9e5;
  color: #a33f30;
}

.agent-card h3,
.agent-card p,
.agent-card button {
  color: var(--ink);
}

.workflow-section {
  background: var(--ink);
  color: var(--white);
}

.workflow-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: start;
}

.workflow-copy {
  position: sticky;
  top: 112px;
}

.workflow-copy .section-index {
  color: #81d7a2;
}

.workflow-copy > p:last-child {
  color: #aeb8b0;
}

.workflow-track {
  border-top: 1px solid #445047;
}

.workflow-step {
  min-height: 154px;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
  border-bottom: 1px solid #445047;
}

.workflow-step > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.workflow-step b {
  font-size: 20px;
}

.workflow-step p {
  margin: 5px 0 0;
  color: #aeb8b0;
}

.about-section {
  background: var(--yellow);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: end;
}

.about-statement .section-index {
  color: #71580e;
}

.about-notes > p {
  margin: 0 0 40px;
  font-size: 18px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(23, 32, 25, 0.28);
}

.principles span {
  padding: 18px 8px 0 0;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 750;
}

.principles b {
  color: rgba(23, 32, 25, 0.48);
  font-size: 11px;
}

.contact-section {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr minmax(330px, 460px);
  gap: clamp(60px, 12vw, 180px);
  align-items: center;
}

.contact-tags {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-tags span {
  padding: 7px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
}

.qr-panel {
  margin: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.qr-panel img {
  width: 100%;
  height: auto;
  aspect-ratio: 888 / 1131;
  object-fit: contain;
  background: var(--white);
}

.qr-panel figcaption {
  padding: 16px 4px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.qr-panel figcaption span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.site-footer {
  min-height: 110px;
  padding: 24px clamp(20px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: #abb4ad;
  background: #111713;
  font-size: 12px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.site-footer p:last-child {
  justify-self: end;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 28px;
  min-width: 150px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 5px;
  text-align: center;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 70px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .studio {
    width: 100%;
  }

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

  .hero {
    min-height: auto;
  }

  .next-section {
    display: none;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 64px;
    grid-template-columns: 1fr auto;
    padding: 10px 18px;
  }

  .brand-label,
  .main-nav {
    display: none;
  }

  .header-contact {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-inner,
  .section-inner {
    width: min(100% - 36px, 680px);
  }

  .hero-inner {
    padding: 54px 0 56px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-kicker {
    font-size: 25px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .studio {
    min-height: 0;
  }

  .agent-switcher {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-body {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-title {
    display: none;
  }

  .prompt-preset {
    min-height: 40px;
    text-align: center;
  }

  .prompt-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .agent-grid,
  .workflow-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .agent-card {
    min-height: 300px;
  }

  .card-symbol {
    margin-bottom: 38px;
  }

  .workflow-layout,
  .about-layout,
  .contact-layout {
    gap: 52px;
  }

  .workflow-copy {
    position: static;
  }

  .principles {
    gap: 8px;
  }

  .qr-panel {
    width: min(100%, 420px);
    justify-self: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 32px 18px;
  }

  .site-footer p {
    margin: 0;
  }

  .site-footer p:last-child {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .studio-topbar,
  .response-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .studio-sidebar {
    grid-template-columns: 1fr;
  }

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

  .section-heading h2,
  .workflow-copy h2,
  .about-statement h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .workflow-step {
    grid-template-columns: 50px 1fr;
  }

  .qr-panel figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .qr-panel figcaption span {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
