:root {
  --bg: #07090d;
  --bg-soft: #0b0f17;
  --panel: rgba(19, 24, 35, 0.84);
  --panel-strong: #111621;
  --panel-elevated: #171d2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #f5f7fb;
  --muted: #98a2b3;
  --muted-2: #727b8b;
  --accent: #7c8cff;
  --accent-soft: rgba(124, 140, 255, 0.14);
  --glow: rgba(124, 140, 255, 0.3);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(124, 140, 255, 0.15), transparent 28%),
    linear-gradient(180deg, #07090d 0%, #0a0d14 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at top, black, transparent 75%);
  opacity: 0.35;
}

a { color: inherit; text-decoration: none; }
button, select { font: inherit; }

.page-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 13, 20, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a9b4ff, #6677ff);
  box-shadow: 0 0 24px var(--glow);
}
.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.topbar-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.page {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 22px;
  padding: 28px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c3cbff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b97ff);
}
.hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11ch;
}
.hero-text {
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}
.primary-btn,
.ghost-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.primary-btn {
  background: linear-gradient(135deg, #707df6, #8f9cff);
  color: #0b1020;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(124, 140, 255, 0.28);
}
.ghost-btn {
  width: 100%;
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.primary-btn:hover,
.ghost-btn:hover,
.topbar-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.16);
}
.hero-note {
  color: var(--muted-2);
  font-size: 13px;
}
.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}
.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line-soft);
}
.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}
.stat-card-wide {
  grid-column: 1 / -1;
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.sidebar,
.feed {
  padding: 24px;
}
.sidebar {
  position: sticky;
  top: 102px;
}
.sidebar-head h2,
.feed-head h2 {
  margin: 10px 0 0;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}
.field-label,
.info-title {
  display: block;
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  outline: none;
}
.info-block {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
}
.info-block p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.feed-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.filter-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: #d5dbff;
  font-size: 13px;
  white-space: nowrap;
}
.posts {
  display: grid;
  gap: 16px;
}
.post {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.post:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 140, 255, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.post h3 {
  margin: 0 0 10px;
  font-size: 1.34rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.meta {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.post p {
  margin: 0;
  color: #d7deeb;
  font-size: 15px;
  line-height: 1.72;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tag {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(124, 140, 255, 0.22);
  background: rgba(124, 140, 255, 0.09);
  color: #dbe1ff;
  font-size: 12px;
}
.empty-state {
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}
.footer {
  padding: 18px 0 8px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
    padding-top: 10px;
  }
  .topbar,
  .hero,
  .sidebar,
  .feed {
    padding: 18px;
  }
  .topbar,
  .feed-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-panel {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    max-width: none;
  }
  .post {
    padding: 18px;
  }
}