:root{
  --bg: #0b0b12;
  --card: #121224;
  --accent: #7a5cff;
  --text: #e8e7ff;
  --muted: #9aa0b4;
  --ring: rgba(122,92,255,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(122,92,255,.15), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(92,193,255,.10), transparent 60%),
    var(--bg);
}

/* Header */
.site-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(11,11,18,.85), rgba(11,11,18,.55));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand .dot{
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent), 0 0 8px var(--accent);
}
h1{ margin: 0; font-weight: 800; font-size: 20px; letter-spacing: .2px; }

/* Status pill */
.status{
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: #1a1a2c; color: var(--muted);
  border: 1px solid rgba(255,255,255,.06);
}

/* Main */
.wrap{
  max-width: 1080px; margin: 22px auto; padding: 0 16px;
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}

/* Editor */
#note{
  width: 100%;
  height: calc(100vh - 220px);
  resize: none;
  padding: 22px;
  line-height: 1.6;
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: none; outline: none;
  caret-color: var(--accent);
}
#note::selection{
  background: rgba(122,92,255,.35);
}
#note:focus{
  box-shadow: inset 0 0 0 2px var(--ring);
}

/* Footer */
.site-footer{
  opacity: .75;
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
}
