:root {
  --bg: #16110C;
  --accent: #F3E6D0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--accent);
  /* subtle radial atmosphere */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(243,230,208,0.06), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(243,230,208,0.04), transparent 55%);
  background-attachment: fixed;
}

.hidden { display: none; }

.brand-word { font-family: "Bricolage Grotesque", sans-serif; }
.hero-title { font-family: "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; }
.italic-thin { font-weight: 200; font-style: italic; color: var(--accent); opacity: 0.9; }

.wolf-glow { filter: drop-shadow(0 0 12px rgba(243,230,208,0.25)); }

/* ---------- Dropzone ---------- */
.dropzone {
  border: 1.5px dashed rgba(243,230,208,0.28);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  background: rgba(243,230,208,0.02);
}
.dropzone:hover { border-color: rgba(243,230,208,0.55); background: rgba(243,230,208,0.04); }
.dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(243,230,208,0.07);
  transform: scale(1.01);
  box-shadow: 0 0 40px rgba(243,230,208,0.12) inset;
}
.dropzone.has-file { padding: 1.5rem; }

/* ---------- Mode pills ---------- */
.pill {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(243,230,208,0.25);
  color: rgba(243,230,208,0.65);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}
.pill:hover { border-color: rgba(243,230,208,0.5); color: var(--accent); }
.pill-active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(243,230,208,0.25);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 30px rgba(243,230,208,0.18);
  text-transform: uppercase;
}
.cta:hover { box-shadow: 0 8px 40px rgba(243,230,208,0.3); }
.cta:active { transform: scale(0.96); }
.cta-disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.cta-disabled:hover { box-shadow: none; }

/* ---------- Panels ---------- */
.panel {
  background: rgba(243,230,208,0.03);
  border: 1px solid rgba(243,230,208,0.12);
  border-radius: 16px;
  padding: 0.9rem;
}
.panel-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(243,230,208,0.5);
  margin-bottom: 0.6rem;
}
.panel-label.\!mb-0 { margin-bottom: 0; }

.checker {
  background-color: #1c160f;
  background-image:
    linear-gradient(45deg, rgba(243,230,208,0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(243,230,208,0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(243,230,208,0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(243,230,208,0.04) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

/* ---------- Buttons ---------- */
.action-btn {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(243,230,208,0.3);
  color: rgba(243,230,208,0.85);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(243,230,208,0.05); }
.action-primary { background: var(--accent); color: var(--bg); font-weight: 700; border-color: var(--accent); }
.action-primary:hover { background: #fff2dd; color: var(--bg); }

/* ---------- Code box ---------- */
.code-box {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(243,230,208,0.8);
  background: #100c08;
  border: 1px solid rgba(243,230,208,0.1);
  border-radius: 12px;
  padding: 1rem;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.code-box::-webkit-scrollbar { width: 8px; }
.code-box::-webkit-scrollbar-thumb { background: rgba(243,230,208,0.15); border-radius: 4px; }

/* ---------- History ---------- */
.hist-card {
  background: rgba(243,230,208,0.03);
  border: 1px solid rgba(243,230,208,0.1);
  border-radius: 12px;
  padding: 0.6rem;
  transition: all 0.18s ease;
}
.hist-card:hover { border-color: rgba(243,230,208,0.3); background: rgba(243,230,208,0.05); }
.hist-card .checker { cursor: pointer; }

/* ---------- Chip ---------- */
.chip { background: rgba(243,230,208,0.04); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both; }

/* ---------- Prompt box ---------- */
.prompt-box {
  width: 100%;
  background: rgba(243,230,208,0.03);
  border: 1px solid rgba(243,230,208,0.15);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--accent);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.prompt-box::placeholder { color: rgba(243,230,208,0.3); }
.prompt-box:focus {
  border-color: rgba(243,230,208,0.5);
  box-shadow: 0 0 24px rgba(243,230,208,0.08) inset;
}
.sug-chip {
  font-size: 0.68rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(243,230,208,0.14);
  color: rgba(243,230,208,0.55);
  background: transparent;
  cursor: pointer;
  transition: all 0.16s ease;
}
.sug-chip:hover { border-color: rgba(243,230,208,0.4); color: var(--accent); }

/* ---------- AI model cards ---------- */
.ai-card {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(243,230,208,0.12);
  background: rgba(243,230,208,0.02);
  cursor: pointer;
  transition: all 0.18s ease;
}
.ai-card:hover { border-color: rgba(243,230,208,0.35); background: rgba(243,230,208,0.04); }
.ai-card-active {
  border-color: var(--accent);
  background: rgba(243,230,208,0.08);
  box-shadow: 0 0 24px rgba(243,230,208,0.14);
}
.ai-icon { font-size: 1rem; color: var(--accent); opacity: 0.85; }
.ai-name { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; color: var(--accent); }
.ai-desc { font-size: 0.7rem; color: rgba(243,230,208,0.5); margin-top: 0.3rem; line-height: 1.35; }

/* ---------- Process steps ---------- */
.process-box {
  max-width: 340px;
  margin: 0 auto;
  background: rgba(243,230,208,0.03);
  border: 1px solid rgba(243,230,208,0.12);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
}
.proc-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}
.proc-dot {
  width: 1.4rem; text-align: center;
  font-family: "JetBrains Mono", monospace;
}
.proc-wait { color: rgba(243,230,208,0.25); }
.proc-active { color: var(--accent); font-weight: 600; }
.proc-done { color: rgba(243,230,208,0.6); }
.spin { display: inline-block; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive tweaks */
@media (max-width: 640px) {
  .cta { width: 100%; }
  .code-box { font-size: 0.66rem; }
  .ai-desc { font-size: 0.66rem; }
}