:root {
  --bg: #0a0a0a;
  --card: #141414;
  --line: #262626;
  --red: #E8283C;
  --white: #f5f5f5;
  --muted: #7a7a7a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #0a0a0a 0%, #1a0a0d 45%, #2a0f14 75%, #0a0a0a 100%);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

main {
  max-width: 480px;
  width: 100%;
}

.hero {
  margin-bottom: 32px;
  text-align: left;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

h1 span { color: var(--red); text-shadow: 0 0 24px rgba(232, 40, 60, 0.5); }

.lede {
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  max-width: 380px;
  margin: 0;
}

.note-card {
  background: linear-gradient(165deg, #181818, #121012);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px 28px;
  position: relative;
  box-shadow:
    0 20px 50px -15px rgba(232, 40, 60, 0.25),
    0 8px 24px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.note-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #E8283C, #ff6b7a);
}

textarea {
  width: 100%;
  min-height: 130px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

textarea::placeholder {
  color: #4a4a4a;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.counter {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

button {
  background: linear-gradient(135deg, #ff4a5f, #d81c30);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(232, 40, 60, 0.55);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

button:hover { box-shadow: 0 14px 30px -8px rgba(232, 40, 60, 0.7); transform: translateY(-1px); }
button:active { transform: translateY(0); box-shadow: 0 6px 14px -6px rgba(232, 40, 60, 0.5); }
button:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

button:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.status {
  min-height: 20px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  margin: 14px 0 0;
  color: var(--red);
}

.status.error { color: #ff6b7a; }

.footnote {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  margin-top: 22px;
  text-align: left;
}