body.index-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 0;
  min-height: 100vh;
}

.index-page .page {
  margin-top: auto;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: rise 450ms ease-out;
}

.index-page .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.index-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0 5px;
}

.index-page .subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.index-page .brand-logo {
  width: auto;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(75, 66, 115, 0.25);
}

.index-page .card {
  width: 100%;
  overflow: hidden;
}

.index-page .community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
}

.index-page .community:hover {
  background-color: #f9f9f9;
}

.index-page .info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.index-page .workspace-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #fafafa;
}

.index-page .name {
  font-size: 16px;
  font-weight: 600;
}

.index-page .avatars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.index-page .avatar-initial {
  width: 20px;
  height: 20px;
  background-color: #36C5F0;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-weight: 700;
}

.index-page .avatar-initial:nth-child(2) {
  background-color: #2EB67D;
}

.index-page .avatar-initial:nth-child(3) {
  background-color: #ECB22E;
}

.index-page .avatar-initial:nth-child(4) {
  background-color: #E01E5A;
}

.index-page .member-count {
  font-size: 13px;
  color: gray;
  margin-left: 6px;
}

.index-page .arrow {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
}

.index-page .cta-panel {
  background: var(--soft-bg);
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.index-page .cta-content {
  font-size: 14px;
  flex: 1;
}

.index-page .cta-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.index-page .cta-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.site-footer {
  background-color: #D3D3D3;
  width: 100%;
  margin-top: auto;
  padding: 24px 20px;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-sep {
  color: var(--card-border);
  font-size: 16px;
  line-height: 1;
}

/* ── 3-dot page nav ───────────────────────────────────── */
.nav-menu-wrapper {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 200;
}

.nav-dots-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  transition: box-shadow 0.2s, transform 0.15s;
}

.nav-dots-btn span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  transition: background 0.2s;
}

.nav-dots-btn:hover {
  box-shadow: 0 4px 18px rgba(75, 66, 115, 0.22);
  transform: scale(1.06);
}

.nav-dots-btn[aria-expanded="true"] span {
  background: var(--primary);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
  min-width: 310px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform-origin: top right;
  animation: dropdownIn 0.18s ease-out;
}

.nav-dropdown.open {
  display: flex;
}

.nav-dropdown-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 10px 14px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.nav-item:hover {
  background: var(--soft-bg);
  color: var(--primary);
}

.nav-item-icon {
  font-size: 16px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item-icon--bh {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item-label {
  flex: 1;
  font-weight: 500;
}

.nav-item-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #eef0fc;
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 20px;
}


@media (max-width: 540px) {
  .benefit-cards {
    flex-direction: column;
  }

  .nav-menu-wrapper {
    top: 14px;
    right: 14px;
  }
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  body.index-page {
    padding: 24px 14px;
  }

  .index-page .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .index-page .button {
    width: 100%;
  }

  .index-page .legal-links {
    gap: 12px;
    flex-wrap: wrap;
  }
}
