:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-soft: #1d2230;
  --text: #eef2ff;
  --muted: #aeb7cf;
  --line: #2b3345;
  --accent: #7c9cff;
  --accent-2: #8ee3b0;
  --accent-3: #ffb86b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0d1016 0%, #111521 100%);
  color: var(--text);
}

.topbar,
.layout {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  padding: 48px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

h1, h2, h3, h4, p { margin-top: 0; }

h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; }
h2 { font-size: 1.6rem; margin-bottom: 10px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }
h4 { font-size: 1.05rem; margin-bottom: 10px; }

.lead { color: var(--muted); max-width: 760px; line-height: 1.6; }
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: transparent;
  padding: 11px 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f1420;
  font-weight: 700;
}

.layout {
  display: grid;
  gap: 20px;
  padding-bottom: 48px;
}

.panel {
  background: rgba(23, 26, 33, 0.95);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.hero-grid {
  display: grid;
  gap: 14px;
}

.hero-grid article,
.roadmap article {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.kpi {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.inbox-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #10141d;
  color: var(--text);
  padding: 14px;
  font: inherit;
}

textarea {
  min-height: 200px;
  resize: vertical;
}

.inbox-side {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.group + .group { margin-top: 24px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 12px;
  font-weight: 700;
}

.tag.personal { background: rgba(124, 156, 255, 0.16); color: #a8bbff; }
.tag.general { background: rgba(142, 227, 176, 0.16); color: #a9f0c7; }
.tag.business { background: rgba(255, 184, 107, 0.16); color: #ffd19a; }

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.muted { color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .topbar,
  .hero,
  .inbox-grid,
  .roadmap,
  .cards {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }
}
