:root {
  --bg: #cfddea;
  --surface: rgba(255, 255, 255, 0.56);
  --surface-strong: #ffffff;
  --surface-soft: #f1f2f3;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-muted: #667085;
  --text-soft: #475467;
  --primary: #111111;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --success: #16a34a;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-glass:
    rgba(255, 255, 255, 0.1) 0 1px 1px 0 inset,
    rgba(50, 50, 93, 0.18) 0 32px 64px -24px,
    rgba(0, 0, 0, 0.16) 0 22px 42px -28px;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 22px 50px rgba(15, 23, 42, 0.12);
}

* {
  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 left, rgba(255, 255, 255, 0.62), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 24%),
    linear-gradient(180deg, #d9e5f0 0%, var(--bg) 100%);
  padding: 24px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 25%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 18%);
}

h1,
h2,
h3,
p,
button,
strong {
  margin: 0;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-glass);
}

.soft-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 242, 243, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.sidebar,
.hero-panel,
.metric-card,
.content-panel,
.insights-panel,
.event-card,
.empty-state {
  border-radius: var(--radius-xl);
}

.sidebar {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111111, #374151);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 30px rgba(17, 17, 17, 0.18);
}

.brand-label,
.sidebar-kicker,
.metric-label,
.mini-label,
.insight-label,
.section-label,
.eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-label,
.sidebar-kicker,
.metric-label,
.mini-label,
.insight-label {
  color: var(--text-muted);
}

.brand-title,
.hero-panel h2,
.section-title,
.sidebar-heading,
.event-title,
.metric-value,
.insight-value {
  font-family: "Manrope", "Inter", sans-serif;
}

.brand-title {
  font-size: 1.05rem;
  line-height: 1.2;
}

.sidebar-section + .sidebar-section {
  margin-top: 24px;
}

.sidebar-card,
.insight-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-card h2,
.sidebar-heading,
.section-title {
  margin-top: 10px;
  font-size: 1.12rem;
}

.sidebar-card p,
.hero-text,
.hero-helper,
.metric-foot,
.insight-copy,
.event-post,
.empty-state p {
  color: var(--text-soft);
}

.sidebar-card p,
.insight-copy,
.event-post,
.empty-state p {
  margin-top: 10px;
  line-height: 1.65;
}

.badge-pill,
.counter-pill,
.floating-pill,
.section-chip,
.event-pillar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-pill,
.floating-pill,
.event-pillar {
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.badge-pill,
.floating-pill,
.section-chip {
  padding: 10px 14px;
}

.counter-pill {
  min-width: 92px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #111111, #374151);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.18);
}

.sidebar-heading-row,
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-header.compact {
  margin-bottom: 18px;
}

.month-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.month-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.month-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(37, 99, 235, 0.2);
}

.month-btn.active {
  background: linear-gradient(135deg, #111111, #374151);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.22);
}

.month-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 3px;
}

.main-content {
  display: grid;
  gap: 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  padding: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.floating-pill.muted {
  background: rgba(255, 255, 255, 0.4);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.eyebrow,
.section-label {
  color: var(--accent);
}

.hero-panel h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 62ch;
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-highlight {
  padding: 24px;
  border-radius: var(--radius-lg);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-highlight h3 {
  margin-top: 10px;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.15;
}

.hero-helper {
  margin-top: 12px;
}

.stats-grid,
.dashboard-grid {
  display: grid;
  gap: 20px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 22px;
}

.metric-value {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.9rem, 2vw, 2.45rem);
  line-height: 1.05;
}

.metric-value.metric-text {
  font-size: 1.1rem;
  line-height: 1.35;
}

.metric-foot {
  display: block;
  margin-top: 10px;
  font-size: 0.92rem;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.content-panel,
.insights-panel {
  padding: 24px;
}

.section-title {
  margin-top: 8px;
  font-size: 1.34rem;
}

.section-chip {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.events-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.event-card,
.empty-state {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 242, 243, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #111111, #2563eb);
}

.event-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.18);
}

.event-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.event-date {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.event-date-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.event-meta {
  margin-top: 18px;
}

.event-title {
  font-size: 1.08rem;
  line-height: 1.35;
}

.event-pillar {
  margin-top: 12px;
  padding: 8px 12px;
  color: var(--accent);
  width: fit-content;
}

.event-post {
  margin-top: 14px;
  font-size: 0.96rem;
}

.event-post strong {
  color: var(--text);
}

.insight-stack {
  display: grid;
  gap: 14px;
}

.insight-value {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-state h3 {
  font-size: 1.2rem;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero-panel,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding: 16px;
  }

  .sidebar,
  .hero-panel,
  .metric-card,
  .content-panel,
  .insights-panel,
  .event-card,
  .empty-state {
    border-radius: 24px;
  }

  .sidebar,
  .hero-panel,
  .content-panel,
  .insights-panel {
    padding: 18px;
  }

  .stats-grid,
  .month-selector {
    grid-template-columns: 1fr;
  }

  .sidebar-heading-row,
  .section-header {
    flex-direction: column;
  }

  .section-chip,
  .counter-pill {
    width: fit-content;
  }
}
