:root {
  --bg: #0c0b09;
  --bg-2: #141310;
  --surface: #1b1914;
  --line: #2e2a22;
  --text: #f3ead7;
  --muted: #b4a48a;
  --accent: #e8a54b;
  --accent-2: #ffd089;
  --danger: #e07a5f;
  --ok: #8fbf6a;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Source Han Serif SC", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, #2a2114 0%, transparent 50%), var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0 0.4rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; }
.mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #e8a54b, #8a4b1f);
  box-shadow: 0 0 0 1px #0006, 0 8px 20px #e8a54b33;
}
.brand b { font-family: var(--font); font-size: 1.2rem; letter-spacing: 0.01em; }
.nav { display: flex; gap: 1.1rem; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.hero { padding: 3.2rem 0 1.5rem; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid #e8a54b55; padding: 0.2rem 0.55rem; border-radius: 999px;
}
.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12; letter-spacing: -0.02em;
  margin: 0.85rem 0 0.8rem; max-width: 16ch;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin: 0 0 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  border: 0; border-radius: 11px; padding: 0.7rem 1.1rem;
  font: 650 0.95rem/1 var(--sans); cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--accent); color: #1a1208; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }

.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.pill {
  background: #e8a54b14; color: var(--accent-2); border: 1px solid #e8a54b33;
  padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.8rem;
}

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding: 1rem 0 2.5rem;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.2rem;
}
.card h3 { margin: 0 0 0.4rem; font-family: var(--font); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

#forge { padding: 1rem 0 3rem; }
#forge h2, .section h2 {
  font-family: var(--font); font-size: 2rem; margin: 0 0 0.4rem;
}
.section { padding: 1.5rem 0 2.5rem; }
.section p.sub { color: var(--muted); margin: 0 0 1.2rem; }

.panel {
  display: grid; grid-template-columns: 340px 1fr; gap: 1.1rem;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 1rem;
}
form.gen { display: flex; flex-direction: column; gap: 0.75rem; }
label { font-size: 0.78rem; color: var(--muted); font-weight: 650; }
input, select, textarea {
  width: 100%; margin-top: 0.28rem; background: #0e0d0b; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.7rem;
  font: 1rem var(--sans);
}
textarea { min-height: 72px; resize: vertical; }
.preview-box {
  background: #0a0908; border: 1px solid var(--line); border-radius: 12px;
  min-height: 640px; overflow: hidden; position: relative;
}
.preview-box iframe { width: 100%; height: 640px; border: 0; background: #fff; }
.preview-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); text-align: center; padding: 2rem;
}
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.status { font-size: 0.85rem; color: var(--ok); min-height: 1.2em; }
.status.err { color: var(--danger); }

.price {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.price .card b { color: var(--accent); font-size: 1.8rem; font-family: var(--font); }
.price li { color: var(--muted); }

details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 0.5rem;
}
details summary { cursor: pointer; font-weight: 650; }
details p { margin: 0.5rem 0 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--line); padding: 2rem 0 3rem;
  color: var(--muted); font-size: 0.9rem;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .grid-3, .panel, .price { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}
