* { box-sizing: border-box; }
:root {
  --bg: #0d0a10;
  --bg2: #17111c;
  --card: rgba(20, 16, 25, 0.88);
  --line: rgba(193, 166, 109, 0.23);
  --gold: #c6aa72;
  --gold-soft: #9b8458;
  --text: #efe8dc;
  --muted: #b8aea1;
  --accent: #6e5a85;
  --shadow: 0 18px 40px rgba(0,0,0,.38);
}
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(110,90,133,.15), transparent 30%),
    linear-gradient(180deg, #0a090d 0%, #110d15 38%, #0a090d 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}
body { position: relative; }
.veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 20%),
    radial-gradient(circle at 20% 20%, rgba(198,170,114,0.07), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(198,170,114,0.06), transparent 20%);
}
.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}
.hero {
  text-align: center;
  padding: 18px 16px 30px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold);
  font-size: .8rem;
  margin-bottom: 10px;
}
h1, h2 { font-weight: 400; letter-spacing: .02em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0; }
.subtitle {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.7;
}
.card {
  background: rgba(20, 16, 25, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.two-col, .prompt-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
label {
  display: block;
  margin: 10px 0 8px;
  color: var(--gold);
  font-size: .95rem;
}
textarea, input, select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(198,170,114,.22);
  background: rgba(8,8,12,.75);
  color: var(--text);
  padding: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}
textarea {
  min-height: 260px;
  resize: vertical;
  line-height: 1.65;
}
.reply-box { min-height: 360px; }
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
button {
  border: 1px solid rgba(198,170,114,.32);
  background: linear-gradient(180deg, rgba(198,170,114,.18), rgba(198,170,114,.08));
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
button:hover {
  transform: translateY(-1px);
  border-color: rgba(198,170,114,.55);
}
button.ghost { background: rgba(255,255,255,.03); }
.analysis-box {
  min-height: 260px;
  border: 1px solid rgba(198,170,114,.16);
  border-radius: 14px;
  padding: 16px;
  background: rgba(0,0,0,.18);
  line-height: 1.7;
}
.analysis-box h3 {
  margin-top: 0;
  font-weight: 400;
  color: var(--gold);
}
.muted { color: var(--muted); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.compact ol {
  line-height: 1.8;
  color: var(--muted);
}
.signature {
  color: var(--gold-soft);
  margin-top: 18px;
  text-align: right;
}
ul.prompt-list {
  margin: 0;
  padding-left: 20px;
}
@media (max-width: 860px) {
  .two-col, .prompt-grid { grid-template-columns: 1fr; }
  .app-shell { width: min(100% - 20px, 980px); }
  .section-head { align-items: flex-start; }
}
