:root {
  --ink: #183329;
  --muted: #6f7b75;
  --deep: #124d38;
  --green: #14734f;
  --mint: #e8f2ed;
  --paper: #f5f1e8;
  --card: #fffefa;
  --line: #ded9cc;
  --danger: #a84234;
  --shadow: 0 18px 45px rgba(51, 60, 45, 0.08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.88), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 78px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(116, 107, 85, 0.18);
  background: rgba(250, 247, 239, 0.78);
  backdrop-filter: blur(14px);
}

.studio { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.studio-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; color: #fff; background: var(--deep); font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.studio b, .studio small { display: block; }
.studio b { font-size: 14px; letter-spacing: -.01em; }
.studio small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.status { color: var(--muted); font-size: 12px; }
.status i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #35a36f; box-shadow: 0 0 0 4px #dff1e8; }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 375px; display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(64px, 8vw, 102px); font-weight: 500; line-height: .98; letter-spacing: -.06em; }
.lead { max-width: 680px; margin: 26px 0 22px; color: #59665f; font-size: 17px; line-height: 1.85; }
.promise-list { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--green); font-size: 12px; font-weight: 700; }
.price-card { padding: 28px; display: grid; gap: 9px; color: #eff9f4; border-radius: 20px; background: var(--deep); box-shadow: var(--shadow); }
.price-card small { color: #9fc5b5; }
.price-card strong { margin: 4px 0 8px; font-size: 15px; font-weight: 600; }
.price-card strong b { font-family: Georgia, serif; font-size: 48px; font-weight: 500; }
.price-card span { color: #c1d7cd; font-size: 12px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 20px; align-items: start; }
.card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.section-title { display: flex; align-items: flex-start; gap: 15px; }
.section-title > span { min-width: 34px; padding-top: 4px; color: #86a496; font: 700 11px ui-monospace, monospace; }
.section-title p { margin: 0 0 7px; color: #85918b; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.section-title h2, .method h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }

form { margin-top: 34px; }
label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 750; }
.input-row { display: flex; gap: 10px; }
input {
  min-width: 0; flex: 1; height: 52px; padding: 0 15px;
  color: var(--ink); border: 1px solid #cac6b9; border-radius: 11px; background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; outline: none;
}
input:focus { border-color: #4c9074; box-shadow: 0 0 0 4px rgba(76, 144, 116, .12); }
.input-row button, .report-button {
  border: 0; border-radius: 11px; color: #fff; background: var(--deep); font-size: 13px; font-weight: 800;
}
.input-row button { min-width: 112px; padding: 0 18px; }
button:disabled { cursor: wait; opacity: .62; }
.helper, .payment-note { margin: 10px 0 0; color: #88918d; font-size: 11px; line-height: 1.6; }
.message { margin-top: 18px; padding: 13px 15px; color: var(--danger); border-radius: 9px; background: #fff0ec; font-size: 12px; line-height: 1.6; }
.message.success { color: var(--green); background: var(--mint); }

.preview { margin-top: 26px; padding-top: 26px; border-top: 1px solid #e7e3d9; }
.token-head { display: flex; align-items: center; gap: 12px; }
.token-head img, .token-fallback { width: 45px; height: 45px; border-radius: 12px; background: var(--mint); object-fit: cover; }
.token-fallback { display: grid; place-items: center; color: var(--green); font-family: Georgia, serif; font-size: 22px; }
.token-head small { color: var(--muted); font-size: 10px; }
.token-head h3 { margin: 3px 0 0; font-size: 17px; }
.verified { margin-left: auto; padding: 6px 9px; border-radius: 999px; color: var(--green); background: var(--mint); font-size: 10px; font-weight: 800; }
.contract-row { display: grid; grid-template-columns: 72px 1fr; margin: 20px 0; padding: 13px; border-radius: 9px; background: #f5f5f0; font-size: 11px; }
.contract-row dt { color: var(--muted); }
.contract-row dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metrics div { min-width: 0; padding: 13px 11px; border: 1px solid #e7e3d9; border-radius: 9px; }
.metrics small, .metrics strong { display: block; }
.metrics small { margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.metrics strong { overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, monospace; font-size: 13px; }
.community-note { padding: 11px 13px; color: #8a5c13; border-radius: 8px; background: #fff5df; font-size: 11px; line-height: 1.6; }
.report-button { width: 100%; height: 53px; margin-top: 20px; }

.deliverables { margin: 30px 0 0; padding: 0; list-style: none; }
.deliverables li { display: flex; gap: 13px; padding: 18px 0; border-top: 1px solid #e7e3d9; }
.deliverables i { color: #89a196; font: normal 10px ui-monospace, monospace; }
.deliverables b, .deliverables span { display: block; }
.deliverables b { margin-bottom: 5px; font-size: 13px; }
.deliverables span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.api-note { margin-top: 18px; padding: 18px; border-radius: 12px; background: #153b30; color: #dcebe4; }
.api-note small { display: block; margin-bottom: 9px; color: #8db9a6; font-size: 9px; letter-spacing: .12em; }
.api-note code { font-size: 12px; }
.api-note p { margin: 11px 0 0; color: #abc8bc; font-size: 10px; line-height: 1.6; }

.method { margin: 95px 0; }
.method > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.method p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.method p b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 40px; display: flex; justify-content: space-between; color: #8b918d; border-top: 1px solid var(--line); font-size: 10px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 60px 0; }
  .price-card { max-width: 420px; }
  .workspace { grid-template-columns: 1fr; }
  .method > div { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 580px) {
  main, footer { width: min(100% - 28px, 1180px); }
  .topbar { height: 68px; padding: 0 14px; }
  .studio b { font-size: 12px; }
  .studio small, .status { display: none; }
  h1 { font-size: 66px; }
  .lead { font-size: 15px; }
  .card { padding: 24px 18px; border-radius: 16px; }
  .section-title h2 { font-size: 22px; }
  .input-row { display: grid; }
  .input-row button { height: 49px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  footer { display: grid; gap: 8px; }
}
