:root {
  color-scheme: light;
  --ink: #17372d;
  --ink-soft: #557367;
  --line: rgba(31, 104, 78, 0.14);
  --leaf: #2d7f5c;
  --leaf-dark: #176344;
  --mint: #dff5e7;
  --mint-bright: #f4fff7;
  --tea: #f6f0df;
  --paper: rgba(255, 255, 249, 0.78);
  --error: #a33c2b;
  --shadow: 0 28px 80px rgba(20, 73, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(181, 228, 197, 0.76), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(246, 240, 223, 0.92), transparent 28%),
    linear-gradient(132deg, #f8fff9 0%, #eef9f1 48%, #fbf7ea 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 99, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 99, 68, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

.shell {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
  padding: 40px 0;
}

.shell::before,
.shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(1px);
}

.shell::before {
  width: 210px;
  height: 210px;
  right: 360px;
  top: 78px;
  background: radial-gradient(circle, rgba(118, 197, 150, 0.26), transparent 68%);
}

.shell::after {
  width: 340px;
  height: 160px;
  left: 40px;
  bottom: 90px;
  border: 1px solid rgba(45, 127, 92, 0.16);
  transform: rotate(-10deg);
}

.intro,
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.intro {
  min-height: 520px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 249, 0.76), rgba(228, 247, 235, 0.68)),
    radial-gradient(circle at 86% 22%, rgba(45, 127, 92, 0.2), transparent 30%);
}

.intro::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -250px;
  bottom: -250px;
  border: 1px solid rgba(23, 99, 68, 0.16);
  border-radius: 50%;
}

.intro::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -112px;
  bottom: -100px;
  border: 34px solid rgba(223, 245, 231, 0.72);
  border-radius: 50%;
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 127, 92, 0.18);
  border-radius: 50%;
  color: var(--leaf-dark);
  background: rgba(255, 255, 249, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 30px;
  font-weight: 700;
}

.intro > div:last-child {
  position: relative;
  z-index: 1;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 16px;
  color: var(--leaf-dark);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro h1,
.panel h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro h1 {
  max-width: 9.5em;
  font-size: 52px;
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: normal;
}

.lead {
  max-width: 31em;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.82;
}

.panel {
  padding: 38px;
  background: var(--paper);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.58);
}

.panel-head {
  margin-bottom: 30px;
}

.panel h2 {
  color: var(--ink);
  font-size: 30px;
  font-weight: 760;
}

form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  color: var(--ink-soft);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 14px;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(45, 127, 92, 0.2);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 249, 0.88);
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input::placeholder {
  color: rgba(85, 115, 103, 0.62);
}

input:focus {
  border-color: rgba(45, 127, 92, 0.7);
  outline: 3px solid rgba(117, 193, 146, 0.22);
}

button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(23, 99, 68, 0.2);
}

button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--leaf-dark), #47a56f);
}

.message {
  min-height: 24px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.message[data-type="error"] {
  color: var(--error);
}

.report-page {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.report-frame {
  display: block;
  width: 100vw;
  height: 100vh;
  border: 0;
  background: #fff;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 24px 0;
  }

  .intro {
    min-height: 360px;
    padding: 34px 28px;
  }

  .intro h1 {
    max-width: none;
    font-size: 42px;
  }

  .lead {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 18px 0;
  }

  .intro,
  .panel {
    padding: 24px;
  }

  .intro h1 {
    font-size: 34px;
  }
}
