:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f0efff;
  --ink: #07080d;
  --muted: #626674;
  --line: #dedff0;
  --brand: #594ef7;
  --brand-dark: #332bb2;
  --slim-green: #c7ff42;
  --accent: #c7ff42;
  --danger: #db5a42;
  --shadow: 0 24px 60px rgba(36, 31, 124, 0.15);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Myriad Pro", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  background: #07080d;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: grid;
  gap: 10px;
}

.brand-logo {
  width: min(100%, 210px);
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  font-family: "Good Times", "Eurostile", "Arial Black", sans-serif;
  letter-spacing: 0.02em;
}

.brand small {
  color: #b8c5cf;
  font-size: 0.78rem;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-list a {
  padding: 12px 13px;
  border-radius: 8px;
  color: #d9e5ed;
  font-size: 0.93rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.sidebar-panel {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-panel p {
  margin: 3px 0 0;
  color: #b8c5cf;
  font-size: 0.83rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--slim-green);
  box-shadow: 0 0 0 6px rgba(199, 255, 66, 0.15);
  flex: 0 0 auto;
}

.main-content {
  padding: 28px;
  display: grid;
  gap: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(199, 255, 66, 0.2);
  color: #304800;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pill.dark {
  background: #07080d;
  color: #fff;
}

.topbar h1 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(1.15rem, 2.25vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-family: "Good Times", "Eurostile", "Arial Black", sans-serif;
  font-weight: 800;
}

.quick-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

.icon-button,
.primary-action,
.idea-form button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.icon-button {
  width: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(36, 31, 124, 0.08);
}

.primary-action,
.idea-form button {
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
}

.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(24px, 5vw, 54px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(7, 8, 13, 0.94), rgba(89, 78, 247, 0.86)),
    radial-gradient(circle at 76% 20%, rgba(199, 255, 66, 0.5), transparent 28%),
    linear-gradient(135deg, #07080d, #594ef7);
  color: #fff;
}

.hero-copy {
  align-self: center;
}

.hero h2 {
  max-width: 740px;
  margin: 18px 0 14px;
  font-size: clamp(1.75rem, 3.8vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-family: "Good Times", "Eurostile", "Arial Black", sans-serif;
  font-weight: 800;
}

.hero p {
  max-width: 650px;
  color: #dce9ed;
  font-size: 1.08rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 140px));
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics div {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 1.55rem;
}

.hero-metrics span {
  color: #c7d8de;
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
  min-height: 310px;
}

.visual-card {
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.visual-card-main {
  inset: 20px 0 34px 30px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 22px;
}

.visual-logo {
  width: min(100%, 470px);
  max-height: 104px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.cube-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cube-grid span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--brand), #e8e5ff);
}

.cube-grid span:nth-child(3n) {
  background: linear-gradient(145deg, var(--slim-green), #f4ffd4);
}

.visual-card-small {
  right: 18px;
  bottom: 0;
  width: 160px;
  padding: 18px;
}

.visual-card-small strong,
.visual-card-small span {
  display: block;
}

.visual-card-small strong {
  font-size: 2rem;
}

.visual-card-small span {
  color: var(--muted);
}

section {
  scroll-margin-top: 24px;
}

.content-grid,
.split-section,
.resource-section,
.links-panel,
.calendar-panel,
.sector-section,
.people-section,
.events-section,
.idea-section {
  padding: 26px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(36, 31, 124, 0.08);
}

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

.section-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.section-heading span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.28rem;
  font-family: "Good Times", "Eurostile", "Arial Black", sans-serif;
  font-weight: 800;
}

.announcement,
.news-list article,
.resource-card,
.sector-grid article,
.calendar-list article,
.person-card,
.welcome-card,
.event-card,
.idea-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.announcement {
  padding: 18px;
  min-height: 180px;
}

.announcement span {
  color: var(--brand);
  font-weight: 900;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.announcement h3,
.news-feature h3,
.sector-grid h3 {
  margin: 10px 0 8px;
}

.announcement p,
.news-feature p,
.news-list p,
.sector-grid p,
.idea-card p {
  margin: 0;
  color: var(--muted);
}

.announcement.critical {
  border-color: rgba(219, 90, 66, 0.34);
  background: #fff5f2;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.news-feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.image-panel {
  min-height: 250px;
  border-radius: 8px;
}

.product-panel {
  background:
    linear-gradient(145deg, rgba(89, 78, 247, 0.86), rgba(199, 255, 66, 0.82)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 16px);
  position: relative;
  overflow: hidden;
}

.product-panel::before,
.product-panel::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(-12deg);
}

.product-panel::before {
  width: 58%;
  height: 42%;
  left: 14%;
  top: 18%;
}

.product-panel::after {
  width: 42%;
  height: 26%;
  right: 10%;
  bottom: 16%;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-list article {
  padding: 15px;
}

.news-list time {
  color: var(--brand);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.news-list strong {
  display: block;
  margin-top: 3px;
}

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

.resource-card {
  min-height: 128px;
  padding: 17px;
  display: grid;
  align-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(89, 78, 247, 0.45);
}

.resource-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #304800;
  font-size: 0.82rem;
  font-weight: 900;
}

.resource-card small {
  color: var(--muted);
}

.links-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 26px;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  min-height: 48px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.link-list a::after {
  content: attr(data-type);
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.calendar-list {
  display: grid;
  gap: 12px;
}

.calendar-list article {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px;
}

.calendar-list article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(199, 255, 66, 0.24);
  color: #304800;
  font-weight: 900;
}

.calendar-list small {
  color: var(--muted);
}

.sector-grid article {
  min-height: 150px;
  padding: 18px;
}

.sector-grid article > span {
  color: var(--brand);
  font-weight: 900;
}

.people-grid,
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.person-card,
.welcome-card {
  min-height: 112px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.welcome-card {
  justify-content: space-between;
}

.person-card strong,
.person-card small,
.welcome-card strong,
.welcome-card small {
  display: block;
}

.person-card small,
.welcome-card small {
  color: var(--muted);
}

.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(36, 31, 124, 0.16);
}

img.avatar {
  object-fit: cover;
  display: block;
  padding: 0;
}

.avatar-green {
  background: linear-gradient(145deg, var(--slim-green), #304800);
}

.avatar-purple {
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
}

.avatar-dark {
  background: linear-gradient(145deg, #07080d, #454857);
}

.slack-link {
  min-height: 36px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand);
  font-weight: 900;
}

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

.event-card {
  overflow: hidden;
}

.event-card > div:last-child {
  padding: 16px;
}

.event-card time {
  color: var(--brand);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-card strong {
  display: block;
  margin: 5px 0 7px;
}

.event-card p {
  margin: 0;
  color: var(--muted);
}

.event-image {
  min-height: 170px;
  background:
    linear-gradient(145deg, rgba(89, 78, 247, 0.86), rgba(199, 255, 66, 0.78)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0 2px, transparent 2px 18px);
}

.event-image-two {
  background:
    linear-gradient(145deg, rgba(7, 8, 13, 0.9), rgba(89, 78, 247, 0.8)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 18px);
}

.event-image-three {
  background:
    linear-gradient(145deg, rgba(199, 255, 66, 0.9), rgba(89, 78, 247, 0.78)),
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.55), transparent 26%);
}

.idea-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
}

.idea-form {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.idea-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.idea-form input,
.idea-form select,
.idea-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
}

.idea-form textarea {
  resize: vertical;
}

.ideas-board {
  display: grid;
  gap: 12px;
  align-content: start;
}

.idea-card {
  padding: 16px;
}

.idea-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.idea-card strong {
  display: block;
}

.idea-card small {
  color: var(--muted);
}

.empty-state {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed #b8c7d1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

@media (max-width: 860px) {
  .main-content {
    padding: 18px;
  }

  .topbar,
  .news-feature,
  .idea-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero,
  .split-section,
  .links-calendar {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 250px;
  }

  .content-grid,
  .resource-grid,
  .sector-grid,
  .people-grid,
  .welcome-grid,
  .event-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .sidebar {
    padding: 20px 16px;
  }

  .nav-list,
  .content-grid,
  .resource-grid,
  .sector-grid,
  .people-grid,
  .welcome-grid,
  .event-gallery,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    width: 100%;
  }

  .primary-action {
    flex: 1;
  }

  .hero {
    padding: 24px 18px;
  }

  .visual-card-main {
    inset: 10px 0 44px 0;
  }
}
