:root{
  --bg:#f7f8fa;
  --card:#ffffff;
  --text:#0f172a;         /* slate-900 */
  --muted:#475569;        /* slate-600 */
  --accent:#ef4444;       /* red-500 */
  --accent-700:#b91c1c;   /* red-700 */
  --ring:#93c5fd;         /* blue-300 */
  --border:#e5e7eb;       /* gray-200 */
  --ok:#10b981;           /* green-500 */
  --shadow:0 10px 25px rgba(2,6,23,.08);
}
* { box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0; background:linear-gradient(180deg,#f8fafc,#eef2ff 40%,#f8fafc 100%);
  color:var(--text); font-family: ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Inter,"Helvetica Neue",Arial,sans-serif;
}

.nav{
  display:flex; gap:1rem; align-items:center; justify-content:flex-end;
  padding:1rem 1.25rem; max-width:1100px; margin:0 auto; color:var(--muted);
}
.nav a{ color:inherit; text-decoration:none; padding:.25rem .5rem; border-radius:.5rem; }
.nav a:hover{ background:rgba(15,23,42,.05); }

.wrapper{
  max-width:1100px; margin:2.5rem auto; padding:0 1rem;
  animation:fadeIn .6s ease backwards;
}
.brand{ display:flex; align-items:center; gap:.75rem; margin-bottom:1rem; }
.brand-logo{
  width:40px;height:40px; border-radius:12px; background:var(--accent);
  box-shadow:0 6px 18px rgba(239,68,68,.35); display:grid; place-items:center; color:#fff; font-weight:800;
  transform:translateZ(0);
}
.h1{ font-size:2.2rem; line-height:1.2; margin:.25rem 0 .5rem; }
.sub{ color:var(--muted); }

.card{
  background:var(--card); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow);
  padding:1.25rem; margin-top:1.25rem;
}
.label{ font-size:.95rem; color:var(--muted); margin-bottom:.35rem; display:block; }
textarea{
  width:100%; min-height:180px; resize:vertical; padding:1rem; border:1px solid var(--border); border-radius:12px;
  outline:none; background:#fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  transition: box-shadow .15s ease, border-color .15s ease, transform .08s ease;
}
textarea:focus{ border-color:var(--ring); box-shadow:0 0 0 3px rgba(147,197,253,.4); }

.row{ display:grid; grid-template-columns:1fr auto; gap:1rem; align-items:end; margin-top:1rem; }
@media (max-width:720px){ .row{ grid-template-columns:1fr; } }

.btn{
  appearance:none; border:1px solid transparent; background:var(--accent); color:#fff;
  padding:.8rem 1.1rem; font-weight:700; border-radius:12px; cursor:pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .12s ease;
  box-shadow:0 10px 18px rgba(239,68,68,.25);
}
.btn:hover{ transform:translateY(-1px); background:var(--accent-700); }
.btn:active{ transform:translateY(0); box-shadow:0 8px 14px rgba(239,68,68,.18); }

.info{
  display:flex; align-items:center; gap:.5rem; font-size:.95rem; color:var(--muted); margin-top:.75rem;
}
.badge{
  display:inline-flex; align-items:center; gap:.5rem; background:#f1f5f9; border:1px dashed var(--border); color:#0f172a;
  padding:.8rem 1rem; border-radius:12px; word-break:break-all;
}

.footer{ text-align:center; color:var(--muted); font-size:.9rem; margin:2rem 0; }

.reveal-card{ text-align:center; padding:2rem 1.5rem; }

pre.secret{
  text-align:left; background:#0b1020; color:#e2e8f0; padding:1rem; border-radius:12px; overflow:auto;
  border:1px solid #111827;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

/* micro motion */
@keyframes fadeIn { from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
