@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --bg: #0f1419;
  --bg-soft: #161b22;
  --card: #1c2330;
  --card-2: #232b3a;
  --line: #2c3545;
  --text: #e8edf4;
  --muted: #9aa7b8;
  --dim: #6b7888;
  --accent: #ff7a45;
  --accent-2: #ffb088;
  --green: #36c98e;
  --red: #ff6b6b;
  --blue: #5aa9ff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1d2740 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 25, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap { display: flex; align-items: baseline; gap: 14px; height: 58px; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.logo { font-size: 19px; }
.tagline { color: var(--muted); font-size: 13px; }

/* Intro */
.intro { padding: 44px 0 14px; text-align: center; }
.intro h1 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; }
.hl { color: var(--accent); }
.intro .sub { color: var(--muted); max-width: 660px; margin: 0 auto; font-size: 15.5px; }

/* Layout grid */
.grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0 8px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.sec-title { margin: 0 0 14px; font-size: 15.5px; font-weight: 700; color: var(--accent-2); }
.sec-note { margin: -6px 0 14px; color: var(--muted); font-size: 13px; }

/* Form */
.form { position: sticky; top: 74px; margin-bottom: 0; }
.field { display: block; margin-bottom: 14px; }
.label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.label em { color: var(--accent); font-style: normal; }
.label .muted { color: var(--dim); font-size: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input[type="text"], select {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.15);
}
select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa7b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  background: var(--card-2);
  color: var(--text);
  transition: transform .08s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--accent), #ff5e2b);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.hint { font-size: 13px; color: var(--red); min-height: 18px; margin: 8px 0 0; }
.examples { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.chip {
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted);
  border-radius: 20px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; margin: 0 2px;
  font-family: inherit;
}
.chip:hover { border-color: var(--accent); color: var(--accent-2); }

/* Output */
.output { min-height: 100px; }
.empty-card { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty-emoji { font-size: 46px; opacity: .5; margin-bottom: 12px; }
.empty-sub { font-size: 13px; color: var(--dim); }

.meta-card .toolbar { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.copy-note { font-size: 12.5px; color: var(--green); }
.meta-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px; padding: 4px 11px; border-radius: 20px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted);
}
.tag b { color: var(--text); font-weight: 500; }
.tag.kw { border-color: var(--accent); color: var(--accent-2); }
.meta-note { width: 100%; font-size: 12.5px; color: var(--dim); margin-top: 4px; }

/* Funnel */
.funnel { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.funnel li {
  position: relative; padding: 0 0 18px 26px; border-left: 2px dashed var(--line);
  margin-left: 8px;
}
.funnel li:last-child { border-left-color: transparent; padding-bottom: 0; }
.funnel li::before {
  content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,69,.18);
}
.funnel .f-step { font-weight: 700; font-size: 14px; color: var(--accent-2); }
.funnel .f-action { font-size: 14px; margin: 2px 0; }
.funnel .f-detail { font-size: 13px; color: var(--muted); }

/* Magnets */
.magnets { display: grid; gap: 12px; }
.magnet {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg-soft);
  position: relative;
}
.magnet.rec { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,122,69,.08), var(--bg-soft)); }
.magnet .m-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.magnet .m-rank { font-size: 12px; color: var(--dim); }
.magnet .m-label { font-weight: 700; font-size: 14px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--accent); color: #fff; font-weight: 700; }
.magnet .m-title { font-size: 14.5px; color: var(--blue); margin: 2px 0 6px; font-weight: 500; }
.magnet .m-why { font-size: 13px; color: var(--muted); }
.magnet .m-foot { font-size: 12.5px; color: var(--dim); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 14px; }

/* CTA */
.cta-list { display: grid; gap: 12px; }
.cta-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg-soft); }
.cta-block.rec { border-color: var(--green); }
.cta-block .c-label { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.c-tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--green); color: #06251a; font-weight: 700; }
.copyline {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line);
}
.copyline:first-of-type { border-top: none; }
.copyline .ct { flex: 1; font-size: 13.5px; }
.mini {
  flex-shrink: 0; font-size: 12px; padding: 4px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card-2); color: var(--muted); font-family: inherit;
}
.mini:hover { border-color: var(--accent); color: var(--accent-2); }
.mini.done { border-color: var(--green); color: var(--green); }

/* DM */
.dm-list { display: grid; gap: 10px; }
.dm-item { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: var(--bg-soft); }
.dm-stage { font-size: 12.5px; color: var(--accent-2); font-weight: 700; margin-bottom: 6px; }
.dm-row { display: flex; gap: 8px; align-items: flex-start; }
.dm-text { flex: 1; font-size: 13.5px; }

/* Promise / boundary */
.pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pb-h { margin: 0 0 8px; font-size: 13.5px; }
.pb-h.promise { color: var(--green); }
.pb-h.boundary { color: var(--red); }
.pb-list { margin: 0; padding-left: 18px; }
.pb-list li { font-size: 13.5px; margin-bottom: 8px; color: var(--text); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  font-size: 13.5px; padding: 9px 0 9px 28px; position: relative; border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "☐"; position: absolute; left: 4px; top: 8px; color: var(--accent); font-size: 16px;
}

/* Why section */
.why { padding: 30px 0 50px; }
.why h2 { font-size: 19px; margin: 0 0 14px; }
.why-list { margin: 0; padding-left: 20px; color: var(--muted); }
.why-list li { margin-bottom: 8px; font-size: 14px; }
.why-list strong { color: var(--text); }

/* Footer */
.footer { padding: 22px 20px 40px; color: var(--dim); font-size: 12.5px; text-align: center; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .form { position: static; }
  .intro h1 { font-size: 24px; }
  .pb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .row { grid-template-columns: 1fr; }
  .tagline { display: none; }
  .intro { padding: 30px 0 8px; }
}
