:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa4b2;
  /* --accent-grad-start: #405de6;
  --accent-grad-end: #833ab4; */
  /* --muted: #FCFBF4; */
  --accent-grad-start: #2C3547;
  --accent-grad-end: #49A37E;
  --glass: rgba(255, 255, 255, 0.04);
  --text: #e6eef8;
  --max-width: 1100px;
  --left-w: 300px;
  --radius: 12px;
}

/* Basic layout */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #f7f9fb 0%, #f1f4f8 100%);
  color: #0b1220;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--accent-grad-start), var(--accent-grad-end));
  color: white;
  padding: 60px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  gap: 28px;
  align-items: center;
}
.brand {
  min-width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.6px;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.28);
}
.hero h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.3px;
}
.hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

/* Container grid */
.container {
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: var(--left-w) 1fr;
  gap: 24px;
}

/* Side navigation */
nav.side {
  position: sticky;
  top: 20px;
  align-self: start;
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-title {
  font-weight: 600;
  margin: 0 0 8px;
}
.nav-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-list a:hover {
  background: rgba(64, 93, 230, 0.1);
}
.nav-list a.active {
  background: linear-gradient(90deg, rgba(64, 93, 230, 0.08), rgba(131, 58, 180, 0.06));
  color: #0b1220;
}

/* Main content */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
}

/* Header row */
.top-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.summary h2 {
  margin: 0;
  font-size: 22px;
}
.summary p {
  margin: 6px 0 0;
  color: var(--muted);
}
.search input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e6eef8;
  min-width: 220px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.search input:focus {
  outline: none;
  border-color: var(--accent-grad-start);
  box-shadow: 0 0 0 3px rgba(64, 93, 230, 0.15);
}

/* Info pills */
.pill {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
  color: white;
  font-weight: 600;
}

/* Tiles */
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.tile {
  background: #fbfdff;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #eef4fb;
  min-width: 160px;
  flex: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
}
.tile h3 {
  margin: 0;
  font-size: 14px;
}
.tile p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Accordion */
.accordion {
  margin-top: 6px;
}
.acc-item {
  border-top: 1px solid #eef1f6;
  padding: 16px 0;
}
.acc-item:first-child {
  border-top: 0;
}
.acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s ease;
}
.acc-head:hover {
  color: var(--accent-grad-start);
}
.acc-head h4 {
  margin: 0;
  font-size: 16px;
}
.acc-body {
  margin-top: 12px;
  color: var(--muted);
  display: none;
  animation: fadeIn 0.3s ease;
}
.acc-body p {
  margin: 0 0 10px;
}
.acc-body ul {
  margin: 6px 0 10px;
  padding-left: 20px;
}

/* Footer */
footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #eef1f6;
  color: var(--muted);
  font-size: 13px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 880px) {
  .container {
    grid-template-columns: 1fr;
  }
  nav.side {
    position: relative;
    top: 0;
    margin-bottom: 16px;
  }
}

@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .brand {
    min-width: 64px;
    height: 64px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 14px;
  }
  .summary h2 {
    font-size: 18px;
  }
  .search input {
    width: 100%;
    min-width: unset;
  }
  .tiles {
    flex-direction: column;
  }
  .tile {
    width: 100%;
  }
}

/* Print */
@media print {
  body {
    background: white;
    color: #000;
  }
  .hero,
  nav.side,
  .pill,
  .search input {
    display: none;
  }
  .container {
    max-width: 100%;
  }
  .card {
    box-shadow: none;
    border: none;
  }
}

/* Utility */
.muted {
  color: var(--muted);
}
a.inline-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* Adjust accordion header layout for small screens */
@media (max-width: 700px) {
  .acc-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .acc-head .muted {
    margin-top: 4px;
    font-size: 0.85rem;
  }
}

