:root {
  color: #1e293b;
  background: #eef2f0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  --ink: #17212b;
  --muted: #667085;
  --green: #0e7a5f;
  --green-dark: #075b48;
  --green-soft: #e4f4ed;
  --line: #d9e1de;
  --paper: #ffffff;
  --warm: #f4b63d;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 3%, rgba(14, 122, 95, 0.12), transparent 30rem),
    linear-gradient(180deg, #f5f7f6 0%, #edf1ef 100%);
}

button, input, select { font: inherit; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 42px;
  color: white;
  border-radius: 26px;
  background: linear-gradient(125deg, #0b4f40 0%, #0e745b 55%, #15906e 100%);
  box-shadow: 0 24px 60px rgba(9, 79, 63, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.04), 0 0 0 90px rgba(255, 255, 255, 0.025);
}

.hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: #d5f4e8;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68e2b7;
  box-shadow: 0 0 0 4px rgba(104, 226, 183, 0.13);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 680px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.hero__badge {
  display: grid;
  gap: 5px;
  min-width: 210px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.hero__badge strong { font-size: 13px; color: #bfe7d9; }
.hero__badge span { font-size: 15px; }

main { display: grid; gap: 18px; margin-top: 20px; }

.panel {
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 225, 222, 0.88);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(28, 49, 43, 0.06);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading > div { display: flex; align-items: center; gap: 12px; }
.section-heading h2, .download-panel h2 { margin: 0; color: var(--ink); font-size: 20px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.step--light { color: #084d3e; background: #bfe9d9; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.field { display: grid; gap: 9px; }
.field span { color: #344054; font-size: 13px; font-weight: 650; }

.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fafcfb;
  border: 1px solid #cfd9d5;
  border-radius: 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus, .field select:focus {
  background: white;
  border-color: #1c9472;
  box-shadow: 0 0 0 4px rgba(28, 148, 114, 0.12);
}

.fixed-settings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fixed-settings > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #f8faf9;
}

.fixed-settings span { color: var(--muted); font-size: 12px; }
.fixed-settings strong { color: var(--ink); font-size: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: 0.55; }

.button--ghost {
  color: var(--green-dark);
  background: var(--green-soft);
}

.button--primary {
  min-width: 230px;
  min-height: 54px;
  color: #0a4f3f;
  background: #d1f3e6;
  box-shadow: 0 12px 24px rgba(1, 48, 38, 0.16);
}

.button--primary svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.metric {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  background: #f7f9f8;
  border: 1px solid #e1e7e4;
  border-radius: 15px;
}

.metric--accent { background: linear-gradient(145deg, #e8f7f1, #f6fbf9); border-color: #b8decf; }
.metric span { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric strong { align-self: end; color: var(--ink); font-size: 26px; letter-spacing: -0.03em; }
.metric--accent strong { color: var(--green); }
.metric small { color: #7a8782; font-size: 11px; }

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 16px; text-align: right; border-bottom: 1px solid #e7ecea; }
th:first-child, td:first-child { text-align: left; }
th { color: #53605b; background: #f5f8f7; font-size: 12px; font-weight: 700; }
td { color: #344054; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfdfc; }

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px;
  color: white;
  background: linear-gradient(120deg, #123f35, #0d5d49);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(15, 69, 56, 0.2);
}

.download-panel > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.download-panel h2 { color: white; }
.download-panel p { grid-column: 2; margin: 2px 0 0; color: #bcddd1; font-size: 13px; }

.message {
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.message--error { margin-top: 16px; color: var(--danger); background: #fff1f0; border: 1px solid #f5c4bf; }
.message--success { color: #075b48; background: #e6f7f0; border: 1px solid #b7dfd0; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px 0;
  color: #7b8883;
  font-size: 12px;
}

[hidden] { display: none !important; }

@media (max-width: 800px) {
  .page-shell { width: min(100% - 20px, 680px); padding-top: 10px; }
  .hero { padding: 28px 24px; border-radius: 20px; }
  .hero__content { align-items: flex-start; flex-direction: column; }
  .hero__badge { width: 100%; min-width: 0; }
  .panel { padding: 22px 18px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .fixed-settings, .metrics { grid-template-columns: repeat(2, 1fr); }
  .download-panel { align-items: stretch; flex-direction: column; }
  .button--primary { width: 100%; }
  footer { flex-direction: column; gap: 5px; }
}

@media (max-width: 480px) {
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading .button { width: 100%; }
  .fixed-settings, .metrics { grid-template-columns: 1fr; }
  .download-panel > div { grid-template-columns: auto 1fr; }
}
