:root {
  --bg: #0b0d10;
  --panel: #14181f;
  --ink: #f2f5f8;
  --muted: #93a0b0;
  --accent: #39d98a;
  --accent2: #6ea8ff;
  --line: #273041;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
body {
  min-height: 100vh;
  background:
    radial-gradient(1000px 520px at 8% -8%, #163528 0%, transparent 55%),
    radial-gradient(800px 420px at 95% 0%, #1a2740 0%, transparent 50%),
    var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 880px; margin: 0 auto; padding: 2.25rem 1.2rem 4rem; }
.brand { font-family: var(--display); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.brand b { color: var(--ink); }
.brand span { color: var(--accent); }
h1 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin: 0.55rem 0 0.65rem; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.55; margin: 0 0 1.5rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2rem; }
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--accent); color: #062016; border: 0;
  font: inherit; font-weight: 700; border-radius: 999px;
  padding: 0.75rem 1.2rem; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:hover, button:hover { filter: brightness(1.06); text-decoration: none; }
.section-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 1.75rem 0 0.75rem; font-weight: 700; }
.grid { display: grid; gap: 0.85rem; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: rgba(57,217,138,.45); transform: translateY(-1px); text-decoration: none; }
.card .tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 0.4rem;
}
.card h2, .card h3 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 0.35rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
input, textarea, select {
  width: 100%; background: #0e1318; border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 0.7rem 0.85rem; font: inherit; margin-bottom: 0.9rem;
}
textarea { min-height: 110px; resize: vertical; }
.habit, .linkrow, .pollopt {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1rem; border: 1px solid var(--line);
  border-radius: 12px; background: #10161c; margin-bottom: 0.6rem; cursor: pointer; color: inherit;
}
.habit.done { border-color: rgba(57,217,138,0.45); background: rgba(57,217,138,0.08); }
.habit input, .pollopt input { width: auto; margin: 0; }
.linkrow { text-decoration: none; justify-content: space-between; }
.linkrow:hover { border-color: rgba(110,168,255,.5); }
.linkrow .chev { color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9rem; }
.ok { color: var(--accent); }
.foot { margin-top: 2.5rem; font-size: 0.8rem; color: var(--muted); }
.pill {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.25rem 0.65rem; font-size: 0.75rem; color: var(--muted); margin-right: 0.35rem; margin-bottom: 0.35rem;
}
.create-box {
  border: 1px dashed rgba(57,217,138,.35);
  background: rgba(57,217,138,.05);
  border-radius: 16px; padding: 1.2rem 1.25rem; margin: 1.25rem 0 1.75rem;
}
.create-box textarea { margin-bottom: 0.75rem; min-height: 90px; }
.notice { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }

.brand-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.35rem; }
.brand-row a { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.brand-row a:hover { text-decoration: none; }
.logo {
  width: 52px; height: 52px; object-fit: contain;
  border-radius: 12px; flex-shrink: 0;
  background: #0e1318; border: 1px solid var(--line);
}
.logo.sm { width: 36px; height: 36px; border-radius: 9px; }
.cat-block { margin-bottom: 1.75rem; }
.cat-block h2 {
  font-family: var(--display); font-size: 1.05rem; margin: 0 0 0.65rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.cat-block h2 span { color: var(--muted); font-weight: 600; font-size: 0.85rem; margin-left: 0.4rem; }
