:root {
  --bg: #08080d;
  --panel: rgba(18, 18, 28, 0.86);
  --panel-2: rgba(26, 26, 39, 0.76);
  --gold: #c8a96e;
  --gold-2: #e8c97e;
  --muted: #b8aa90;
  --text: #f2ebd9;
  --line: rgba(200, 169, 110, 0.18);
  --red: #c42b3f;
  --green: #7ccc60;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(155, 35, 53, .22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(59, 122, 133, .18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(200, 169, 110, .10), transparent 32%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 52px 0 80px;
  position: relative;
}

.hero { text-align: center; padding: 28px 0 32px; }
.eyebrow { color: var(--gold); letter-spacing: 4px; font-size: 12px; opacity: .78; }
h1 { margin: 12px 0 8px; font-size: clamp(46px, 8vw, 86px); letter-spacing: 8px; font-weight: 700; }
.sub { color: var(--muted); margin: 0 auto; max-width: 720px; line-height: 1.9; }

.status-card {
  margin: 24px auto 0;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--muted);
  border-radius: 999px;
  font-size: 13px;
}
.dot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; background: var(--red); box-shadow: 0 0 18px currentColor; }
.dot.ok { background: var(--green); }
.dot.warn { background: #ff9f43; }

.panel, .result, .notes {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(10,10,15,.82));
  box-shadow: 0 30px 100px rgba(0,0,0,.32);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 38px);
  backdrop-filter: blur(14px);
}

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

label { display: block; margin-bottom: 18px; }
label span { display: block; color: var(--gold); font-size: 13px; letter-spacing: 2px; margin: 0 0 8px; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(200,169,110,.2);
  background: rgba(5,5,10,.78);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(232,201,126,.68);
  box-shadow: 0 0 0 4px rgba(200,169,110,.09);
}
textarea { resize: vertical; }

.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
button, .button-link {
  border: 0;
  color: #17120a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}
button:disabled { opacity: .55; cursor: not-allowed; }
button.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}
.progress { color: var(--muted); line-height: 1.8; }

.result { margin-top: 24px; }
.result.hidden { display: none; }
.result h2, .notes h2 { color: var(--gold); margin-top: 0; }
.result p, .notes li { color: var(--muted); line-height: 1.9; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
code {
  color: var(--gold-2);
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(200,169,110,.14);
  padding: 4px 7px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.notes { margin-top: 24px; background: var(--panel-2); }
.notes ul { margin: 0; padding-left: 20px; }

.upgrade { margin-top: 24px; }
.upgrade h2 { color: var(--gold); margin-top: 0; }
.upgrade-list { margin: 0; padding-left: 20px; }
.upgrade-list li { color: var(--muted); line-height: 1.95; margin-bottom: 10px; }
.upgrade-list li:last-child { margin-bottom: 0; }
.upgrade-list strong { color: var(--text); }
.result .hint { color: var(--muted); font-size: 13.5px; line-height: 1.9; margin-top: 4px; }

.automation-preview { margin-top: 24px; overflow: hidden; position: relative; }
.automation-preview::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -90px;
  background: radial-gradient(circle, rgba(232,201,126,.18), transparent 62%);
  pointer-events: none;
}
.preview-head span { color: var(--gold); letter-spacing: 3px; font-size: 11px; text-transform: uppercase; }
.preview-head h2 { margin: 8px 0 20px; color: var(--text); line-height: 1.45; }
.automation-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.automation-cards article {
  border: 1px solid rgba(200,169,110,.16);
  background: rgba(5,5,10,.36);
  border-radius: 18px;
  padding: 16px 15px;
  min-height: 156px;
}
.automation-cards b { display: block; color: rgba(232,201,126,.52); font-size: 22px; margin-bottom: 12px; }
.automation-cards strong { display: block; color: var(--gold-2); margin-bottom: 8px; }
.automation-cards p { margin: 0; color: var(--muted); line-height: 1.85; font-size: 13px; }

@media (max-width: 680px) {
  .shell { width: min(100vw - 22px, 980px); padding-top: 28px; }
  h1 { letter-spacing: 4px; }
  .grid.two { grid-template-columns: 1fr; gap: 0; }
  .panel, .result, .notes { border-radius: 18px; }
  .automation-cards { grid-template-columns: 1fr; }
  .automation-cards article { min-height: 0; }
  .actions { align-items: stretch; }
  button, .button-link { width: 100%; }
}
