:root {
  --green-50:  #F9FCED;
  --green-100: #EFF8CC;
  --green-200: #DFF099;
  --green-300: #CFE966;
  --green-400: #BEE133;
  --green-500: #B0DA00;
  --green-600: #A0C600;
  --green-700: #7D9B00;
  --green-800: #607800;
  --green-900: #4A5C00;

  --blue-50:   #E6E9EB;
  --blue-100:  #CCD3D6;
  --blue-200:  #99A6AE;
  --blue-300:  #667A85;
  --blue-400:  #4F6673;
  --blue-500:  #012134;
  --blue-600:  #011E2F;
  --blue-700:  #011725;
  --blue-800:  #01121D;
  --blue-900:  #000E16;

  --grey-0:    #FFFFFF;
  --grey-50:   #F1F2F3;
  --grey-100:  #EDEEF0;
  --grey-200:  #E5E6E8;
  --grey-300:  #BDBEBF;
  --grey-400:  #A9AAAA;
  --grey-500:  #949595;
  --grey-600:  #808181;
  --grey-700:  #6A6B6B;
  --grey-800:  #545555;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--blue-500);
  background:
    radial-gradient(circle at 15% 10%, rgba(176, 218, 0, 0.12), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(1, 33, 52, 0.08), transparent 50%),
    var(--green-50);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--grey-0);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(1, 33, 52, 0.04);
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(176, 218, 0, 0.2);
}

.hero {
  text-align: center;
  margin-bottom: 56px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--blue-500);
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--blue-400);
  max-width: 620px;
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin: 0 0 20px;
}

.section-title::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
}

.section-title.private::before {
  background: var(--blue-500);
}

.section + .section {
  margin-top: 56px;
}

.section[hidden] {
  display: none;
}

.search {
  position: relative;
  margin-bottom: 40px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--blue-300);
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-family: inherit;
  font-size: 15px;
  color: var(--blue-500);
  background: var(--grey-0);
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder {
  color: var(--blue-300);
}

.search input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(176, 218, 0, 0.15);
}

button.section-title {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  width: fit-content;
  text-align: left;
}

button.section-title:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 4px;
  border-radius: 4px;
}

.section-toggle .chevron {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  transition: transform 0.2s ease;
  color: var(--blue-400);
}

.section-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.section-toggle[aria-expanded="false"] + .grid {
  display: none;
}

.card[hidden] {
  display: none;
}

.no-results {
  text-align: center;
  padding: 48px 20px;
  margin: 32px 0 0;
  color: var(--blue-300);
  font-size: 15px;
  background: var(--grey-0);
  border: 1px dashed var(--grey-200);
  border-radius: 14px;
}

.no-results[hidden] {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  background: var(--grey-0);
  border: 1px solid var(--grey-200);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(176, 218, 0, 0.18), transparent 65%);
  transition: transform 0.4s ease, opacity 0.25s ease;
  opacity: 0;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--green-400);
  box-shadow: 0 18px 40px -20px rgba(1, 33, 52, 0.35);
}

.card:hover::after {
  opacity: 1;
  transform: translate(-30px, -30px);
}

.card:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.card-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.tag-public {
  color: var(--green-800);
  background: var(--green-100);
}

.tag-private {
  color: var(--blue-500);
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
  flex-shrink: 0;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-body {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue-500);
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--blue-300);
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-700);
  position: relative;
  z-index: 1;
}

.card-footer svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.card:hover .card-footer svg {
  transform: translateX(4px);
}

footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--blue-300);
}

footer a {
  color: var(--blue-400);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--green-700);
}

@media (max-width: 640px) {
  .page { padding: 32px 18px 48px; }
  .topbar { margin-bottom: 40px; }
  .hero { margin-bottom: 40px; }
  footer { flex-direction: column; align-items: flex-start; }
}
