:root {
  --bg: #0f172a;
  --card: #111c33;
  --card2: #17243d;
  --text: #f8fafc;
  --muted: #aab7cf;
  --line: rgba(255,255,255,.12);
  --accent: #d6b46a;
  --accent2: #f3d98b;
  --danger: #ffb4b4;
  --ok: #a7f3d0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214,180,106,.22), transparent 34rem),
    linear-gradient(135deg, #08111f, var(--bg));
  color: var(--text);
}
.shell { width: min(1120px, calc(100% - 32px)); margin: 32px auto; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  padding: 26px;
  backdrop-filter: blur(14px);
}
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.eyebrow { color: var(--accent2); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; margin: 0 0 10px; }
h1 { font-size: clamp(36px, 6vw, 72px); line-height: .96; margin: 0; }
h2 { margin: 0 0 18px; font-size: 24px; }
.lead { color: var(--muted); max-width: 760px; font-size: 18px; line-height: 1.7; }
.badge { border: 1px solid var(--line); background: rgba(214,180,106,.12); color: var(--accent2); padding: 10px 14px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
label { display: grid; gap: 8px; color: #e8eefb; font-weight: 700; margin-bottom: 16px; }
input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  background: rgba(2,6,23,.55); color: var(--text); outline: none; font: inherit;
}
input:focus, textarea:focus { border-color: rgba(214,180,106,.75); box-shadow: 0 0 0 4px rgba(214,180,106,.12); }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  border: 0; border-radius: 16px; padding: 13px 18px; cursor: pointer; font-weight: 850;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #111827;
}
.btn.ghost { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); }
.hint, .note { color: var(--muted); line-height: 1.65; }
.info ul { padding-left: 20px; color: var(--muted); line-height: 1.9; }
.info b { color: var(--text); }
.warning { margin-top: 20px; padding: 16px; border-radius: 18px; background: rgba(214,180,106,.1); border: 1px solid rgba(214,180,106,.25); color: #f7e7bd; line-height: 1.6; }
.alert { margin: 18px 0; padding: 16px; border-radius: 18px; border: 1px solid var(--line); }
.error { background: rgba(239,68,68,.12); color: var(--danger); }
.success-panel { margin: 18px 0; border-color: rgba(167,243,208,.25); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.stats div { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stats strong { display: block; font-size: 28px; }
.stats span { color: var(--muted); }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
@media (max-width: 820px) {
  .hero, .grid { grid-template-columns: 1fr; display: grid; }
  .stats { grid-template-columns: 1fr; }
  .shell { width: min(100% - 22px, 1120px); margin: 16px auto; }
}

.preview-box {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(214,180,106,.22);
  border-radius: 22px;
  background: rgba(2,6,23,.34);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.preview-head h3 {
  margin: 0;
  font-size: 18px;
}

.preview-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.preview-box details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  margin-top: 10px;
  overflow: hidden;
}

.preview-box summary {
  cursor: pointer;
  padding: 13px 15px;
  font-weight: 850;
  color: var(--accent2);
}

.preview-box pre {
  margin: 0;
  padding: 15px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-top: 1px solid var(--line);
  color: #dbeafe;
  background: rgba(0,0,0,.25);
  font-size: 13px;
  line-height: 1.6;
}
